From dd56f23c57835d23b18f323c9c5ef4c1ceb374c5 Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Mon, 13 Mar 2023 23:08:54 +0000 Subject: [PATCH] Releasing version 51.0.0 --- 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 | 15 + 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 | 2 +- .../OCI.PSModules.Computeinstanceagent.psd1 | 4 +- .../Disable-OCIContainerengineAddon.cs | 44 +-- .../Cmdlets/Get-OCIContainerengineAddon.cs | 58 ++-- .../Get-OCIContainerengineAddonOptionsList.cs | 108 ++++++++ .../Get-OCIContainerengineAddonsList.cs | 60 ++-- .../Get-OCIContainerenginePodShapesList.cs | 112 ++++++++ .../Get-OCIContainerengineVirtualNode.cs | 105 +++++++ .../Get-OCIContainerengineVirtualNodePool.cs | 40 +-- ...-OCIContainerengineVirtualNodePoolsList.cs | 68 ++--- .../Get-OCIContainerengineVirtualNodesList.cs | 64 ++--- .../Invoke-OCIContainerengineInstallAddon.cs | 50 ++-- .../New-OCIContainerengineVirtualNodePool.cs | 32 +-- ...emove-OCIContainerengineVirtualNodePool.cs | 52 ++-- .../Cmdlets/Update-OCIContainerengineAddon.cs | 46 ++-- ...pdate-OCIContainerengineVirtualNodePool.cs | 40 +-- .../OCI.PSModules.Containerengine.psd1 | 20 +- .../OCI.PSModules.Containerinstances.psd1 | 4 +- Core/OCI.PSModules.Core.psd1 | 4 +- .../OCI.PSModules.Dashboardservice.psd1 | 4 +- ...CIDatabaseAutonomousDatabaseBackupsList.cs | 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 +- .../Get-OCIDataconnectivityConnectionsList.cs | 124 --------- .../Get-OCIDataconnectivityDataAssetsList.cs | 136 --------- ...Get-OCIDataconnectivityDataEntitiesList.cs | 144 ---------- .../Get-OCIDataconnectivityDataEntity.cs | 79 ------ ...OCIDataconnectivityEngineConfigurations.cs | 71 ----- ...-OCIDataconnectivityExecuteOperationJob.cs | 79 ------ .../Get-OCIDataconnectivityFoldersList.cs | 120 -------- ...taconnectivityNetworkConnectivityStatus.cs | 79 ------ ...vityNetworkConnectivityStatusCollection.cs | 87 ------ .../Get-OCIDataconnectivityOperation.cs | 79 ------ .../Get-OCIDataconnectivityOperationsList.cs | 120 -------- ...IDataconnectivityReferenceArtifactsList.cs | 132 --------- .../Cmdlets/Get-OCIDataconnectivitySchema.cs | 75 ----- .../Cmdlets/Get-OCIDataconnectivityType.cs | 71 ----- ...CIDataconnectivityWorkRequestErrorsList.cs | 96 ------- ...-OCIDataconnectivityWorkRequestLogsList.cs | 96 ------- .../New-OCIDataconnectivityAttachDataAsset.cs | 79 ------ ...OCIDataconnectivityConnectionValidation.cs | 75 ----- ...IDataconnectivityConnectivityValidation.cs | 75 ----- .../New-OCIDataconnectivityDataPreview.cs | 79 ------ .../New-OCIDataconnectivityDataProfile.cs | 79 ------ ...-OCIDataconnectivityDeReferenceArtifact.cs | 79 ------ .../New-OCIDataconnectivityDetachDataAsset.cs | 79 ------ .../New-OCIDataconnectivityEndpoint.cs | 71 ----- .../New-OCIDataconnectivityEntityShape.cs | 91 ------ ...-OCIDataconnectivityExecuteOperationJob.cs | 83 ------ .../Cmdlets/New-OCIDataconnectivityFolder.cs | 71 ----- ...New-OCIDataconnectivityFullPushDownTask.cs | 79 ------ ...ew-OCIDataconnectivityReferenceArtifact.cs | 79 ------ ...DataconnectivityTestNetworkConnectivity.cs | 79 ------ .../OCIDataConnectivityManagementCmdlet.cs | 86 ------ .../Remove-OCIDataconnectivityConnection.cs | 80 ------ .../OCI.PSModules.Dataconnectivity.psd1 | 187 ------------- Dataflow/OCI.PSModules.Dataflow.psd1 | 4 +- ...tegrationApplicationDetailedDescription.cs | 38 +-- ...Get-OCIDataintegrationCopyObjectRequest.cs | 38 +-- ...CIDataintegrationCopyObjectRequestsList.cs | 96 +++---- ...rationDisApplicationDetailedDescription.cs | 38 +-- .../Get-OCIDataintegrationTaskRunsList.cs | 6 +- .../Cmdlets/Get-OCIDataintegrationTemplate.cs | 48 ++-- .../Get-OCIDataintegrationTemplatesList.cs | 76 ++--- ...tegrationApplicationDetailedDescription.cs | 44 +-- ...New-OCIDataintegrationCopyObjectRequest.cs | 40 +-- ...rationDisApplicationDetailedDescription.cs | 44 +-- ...tegrationApplicationDetailedDescription.cs | 38 +-- ...ove-OCIDataintegrationCopyObjectRequest.cs | 38 +-- ...rationDisApplicationDetailedDescription.cs | 38 +-- ...tegrationApplicationDetailedDescription.cs | 44 +-- ...ate-OCIDataintegrationCopyObjectRequest.cs | 44 +-- ...rationDisApplicationDetailedDescription.cs | 44 +-- .../OCI.PSModules.Dataintegration.psd1 | 19 +- .../OCI.PSModules.Datalabelingservice.psd1 | 4 +- ...SModules.Datalabelingservicedataplane.psd1 | 4 +- Datasafe/OCI.PSModules.Datasafe.psd1 | 4 +- Datascience/OCI.PSModules.Datascience.psd1 | 4 +- Devops/OCI.PSModules.Devops.psd1 | 4 +- Directory.Build.props | 2 +- .../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 +- Functions/OCI.PSModules.Functions.psd1 | 4 +- Fusionapps/OCI.PSModules.Fusionapps.psd1 | 4 +- ...OCI.PSModules.Genericartifactscontent.psd1 | 4 +- .../Get-OCIGoldengateDeploymentTypesList.cs | 8 + ...Get-OCIGoldengateDeploymentVersionsList.cs | 112 ++++++++ ...-OCIGoldengateRollbackDeploymentUpgrade.cs | 42 +-- ...ke-OCIGoldengateSnoozeDeploymentUpgrade.cs | 75 +++++ .../Invoke-OCIGoldengateUpgradeDeployment.cs | 2 +- ...e-OCIGoldengateUpgradeDeploymentUpgrade.cs | 46 ++-- ...op-OCIGoldengateSnoozeDeploymentUpgrade.cs | 75 +++++ Goldengate/OCI.PSModules.Goldengate.psd1 | 9 +- ...PSModules.Governancerulescontrolplane.psd1 | 4 +- Healthchecks/OCI.PSModules.Healthchecks.psd1 | 4 +- Identity/OCI.PSModules.Identity.psd1 | 4 +- .../OCI.PSModules.Identitydataplane.psd1 | 4 +- .../Cmdlets/Get-OCIIdentitydomainsApiKey.cs | 79 ++++++ .../Get-OCIIdentitydomainsApiKeysList.cs | 103 +++++++ .../Get-OCIIdentitydomainsAuthToken.cs | 79 ++++++ .../Get-OCIIdentitydomainsAuthTokensList.cs | 103 +++++++ ...ntitydomainsAuthenticationFactorSetting.cs | 79 ++++++ ...domainsAuthenticationFactorSettingsList.cs | 83 ++++++ ...Get-OCIIdentitydomainsCustomerSecretKey.cs | 79 ++++++ ...CIIdentitydomainsCustomerSecretKeysList.cs | 103 +++++++ ...-OCIIdentitydomainsDynamicResourceGroup.cs | 79 ++++++ ...dentitydomainsDynamicResourceGroupsList.cs | 103 +++++++ .../Cmdlets/Get-OCIIdentitydomainsGroup.cs | 79 ++++++ .../Get-OCIIdentitydomainsGroupsList.cs | 103 +++++++ .../Get-OCIIdentitydomainsIdentityProvider.cs | 79 ++++++ ...OCIIdentitydomainsIdentityProvidersList.cs | 103 +++++++ .../Get-OCIIdentitydomainsKmsiSetting.cs | 79 ++++++ .../Get-OCIIdentitydomainsKmsiSettingsList.cs | 83 ++++++ .../Cmdlets/Get-OCIIdentitydomainsMe.cs | 75 +++++ .../Cmdlets/Get-OCIIdentitydomainsMyApiKey.cs | 71 +++++ .../Get-OCIIdentitydomainsMyApiKeysList.cs | 95 +++++++ .../Get-OCIIdentitydomainsMyAuthToken.cs | 71 +++++ .../Get-OCIIdentitydomainsMyAuthTokensList.cs | 95 +++++++ ...t-OCIIdentitydomainsMyCustomerSecretKey.cs | 71 +++++ ...IdentitydomainsMyCustomerSecretKeysList.cs | 95 +++++++ .../Cmdlets/Get-OCIIdentitydomainsMyDevice.cs | 79 ++++++ .../Get-OCIIdentitydomainsMyDevicesList.cs | 103 +++++++ .../Get-OCIIdentitydomainsMyGroupsList.cs | 103 +++++++ ...IdentitydomainsMyOAuth2ClientCredential.cs | 71 +++++ ...itydomainsMyOAuth2ClientCredentialsList.cs | 95 +++++++ .../Get-OCIIdentitydomainsMySmtpCredential.cs | 71 +++++ ...OCIIdentitydomainsMySmtpCredentialsList.cs | 95 +++++++ .../Get-OCIIdentitydomainsMySupportAccount.cs | 71 +++++ ...OCIIdentitydomainsMySupportAccountsList.cs | 95 +++++++ ...et-OCIIdentitydomainsMyTrustedUserAgent.cs | 79 ++++++ ...IIdentitydomainsMyTrustedUserAgentsList.cs | 103 +++++++ ...et-OCIIdentitydomainsMyUserDbCredential.cs | 71 +++++ ...IIdentitydomainsMyUserDbCredentialsList.cs | 95 +++++++ ...CIIdentitydomainsOAuth2ClientCredential.cs | 79 ++++++ ...ntitydomainsOAuth2ClientCredentialsList.cs | 103 +++++++ ...-OCIIdentitydomainsPasswordPoliciesList.cs | 103 +++++++ .../Get-OCIIdentitydomainsPasswordPolicy.cs | 79 ++++++ .../Get-OCIIdentitydomainsSmtpCredential.cs | 79 ++++++ ...t-OCIIdentitydomainsSmtpCredentialsList.cs | 103 +++++++ .../Cmdlets/Get-OCIIdentitydomainsUser.cs | 79 ++++++ .../Get-OCIIdentitydomainsUserDbCredential.cs | 79 ++++++ ...OCIIdentitydomainsUserDbCredentialsList.cs | 103 +++++++ .../Get-OCIIdentitydomainsUsersList.cs | 103 +++++++ .../Invoke-OCIIdentitydomainsPatchApiKey.cs | 91 ++++++ ...Invoke-OCIIdentitydomainsPatchAuthToken.cs | 91 ++++++ ...CIIdentitydomainsPatchCustomerSecretKey.cs | 91 ++++++ ...dentitydomainsPatchDynamicResourceGroup.cs | 91 ++++++ .../Invoke-OCIIdentitydomainsPatchGroup.cs | 91 ++++++ ...OCIIdentitydomainsPatchIdentityProvider.cs | 91 ++++++ ...voke-OCIIdentitydomainsPatchKmsiSetting.cs | 91 ++++++ .../Invoke-OCIIdentitydomainsPatchMe.cs | 87 ++++++ .../Invoke-OCIIdentitydomainsPatchMyApiKey.cs | 83 ++++++ ...voke-OCIIdentitydomainsPatchMyAuthToken.cs | 83 ++++++ ...IdentitydomainsPatchMyCustomerSecretKey.cs | 83 ++++++ .../Invoke-OCIIdentitydomainsPatchMyDevice.cs | 91 ++++++ ...itydomainsPatchMyOAuth2ClientCredential.cs | 83 ++++++ ...OCIIdentitydomainsPatchMySmtpCredential.cs | 83 ++++++ ...ntitydomainsPatchOAuth2ClientCredential.cs | 91 ++++++ ...e-OCIIdentitydomainsPatchPasswordPolicy.cs | 91 ++++++ ...e-OCIIdentitydomainsPatchSmtpCredential.cs | 91 ++++++ .../Invoke-OCIIdentitydomainsPatchUser.cs | 91 ++++++ .../Invoke-OCIIdentitydomainsSearchApiKeys.cs | 79 ++++++ ...voke-OCIIdentitydomainsSearchAuthTokens.cs | 79 ++++++ ...mainsSearchAuthenticationFactorSettings.cs | 79 ++++++ ...IdentitydomainsSearchCustomerSecretKeys.cs | 79 ++++++ ...ntitydomainsSearchDynamicResourceGroups.cs | 79 ++++++ .../Invoke-OCIIdentitydomainsSearchGroups.cs | 79 ++++++ ...IIdentitydomainsSearchIdentityProviders.cs | 79 ++++++ ...ke-OCIIdentitydomainsSearchKmsiSettings.cs | 79 ++++++ ...Invoke-OCIIdentitydomainsSearchMyGroups.cs | 79 ++++++ ...itydomainsSearchOAuth2ClientCredentials.cs | 79 ++++++ ...CIIdentitydomainsSearchPasswordPolicies.cs | 79 ++++++ ...OCIIdentitydomainsSearchSmtpCredentials.cs | 79 ++++++ ...IIdentitydomainsSearchUserDbCredentials.cs | 79 ++++++ .../Invoke-OCIIdentitydomainsSearchUsers.cs | 79 ++++++ .../Cmdlets/New-OCIIdentitydomainsApiKey.cs | 83 ++++++ .../New-OCIIdentitydomainsAuthToken.cs | 83 ++++++ ...titydomainsAuthenticationFactorsRemover.cs | 75 +++++ ...New-OCIIdentitydomainsCustomerSecretKey.cs | 83 ++++++ ...-OCIIdentitydomainsDynamicResourceGroup.cs | 83 ++++++ .../Cmdlets/New-OCIIdentitydomainsGroup.cs | 83 ++++++ .../New-OCIIdentitydomainsIdentityProvider.cs | 83 ++++++ .../Cmdlets/New-OCIIdentitydomainsMe.cs | 83 ++++++ .../Cmdlets/New-OCIIdentitydomainsMyApiKey.cs | 75 +++++ .../New-OCIIdentitydomainsMyAuthToken.cs | 75 +++++ ...ydomainsMyAuthenticationFactorInitiator.cs | 75 +++++ ...ydomainsMyAuthenticationFactorValidator.cs | 75 +++++ ...tydomainsMyAuthenticationFactorsRemover.cs | 75 +++++ ...w-OCIIdentitydomainsMyCustomerSecretKey.cs | 75 +++++ ...IdentitydomainsMyOAuth2ClientCredential.cs | 75 +++++ .../New-OCIIdentitydomainsMySmtpCredential.cs | 75 +++++ .../New-OCIIdentitydomainsMySupportAccount.cs | 75 +++++ ...ew-OCIIdentitydomainsMyUserDbCredential.cs | 75 +++++ ...CIIdentitydomainsOAuth2ClientCredential.cs | 83 ++++++ .../New-OCIIdentitydomainsPasswordPolicy.cs | 83 ++++++ .../New-OCIIdentitydomainsSmtpCredential.cs | 83 ++++++ .../Cmdlets/New-OCIIdentitydomainsUser.cs | 83 ++++++ .../New-OCIIdentitydomainsUserDbCredential.cs | 83 ++++++ .../Cmdlets/OCIIdentityDomainsCmdlet.cs | 28 +- .../Remove-OCIIdentitydomainsApiKey.cs | 88 ++++++ .../Remove-OCIIdentitydomainsAuthToken.cs | 88 ++++++ ...ove-OCIIdentitydomainsCustomerSecretKey.cs | 88 ++++++ ...-OCIIdentitydomainsDynamicResourceGroup.cs | 88 ++++++ .../Cmdlets/Remove-OCIIdentitydomainsGroup.cs | 88 ++++++ ...move-OCIIdentitydomainsIdentityProvider.cs | 88 ++++++ .../Remove-OCIIdentitydomainsMyApiKey.cs | 88 ++++++ .../Remove-OCIIdentitydomainsMyAuthToken.cs | 88 ++++++ ...e-OCIIdentitydomainsMyCustomerSecretKey.cs | 88 ++++++ .../Remove-OCIIdentitydomainsMyDevice.cs | 88 ++++++ ...IdentitydomainsMyOAuth2ClientCredential.cs | 88 ++++++ ...move-OCIIdentitydomainsMySmtpCredential.cs | 88 ++++++ ...move-OCIIdentitydomainsMySupportAccount.cs | 88 ++++++ ...ve-OCIIdentitydomainsMyTrustedUserAgent.cs | 88 ++++++ ...ve-OCIIdentitydomainsMyUserDbCredential.cs | 88 ++++++ ...CIIdentitydomainsOAuth2ClientCredential.cs | 88 ++++++ ...Remove-OCIIdentitydomainsPasswordPolicy.cs | 88 ++++++ ...Remove-OCIIdentitydomainsSmtpCredential.cs | 88 ++++++ .../Cmdlets/Remove-OCIIdentitydomainsUser.cs | 88 ++++++ ...move-OCIIdentitydomainsUserDbCredential.cs | 88 ++++++ ...ntitydomainsAuthenticationFactorSetting.cs | 91 ++++++ ...-OCIIdentitydomainsDynamicResourceGroup.cs | 91 ++++++ .../Cmdlets/Write-OCIIdentitydomainsGroup.cs | 91 ++++++ ...rite-OCIIdentitydomainsIdentityProvider.cs | 91 ++++++ .../Write-OCIIdentitydomainsKmsiSetting.cs | 91 ++++++ .../Cmdlets/Write-OCIIdentitydomainsMe.cs | 87 ++++++ ...ite-OCIIdentitydomainsMePasswordChanger.cs | 79 ++++++ .../Write-OCIIdentitydomainsPasswordPolicy.cs | 91 ++++++ .../Cmdlets/Write-OCIIdentitydomainsUser.cs | 91 ++++++ ...IIdentitydomainsUserCapabilitiesChanger.cs | 83 ++++++ ...e-OCIIdentitydomainsUserPasswordChanger.cs | 83 ++++++ ...-OCIIdentitydomainsUserPasswordResetter.cs | 83 ++++++ ...ite-OCIIdentitydomainsUserStatusChanger.cs | 91 ++++++ .../OCI.PSModules.Identitydomains.csproj | 12 +- .../OCI.PSModules.Identitydomains.psd1 | 259 ++++++++++++++++++ Integration/OCI.PSModules.Integration.psd1 | 4 +- Jms/OCI.PSModules.Jms.psd1 | 4 +- .../OCI.PSModules.Keymanagement.psd1 | 4 +- .../OCI.PSModules.Licensemanager.psd1 | 4 +- Limits/OCI.PSModules.Limits.psd1 | 4 +- Loadbalancer/OCI.PSModules.Loadbalancer.psd1 | 4 +- Lockbox/OCI.PSModules.Lockbox.psd1 | 4 +- Loganalytics/OCI.PSModules.Loganalytics.psd1 | 4 +- Logging/OCI.PSModules.Logging.psd1 | 4 +- .../OCI.PSModules.Loggingingestion.psd1 | 4 +- .../OCI.PSModules.Loggingsearch.psd1 | 4 +- .../OCI.PSModules.Managementagent.psd1 | 4 +- .../OCI.PSModules.Managementdashboard.psd1 | 4 +- Marketplace/OCI.PSModules.Marketplace.psd1 | 4 +- .../OCI.PSModules.Mediaservices.psd1 | 4 +- Monitoring/OCI.PSModules.Monitoring.psd1 | 4 +- Mysql/OCI.PSModules.Mysql.psd1 | 4 +- .../OCI.PSModules.Networkfirewall.psd1 | 4 +- .../OCI.PSModules.Networkloadbalancer.psd1 | 4 +- Nosql/OCI.PSModules.Nosql.psd1 | 4 +- .../OCI.PSModules.Objectstorage.psd1 | 4 +- Oce/OCI.PSModules.Oce.psd1 | 4 +- Ocvp/OCI.PSModules.Ocvp.psd1 | 4 +- Oda/OCI.PSModules.Oda.psd1 | 4 +- .../OCI.PSModules.Onesubscription.psd1 | 4 +- Ons/OCI.PSModules.Ons.psd1 | 4 +- Opa/OCI.PSModules.Opa.psd1 | 4 +- Opensearch/OCI.PSModules.Opensearch.psd1 | 4 +- .../OCI.PSModules.Operatoraccesscontrol.psd1 | 4 +- ...siSummarizeHostInsightNetworkUsageTrend.cs | 95 +++++++ ...mmarizeHostInsightResourceCapacityTrend.cs | 12 +- ...mmarizeHostInsightResourceForecastTrend.cs | 20 +- ...iSummarizeHostInsightResourceStatistics.cs | 12 +- ...CIOpsiSummarizeHostInsightResourceUsage.cs | 2 +- ...iSummarizeHostInsightResourceUsageTrend.cs | 2 +- ...zeHostInsightResourceUtilizationInsight.cs | 12 +- ...siSummarizeHostInsightStorageUsageTrend.cs | 95 +++++++ ...siSummarizeHostInsightTopProcessesUsage.cs | 6 +- ...marizeHostInsightTopProcessesUsageTrend.cs | 6 +- Opsi/OCI.PSModules.Opsi.psd1 | 6 +- Optimizer/OCI.PSModules.Optimizer.psd1 | 4 +- Osmanagement/OCI.PSModules.Osmanagement.psd1 | 4 +- Ospgateway/OCI.PSModules.Ospgateway.psd1 | 4 +- .../OCI.PSModules.Osubbillingschedule.psd1 | 4 +- ...SModules.Osuborganizationsubscription.psd1 | 4 +- .../OCI.PSModules.Osubsubscription.psd1 | 4 +- Osubusage/OCI.PSModules.Osubusage.psd1 | 4 +- PSModules/OCI.PSModules.psd1 | 248 ++++++++--------- Queue/OCI.PSModules.Queue.psd1 | 4 +- Recovery/OCI.PSModules.Recovery.psd1 | 4 +- .../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 +- 346 files changed, 13701 insertions(+), 4133 deletions(-) rename Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityRegistry.cs => Containerengine/Cmdlets/Disable-OCIContainerengineAddon.cs (56%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequest.cs => Containerengine/Cmdlets/Get-OCIContainerengineAddon.cs (58%) create mode 100644 Containerengine/Cmdlets/Get-OCIContainerengineAddonOptionsList.cs rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestsList.cs => Containerengine/Cmdlets/Get-OCIContainerengineAddonsList.cs (54%) create mode 100644 Containerengine/Cmdlets/Get-OCIContainerenginePodShapesList.cs create mode 100644 Containerengine/Cmdlets/Get-OCIContainerengineVirtualNode.cs rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistry.cs => Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePool.cs (69%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpointsList.cs => Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePoolsList.cs (51%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistriesList.cs => Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodesList.cs (53%) rename Dataconnectivity/Cmdlets/Confirm-OCIDataconnectivityDataAssetNetworkReachablity.cs => Containerengine/Cmdlets/Invoke-OCIContainerengineInstallAddon.cs (53%) rename Dataconnectivity/Cmdlets/New-OCIDataconnectivityRegistry.cs => Containerengine/Cmdlets/New-OCIContainerengineVirtualNodePool.cs (61%) rename Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityEndpoint.cs => Containerengine/Cmdlets/Remove-OCIContainerengineVirtualNodePool.cs (52%) rename Dataconnectivity/Cmdlets/Update-OCIDataconnectivityEndpoint.cs => Containerengine/Cmdlets/Update-OCIContainerengineAddon.cs (51%) rename Dataconnectivity/Cmdlets/Update-OCIDataconnectivityRegistry.cs => Containerengine/Cmdlets/Update-OCIContainerengineVirtualNodePool.cs (54%) delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnectionsList.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAssetsList.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntitiesList.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntity.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEngineConfigurations.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityExecuteOperationJob.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFoldersList.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatus.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatusCollection.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperation.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperationsList.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityReferenceArtifactsList.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchema.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityType.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestErrorsList.cs delete mode 100644 Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestLogsList.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityAttachDataAsset.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectionValidation.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectivityValidation.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataPreview.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataProfile.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityDeReferenceArtifact.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityDetachDataAsset.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityEndpoint.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityEntityShape.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityExecuteOperationJob.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityFolder.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityFullPushDownTask.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityReferenceArtifact.cs delete mode 100644 Dataconnectivity/Cmdlets/New-OCIDataconnectivityTestNetworkConnectivity.cs delete mode 100644 Dataconnectivity/Cmdlets/OCIDataConnectivityManagementCmdlet.cs delete mode 100644 Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityConnection.cs delete mode 100644 Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFolder.cs => Dataintegration/Cmdlets/Get-OCIDataintegrationApplicationDetailedDescription.cs (55%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnection.cs => Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequest.cs (55%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchemasList.cs => Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequestsList.cs (59%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAsset.cs => Dataintegration/Cmdlets/Get-OCIDataintegrationDisApplicationDetailedDescription.cs (55%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpoint.cs => Dataintegration/Cmdlets/Get-OCIDataintegrationTemplate.cs (68%) rename Dataconnectivity/Cmdlets/Get-OCIDataconnectivityTypesList.cs => Dataintegration/Cmdlets/Get-OCIDataintegrationTemplatesList.cs (65%) rename Dataconnectivity/Cmdlets/Invoke-OCIDataconnectivityDeriveEntities.cs => Dataintegration/Cmdlets/New-OCIDataintegrationApplicationDetailedDescription.cs (52%) rename Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnection.cs => Dataintegration/Cmdlets/New-OCIDataintegrationCopyObjectRequest.cs (58%) rename Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataAsset.cs => Dataintegration/Cmdlets/New-OCIDataintegrationDisApplicationDetailedDescription.cs (52%) rename Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityFolder.cs => Dataintegration/Cmdlets/Remove-OCIDataintegrationApplicationDetailedDescription.cs (67%) rename Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityNetworkConnectivityStatus.cs => Dataintegration/Cmdlets/Remove-OCIDataintegrationCopyObjectRequest.cs (66%) rename Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityDataAsset.cs => Dataintegration/Cmdlets/Remove-OCIDataintegrationDisApplicationDetailedDescription.cs (66%) rename Dataconnectivity/Cmdlets/Update-OCIDataconnectivityDataAsset.cs => Dataintegration/Cmdlets/Update-OCIDataintegrationApplicationDetailedDescription.cs (58%) rename Dataconnectivity/Cmdlets/Update-OCIDataconnectivityConnection.cs => Dataintegration/Cmdlets/Update-OCIDataintegrationCopyObjectRequest.cs (59%) rename Dataconnectivity/Cmdlets/Update-OCIDataconnectivityFolder.cs => Dataintegration/Cmdlets/Update-OCIDataintegrationDisApplicationDetailedDescription.cs (58%) create mode 100644 Goldengate/Cmdlets/Get-OCIGoldengateDeploymentVersionsList.cs rename Dataconnectivity/Cmdlets/Move-OCIDataconnectivityRegistryCompartment.cs => Goldengate/Cmdlets/Invoke-OCIGoldengateRollbackDeploymentUpgrade.cs (51%) create mode 100644 Goldengate/Cmdlets/Invoke-OCIGoldengateSnoozeDeploymentUpgrade.cs rename Dataconnectivity/Cmdlets/Move-OCIDataconnectivityEndpointCompartment.cs => Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeploymentUpgrade.cs (50%) create mode 100644 Goldengate/Cmdlets/Stop-OCIGoldengateSnoozeDeploymentUpgrade.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKey.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKeysList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthToken.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthTokensList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSetting.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSettingsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKeysList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroup.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroupsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroup.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroupsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvider.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvidersList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSetting.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSettingsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMe.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKey.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKeysList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthToken.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthTokensList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKeysList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevice.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevicesList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyGroupsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredentialsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredentialsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccount.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccountsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgent.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgentsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredential.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredentialsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredentialsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPoliciesList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPolicy.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredentialsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsUser.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredential.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredentialsList.cs create mode 100644 Identitydomains/Cmdlets/Get-OCIIdentitydomainsUsersList.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchApiKey.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchAuthToken.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchDynamicResourceGroup.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchGroup.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchIdentityProvider.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchKmsiSetting.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMe.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyApiKey.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyAuthToken.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyDevice.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMySmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchPasswordPolicy.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchSmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchUser.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchApiKeys.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthTokens.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthenticationFactorSettings.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchCustomerSecretKeys.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchDynamicResourceGroups.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchGroups.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchIdentityProviders.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchKmsiSettings.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchMyGroups.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchOAuth2ClientCredentials.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchPasswordPolicies.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchSmtpCredentials.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUserDbCredentials.cs create mode 100644 Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUsers.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsApiKey.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthToken.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthenticationFactorsRemover.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsDynamicResourceGroup.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsGroup.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsIdentityProvider.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMe.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyApiKey.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthToken.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorInitiator.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorValidator.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorsRemover.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMySmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMySupportAccount.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsMyUserDbCredential.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsPasswordPolicy.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsSmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsUser.cs create mode 100644 Identitydomains/Cmdlets/New-OCIIdentitydomainsUserDbCredential.cs rename Dataconnectivity/Cmdlets/OCINetworkValidationCmdlet.cs => Identitydomains/Cmdlets/OCIIdentityDomainsCmdlet.cs (70%) create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsApiKey.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsAuthToken.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsDynamicResourceGroup.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsGroup.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsIdentityProvider.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyApiKey.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyAuthToken.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyCustomerSecretKey.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyDevice.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySupportAccount.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyTrustedUserAgent.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyUserDbCredential.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsOAuth2ClientCredential.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsPasswordPolicy.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsSmtpCredential.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUser.cs create mode 100644 Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUserDbCredential.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsAuthenticationFactorSetting.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsDynamicResourceGroup.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsGroup.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsIdentityProvider.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsKmsiSetting.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsMe.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsMePasswordChanger.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsPasswordPolicy.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsUser.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserCapabilitiesChanger.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordChanger.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordResetter.cs create mode 100644 Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserStatusChanger.cs rename Dataconnectivity/OCI.PSModules.Dataconnectivity.csproj => Identitydomains/OCI.PSModules.Identitydomains.csproj (54%) create mode 100644 Identitydomains/OCI.PSModules.Identitydomains.psd1 create mode 100644 Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightNetworkUsageTrend.cs create mode 100644 Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightStorageUsageTrend.cs diff --git a/Adm/OCI.PSModules.Adm.psd1 b/Adm/OCI.PSModules.Adm.psd1 index d9af8a770..ac3276597 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 5fe3a7975..1a7436ef6 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 391292ea3..865eac26b 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 4038c1712..3411be5b1 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 25798e2df..b21ec2a2c 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 0d502028c..7b9da922c 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 5152b439a..bc13864d2 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 76189a399..7937a23fb 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 54806ae30..63a844a14 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 4a0a536a4..26206f0f5 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 b5c494959..040fc0c5a 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 a508be7aa..7ca929af6 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 f29560296..d9407476a 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 c5467548e..f151af225 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 76d566bc8..ede27b7c4 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 027573cf8..eaf889be7 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 b2a9b55b3..6921dcbf6 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 e1b091412..50d356737 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 fedf25fdd..32ab7382c 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 a00152020..40d102a57 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 886900735..ad4d200a0 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 30d4e3483..503896b81 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 7264e92f6..029ae2244 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,21 @@ 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/). +## 51.0.0 - 2023-03-14 +### Added +- Support for the Identity Domains service +- Support for long-term backups for autonomous databases on Exadata Cloud at Customer in the Database service +- Support for database OS patching in the Database service +- Support for managing enhanced clusters, cluster add-ons, and serverless virtual node pools in the Container Engine for Kubernetes service +- Support for templates and copy object requests in the Data Integration service +- Support for maintenance features in the GoldenGate service +- Support for `AMD_MILAN_BM_GPU` configuration type on instances in the Compute service +- Support for host storage metrics and network metrics as part of host capacity planning in the Operations Insights service + +### Breaking Changes +- Support for the Data Connectivity Management service was removed +- The `TemplateSummary` response model in the Data Integration service now contains `UnknownEnumValue` enum with value `null` for `LifecycleState` if the service returns a `LifecycleState` enum value that not present in the SDK version being used + ## 50.0.0 - 2023-03-07 ### Added - Support for creating and updating autonomous database long-term backup schedules in the Database service diff --git a/Certificates/OCI.PSModules.Certificates.psd1 b/Certificates/OCI.PSModules.Certificates.psd1 index 3775a2543..d1e5eaebe 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 2e20afd61..5ac60965d 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 0fdd8acb0..b3206fc64 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 37afd89a9..35121ca10 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 0754b906d..ca3fae7ea 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 167a98c1c..9aa3f94ac 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 c0970814f..ee70547cb 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 = '50.0.0' +ModuleVersion = '51.0.0' # Supported PSEditions CompatiblePSEditions = 'Core' diff --git a/Common/Version.cs b/Common/Version.cs index b141515db..adc787a1e 100644 --- a/Common/Version.cs +++ b/Common/Version.cs @@ -6,7 +6,7 @@ namespace Oci.PSModules.Common.Cmdlets { public class Version { - public static string MAJOR = "50"; + public static string MAJOR = "51"; public static string MINOR = "0"; public static string PATCH = "0"; diff --git a/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 b/Computeinstanceagent/OCI.PSModules.Computeinstanceagent.psd1 index 03b3d9c61..e5f171410 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Computeinstanceagent.dll' diff --git a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityRegistry.cs b/Containerengine/Cmdlets/Disable-OCIContainerengineAddon.cs similarity index 56% rename from Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityRegistry.cs rename to Containerengine/Cmdlets/Disable-OCIContainerengineAddon.cs index c700f2569..6f87af9aa 100644 --- a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityRegistry.cs +++ b/Containerengine/Cmdlets/Disable-OCIContainerengineAddon.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,24 +8,27 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Remove", "OCIDataconnectivityRegistry", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DataconnectivityService.Responses.DeleteRegistryResponse) })] - public class RemoveOCIDataconnectivityRegistry : OCIDataConnectivityManagementCmdlet + [Cmdlet("Disable", "OCIContainerengineAddon", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ContainerengineService.Responses.DisableAddonResponse) })] + public class DisableOCIContainerengineAddon : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the cluster.")] + public string ClusterId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Try to delete forcefully after drain timeout.")] - public System.Nullable IsForceOperation { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the addon.")] + public string AddonName { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Whether existing addon resources should be deleted or not. True would remove the underlying resources completely.")] + public System.Nullable IsRemoveExistingAddOn { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] public string IfMatch { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] @@ -38,24 +41,25 @@ protected override void ProcessRecord() { base.ProcessRecord(); - if (!ConfirmDelete("OCIDataconnectivityRegistry", "Remove")) + if (!ConfirmDelete("OCIContainerengineAddon", "Disable")) { return; } - DeleteRegistryRequest request; + DisableAddonRequest request; try { - request = new DeleteRegistryRequest + request = new DisableAddonRequest { - RegistryId = RegistryId, - IsForceOperation = IsForceOperation, + ClusterId = ClusterId, + AddonName = AddonName, + IsRemoveExistingAddOn = IsRemoveExistingAddOn, IfMatch = IfMatch, OpcRequestId = OpcRequestId }; - response = client.DeleteRegistry(request).GetAwaiter().GetResult(); + response = client.DisableAddon(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } @@ -75,6 +79,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private DeleteRegistryResponse response; + private DisableAddonResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequest.cs b/Containerengine/Cmdlets/Get-OCIContainerengineAddon.cs similarity index 58% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequest.cs rename to Containerengine/Cmdlets/Get-OCIContainerengineAddon.cs index da6ea66f7..d7cc68ee9 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequest.cs +++ b/Containerengine/Cmdlets/Get-OCIContainerengineAddon.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,47 +8,53 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; using Oci.Common.Waiters; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityWorkRequest", DefaultParameterSetName = Default)] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.WorkRequest), typeof(Oci.DataconnectivityService.Responses.GetWorkRequestResponse) })] - public class GetOCIDataconnectivityWorkRequest : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIContainerengineAddon", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.Addon), typeof(Oci.ContainerengineService.Responses.GetAddonResponse) })] + public class GetOCIContainerengineAddon : OCIContainerEngineCmdlet { - [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 = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the cluster.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the cluster.", ParameterSetName = Default)] + public string ClusterId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.", ParameterSetName = StatusParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the addon.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the addon.", ParameterSetName = Default)] + public string AddonName { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.", ParameterSetName = LifecycleStateParamSet)] [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.", ParameterSetName = Default)] public string OpcRequestId { get; set; } - [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = StatusParamSet)] - public Oci.DataconnectivityService.Models.WorkRequest.StatusEnum[] WaitForStatus { 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.ContainerengineService.Models.AddonLifecycleState[] WaitForLifecycleState { get; set; } - [Parameter(Mandatory = false, HelpMessage = @"Check every WaitIntervalSeconds to see whether the resource has reached a desired state.", ParameterSetName = StatusParamSet)] + [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 = StatusParamSet)] + [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(); - GetWorkRequestRequest request; + GetAddonRequest request; try { - request = new GetWorkRequestRequest + request = new GetAddonRequest { - WorkRequestId = WorkRequestId, + ClusterId = ClusterId, + AddonName = AddonName, OpcRequestId = OpcRequestId }; @@ -71,7 +77,7 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private void HandleOutput(GetWorkRequestRequest request) + private void HandleOutput(GetAddonRequest request) { var waiterConfig = new WaiterConfiguration { @@ -81,19 +87,19 @@ private void HandleOutput(GetWorkRequestRequest request) switch (ParameterSetName) { - case StatusParamSet: - response = client.Waiters.ForWorkRequest(request, waiterConfig, WaitForStatus).Execute(); + case LifecycleStateParamSet: + response = client.Waiters.ForAddon(request, waiterConfig, WaitForLifecycleState).Execute(); break; case Default: - response = client.GetWorkRequest(request).GetAwaiter().GetResult(); + response = client.GetAddon(request).GetAwaiter().GetResult(); break; } - WriteOutput(response, response.WorkRequest); + WriteOutput(response, response.Addon); } - private GetWorkRequestResponse response; - private const string StatusParamSet = "StatusParamSet"; + private GetAddonResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; private const string Default = "Default"; } } diff --git a/Containerengine/Cmdlets/Get-OCIContainerengineAddonOptionsList.cs b/Containerengine/Cmdlets/Get-OCIContainerengineAddonOptionsList.cs new file mode 100644 index 000000000..d6fb03daf --- /dev/null +++ b/Containerengine/Cmdlets/Get-OCIContainerengineAddonOptionsList.cs @@ -0,0 +1,108 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 + * 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.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; +using Oci.Common.Model; + +namespace Oci.ContainerengineService.Cmdlets +{ + [Cmdlet("Get", "OCIContainerengineAddonOptionsList")] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.AddonOptionSummary), typeof(Oci.ContainerengineService.Responses.ListAddonOptionsResponse) })] + public class GetOCIContainerengineAddonOptionsList : OCIContainerEngineCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The kubernetes version to fetch the addons.")] + public string KubernetesVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the addon.")] + public string AddonName { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For 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. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional order in which to sort the results.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional field to sort the results by.")] + 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(); + ListAddonOptionsRequest request; + + try + { + request = new ListAddonOptionsRequest + { + KubernetesVersion = KubernetesVersion, + AddonName = AddonName, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.Items, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListAddonOptionsRequest request) => Enumerable.Repeat(client.ListAddonOptions(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListAddonOptionsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListAddonOptionsResponse response; + private delegate IEnumerable RequestDelegate(ListAddonOptionsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestsList.cs b/Containerengine/Cmdlets/Get-OCIContainerengineAddonsList.cs similarity index 54% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestsList.cs rename to Containerengine/Cmdlets/Get-OCIContainerengineAddonsList.cs index 651632acb..8f93d18a5 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestsList.cs +++ b/Containerengine/Cmdlets/Get-OCIContainerengineAddonsList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -10,34 +10,34 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityWorkRequestsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.WorkRequestSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListWorkRequestsResponse) })] - public class GetOCIDataconnectivityWorkRequestsList : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIContainerengineAddonsList")] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.AddonSummary), typeof(Oci.ContainerengineService.Responses.ListAddonsResponse) })] + public class GetOCIContainerengineAddonsList : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment containing the resources you want to list.")] - public string CompartmentId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the cluster.")] + public string ClusterId { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Work request status.")] - public System.Nullable WorkRequestStatus { 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. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] public string Page { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional order in which to sort the results.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional field to sort the results by.")] + public System.Nullable SortBy { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -45,24 +45,24 @@ public class GetOCIDataconnectivityWorkRequestsList : OCIDataConnectivityManagem protected override void ProcessRecord() { base.ProcessRecord(); - ListWorkRequestsRequest request; + ListAddonsRequest request; try { - request = new ListWorkRequestsRequest + request = new ListAddonsRequest { - CompartmentId = CompartmentId, + ClusterId = ClusterId, OpcRequestId = OpcRequestId, - RegistryId = RegistryId, - WorkRequestStatus = WorkRequestStatus, + Limit = Limit, Page = Page, - Limit = Limit + SortOrder = SortOrder, + SortBy = SortBy }; - IEnumerable responses = GetRequestDelegate().Invoke(request); + IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; - WriteOutput(response, response.WorkRequestSummaryCollection, true); + WriteOutput(response, response.Items, true); } if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) { @@ -88,16 +88,16 @@ protected override void StopProcessing() private RequestDelegate GetRequestDelegate() { - IEnumerable DefaultRequest(ListWorkRequestsRequest request) => Enumerable.Repeat(client.ListWorkRequests(request).GetAwaiter().GetResult(), 1); + IEnumerable DefaultRequest(ListAddonsRequest request) => Enumerable.Repeat(client.ListAddons(request).GetAwaiter().GetResult(), 1); if (ParameterSetName.Equals(AllPageSet)) { - return req => client.Paginators.ListWorkRequestsResponseEnumerator(req); + return req => client.Paginators.ListAddonsResponseEnumerator(req); } return DefaultRequest; } - private ListWorkRequestsResponse response; - private delegate IEnumerable RequestDelegate(ListWorkRequestsRequest request); + private ListAddonsResponse response; + private delegate IEnumerable RequestDelegate(ListAddonsRequest request); private const string AllPageSet = "AllPages"; private const string LimitSet = "Limit"; } diff --git a/Containerengine/Cmdlets/Get-OCIContainerenginePodShapesList.cs b/Containerengine/Cmdlets/Get-OCIContainerenginePodShapesList.cs new file mode 100644 index 000000000..e57b5fdac --- /dev/null +++ b/Containerengine/Cmdlets/Get-OCIContainerenginePodShapesList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 + * 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.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; +using Oci.Common.Model; + +namespace Oci.ContainerengineService.Cmdlets +{ + [Cmdlet("Get", "OCIContainerenginePodShapesList")] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.PodShapeSummary), typeof(Oci.ContainerengineService.Responses.ListPodShapesResponse) })] + public class GetOCIContainerenginePodShapesList : OCIContainerEngineCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The availability domain of the pod shape.")] + public string AvailabilityDomain { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name to filter on.")] + public string Name { 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. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional order in which to sort the results.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional field to sort the results by.")] + 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(); + ListPodShapesRequest request; + + try + { + request = new ListPodShapesRequest + { + CompartmentId = CompartmentId, + OpcRequestId = OpcRequestId, + AvailabilityDomain = AvailabilityDomain, + Name = Name, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.Items, true); + } + if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) + { + WriteWarning("This operation supports pagination and not all resources were returned. Re-run using the -All option to auto paginate and list all resources."); + } + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private RequestDelegate GetRequestDelegate() + { + IEnumerable DefaultRequest(ListPodShapesRequest request) => Enumerable.Repeat(client.ListPodShapes(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListPodShapesResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListPodShapesResponse response; + private delegate IEnumerable RequestDelegate(ListPodShapesRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNode.cs b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNode.cs new file mode 100644 index 000000000..1724b8e80 --- /dev/null +++ b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNode.cs @@ -0,0 +1,105 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 + * 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.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; +using Oci.Common.Model; +using Oci.Common.Waiters; + +namespace Oci.ContainerengineService.Cmdlets +{ + [Cmdlet("Get", "OCIContainerengineVirtualNode", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.VirtualNode), typeof(Oci.ContainerengineService.Responses.GetVirtualNodeResponse) })] + public class GetOCIContainerengineVirtualNode : OCIContainerEngineCmdlet + { + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node pool.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node pool.", ParameterSetName = Default)] + public string VirtualNodePoolId { get; set; } + + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node.", ParameterSetName = Default)] + public string VirtualNodeId { get; set; } + + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.", ParameterSetName = Default)] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = true, HelpMessage = @"This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state.", ParameterSetName = LifecycleStateParamSet)] + public Oci.ContainerengineService.Models.VirtualNodeLifecycleState[] 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(); + GetVirtualNodeRequest request; + + try + { + request = new GetVirtualNodeRequest + { + VirtualNodePoolId = VirtualNodePoolId, + VirtualNodeId = VirtualNodeId, + 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(GetVirtualNodeRequest request) + { + var waiterConfig = new WaiterConfiguration + { + MaxAttempts = MaxWaitAttempts, + GetNextDelayInSeconds = (_) => WaitIntervalSeconds + }; + + switch (ParameterSetName) + { + case LifecycleStateParamSet: + response = client.Waiters.ForVirtualNode(request, waiterConfig, WaitForLifecycleState).Execute(); + break; + + case Default: + response = client.GetVirtualNode(request).GetAwaiter().GetResult(); + break; + } + WriteOutput(response, response.VirtualNode); + } + + private GetVirtualNodeResponse response; + private const string LifecycleStateParamSet = "LifecycleStateParamSet"; + private const string Default = "Default"; + } +} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistry.cs b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePool.cs similarity index 69% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistry.cs rename to Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePool.cs index 643ef52e6..d7db4fd2f 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistry.cs +++ b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePool.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,22 +8,22 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; using Oci.Common.Waiters; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityRegistry", DefaultParameterSetName = Default)] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Registry), typeof(Oci.DataconnectivityService.Responses.GetRegistryResponse) })] - public class GetOCIDataconnectivityRegistry : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIContainerengineVirtualNodePool", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.VirtualNodePool), typeof(Oci.ContainerengineService.Responses.GetVirtualNodePoolResponse) })] + public class GetOCIContainerengineVirtualNodePool : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.", ParameterSetName = LifecycleStateParamSet)] - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.", ParameterSetName = Default)] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node pool.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node pool.", ParameterSetName = Default)] + public string VirtualNodePoolId { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.", ParameterSetName = LifecycleStateParamSet)] @@ -31,7 +31,7 @@ public class GetOCIDataconnectivityRegistry : OCIDataConnectivityManagementCmdle 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.DataconnectivityService.Models.Registry.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + public Oci.ContainerengineService.Models.VirtualNodePoolLifecycleState[] 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; @@ -42,13 +42,13 @@ public class GetOCIDataconnectivityRegistry : OCIDataConnectivityManagementCmdle protected override void ProcessRecord() { base.ProcessRecord(); - GetRegistryRequest request; + GetVirtualNodePoolRequest request; try { - request = new GetRegistryRequest + request = new GetVirtualNodePoolRequest { - RegistryId = RegistryId, + VirtualNodePoolId = VirtualNodePoolId, OpcRequestId = OpcRequestId }; @@ -71,7 +71,7 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private void HandleOutput(GetRegistryRequest request) + private void HandleOutput(GetVirtualNodePoolRequest request) { var waiterConfig = new WaiterConfiguration { @@ -82,17 +82,17 @@ private void HandleOutput(GetRegistryRequest request) switch (ParameterSetName) { case LifecycleStateParamSet: - response = client.Waiters.ForRegistry(request, waiterConfig, WaitForLifecycleState).Execute(); + response = client.Waiters.ForVirtualNodePool(request, waiterConfig, WaitForLifecycleState).Execute(); break; case Default: - response = client.GetRegistry(request).GetAwaiter().GetResult(); + response = client.GetVirtualNodePool(request).GetAwaiter().GetResult(); break; } - WriteOutput(response, response.Registry); + WriteOutput(response, response.VirtualNodePool); } - private GetRegistryResponse response; + private GetVirtualNodePoolResponse response; private const string LifecycleStateParamSet = "LifecycleStateParamSet"; private const string Default = "Default"; } diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpointsList.cs b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePoolsList.cs similarity index 51% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpointsList.cs rename to Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePoolsList.cs index a05d4a814..61767c02d 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpointsList.cs +++ b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodePoolsList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -10,43 +10,43 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityEndpointsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.EndpointSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListEndpointsResponse) })] - public class GetOCIDataconnectivityEndpointsList : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIContainerengineVirtualNodePoolsList")] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.VirtualNodePoolSummary), typeof(Oci.ContainerengineService.Responses.ListVirtualNodePoolsResponse) })] + public class GetOCIContainerengineVirtualNodePoolsList : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment containing the resources you want to list.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment.")] public string CompartmentId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID")] - public string RegistryId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the cluster.")] + public string ClusterId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name to filter on.")] public string Name { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + [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. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] public string Page { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Lifecycle state of the resource.")] - public System.Nullable LifecycleState { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional order in which to sort the results.")] + public System.Nullable SortOrder { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional field to sort the results by.")] + public System.Nullable SortBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"This parameter allows users to specify a sort field. Default sort order is the descending order of `timeCreated` (most recently created objects at the top). Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A virtual node pool lifecycle state to filter on. Can have multiple parameters of this name.")] + public System.Collections.Generic.List LifecycleState { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -54,27 +54,27 @@ public class GetOCIDataconnectivityEndpointsList : OCIDataConnectivityManagement protected override void ProcessRecord() { base.ProcessRecord(); - ListEndpointsRequest request; + ListVirtualNodePoolsRequest request; try { - request = new ListEndpointsRequest + request = new ListVirtualNodePoolsRequest { CompartmentId = CompartmentId, - RegistryId = RegistryId, + OpcRequestId = OpcRequestId, + ClusterId = ClusterId, Name = Name, Limit = Limit, Page = Page, - LifecycleState = LifecycleState, SortOrder = SortOrder, SortBy = SortBy, - OpcRequestId = OpcRequestId + LifecycleState = LifecycleState }; - IEnumerable responses = GetRequestDelegate().Invoke(request); + IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; - WriteOutput(response, response.EndpointSummaryCollection, true); + WriteOutput(response, response.Items, true); } if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) { @@ -100,16 +100,16 @@ protected override void StopProcessing() private RequestDelegate GetRequestDelegate() { - IEnumerable DefaultRequest(ListEndpointsRequest request) => Enumerable.Repeat(client.ListEndpoints(request).GetAwaiter().GetResult(), 1); + IEnumerable DefaultRequest(ListVirtualNodePoolsRequest request) => Enumerable.Repeat(client.ListVirtualNodePools(request).GetAwaiter().GetResult(), 1); if (ParameterSetName.Equals(AllPageSet)) { - return req => client.Paginators.ListEndpointsResponseEnumerator(req); + return req => client.Paginators.ListVirtualNodePoolsResponseEnumerator(req); } return DefaultRequest; } - private ListEndpointsResponse response; - private delegate IEnumerable RequestDelegate(ListEndpointsRequest request); + private ListVirtualNodePoolsResponse response; + private delegate IEnumerable RequestDelegate(ListVirtualNodePoolsRequest request); private const string AllPageSet = "AllPages"; private const string LimitSet = "Limit"; } diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistriesList.cs b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodesList.cs similarity index 53% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistriesList.cs rename to Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodesList.cs index 8ae08ab90..3e961af81 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityRegistriesList.cs +++ b/Containerengine/Cmdlets/Get-OCIContainerengineVirtualNodesList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -10,37 +10,37 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityRegistriesList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.RegistrySummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListRegistriesResponse) })] - public class GetOCIDataconnectivityRegistriesList : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIContainerengineVirtualNodesList")] + [OutputType(new System.Type[] { typeof(Oci.ContainerengineService.Models.VirtualNodeSummary), typeof(Oci.ContainerengineService.Responses.ListVirtualNodesResponse) })] + public class GetOCIContainerengineVirtualNodesList : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the compartment containing the resources you want to list.")] - public string CompartmentId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node pool.")] + public string VirtualNodePoolId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name to filter on.")] public string Name { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] + [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. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] public string Page { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"This parameter allows list registries to deep look at the whole tenancy.")] - public System.Nullable IsDeepLookup { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional order in which to sort the results.")] + public System.Nullable SortOrder { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Lifecycle state of the resource.")] - public System.Nullable LifecycleState { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The optional field to sort the results by.")] + public System.Nullable SortBy { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -48,25 +48,25 @@ public class GetOCIDataconnectivityRegistriesList : OCIDataConnectivityManagemen protected override void ProcessRecord() { base.ProcessRecord(); - ListRegistriesRequest request; + ListVirtualNodesRequest request; try { - request = new ListRegistriesRequest + request = new ListVirtualNodesRequest { - CompartmentId = CompartmentId, + VirtualNodePoolId = VirtualNodePoolId, + OpcRequestId = OpcRequestId, Name = Name, Limit = Limit, Page = Page, - IsDeepLookup = IsDeepLookup, - LifecycleState = LifecycleState, - OpcRequestId = OpcRequestId + SortOrder = SortOrder, + SortBy = SortBy }; - IEnumerable responses = GetRequestDelegate().Invoke(request); + IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; - WriteOutput(response, response.RegistrySummaryCollection, true); + WriteOutput(response, response.Items, true); } if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) { @@ -92,16 +92,16 @@ protected override void StopProcessing() private RequestDelegate GetRequestDelegate() { - IEnumerable DefaultRequest(ListRegistriesRequest request) => Enumerable.Repeat(client.ListRegistries(request).GetAwaiter().GetResult(), 1); + IEnumerable DefaultRequest(ListVirtualNodesRequest request) => Enumerable.Repeat(client.ListVirtualNodes(request).GetAwaiter().GetResult(), 1); if (ParameterSetName.Equals(AllPageSet)) { - return req => client.Paginators.ListRegistriesResponseEnumerator(req); + return req => client.Paginators.ListVirtualNodesResponseEnumerator(req); } return DefaultRequest; } - private ListRegistriesResponse response; - private delegate IEnumerable RequestDelegate(ListRegistriesRequest request); + private ListVirtualNodesResponse response; + private delegate IEnumerable RequestDelegate(ListVirtualNodesRequest request); private const string AllPageSet = "AllPages"; private const string LimitSet = "Limit"; } diff --git a/Dataconnectivity/Cmdlets/Confirm-OCIDataconnectivityDataAssetNetworkReachablity.cs b/Containerengine/Cmdlets/Invoke-OCIContainerengineInstallAddon.cs similarity index 53% rename from Dataconnectivity/Cmdlets/Confirm-OCIDataconnectivityDataAssetNetworkReachablity.cs rename to Containerengine/Cmdlets/Invoke-OCIContainerengineInstallAddon.cs index cc3f2b89a..d75302241 100644 --- a/Dataconnectivity/Cmdlets/Confirm-OCIDataconnectivityDataAssetNetworkReachablity.cs +++ b/Containerengine/Cmdlets/Invoke-OCIContainerengineInstallAddon.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,49 +8,49 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Confirm", "OCIDataconnectivityDataAssetNetworkReachablity")] - [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DataconnectivityService.Responses.ValidateDataAssetNetworkReachablityResponse) })] - public class ConfirmOCIDataconnectivityDataAssetNetworkReachablity : OCIDataConnectivityManagementCmdlet + [Cmdlet("Invoke", "OCIContainerengineInstallAddon")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ContainerengineService.Responses.InstallAddonResponse) })] + public class InvokeOCIContainerengineInstallAddon : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.")] - public string EndpointId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the cluster.")] + public string ClusterId { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details of the addon to be installed.")] + public InstallAddonDetails InstallAddonDetails { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID")] - public string RegistryId { 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(); - ValidateDataAssetNetworkReachablityRequest request; + InstallAddonRequest request; try { - request = new ValidateDataAssetNetworkReachablityRequest + request = new InstallAddonRequest { - EndpointId = EndpointId, - IfMatch = IfMatch, - OpcRequestId = OpcRequestId, + ClusterId = ClusterId, + InstallAddonDetails = InstallAddonDetails, OpcRetryToken = OpcRetryToken, - RegistryId = RegistryId + OpcRequestId = OpcRequestId, + IfMatch = IfMatch }; - response = client.ValidateDataAssetNetworkReachablity(request).GetAwaiter().GetResult(); + response = client.InstallAddon(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } @@ -70,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private ValidateDataAssetNetworkReachablityResponse response; + private InstallAddonResponse response; } } diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityRegistry.cs b/Containerengine/Cmdlets/New-OCIContainerengineVirtualNodePool.cs similarity index 61% rename from Dataconnectivity/Cmdlets/New-OCIDataconnectivityRegistry.cs rename to Containerengine/Cmdlets/New-OCIContainerengineVirtualNodePool.cs index 16f21c9cf..01e0b14d4 100644 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityRegistry.cs +++ b/Containerengine/Cmdlets/New-OCIContainerengineVirtualNodePool.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,21 +8,21 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("New", "OCIDataconnectivityRegistry")] - [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DataconnectivityService.Responses.CreateRegistryResponse) })] - public class NewOCIDataconnectivityRegistry : OCIDataConnectivityManagementCmdlet + [Cmdlet("New", "OCIContainerengineVirtualNodePool")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ContainerengineService.Responses.CreateVirtualNodePoolResponse) })] + public class NewOCIContainerengineVirtualNodePool : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details for the new Data Connectivity Management Registry.")] - public CreateRegistryDetails CreateRegistryDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details of the virtual node pool to create.")] + public CreateVirtualNodePoolDetails CreateVirtualNodePoolDetails { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] public string OpcRetryToken { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] @@ -31,18 +31,18 @@ public class NewOCIDataconnectivityRegistry : OCIDataConnectivityManagementCmdle protected override void ProcessRecord() { base.ProcessRecord(); - CreateRegistryRequest request; + CreateVirtualNodePoolRequest request; try { - request = new CreateRegistryRequest + request = new CreateVirtualNodePoolRequest { - CreateRegistryDetails = CreateRegistryDetails, + CreateVirtualNodePoolDetails = CreateVirtualNodePoolDetails, OpcRetryToken = OpcRetryToken, OpcRequestId = OpcRequestId }; - response = client.CreateRegistry(request).GetAwaiter().GetResult(); + response = client.CreateVirtualNodePool(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } @@ -62,6 +62,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private CreateRegistryResponse response; + private CreateVirtualNodePoolResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityEndpoint.cs b/Containerengine/Cmdlets/Remove-OCIContainerengineVirtualNodePool.cs similarity index 52% rename from Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityEndpoint.cs rename to Containerengine/Cmdlets/Remove-OCIContainerengineVirtualNodePool.cs index ce08aa902..42e02eb4c 100644 --- a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityEndpoint.cs +++ b/Containerengine/Cmdlets/Remove-OCIContainerengineVirtualNodePool.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,32 +8,32 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Remove", "OCIDataconnectivityEndpoint", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DataconnectivityService.Responses.DeleteEndpointResponse) })] - public class RemoveOCIDataconnectivityEndpoint : OCIDataConnectivityManagementCmdlet + [Cmdlet("Remove", "OCIContainerengineVirtualNodePool", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ContainerengineService.Responses.DeleteVirtualNodePoolResponse) })] + public class RemoveOCIContainerengineVirtualNodePool : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.")] - public string EndpointId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node pool.")] + public string VirtualNodePoolId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Try to delete forcefully after drain timeout.")] - public System.Nullable IsForceOperation { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] public string IfMatch { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Duration after which Sk8s will give up eviction of the pods on the node. PT0M will indicate you want to delete the virtual node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M")] + public string OverrideEvictionGraceDurationVnp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"If the underlying compute instance should be deleted if you cannot evict all the pods in grace period")] + public System.Nullable IsForceDeletionAfterOverrideGraceDurationVnp { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] public SwitchParameter Force { get; set; } @@ -41,25 +41,25 @@ protected override void ProcessRecord() { base.ProcessRecord(); - if (!ConfirmDelete("OCIDataconnectivityEndpoint", "Remove")) + if (!ConfirmDelete("OCIContainerengineVirtualNodePool", "Remove")) { return; } - DeleteEndpointRequest request; + DeleteVirtualNodePoolRequest request; try { - request = new DeleteEndpointRequest + request = new DeleteVirtualNodePoolRequest { - EndpointId = EndpointId, - RegistryId = RegistryId, - IsForceOperation = IsForceOperation, + VirtualNodePoolId = VirtualNodePoolId, IfMatch = IfMatch, - OpcRequestId = OpcRequestId + OpcRequestId = OpcRequestId, + OverrideEvictionGraceDurationVnp = OverrideEvictionGraceDurationVnp, + IsForceDeletionAfterOverrideGraceDurationVnp = IsForceDeletionAfterOverrideGraceDurationVnp }; - response = client.DeleteEndpoint(request).GetAwaiter().GetResult(); + response = client.DeleteVirtualNodePool(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } @@ -79,6 +79,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private DeleteEndpointResponse response; + private DeleteVirtualNodePoolResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityEndpoint.cs b/Containerengine/Cmdlets/Update-OCIContainerengineAddon.cs similarity index 51% rename from Dataconnectivity/Cmdlets/Update-OCIDataconnectivityEndpoint.cs rename to Containerengine/Cmdlets/Update-OCIContainerengineAddon.cs index 1bdac3e1f..4085ca837 100644 --- a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityEndpoint.cs +++ b/Containerengine/Cmdlets/Update-OCIContainerengineAddon.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,27 +8,27 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Update", "OCIDataconnectivityEndpoint")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Endpoint), typeof(Oci.DataconnectivityService.Responses.UpdateEndpointResponse) })] - public class UpdateOCIDataconnectivityEndpoint : OCIDataConnectivityManagementCmdlet + [Cmdlet("Update", "OCIContainerengineAddon")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ContainerengineService.Responses.UpdateAddonResponse) })] + public class UpdateOCIContainerengineAddon : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.")] - public string EndpointId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the cluster.")] + public string ClusterId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] - public UpdateEndpointDetails UpdateEndpointDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The name of the addon.")] + public string AddonName { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details of the addon to be updated.")] + public UpdateAddonDetails UpdateAddonDetails { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] public string IfMatch { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] @@ -37,21 +37,21 @@ public class UpdateOCIDataconnectivityEndpoint : OCIDataConnectivityManagementCm protected override void ProcessRecord() { base.ProcessRecord(); - UpdateEndpointRequest request; + UpdateAddonRequest request; try { - request = new UpdateEndpointRequest + request = new UpdateAddonRequest { - EndpointId = EndpointId, - UpdateEndpointDetails = UpdateEndpointDetails, - RegistryId = RegistryId, + ClusterId = ClusterId, + AddonName = AddonName, + UpdateAddonDetails = UpdateAddonDetails, IfMatch = IfMatch, OpcRequestId = OpcRequestId }; - response = client.UpdateEndpoint(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Endpoint); + response = client.UpdateAddon(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } catch (OciException ex) @@ -70,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private UpdateEndpointResponse response; + private UpdateAddonResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityRegistry.cs b/Containerengine/Cmdlets/Update-OCIContainerengineVirtualNodePool.cs similarity index 54% rename from Dataconnectivity/Cmdlets/Update-OCIDataconnectivityRegistry.cs rename to Containerengine/Cmdlets/Update-OCIContainerengineVirtualNodePool.cs index 7a1a982e1..a6a0f324b 100644 --- a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityRegistry.cs +++ b/Containerengine/Cmdlets/Update-OCIContainerengineVirtualNodePool.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20180222 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,24 +8,24 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.ContainerengineService.Requests; +using Oci.ContainerengineService.Responses; +using Oci.ContainerengineService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.ContainerengineService.Cmdlets { - [Cmdlet("Update", "OCIDataconnectivityRegistry")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Registry), typeof(Oci.DataconnectivityService.Responses.UpdateRegistryResponse) })] - public class UpdateOCIDataconnectivityRegistry : OCIDataConnectivityManagementCmdlet + [Cmdlet("Update", "OCIContainerengineVirtualNodePool")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.ContainerengineService.Responses.UpdateVirtualNodePoolResponse) })] + public class UpdateOCIContainerengineVirtualNodePool : OCIContainerEngineCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the virtual node pool.")] + public string VirtualNodePoolId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information to be updated.")] - public UpdateRegistryDetails UpdateRegistryDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The fields to update in a virtual node pool.")] + public UpdateVirtualNodePoolDetails UpdateVirtualNodePoolDetails { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.")] public string IfMatch { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] @@ -34,20 +34,20 @@ public class UpdateOCIDataconnectivityRegistry : OCIDataConnectivityManagementCm protected override void ProcessRecord() { base.ProcessRecord(); - UpdateRegistryRequest request; + UpdateVirtualNodePoolRequest request; try { - request = new UpdateRegistryRequest + request = new UpdateVirtualNodePoolRequest { - RegistryId = RegistryId, - UpdateRegistryDetails = UpdateRegistryDetails, + VirtualNodePoolId = VirtualNodePoolId, + UpdateVirtualNodePoolDetails = UpdateVirtualNodePoolDetails, IfMatch = IfMatch, OpcRequestId = OpcRequestId }; - response = client.UpdateRegistry(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Registry); + response = client.UpdateVirtualNodePool(request).GetAwaiter().GetResult(); + WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } catch (OciException ex) @@ -66,6 +66,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private UpdateRegistryResponse response; + private UpdateVirtualNodePoolResponse response; } } diff --git a/Containerengine/OCI.PSModules.Containerengine.psd1 b/Containerengine/OCI.PSModules.Containerengine.psd1 index fa1728733..0e17b6744 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerengine.dll' @@ -71,26 +71,38 @@ RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Containerengine.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-OCIContainerengineCluster', +CmdletsToExport = 'Disable-OCIContainerengineAddon', 'Get-OCIContainerengineAddon', + 'Get-OCIContainerengineAddonOptionsList', + 'Get-OCIContainerengineAddonsList', 'Get-OCIContainerengineCluster', 'Get-OCIContainerengineClusterMigrateToNativeVcnStatus', 'Get-OCIContainerengineClusterOptions', 'Get-OCIContainerengineClustersList', 'Get-OCIContainerengineNodePool', 'Get-OCIContainerengineNodePoolOptions', 'Get-OCIContainerengineNodePoolsList', + 'Get-OCIContainerenginePodShapesList', + 'Get-OCIContainerengineVirtualNode', + 'Get-OCIContainerengineVirtualNodePool', + 'Get-OCIContainerengineVirtualNodePoolsList', + 'Get-OCIContainerengineVirtualNodesList', 'Get-OCIContainerengineWorkRequest', 'Get-OCIContainerengineWorkRequestErrorsList', 'Get-OCIContainerengineWorkRequestLogsList', 'Get-OCIContainerengineWorkRequestsList', 'Invoke-OCIContainerengineClusterMigrateToNativeVcn', + 'Invoke-OCIContainerengineInstallAddon', 'New-OCIContainerengineCluster', 'New-OCIContainerengineKubeconfig', 'New-OCIContainerengineNodePool', + 'New-OCIContainerengineVirtualNodePool', 'Remove-OCIContainerengineCluster', 'Remove-OCIContainerengineNode', 'Remove-OCIContainerengineNodePool', + 'Remove-OCIContainerengineVirtualNodePool', 'Remove-OCIContainerengineWorkRequest', + 'Update-OCIContainerengineAddon', 'Update-OCIContainerengineCluster', 'Update-OCIContainerengineClusterEndpointConfig', - 'Update-OCIContainerengineNodePool' + 'Update-OCIContainerengineNodePool', + 'Update-OCIContainerengineVirtualNodePool' # Variables to export from this module VariablesToExport = '*' diff --git a/Containerinstances/OCI.PSModules.Containerinstances.psd1 b/Containerinstances/OCI.PSModules.Containerinstances.psd1 index 766a5628f..4286d8dc7 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 d8aa444bf..fc73b019e 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 22e23d6de..e5f53fb1e 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dashboardservice.dll' diff --git a/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabaseBackupsList.cs b/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabaseBackupsList.cs index e2b6619c5..d89019383 100644 --- a/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabaseBackupsList.cs +++ b/Database/Cmdlets/Get-OCIDatabaseAutonomousDatabaseBackupsList.cs @@ -47,6 +47,9 @@ public class GetOCIDatabaseAutonomousDatabaseBackupsList : OCIDatabaseCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only resources that match the entire display name given. The match is not case sensitive.")] public string DisplayName { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only backups that matches with the given type of Backup.")] + public string Type { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for the request.")] public string OpcRequestId { get; set; } @@ -70,6 +73,7 @@ protected override void ProcessRecord() SortOrder = SortOrder, LifecycleState = LifecycleState, DisplayName = DisplayName, + Type = Type, OpcRequestId = OpcRequestId }; IEnumerable responses = GetRequestDelegate().Invoke(request); diff --git a/Database/OCI.PSModules.Database.psd1 b/Database/OCI.PSModules.Database.psd1 index 3d4e70e12..aad04a76f 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 f21f627cc..92a6ee7ed 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 a59240952..f2df50028 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 2212e74f4..c2f3761b6 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 55e9a95e4..cb6dbf763 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datacatalog.dll' diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnectionsList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnectionsList.cs deleted file mode 100644 index 2d0a63cbe..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnectionsList.cs +++ /dev/null @@ -1,124 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityConnectionsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ConnectionSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListConnectionsResponse) })] - public class GetOCIDataconnectivityConnectionsList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the data asset key of the object.")] - public string DataAssetKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] - public System.Collections.Generic.List Fields { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Type of the object to filter the results with.")] - public string Type { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL.")] - public System.Nullable FavoritesQueryParam { 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(); - ListConnectionsRequest request; - - try - { - request = new ListConnectionsRequest - { - RegistryId = RegistryId, - DataAssetKey = DataAssetKey, - Name = Name, - Page = Page, - Limit = Limit, - Fields = Fields, - Type = Type, - SortBy = SortBy, - SortOrder = SortOrder, - OpcRequestId = OpcRequestId, - FavoritesQueryParam = FavoritesQueryParam - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.ConnectionSummaryCollection, 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(ListConnectionsRequest request) => Enumerable.Repeat(client.ListConnections(request).GetAwaiter().GetResult(), 1); - if (ParameterSetName.Equals(AllPageSet)) - { - return req => client.Paginators.ListConnectionsResponseEnumerator(req); - } - return DefaultRequest; - } - - private ListConnectionsResponse response; - private delegate IEnumerable RequestDelegate(ListConnectionsRequest request); - private const string AllPageSet = "AllPages"; - private const string LimitSet = "Limit"; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAssetsList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAssetsList.cs deleted file mode 100644 index da384ca33..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAssetsList.cs +++ /dev/null @@ -1,136 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityDataAssetsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataAssetSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListDataAssetsResponse) })] - public class GetOCIDataconnectivityDataAssetsList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] - public System.Collections.Generic.List Fields { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Artifact type which needs to be listed while listing Artifacts.")] - public System.Collections.Generic.List IncludeTypes { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The types that will be excluded from the list of data assets/connections.")] - public System.Collections.Generic.List ExcludeTypes { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL.")] - public System.Nullable FavoritesQueryParam { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique key of the folder.")] - public string FolderId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint IDs used for data-plane APIs to filter or prefer specific endpoint.")] - public System.Collections.Generic.List EndpointIds { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoints which will be excluded while listing data assets.")] - public System.Collections.Generic.List ExcludeEndpointIds { 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(); - ListDataAssetsRequest request; - - try - { - request = new ListDataAssetsRequest - { - RegistryId = RegistryId, - Page = Page, - Limit = Limit, - Fields = Fields, - IncludeTypes = IncludeTypes, - SortBy = SortBy, - SortOrder = SortOrder, - Name = Name, - OpcRequestId = OpcRequestId, - ExcludeTypes = ExcludeTypes, - FavoritesQueryParam = FavoritesQueryParam, - FolderId = FolderId, - EndpointIds = EndpointIds, - ExcludeEndpointIds = ExcludeEndpointIds - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.DataAssetSummaryCollection, 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(ListDataAssetsRequest request) => Enumerable.Repeat(client.ListDataAssets(request).GetAwaiter().GetResult(), 1); - if (ParameterSetName.Equals(AllPageSet)) - { - return req => client.Paginators.ListDataAssetsResponseEnumerator(req); - } - return DefaultRequest; - } - - private ListDataAssetsResponse response; - private delegate IEnumerable RequestDelegate(ListDataAssetsRequest request); - private const string AllPageSet = "AllPages"; - private const string LimitSet = "Limit"; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntitiesList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntitiesList.cs deleted file mode 100644 index ebd854f0d..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntitiesList.cs +++ /dev/null @@ -1,144 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityDataEntitiesList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataEntitySummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListDataEntitiesResponse) })] - public class GetOCIDataconnectivityDataEntitiesList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Type of the object to filter the results with.")] - public string Type { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] - public System.Collections.Generic.List Fields { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"This parameter can be used to set the api response type to preview.")] - public System.Nullable ApiMode { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public System.Collections.Generic.List NameList { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"This parameter can be used to specify whether entity search type is a pattern search.")] - public System.Nullable IsPattern { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Artifact type which needs to be listed while listing Artifacts.")] - public System.Collections.Generic.List IncludeTypes { 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(); - ListDataEntitiesRequest request; - - try - { - request = new ListDataEntitiesRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - Name = Name, - Page = Page, - Type = Type, - Limit = Limit, - Fields = Fields, - SortBy = SortBy, - SortOrder = SortOrder, - OpcRequestId = OpcRequestId, - ApiMode = ApiMode, - NameList = NameList, - IsPattern = IsPattern, - EndpointId = EndpointId, - IncludeTypes = IncludeTypes - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.DataEntitySummaryCollection, 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(ListDataEntitiesRequest request) => Enumerable.Repeat(client.ListDataEntities(request).GetAwaiter().GetResult(), 1); - if (ParameterSetName.Equals(AllPageSet)) - { - return req => client.Paginators.ListDataEntitiesResponseEnumerator(req); - } - return DefaultRequest; - } - - private ListDataEntitiesResponse response; - private delegate IEnumerable RequestDelegate(ListDataEntitiesRequest request); - private const string AllPageSet = "AllPages"; - private const string LimitSet = "Limit"; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntity.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntity.cs deleted file mode 100644 index 422895d79..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataEntity.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityDataEntity")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataEntity), typeof(Oci.DataconnectivityService.Responses.GetDataEntityResponse) })] - public class GetOCIDataconnectivityDataEntity : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The key of the data entity.")] - public string DataEntityKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetDataEntityRequest request; - - try - { - request = new GetDataEntityRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - DataEntityKey = DataEntityKey, - OpcRequestId = OpcRequestId, - EndpointId = EndpointId - }; - - response = client.GetDataEntity(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DataEntity); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetDataEntityResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEngineConfigurations.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEngineConfigurations.cs deleted file mode 100644 index e5da0c7d2..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEngineConfigurations.cs +++ /dev/null @@ -1,71 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityEngineConfigurations")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ConfigDetails), typeof(Oci.DataconnectivityService.Responses.GetEngineConfigurationsResponse) })] - public class GetOCIDataconnectivityEngineConfigurations : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the runtime engine for the bulk read/write operation. Default is SPARK.")] - public System.Nullable EngineTypeQueryParam { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetEngineConfigurationsRequest request; - - try - { - request = new GetEngineConfigurationsRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - EngineTypeQueryParam = EngineTypeQueryParam, - OpcRequestId = OpcRequestId - }; - - response = client.GetEngineConfigurations(request).GetAwaiter().GetResult(); - WriteOutput(response, response.ConfigDetails); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetEngineConfigurationsResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityExecuteOperationJob.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityExecuteOperationJob.cs deleted file mode 100644 index 37a895199..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityExecuteOperationJob.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityExecuteOperationJob")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ExecuteOperationJob), typeof(Oci.DataconnectivityService.Responses.GetExecuteOperationJobResponse) })] - public class GetOCIDataconnectivityExecuteOperationJob : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Job ID returned by the execute operation job API.")] - public string ExecuteOperationJobKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetExecuteOperationJobRequest request; - - try - { - request = new GetExecuteOperationJobRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - ExecuteOperationJobKey = ExecuteOperationJobKey, - OpcRequestId = OpcRequestId, - EndpointId = EndpointId - }; - - response = client.GetExecuteOperationJob(request).GetAwaiter().GetResult(); - WriteOutput(response, response.ExecuteOperationJob); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetExecuteOperationJobResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFoldersList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFoldersList.cs deleted file mode 100644 index d0c6ef3f0..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFoldersList.cs +++ /dev/null @@ -1,120 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityFoldersList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.FolderSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListFoldersResponse) })] - public class GetOCIDataconnectivityFoldersList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] - public System.Collections.Generic.List Fields { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Type of the object to filter the results with.")] - public string Type { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL.")] - public System.Nullable FavoritesQueryParam { 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(); - ListFoldersRequest request; - - try - { - request = new ListFoldersRequest - { - RegistryId = RegistryId, - Name = Name, - Page = Page, - Limit = Limit, - Fields = Fields, - Type = Type, - SortBy = SortBy, - SortOrder = SortOrder, - OpcRequestId = OpcRequestId, - FavoritesQueryParam = FavoritesQueryParam - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.FolderSummaryCollection, 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(ListFoldersRequest request) => Enumerable.Repeat(client.ListFolders(request).GetAwaiter().GetResult(), 1); - if (ParameterSetName.Equals(AllPageSet)) - { - return req => client.Paginators.ListFoldersResponseEnumerator(req); - } - return DefaultRequest; - } - - private ListFoldersResponse response; - private delegate IEnumerable RequestDelegate(ListFoldersRequest request); - private const string AllPageSet = "AllPages"; - private const string LimitSet = "Limit"; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatus.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatus.cs deleted file mode 100644 index 97c48a855..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatus.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityNetworkConnectivityStatus")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.NetworkConnectivityStatus), typeof(Oci.DataconnectivityService.Responses.GetNetworkConnectivityStatusResponse) })] - public class GetOCIDataconnectivityNetworkConnectivityStatus : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The data asset key.")] - public string DataAssetKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetNetworkConnectivityStatusRequest request; - - try - { - request = new GetNetworkConnectivityStatusRequest - { - RegistryId = RegistryId, - DataAssetKey = DataAssetKey, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - EndpointId = EndpointId, - IfMatch = IfMatch - }; - - response = client.GetNetworkConnectivityStatus(request).GetAwaiter().GetResult(); - WriteOutput(response, response.NetworkConnectivityStatus); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetNetworkConnectivityStatusResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatusCollection.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatusCollection.cs deleted file mode 100644 index ab3123b45..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityNetworkConnectivityStatusCollection.cs +++ /dev/null @@ -1,87 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityNetworkConnectivityStatusCollection")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.NetworkConnectivityStatusCollection), typeof(Oci.DataconnectivityService.Responses.GetNetworkConnectivityStatusCollectionResponse) })] - public class GetOCIDataconnectivityNetworkConnectivityStatusCollection : OCINetworkValidationCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The endpoint key.")] - public string EndpointKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetNetworkConnectivityStatusCollectionRequest request; - - try - { - request = new GetNetworkConnectivityStatusCollectionRequest - { - RegistryId = RegistryId, - EndpointKey = EndpointKey, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - Page = Page, - Limit = Limit, - SortBy = SortBy, - SortOrder = SortOrder - }; - - response = client.GetNetworkConnectivityStatusCollection(request).GetAwaiter().GetResult(); - WriteOutput(response, response.NetworkConnectivityStatusCollection); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetNetworkConnectivityStatusCollectionResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperation.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperation.cs deleted file mode 100644 index cb1ebf3d0..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperation.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityOperation")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Operation), typeof(Oci.DataconnectivityService.Responses.GetOperationResponse) })] - public class GetOCIDataconnectivityOperation : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The operation resource name used for retrieving the details of operation.")] - public string OperationResourceName { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetOperationRequest request; - - try - { - request = new GetOperationRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - OperationResourceName = OperationResourceName, - OpcRequestId = OpcRequestId, - EndpointId = EndpointId - }; - - response = client.GetOperation(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Operation); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetOperationResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperationsList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperationsList.cs deleted file mode 100644 index 078172f2a..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityOperationsList.cs +++ /dev/null @@ -1,120 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityOperationsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.OperationSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListOperationsResponse) })] - public class GetOCIDataconnectivityOperationsList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { 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(); - ListOperationsRequest request; - - try - { - request = new ListOperationsRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - OpcRequestId = OpcRequestId, - Name = Name, - Page = Page, - Limit = Limit, - SortBy = SortBy, - SortOrder = SortOrder, - EndpointId = EndpointId - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.OperationSummaryCollection, 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(ListOperationsRequest request) => Enumerable.Repeat(client.ListOperations(request).GetAwaiter().GetResult(), 1); - if (ParameterSetName.Equals(AllPageSet)) - { - return req => client.Paginators.ListOperationsResponseEnumerator(req); - } - return DefaultRequest; - } - - private ListOperationsResponse response; - private delegate IEnumerable RequestDelegate(ListOperationsRequest request); - private const string AllPageSet = "AllPages"; - private const string LimitSet = "Limit"; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityReferenceArtifactsList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityReferenceArtifactsList.cs deleted file mode 100644 index 95e88e428..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityReferenceArtifactsList.cs +++ /dev/null @@ -1,132 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityReferenceArtifactsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ReferenceArtifactSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListReferenceArtifactsResponse) })] - public class GetOCIDataconnectivityReferenceArtifactsList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of a dcms artifact (DataAsset or Endpoint).")] - public string DcmsArtifactId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] - public System.Collections.Generic.List Fields { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Type of the object to filter the results with.")] - public string Type { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The types that will be excluded from the list of data assets/connections.")] - public System.Collections.Generic.List ExcludeTypes { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"If value is FAVORITES_ONLY, then only objects marked as favorite by the requesting user will be included in result. If value is NON_FAVORITES_ONLY, then objects marked as favorites by the requesting user will be skipped. If value is ALL or if not specified, all objects, irrespective of favorites or not will be returned. Default is ALL.")] - public System.Nullable FavoritesQueryParam { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique key of the service.")] - public string ServiceArtifactId { 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(); - ListReferenceArtifactsRequest request; - - try - { - request = new ListReferenceArtifactsRequest - { - RegistryId = RegistryId, - DcmsArtifactId = DcmsArtifactId, - Page = Page, - Limit = Limit, - Fields = Fields, - Type = Type, - SortBy = SortBy, - SortOrder = SortOrder, - Name = Name, - OpcRequestId = OpcRequestId, - ExcludeTypes = ExcludeTypes, - FavoritesQueryParam = FavoritesQueryParam, - ServiceArtifactId = ServiceArtifactId - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.ReferenceArtifactSummaryCollection, 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(ListReferenceArtifactsRequest request) => Enumerable.Repeat(client.ListReferenceArtifacts(request).GetAwaiter().GetResult(), 1); - if (ParameterSetName.Equals(AllPageSet)) - { - return req => client.Paginators.ListReferenceArtifactsResponseEnumerator(req); - } - return DefaultRequest; - } - - private ListReferenceArtifactsResponse response; - private delegate IEnumerable RequestDelegate(ListReferenceArtifactsRequest request); - private const string AllPageSet = "AllPages"; - private const string LimitSet = "Limit"; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchema.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchema.cs deleted file mode 100644 index e87f4acfa..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchema.cs +++ /dev/null @@ -1,75 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivitySchema")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Schema), typeof(Oci.DataconnectivityService.Responses.GetSchemaResponse) })] - public class GetOCIDataconnectivitySchema : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetSchemaRequest request; - - try - { - request = new GetSchemaRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - OpcRequestId = OpcRequestId, - EndpointId = EndpointId - }; - - response = client.GetSchema(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Schema); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetSchemaResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityType.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityType.cs deleted file mode 100644 index 688bed735..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityType.cs +++ /dev/null @@ -1,71 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityType")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Type), typeof(Oci.DataconnectivityService.Responses.GetTypeResponse) })] - public class GetOCIDataconnectivityType : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Key of the a specific type.")] - public string TypeKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] - public System.Collections.Generic.List Fields { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - GetTypeRequest request; - - try - { - request = new GetTypeRequest - { - RegistryId = RegistryId, - TypeKey = TypeKey, - OpcRequestId = OpcRequestId, - Fields = Fields - }; - - response = client.GetType(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Type); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private GetTypeResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestErrorsList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestErrorsList.cs deleted file mode 100644 index 20e68c2c9..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestErrorsList.cs +++ /dev/null @@ -1,96 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityWorkRequestErrorsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.WorkRequestErrorCollection), typeof(Oci.DataconnectivityService.Responses.ListWorkRequestErrorsResponse) })] - public class GetOCIDataconnectivityWorkRequestErrorsList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] - public string WorkRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = 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 - }; - 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/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestLogsList.cs b/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestLogsList.cs deleted file mode 100644 index 044dde6a2..000000000 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityWorkRequestLogsList.cs +++ /dev/null @@ -1,96 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Get", "OCIDataconnectivityWorkRequestLogsList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.WorkRequestLogCollection), typeof(Oci.DataconnectivityService.Responses.ListWorkRequestLogsResponse) })] - public class GetOCIDataconnectivityWorkRequestLogsList : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of the asynchronous request.")] - public string WorkRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] - public System.Nullable Limit { get; set; } - - [Parameter(Mandatory = 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 - }; - IEnumerable responses = GetRequestDelegate().Invoke(request); - foreach (var item in responses) - { - response = item; - WriteOutput(response, response.WorkRequestLogCollection, 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/Dataconnectivity/Cmdlets/New-OCIDataconnectivityAttachDataAsset.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityAttachDataAsset.cs deleted file mode 100644 index 972641604..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityAttachDataAsset.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityAttachDataAsset")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.AttachDataAssetInfo), typeof(Oci.DataconnectivityService.Responses.CreateAttachDataAssetResponse) })] - public class NewOCIDataconnectivityAttachDataAsset : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.")] - public string EndpointId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameters to attach data asset to a private endpoint.")] - public CreateAttachDataAssetDetails CreateAttachDataAssetDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateAttachDataAssetRequest request; - - try - { - request = new CreateAttachDataAssetRequest - { - RegistryId = RegistryId, - EndpointId = EndpointId, - CreateAttachDataAssetDetails = CreateAttachDataAssetDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch - }; - - response = client.CreateAttachDataAsset(request).GetAwaiter().GetResult(); - WriteOutput(response, response.AttachDataAssetInfo); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateAttachDataAssetResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectionValidation.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectionValidation.cs deleted file mode 100644 index 577ff0421..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectionValidation.cs +++ /dev/null @@ -1,75 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityConnectionValidation")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ConnectionValidation), typeof(Oci.DataconnectivityService.Responses.CreateConnectionValidationResponse) })] - public class NewOCIDataconnectivityConnectionValidation : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to validate a connection.")] - public CreateConnectionValidationDetails CreateConnectionValidationDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateConnectionValidationRequest request; - - try - { - request = new CreateConnectionValidationRequest - { - RegistryId = RegistryId, - CreateConnectionValidationDetails = CreateConnectionValidationDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - EndpointId = EndpointId - }; - - response = client.CreateConnectionValidation(request).GetAwaiter().GetResult(); - WriteOutput(response, response.ConnectionValidation); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateConnectionValidationResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectivityValidation.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectivityValidation.cs deleted file mode 100644 index 4148e32e0..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnectivityValidation.cs +++ /dev/null @@ -1,75 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityConnectivityValidation")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ConnectivityValidation), typeof(Oci.DataconnectivityService.Responses.CreateConnectivityValidationResponse) })] - public class NewOCIDataconnectivityConnectivityValidation : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameters to trigger connectivity validations. This parameter also accepts subtypes , of type .")] - public CreateConnectivityValidationDetails CreateConnectivityValidationDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateConnectivityValidationRequest request; - - try - { - request = new CreateConnectivityValidationRequest - { - RegistryId = RegistryId, - CreateConnectivityValidationDetails = CreateConnectivityValidationDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - EndpointId = EndpointId - }; - - response = client.CreateConnectivityValidation(request).GetAwaiter().GetResult(); - WriteOutput(response, response.ConnectivityValidation); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateConnectivityValidationResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataPreview.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataPreview.cs deleted file mode 100644 index 508b4365a..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataPreview.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityDataPreview")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataPreview), typeof(Oci.DataconnectivityService.Responses.CreateDataPreviewResponse) })] - public class NewOCIDataconnectivityDataPreview : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameters to provide data preview.")] - public CreateDataPreviewDetails CreateDataPreviewDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateDataPreviewRequest request; - - try - { - request = new CreateDataPreviewRequest - { - RegistryId = RegistryId, - CreateDataPreviewDetails = CreateDataPreviewDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch, - EndpointId = EndpointId - }; - - response = client.CreateDataPreview(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DataPreview); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateDataPreviewResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataProfile.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataProfile.cs deleted file mode 100644 index fbc4c82b3..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataProfile.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityDataProfile")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataProfile), typeof(Oci.DataconnectivityService.Responses.CreateDataProfileResponse) })] - public class NewOCIDataconnectivityDataProfile : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameters to execute data profiling.")] - public CreateDataProfileDetails CreateDataProfileDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateDataProfileRequest request; - - try - { - request = new CreateDataProfileRequest - { - RegistryId = RegistryId, - CreateDataProfileDetails = CreateDataProfileDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch, - EndpointId = EndpointId - }; - - response = client.CreateDataProfile(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DataProfile); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateDataProfileResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDeReferenceArtifact.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDeReferenceArtifact.cs deleted file mode 100644 index 37d7b06e9..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDeReferenceArtifact.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityDeReferenceArtifact")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DeReferenceInfo), typeof(Oci.DataconnectivityService.Responses.CreateDeReferenceArtifactResponse) })] - public class NewOCIDataconnectivityDeReferenceArtifact : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of a dcms artifact (DataAsset or Endpoint).")] - public string DcmsArtifactId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to delete a dcms artifact reference.")] - public CreateDeReferenceArtifactDetails CreateDeReferenceArtifactDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateDeReferenceArtifactRequest request; - - try - { - request = new CreateDeReferenceArtifactRequest - { - RegistryId = RegistryId, - DcmsArtifactId = DcmsArtifactId, - CreateDeReferenceArtifactDetails = CreateDeReferenceArtifactDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch - }; - - response = client.CreateDeReferenceArtifact(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DeReferenceInfo); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateDeReferenceArtifactResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDetachDataAsset.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDetachDataAsset.cs deleted file mode 100644 index 67582f07e..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDetachDataAsset.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityDetachDataAsset")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DetachDataAssetInfo), typeof(Oci.DataconnectivityService.Responses.CreateDetachDataAssetResponse) })] - public class NewOCIDataconnectivityDetachDataAsset : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.")] - public string EndpointId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameters to detach data asset to a private endpoint.")] - public CreateDetachDataAssetDetails CreateDetachDataAssetDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateDetachDataAssetRequest request; - - try - { - request = new CreateDetachDataAssetRequest - { - RegistryId = RegistryId, - EndpointId = EndpointId, - CreateDetachDataAssetDetails = CreateDetachDataAssetDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch - }; - - response = client.CreateDetachDataAsset(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DetachDataAssetInfo); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateDetachDataAssetResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityEndpoint.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityEndpoint.cs deleted file mode 100644 index 8243170f3..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityEndpoint.cs +++ /dev/null @@ -1,71 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityEndpoint")] - [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DataconnectivityService.Responses.CreateEndpointResponse) })] - public class NewOCIDataconnectivityEndpoint : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Details of the new Data Connectivity Management endpoint.")] - public CreateEndpointDetails CreateEndpointDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateEndpointRequest request; - - try - { - request = new CreateEndpointRequest - { - CreateEndpointDetails = CreateEndpointDetails, - OpcRetryToken = OpcRetryToken, - RegistryId = RegistryId, - OpcRequestId = OpcRequestId - }; - - response = client.CreateEndpoint(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 CreateEndpointResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityEntityShape.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityEntityShape.cs deleted file mode 100644 index e5e69adf4..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityEntityShape.cs +++ /dev/null @@ -1,91 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityEntityShape")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.EntityShape), typeof(Oci.DataconnectivityService.Responses.CreateEntityShapeResponse) })] - public class NewOCIDataconnectivityEntityShape : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details required to create the data entity shape. This parameter also accepts subtypes , , , , , of type .")] - public CreateEntityShapeDetails CreateEntityShapeDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Authorization mode for communicating with another OCI service relevant for the API.")] - public System.Nullable AuthorizationMode { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateEntityShapeRequest request; - - try - { - request = new CreateEntityShapeRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - CreateEntityShapeDetails = CreateEntityShapeDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch, - AuthorizationMode = AuthorizationMode, - EndpointId = EndpointId - }; - - response = client.CreateEntityShape(request).GetAwaiter().GetResult(); - WriteOutput(response, response.EntityShape); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateEntityShapeResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityExecuteOperationJob.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityExecuteOperationJob.cs deleted file mode 100644 index ae1c85197..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityExecuteOperationJob.cs +++ /dev/null @@ -1,83 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityExecuteOperationJob")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ExecuteOperationJobDetails), typeof(Oci.DataconnectivityService.Responses.CreateExecuteOperationJobResponse) })] - public class NewOCIDataconnectivityExecuteOperationJob : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The schema resource name used for retrieving schemas.")] - public string SchemaResourceName { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameter for execute operation job input.")] - public CreateExecuteOperationJobDetails CreateExecuteOperationJobDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateExecuteOperationJobRequest request; - - try - { - request = new CreateExecuteOperationJobRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - SchemaResourceName = SchemaResourceName, - CreateExecuteOperationJobDetails = CreateExecuteOperationJobDetails, - OpcRequestId = OpcRequestId, - EndpointId = EndpointId, - OpcRetryToken = OpcRetryToken - }; - - response = client.CreateExecuteOperationJob(request).GetAwaiter().GetResult(); - WriteOutput(response, response.ExecuteOperationJobDetails); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateExecuteOperationJobResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityFolder.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityFolder.cs deleted file mode 100644 index 236452a54..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityFolder.cs +++ /dev/null @@ -1,71 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityFolder")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Folder), typeof(Oci.DataconnectivityService.Responses.CreateFolderResponse) })] - public class NewOCIDataconnectivityFolder : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to create a folder.")] - public CreateFolderDetails CreateFolderDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateFolderRequest request; - - try - { - request = new CreateFolderRequest - { - RegistryId = RegistryId, - CreateFolderDetails = CreateFolderDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken - }; - - response = client.CreateFolder(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Folder); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateFolderResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityFullPushDownTask.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityFullPushDownTask.cs deleted file mode 100644 index 0fbcc9116..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityFullPushDownTask.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityFullPushDownTask")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.FullPushDownTaskResponse), typeof(Oci.DataconnectivityService.Responses.CreateFullPushDownTaskResponse) })] - public class NewOCIDataconnectivityFullPushDownTask : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameter for full pushdown task.")] - public CreateFullPushDownTaskDetails CreateFullPushDownTaskDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateFullPushDownTaskRequest request; - - try - { - request = new CreateFullPushDownTaskRequest - { - RegistryId = RegistryId, - CreateFullPushDownTaskDetails = CreateFullPushDownTaskDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch, - EndpointId = EndpointId - }; - - response = client.CreateFullPushDownTask(request).GetAwaiter().GetResult(); - WriteOutput(response, response.FullPushDownTaskResponse); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateFullPushDownTaskResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityReferenceArtifact.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityReferenceArtifact.cs deleted file mode 100644 index a0e3b9d12..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityReferenceArtifact.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityReferenceArtifact")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.ReferenceInfo), typeof(Oci.DataconnectivityService.Responses.CreateReferenceArtifactResponse) })] - public class NewOCIDataconnectivityReferenceArtifact : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The ID of a dcms artifact (DataAsset or Endpoint).")] - public string DcmsArtifactId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to reference a dcms artifact.")] - public CreateReferenceArtifactDetails CreateReferenceArtifactDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the `etag` from a previous GET or POST response for that resource. The resource will be updated or deleted only if the `etag` you provide matches the resource's current `etag` value. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateReferenceArtifactRequest request; - - try - { - request = new CreateReferenceArtifactRequest - { - RegistryId = RegistryId, - DcmsArtifactId = DcmsArtifactId, - CreateReferenceArtifactDetails = CreateReferenceArtifactDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - IfMatch = IfMatch - }; - - response = client.CreateReferenceArtifact(request).GetAwaiter().GetResult(); - WriteOutput(response, response.ReferenceInfo); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateReferenceArtifactResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityTestNetworkConnectivity.cs b/Dataconnectivity/Cmdlets/New-OCIDataconnectivityTestNetworkConnectivity.cs deleted file mode 100644 index 98f756419..000000000 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityTestNetworkConnectivity.cs +++ /dev/null @@ -1,79 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("New", "OCIDataconnectivityTestNetworkConnectivity")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.TestNetworkConnectivity), typeof(Oci.DataconnectivityService.Responses.CreateTestNetworkConnectivityResponse) })] - public class NewOCIDataconnectivityTestNetworkConnectivity : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Request body parameters to execute network validation.")] - public CreateTestNetworkConnectivityDetails CreateTestNetworkConnectivityDetails { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] - public string OpcRetryToken { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - CreateTestNetworkConnectivityRequest request; - - try - { - request = new CreateTestNetworkConnectivityRequest - { - RegistryId = RegistryId, - CreateTestNetworkConnectivityDetails = CreateTestNetworkConnectivityDetails, - OpcRequestId = OpcRequestId, - OpcRetryToken = OpcRetryToken, - EndpointId = EndpointId, - IfMatch = IfMatch - }; - - response = client.CreateTestNetworkConnectivity(request).GetAwaiter().GetResult(); - WriteOutput(response, response.TestNetworkConnectivity); - FinishProcessing(response); - } - catch (OciException ex) - { - TerminatingErrorDuringExecution(ex); - } - catch (Exception ex) - { - TerminatingErrorDuringExecution(ex); - } - } - - protected override void StopProcessing() - { - base.StopProcessing(); - TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); - } - - private CreateTestNetworkConnectivityResponse response; - } -} diff --git a/Dataconnectivity/Cmdlets/OCIDataConnectivityManagementCmdlet.cs b/Dataconnectivity/Cmdlets/OCIDataConnectivityManagementCmdlet.cs deleted file mode 100644 index 5ddf9495d..000000000 --- a/Dataconnectivity/Cmdlets/OCIDataConnectivityManagementCmdlet.cs +++ /dev/null @@ -1,86 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService; - -namespace Oci.DataconnectivityService.Cmdlets -{ - public abstract class OCIDataConnectivityManagementCmdlet : 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 DataConnectivityManagementClient(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 DataConnectivityManagementClient client; - private RetryConfiguration retryConfig; - } -} \ No newline at end of file diff --git a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityConnection.cs b/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityConnection.cs deleted file mode 100644 index f3569301a..000000000 --- a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityConnection.cs +++ /dev/null @@ -1,80 +0,0 @@ -/* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 - * 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.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; -using Oci.Common.Model; - -namespace Oci.DataconnectivityService.Cmdlets -{ - [Cmdlet("Remove", "OCIDataconnectivityConnection", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - [OutputType(new System.Type[] { typeof(void), typeof(Oci.DataconnectivityService.Responses.DeleteConnectionResponse) })] - public class RemoveOCIDataconnectivityConnection : OCIDataConnectivityManagementCmdlet - { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } - - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] - public string IfMatch { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Ignore confirmation and force the Cmdlet to complete action.")] - public SwitchParameter Force { get; set; } - - protected override void ProcessRecord() - { - base.ProcessRecord(); - - if (!ConfirmDelete("OCIDataconnectivityConnection", "Remove")) - { - return; - } - - DeleteConnectionRequest request; - - try - { - request = new DeleteConnectionRequest - { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - IfMatch = IfMatch, - OpcRequestId = OpcRequestId - }; - - response = client.DeleteConnection(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 DeleteConnectionResponse response; - } -} diff --git a/Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 b/Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 deleted file mode 100644 index 52782275b..000000000 --- a/Dataconnectivity/OCI.PSModules.Dataconnectivity.psd1 +++ /dev/null @@ -1,187 +0,0 @@ -# -# Module manifest for module 'OCI.PSModules.Dataconnectivity' -# -# Generated by: Oracle Cloud Infrastructure -# -# - -@{ - -# Script module or binary module file associated with this manifest. -RootModule = 'assemblies/OCI.PSModules.Dataconnectivity.dll' - -# Version number of this module. -ModuleVersion = '50.0.0' - -# Supported PSEditions -CompatiblePSEditions = 'Core' - -# ID used to uniquely identify this module -GUID = '7b5c45d1-72bf-401e-8329-15fabf663bdb' - -# 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 Dataconnectivity 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 = '50.0.0'; }) - -# Assemblies that must be loaded prior to importing this module -RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataconnectivity.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-OCIDataconnectivityDataAssetNetworkReachablity', - 'Get-OCIDataconnectivityConnection', - 'Get-OCIDataconnectivityConnectionsList', - 'Get-OCIDataconnectivityDataAsset', - 'Get-OCIDataconnectivityDataAssetsList', - 'Get-OCIDataconnectivityDataEntitiesList', - 'Get-OCIDataconnectivityDataEntity', - 'Get-OCIDataconnectivityEndpoint', - 'Get-OCIDataconnectivityEndpointsList', - 'Get-OCIDataconnectivityEngineConfigurations', - 'Get-OCIDataconnectivityExecuteOperationJob', - 'Get-OCIDataconnectivityFolder', - 'Get-OCIDataconnectivityFoldersList', - 'Get-OCIDataconnectivityNetworkConnectivityStatus', - 'Get-OCIDataconnectivityNetworkConnectivityStatusCollection', - 'Get-OCIDataconnectivityOperation', - 'Get-OCIDataconnectivityOperationsList', - 'Get-OCIDataconnectivityReferenceArtifactsList', - 'Get-OCIDataconnectivityRegistriesList', - 'Get-OCIDataconnectivityRegistry', 'Get-OCIDataconnectivitySchema', - 'Get-OCIDataconnectivitySchemasList', 'Get-OCIDataconnectivityType', - 'Get-OCIDataconnectivityTypesList', - 'Get-OCIDataconnectivityWorkRequest', - 'Get-OCIDataconnectivityWorkRequestErrorsList', - 'Get-OCIDataconnectivityWorkRequestLogsList', - 'Get-OCIDataconnectivityWorkRequestsList', - 'Invoke-OCIDataconnectivityDeriveEntities', - 'Move-OCIDataconnectivityEndpointCompartment', - 'Move-OCIDataconnectivityRegistryCompartment', - 'New-OCIDataconnectivityAttachDataAsset', - 'New-OCIDataconnectivityConnection', - 'New-OCIDataconnectivityConnectionValidation', - 'New-OCIDataconnectivityConnectivityValidation', - 'New-OCIDataconnectivityDataAsset', - 'New-OCIDataconnectivityDataPreview', - 'New-OCIDataconnectivityDataProfile', - 'New-OCIDataconnectivityDeReferenceArtifact', - 'New-OCIDataconnectivityDetachDataAsset', - 'New-OCIDataconnectivityEndpoint', - 'New-OCIDataconnectivityEntityShape', - 'New-OCIDataconnectivityExecuteOperationJob', - 'New-OCIDataconnectivityFolder', - 'New-OCIDataconnectivityFullPushDownTask', - 'New-OCIDataconnectivityReferenceArtifact', - 'New-OCIDataconnectivityRegistry', - 'New-OCIDataconnectivityTestNetworkConnectivity', - 'Remove-OCIDataconnectivityConnection', - 'Remove-OCIDataconnectivityDataAsset', - 'Remove-OCIDataconnectivityEndpoint', - 'Remove-OCIDataconnectivityFolder', - 'Remove-OCIDataconnectivityNetworkConnectivityStatus', - 'Remove-OCIDataconnectivityRegistry', - 'Update-OCIDataconnectivityConnection', - 'Update-OCIDataconnectivityDataAsset', - 'Update-OCIDataconnectivityEndpoint', - 'Update-OCIDataconnectivityFolder', - 'Update-OCIDataconnectivityRegistry' - -# 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','Dataconnectivity' - - # 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/Dataflow/OCI.PSModules.Dataflow.psd1 b/Dataflow/OCI.PSModules.Dataflow.psd1 index 7fca4cbb0..663812a1d 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataflow.dll' diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFolder.cs b/Dataintegration/Cmdlets/Get-OCIDataintegrationApplicationDetailedDescription.cs similarity index 55% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFolder.cs rename to Dataintegration/Cmdlets/Get-OCIDataintegrationApplicationDetailedDescription.cs index 9fab8abce..c3981c7c9 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityFolder.cs +++ b/Dataintegration/Cmdlets/Get-OCIDataintegrationApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,22 +8,22 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityFolder")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Folder), typeof(Oci.DataconnectivityService.Responses.GetFolderResponse) })] - public class GetOCIDataconnectivityFolder : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIDataintegrationApplicationDetailedDescription")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.DetailedDescription), typeof(Oci.DataintegrationService.Responses.GetApplicationDetailedDescriptionResponse) })] + public class GetOCIDataintegrationApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The folder ID.")] - public string FolderKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { 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; } @@ -31,19 +31,19 @@ public class GetOCIDataconnectivityFolder : OCIDataConnectivityManagementCmdlet protected override void ProcessRecord() { base.ProcessRecord(); - GetFolderRequest request; + GetApplicationDetailedDescriptionRequest request; try { - request = new GetFolderRequest + request = new GetApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - FolderKey = FolderKey, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, OpcRequestId = OpcRequestId }; - response = client.GetFolder(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Folder); + response = client.GetApplicationDetailedDescription(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DetailedDescription); FinishProcessing(response); } catch (OciException ex) @@ -62,6 +62,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private GetFolderResponse response; + private GetApplicationDetailedDescriptionResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnection.cs b/Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequest.cs similarity index 55% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnection.cs rename to Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequest.cs index e32e7ddbb..8c8e76c44 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityConnection.cs +++ b/Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequest.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,22 +8,22 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityConnection")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Connection), typeof(Oci.DataconnectivityService.Responses.GetConnectionResponse) })] - public class GetOCIDataconnectivityConnection : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIDataintegrationCopyObjectRequest")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.CopyObjectRequest), typeof(Oci.DataintegrationService.Responses.GetCopyObjectRequestResponse) })] + public class GetOCIDataintegrationCopyObjectRequest : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The key of the object to be copied, for example this could be the key of a project.")] + public string CopyObjectRequestKey { 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; } @@ -31,19 +31,19 @@ public class GetOCIDataconnectivityConnection : OCIDataConnectivityManagementCmd protected override void ProcessRecord() { base.ProcessRecord(); - GetConnectionRequest request; + GetCopyObjectRequestRequest request; try { - request = new GetConnectionRequest + request = new GetCopyObjectRequestRequest { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, + WorkspaceId = WorkspaceId, + CopyObjectRequestKey = CopyObjectRequestKey, OpcRequestId = OpcRequestId }; - response = client.GetConnection(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Connection); + response = client.GetCopyObjectRequest(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CopyObjectRequest); FinishProcessing(response); } catch (OciException ex) @@ -62,6 +62,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private GetConnectionResponse response; + private GetCopyObjectRequestResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchemasList.cs b/Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequestsList.cs similarity index 59% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchemasList.cs rename to Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequestsList.cs index 703c2ea0e..06f434b46 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivitySchemasList.cs +++ b/Dataintegration/Cmdlets/Get-OCIDataintegrationCopyObjectRequestsList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -10,55 +10,49 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivitySchemasList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.SchemaSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListSchemasResponse) })] - public class GetOCIDataconnectivitySchemasList : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIDataintegrationCopyObjectRequestsList")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.CopyObjectRequestSummaryCollection), typeof(Oci.DataintegrationService.Responses.ListCopyObjectRequestsResponse) })] + public class GetOCIDataintegrationCopyObjectRequestsList : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] - public System.Collections.Generic.List Fields { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] + public string Page { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] + public string Name { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } + public System.Nullable SortOrder { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Schema resource name used for retrieving schemas.")] - public string SchemaResourceKey { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order).")] + public System.Nullable SortBy { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies copy status to use, either - ALL, SUCCESSFUL, IN_PROGRESS, QUEUED, FAILED .")] + public System.Nullable CopyStatus { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public System.Collections.Generic.List NameList { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"This parameter allows users to specify which view of the copy object response to return. SUMMARY - Summary of the copy object response will be returned. This is the default option when no value is specified. DETAILS - Details of copy object response will be returned. This will include details of all the objects to be copied.")] + public System.Nullable Projection { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Endpoint ID used for getDataAssetFullDetails.")] - public string EndpointId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies start time of a copy object request.")] + public System.Nullable TimeStartedInMillis { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Artifact type which needs to be listed while listing Artifacts.")] - public System.Collections.Generic.List IncludeTypes { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies end time of a copy object request.")] + public System.Nullable TimeEndedInMillis { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -66,31 +60,29 @@ public class GetOCIDataconnectivitySchemasList : OCIDataConnectivityManagementCm protected override void ProcessRecord() { base.ProcessRecord(); - ListSchemasRequest request; + ListCopyObjectRequestsRequest request; try { - request = new ListSchemasRequest + request = new ListCopyObjectRequestsRequest { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - Page = Page, + WorkspaceId = WorkspaceId, + OpcRequestId = OpcRequestId, Limit = Limit, - Fields = Fields, - SortBy = SortBy, - SortOrder = SortOrder, - SchemaResourceKey = SchemaResourceKey, + Page = Page, Name = Name, - OpcRequestId = OpcRequestId, - NameList = NameList, - EndpointId = EndpointId, - IncludeTypes = IncludeTypes + SortOrder = SortOrder, + SortBy = SortBy, + CopyStatus = CopyStatus, + Projection = Projection, + TimeStartedInMillis = TimeStartedInMillis, + TimeEndedInMillis = TimeEndedInMillis }; - IEnumerable responses = GetRequestDelegate().Invoke(request); + IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; - WriteOutput(response, response.SchemaSummaryCollection, true); + WriteOutput(response, response.CopyObjectRequestSummaryCollection, true); } if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) { @@ -116,16 +108,16 @@ protected override void StopProcessing() private RequestDelegate GetRequestDelegate() { - IEnumerable DefaultRequest(ListSchemasRequest request) => Enumerable.Repeat(client.ListSchemas(request).GetAwaiter().GetResult(), 1); + IEnumerable DefaultRequest(ListCopyObjectRequestsRequest request) => Enumerable.Repeat(client.ListCopyObjectRequests(request).GetAwaiter().GetResult(), 1); if (ParameterSetName.Equals(AllPageSet)) { - return req => client.Paginators.ListSchemasResponseEnumerator(req); + return req => client.Paginators.ListCopyObjectRequestsResponseEnumerator(req); } return DefaultRequest; } - private ListSchemasResponse response; - private delegate IEnumerable RequestDelegate(ListSchemasRequest request); + private ListCopyObjectRequestsResponse response; + private delegate IEnumerable RequestDelegate(ListCopyObjectRequestsRequest request); private const string AllPageSet = "AllPages"; private const string LimitSet = "Limit"; } diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAsset.cs b/Dataintegration/Cmdlets/Get-OCIDataintegrationDisApplicationDetailedDescription.cs similarity index 55% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAsset.cs rename to Dataintegration/Cmdlets/Get-OCIDataintegrationDisApplicationDetailedDescription.cs index 8f60feb31..e1b643dc8 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityDataAsset.cs +++ b/Dataintegration/Cmdlets/Get-OCIDataintegrationDisApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,22 +8,22 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityDataAsset")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataAsset), typeof(Oci.DataconnectivityService.Responses.GetDataAssetResponse) })] - public class GetOCIDataconnectivityDataAsset : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIDataintegrationDisApplicationDetailedDescription")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.DetailedDescription), typeof(Oci.DataintegrationService.Responses.GetDisApplicationDetailedDescriptionResponse) })] + public class GetOCIDataintegrationDisApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The data asset key.")] - public string DataAssetKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { 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; } @@ -31,19 +31,19 @@ public class GetOCIDataconnectivityDataAsset : OCIDataConnectivityManagementCmdl protected override void ProcessRecord() { base.ProcessRecord(); - GetDataAssetRequest request; + GetDisApplicationDetailedDescriptionRequest request; try { - request = new GetDataAssetRequest + request = new GetDisApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - DataAssetKey = DataAssetKey, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, OpcRequestId = OpcRequestId }; - response = client.GetDataAsset(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DataAsset); + response = client.GetDisApplicationDetailedDescription(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DetailedDescription); FinishProcessing(response); } catch (OciException ex) @@ -62,6 +62,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private GetDataAssetResponse response; + private GetDisApplicationDetailedDescriptionResponse response; } } diff --git a/Dataintegration/Cmdlets/Get-OCIDataintegrationTaskRunsList.cs b/Dataintegration/Cmdlets/Get-OCIDataintegrationTaskRunsList.cs index 5722c0b83..8cdf3a0cb 100644 --- a/Dataintegration/Cmdlets/Get-OCIDataintegrationTaskRunsList.cs +++ b/Dataintegration/Cmdlets/Get-OCIDataintegrationTaskRunsList.cs @@ -63,6 +63,9 @@ public class GetOCIDataintegrationTaskRunsList : OCIDataIntegrationCmdlet [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"This parameter can be used to filter objects by the names starting with the given value.")] public string NameStartsWith { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"This parameter can be used to filter objects by the names that match partially or fully with the given value.")] + public string NameContains { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -88,7 +91,8 @@ protected override void ProcessRecord() SortOrder = SortOrder, SortBy = SortBy, Filter = Filter, - NameStartsWith = NameStartsWith + NameStartsWith = NameStartsWith, + NameContains = NameContains }; IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpoint.cs b/Dataintegration/Cmdlets/Get-OCIDataintegrationTemplate.cs similarity index 68% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpoint.cs rename to Dataintegration/Cmdlets/Get-OCIDataintegrationTemplate.cs index 262e4b603..d5c5dcedf 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityEndpoint.cs +++ b/Dataintegration/Cmdlets/Get-OCIDataintegrationTemplate.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,27 +8,27 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; using Oci.Common.Waiters; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityEndpoint", DefaultParameterSetName = Default)] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Endpoint), typeof(Oci.DataconnectivityService.Responses.GetEndpointResponse) })] - public class GetOCIDataconnectivityEndpoint : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIDataintegrationTemplate", DefaultParameterSetName = Default)] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.Template), typeof(Oci.DataintegrationService.Responses.GetTemplateResponse) })] + public class GetOCIDataintegrationTemplate : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.", ParameterSetName = LifecycleStateParamSet)] - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.", ParameterSetName = Default)] - public string EndpointId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.", ParameterSetName = Default)] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID", ParameterSetName = LifecycleStateParamSet)] - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID", ParameterSetName = Default)] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the template.", ParameterSetName = LifecycleStateParamSet)] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The OCID of the template.", ParameterSetName = Default)] + public string TemplateId { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.", ParameterSetName = LifecycleStateParamSet)] @@ -36,7 +36,7 @@ public class GetOCIDataconnectivityEndpoint : OCIDataConnectivityManagementCmdle 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.DataconnectivityService.Models.Endpoint.LifecycleStateEnum[] WaitForLifecycleState { get; set; } + public Oci.DataintegrationService.Models.Template.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; @@ -47,14 +47,14 @@ public class GetOCIDataconnectivityEndpoint : OCIDataConnectivityManagementCmdle protected override void ProcessRecord() { base.ProcessRecord(); - GetEndpointRequest request; + GetTemplateRequest request; try { - request = new GetEndpointRequest + request = new GetTemplateRequest { - EndpointId = EndpointId, - RegistryId = RegistryId, + WorkspaceId = WorkspaceId, + TemplateId = TemplateId, OpcRequestId = OpcRequestId }; @@ -77,7 +77,7 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private void HandleOutput(GetEndpointRequest request) + private void HandleOutput(GetTemplateRequest request) { var waiterConfig = new WaiterConfiguration { @@ -88,17 +88,17 @@ private void HandleOutput(GetEndpointRequest request) switch (ParameterSetName) { case LifecycleStateParamSet: - response = client.Waiters.ForEndpoint(request, waiterConfig, WaitForLifecycleState).Execute(); + response = client.Waiters.ForTemplate(request, waiterConfig, WaitForLifecycleState).Execute(); break; case Default: - response = client.GetEndpoint(request).GetAwaiter().GetResult(); + response = client.GetTemplate(request).GetAwaiter().GetResult(); break; } - WriteOutput(response, response.Endpoint); + WriteOutput(response, response.Template); } - private GetEndpointResponse response; + private GetTemplateResponse response; private const string LifecycleStateParamSet = "LifecycleStateParamSet"; private const string Default = "Default"; } diff --git a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityTypesList.cs b/Dataintegration/Cmdlets/Get-OCIDataintegrationTemplatesList.cs similarity index 65% rename from Dataconnectivity/Cmdlets/Get-OCIDataconnectivityTypesList.cs rename to Dataintegration/Cmdlets/Get-OCIDataintegrationTemplatesList.cs index 46c80bc16..5559282bb 100644 --- a/Dataconnectivity/Cmdlets/Get-OCIDataconnectivityTypesList.cs +++ b/Dataintegration/Cmdlets/Get-OCIDataintegrationTemplatesList.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -10,40 +10,43 @@ using System.Collections.Generic; using System.Linq; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Get", "OCIDataconnectivityTypesList")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.TypesSummaryCollection), typeof(Oci.DataconnectivityService.Responses.ListTypesResponse) })] - public class GetOCIDataconnectivityTypesList : OCIDataConnectivityManagementCmdlet + [Cmdlet("Get", "OCIDataintegrationTemplatesList")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.TemplateSummaryCollection), typeof(Oci.DataintegrationService.Responses.ListTemplatesResponse) })] + public class GetOCIDataintegrationTemplatesList : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] - public string OpcRequestId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] + public string Name { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] - public string Page { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the identifier of the published object.")] + public System.Collections.Generic.List Identifier { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the fields to get for an object.")] + public System.Collections.Generic.List Fields { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Sets the maximum number of results per page, or items to return in a paginated `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).", ParameterSetName = LimitSet)] public System.Nullable Limit { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Type of the object to filter the results with.")] - public string Type { get; set; } - - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order are by relevance score in descending order).")] - public System.Nullable SortBy { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value for this parameter is the `opc-next-page` or the `opc-prev-page` response header from the previous `List` call. See [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).")] + public string Page { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies sort order to use, either `ASC` (ascending) or `DESC` (descending).")] - public System.Nullable SortOrder { get; set; } + public System.Nullable SortOrder { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to filter by the name of the object.")] - public string Name { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specifies the field to sort by. Accepts only one field. By default, when you sort by time fields, results are shown in descending order. All other fields default to ascending order. Sorting related parameters are ignored when parameter `query` is present (search operation and sorting order is by relevance score in descending order).")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] public SwitchParameter All { get; set; } @@ -51,26 +54,27 @@ public class GetOCIDataconnectivityTypesList : OCIDataConnectivityManagementCmdl protected override void ProcessRecord() { base.ProcessRecord(); - ListTypesRequest request; + ListTemplatesRequest request; try { - request = new ListTypesRequest + request = new ListTemplatesRequest { - RegistryId = RegistryId, - OpcRequestId = OpcRequestId, - Page = Page, + WorkspaceId = WorkspaceId, + Name = Name, + Identifier = Identifier, + Fields = Fields, Limit = Limit, - Type = Type, - SortBy = SortBy, + Page = Page, SortOrder = SortOrder, - Name = Name + SortBy = SortBy, + OpcRequestId = OpcRequestId }; - IEnumerable responses = GetRequestDelegate().Invoke(request); + IEnumerable responses = GetRequestDelegate().Invoke(request); foreach (var item in responses) { response = item; - WriteOutput(response, response.TypesSummaryCollection, true); + WriteOutput(response, response.TemplateSummaryCollection, true); } if(!ParameterSetName.Equals(AllPageSet) && !ParameterSetName.Equals(LimitSet) && response.OpcNextPage != null) { @@ -96,16 +100,16 @@ protected override void StopProcessing() private RequestDelegate GetRequestDelegate() { - IEnumerable DefaultRequest(ListTypesRequest request) => Enumerable.Repeat(client.ListTypes(request).GetAwaiter().GetResult(), 1); + IEnumerable DefaultRequest(ListTemplatesRequest request) => Enumerable.Repeat(client.ListTemplates(request).GetAwaiter().GetResult(), 1); if (ParameterSetName.Equals(AllPageSet)) { - return req => client.Paginators.ListTypesResponseEnumerator(req); + return req => client.Paginators.ListTemplatesResponseEnumerator(req); } return DefaultRequest; } - private ListTypesResponse response; - private delegate IEnumerable RequestDelegate(ListTypesRequest request); + private ListTemplatesResponse response; + private delegate IEnumerable RequestDelegate(ListTemplatesRequest request); private const string AllPageSet = "AllPages"; private const string LimitSet = "Limit"; } diff --git a/Dataconnectivity/Cmdlets/Invoke-OCIDataconnectivityDeriveEntities.cs b/Dataintegration/Cmdlets/New-OCIDataintegrationApplicationDetailedDescription.cs similarity index 52% rename from Dataconnectivity/Cmdlets/Invoke-OCIDataconnectivityDeriveEntities.cs rename to Dataintegration/Cmdlets/New-OCIDataintegrationApplicationDetailedDescription.cs index 1fb998b11..ecb835844 100644 --- a/Dataconnectivity/Cmdlets/Invoke-OCIDataconnectivityDeriveEntities.cs +++ b/Dataintegration/Cmdlets/New-OCIDataintegrationApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,46 +8,50 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Invoke", "OCIDataconnectivityDeriveEntities")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DeriveEntities), typeof(Oci.DataconnectivityService.Responses.DeriveEntitiesResponse) })] - public class InvokeOCIDataconnectivityDeriveEntities : OCIDataConnectivityManagementCmdlet + [Cmdlet("New", "OCIDataintegrationApplicationDetailedDescription")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.DetailedDescription), typeof(Oci.DataintegrationService.Responses.CreateApplicationDetailedDescriptionResponse) })] + public class NewOCIDataintegrationApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details needed to create the derived entities.")] - public DeriveEntitiesDetails DeriveEntitiesDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Detailed description of an application.")] + public CreateDetailedDescriptionDetails CreateApplicationDetailedDescriptionDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] + [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.")] public string OpcRetryToken { get; set; } protected override void ProcessRecord() { base.ProcessRecord(); - DeriveEntitiesRequest request; + CreateApplicationDetailedDescriptionRequest request; try { - request = new DeriveEntitiesRequest + request = new CreateApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - DeriveEntitiesDetails = DeriveEntitiesDetails, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, + CreateApplicationDetailedDescriptionDetails = CreateApplicationDetailedDescriptionDetails, OpcRequestId = OpcRequestId, OpcRetryToken = OpcRetryToken }; - response = client.DeriveEntities(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DeriveEntities); + response = client.CreateApplicationDetailedDescription(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DetailedDescription); FinishProcessing(response); } catch (OciException ex) @@ -66,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private DeriveEntitiesResponse response; + private CreateApplicationDetailedDescriptionResponse response; } } diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnection.cs b/Dataintegration/Cmdlets/New-OCIDataintegrationCopyObjectRequest.cs similarity index 58% rename from Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnection.cs rename to Dataintegration/Cmdlets/New-OCIDataintegrationCopyObjectRequest.cs index 4d7688cdc..54fa2c693 100644 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityConnection.cs +++ b/Dataintegration/Cmdlets/New-OCIDataintegrationCopyObjectRequest.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,46 +8,46 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("New", "OCIDataconnectivityConnection")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Connection), typeof(Oci.DataconnectivityService.Responses.CreateConnectionResponse) })] - public class NewOCIDataconnectivityConnection : OCIDataConnectivityManagementCmdlet + [Cmdlet("New", "OCIDataintegrationCopyObjectRequest")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.CopyObjectRequest), typeof(Oci.DataintegrationService.Responses.CreateCopyObjectRequestResponse) })] + public class NewOCIDataintegrationCopyObjectRequest : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to create a connection.")] - public CreateConnectionDetails CreateConnectionDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details needed to copy metadata object.")] + public CreateCopyObjectRequestDetails CreateCopyObjectRequestDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] + [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.")] public string OpcRetryToken { get; set; } protected override void ProcessRecord() { base.ProcessRecord(); - CreateConnectionRequest request; + CreateCopyObjectRequestRequest request; try { - request = new CreateConnectionRequest + request = new CreateCopyObjectRequestRequest { - RegistryId = RegistryId, - CreateConnectionDetails = CreateConnectionDetails, + WorkspaceId = WorkspaceId, + CreateCopyObjectRequestDetails = CreateCopyObjectRequestDetails, OpcRequestId = OpcRequestId, OpcRetryToken = OpcRetryToken }; - response = client.CreateConnection(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Connection); + response = client.CreateCopyObjectRequest(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CopyObjectRequest); FinishProcessing(response); } catch (OciException ex) @@ -66,6 +66,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private CreateConnectionResponse response; + private CreateCopyObjectRequestResponse response; } } diff --git a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataAsset.cs b/Dataintegration/Cmdlets/New-OCIDataintegrationDisApplicationDetailedDescription.cs similarity index 52% rename from Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataAsset.cs rename to Dataintegration/Cmdlets/New-OCIDataintegrationDisApplicationDetailedDescription.cs index 1cea97b31..6dc0faf03 100644 --- a/Dataconnectivity/Cmdlets/New-OCIDataconnectivityDataAsset.cs +++ b/Dataintegration/Cmdlets/New-OCIDataintegrationDisApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,46 +8,50 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("New", "OCIDataconnectivityDataAsset")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataAsset), typeof(Oci.DataconnectivityService.Responses.CreateDataAssetResponse) })] - public class NewOCIDataconnectivityDataAsset : OCIDataConnectivityManagementCmdlet + [Cmdlet("New", "OCIDataintegrationDisApplicationDetailedDescription")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.DetailedDescription), typeof(Oci.DataintegrationService.Responses.CreateDisApplicationDetailedDescriptionResponse) })] + public class NewOCIDataintegrationDisApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to create a data asset.")] - public CreateDataAssetDetails CreateDataAssetDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Detailed description of an application.")] + public CreateDetailedDescriptionDetails CreateDisApplicationDetailedDescriptionDetails { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] + [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.")] public string OpcRetryToken { get; set; } protected override void ProcessRecord() { base.ProcessRecord(); - CreateDataAssetRequest request; + CreateDisApplicationDetailedDescriptionRequest request; try { - request = new CreateDataAssetRequest + request = new CreateDisApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - CreateDataAssetDetails = CreateDataAssetDetails, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, + CreateDisApplicationDetailedDescriptionDetails = CreateDisApplicationDetailedDescriptionDetails, OpcRequestId = OpcRequestId, OpcRetryToken = OpcRetryToken }; - response = client.CreateDataAsset(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DataAsset); + response = client.CreateDisApplicationDetailedDescription(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DetailedDescription); FinishProcessing(response); } catch (OciException ex) @@ -66,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private CreateDataAssetResponse response; + private CreateDisApplicationDetailedDescriptionResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityFolder.cs b/Dataintegration/Cmdlets/Remove-OCIDataintegrationApplicationDetailedDescription.cs similarity index 67% rename from Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityFolder.cs rename to Dataintegration/Cmdlets/Remove-OCIDataintegrationApplicationDetailedDescription.cs index 2386e785b..9082d3dd1 100644 --- a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityFolder.cs +++ b/Dataintegration/Cmdlets/Remove-OCIDataintegrationApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,22 +8,22 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Remove", "OCIDataconnectivityFolder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - [OutputType(new System.Type[] { typeof(void), typeof(Oci.DataconnectivityService.Responses.DeleteFolderResponse) })] - public class RemoveOCIDataconnectivityFolder : OCIDataConnectivityManagementCmdlet + [Cmdlet("Remove", "OCIDataintegrationApplicationDetailedDescription", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.DataintegrationService.Responses.DeleteApplicationDetailedDescriptionResponse) })] + public class RemoveOCIDataintegrationApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The folder ID.")] - public string FolderKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] public string IfMatch { get; set; } @@ -38,24 +38,24 @@ protected override void ProcessRecord() { base.ProcessRecord(); - if (!ConfirmDelete("OCIDataconnectivityFolder", "Remove")) + if (!ConfirmDelete("OCIDataintegrationApplicationDetailedDescription", "Remove")) { return; } - DeleteFolderRequest request; + DeleteApplicationDetailedDescriptionRequest request; try { - request = new DeleteFolderRequest + request = new DeleteApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - FolderKey = FolderKey, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, IfMatch = IfMatch, OpcRequestId = OpcRequestId }; - response = client.DeleteFolder(request).GetAwaiter().GetResult(); + response = client.DeleteApplicationDetailedDescription(request).GetAwaiter().GetResult(); WriteOutput(response); FinishProcessing(response); } @@ -75,6 +75,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private DeleteFolderResponse response; + private DeleteApplicationDetailedDescriptionResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityNetworkConnectivityStatus.cs b/Dataintegration/Cmdlets/Remove-OCIDataintegrationCopyObjectRequest.cs similarity index 66% rename from Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityNetworkConnectivityStatus.cs rename to Dataintegration/Cmdlets/Remove-OCIDataintegrationCopyObjectRequest.cs index 1712ee02d..f67f27f4d 100644 --- a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityNetworkConnectivityStatus.cs +++ b/Dataintegration/Cmdlets/Remove-OCIDataintegrationCopyObjectRequest.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,22 +8,22 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Remove", "OCIDataconnectivityNetworkConnectivityStatus", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - [OutputType(new System.Type[] { typeof(void), typeof(Oci.DataconnectivityService.Responses.DeleteNetworkConnectivityStatusResponse) })] - public class RemoveOCIDataconnectivityNetworkConnectivityStatus : OCIDataConnectivityManagementCmdlet + [Cmdlet("Remove", "OCIDataintegrationCopyObjectRequest", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.DataintegrationService.Responses.DeleteCopyObjectRequestResponse) })] + public class RemoveOCIDataintegrationCopyObjectRequest : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"NetworkValidationStatus key.")] - public string NetworkValidationStatusKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The key of the object to be copied, for example this could be the key of a project.")] + public string CopyObjectRequestKey { 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; } @@ -38,24 +38,24 @@ protected override void ProcessRecord() { base.ProcessRecord(); - if (!ConfirmDelete("OCIDataconnectivityNetworkConnectivityStatus", "Remove")) + if (!ConfirmDelete("OCIDataintegrationCopyObjectRequest", "Remove")) { return; } - DeleteNetworkConnectivityStatusRequest request; + DeleteCopyObjectRequestRequest request; try { - request = new DeleteNetworkConnectivityStatusRequest + request = new DeleteCopyObjectRequestRequest { - RegistryId = RegistryId, - NetworkValidationStatusKey = NetworkValidationStatusKey, + WorkspaceId = WorkspaceId, + CopyObjectRequestKey = CopyObjectRequestKey, OpcRequestId = OpcRequestId, IfMatch = IfMatch }; - response = client.DeleteNetworkConnectivityStatus(request).GetAwaiter().GetResult(); + response = client.DeleteCopyObjectRequest(request).GetAwaiter().GetResult(); WriteOutput(response); FinishProcessing(response); } @@ -75,6 +75,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private DeleteNetworkConnectivityStatusResponse response; + private DeleteCopyObjectRequestResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityDataAsset.cs b/Dataintegration/Cmdlets/Remove-OCIDataintegrationDisApplicationDetailedDescription.cs similarity index 66% rename from Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityDataAsset.cs rename to Dataintegration/Cmdlets/Remove-OCIDataintegrationDisApplicationDetailedDescription.cs index 5ef1e5c74..b0d060f7a 100644 --- a/Dataconnectivity/Cmdlets/Remove-OCIDataconnectivityDataAsset.cs +++ b/Dataintegration/Cmdlets/Remove-OCIDataintegrationDisApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,22 +8,22 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Remove", "OCIDataconnectivityDataAsset", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - [OutputType(new System.Type[] { typeof(void), typeof(Oci.DataconnectivityService.Responses.DeleteDataAssetResponse) })] - public class RemoveOCIDataconnectivityDataAsset : OCIDataConnectivityManagementCmdlet + [Cmdlet("Remove", "OCIDataintegrationDisApplicationDetailedDescription", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.DataintegrationService.Responses.DeleteDisApplicationDetailedDescriptionResponse) })] + public class RemoveOCIDataintegrationDisApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The data asset key.")] - public string DataAssetKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] public string IfMatch { get; set; } @@ -38,24 +38,24 @@ protected override void ProcessRecord() { base.ProcessRecord(); - if (!ConfirmDelete("OCIDataconnectivityDataAsset", "Remove")) + if (!ConfirmDelete("OCIDataintegrationDisApplicationDetailedDescription", "Remove")) { return; } - DeleteDataAssetRequest request; + DeleteDisApplicationDetailedDescriptionRequest request; try { - request = new DeleteDataAssetRequest + request = new DeleteDisApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - DataAssetKey = DataAssetKey, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, IfMatch = IfMatch, OpcRequestId = OpcRequestId }; - response = client.DeleteDataAsset(request).GetAwaiter().GetResult(); + response = client.DeleteDisApplicationDetailedDescription(request).GetAwaiter().GetResult(); WriteOutput(response); FinishProcessing(response); } @@ -75,6 +75,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private DeleteDataAssetResponse response; + private DeleteDisApplicationDetailedDescriptionResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityDataAsset.cs b/Dataintegration/Cmdlets/Update-OCIDataintegrationApplicationDetailedDescription.cs similarity index 58% rename from Dataconnectivity/Cmdlets/Update-OCIDataconnectivityDataAsset.cs rename to Dataintegration/Cmdlets/Update-OCIDataintegrationApplicationDetailedDescription.cs index 599c9f471..4df50d3ae 100644 --- a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityDataAsset.cs +++ b/Dataintegration/Cmdlets/Update-OCIDataintegrationApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,25 +8,25 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Update", "OCIDataconnectivityDataAsset")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.DataAsset), typeof(Oci.DataconnectivityService.Responses.UpdateDataAssetResponse) })] - public class UpdateOCIDataconnectivityDataAsset : OCIDataConnectivityManagementCmdlet + [Cmdlet("Update", "OCIDataintegrationApplicationDetailedDescription")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.DetailedDescription), typeof(Oci.DataintegrationService.Responses.UpdateApplicationDetailedDescriptionResponse) })] + public class UpdateOCIDataintegrationApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The data asset key.")] - public string DataAssetKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to update a data asset.")] - public UpdateDataAssetDetails UpdateDataAssetDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details needed to update the detailed description of Application")] + public UpdateDetailedDescriptionDetails UpdateApplicationDetailedDescriptionDetails { 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; } @@ -37,21 +37,21 @@ public class UpdateOCIDataconnectivityDataAsset : OCIDataConnectivityManagementC protected override void ProcessRecord() { base.ProcessRecord(); - UpdateDataAssetRequest request; + UpdateApplicationDetailedDescriptionRequest request; try { - request = new UpdateDataAssetRequest + request = new UpdateApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - DataAssetKey = DataAssetKey, - UpdateDataAssetDetails = UpdateDataAssetDetails, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, + UpdateApplicationDetailedDescriptionDetails = UpdateApplicationDetailedDescriptionDetails, OpcRequestId = OpcRequestId, IfMatch = IfMatch }; - response = client.UpdateDataAsset(request).GetAwaiter().GetResult(); - WriteOutput(response, response.DataAsset); + response = client.UpdateApplicationDetailedDescription(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DetailedDescription); FinishProcessing(response); } catch (OciException ex) @@ -70,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private UpdateDataAssetResponse response; + private UpdateApplicationDetailedDescriptionResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityConnection.cs b/Dataintegration/Cmdlets/Update-OCIDataintegrationCopyObjectRequest.cs similarity index 59% rename from Dataconnectivity/Cmdlets/Update-OCIDataconnectivityConnection.cs rename to Dataintegration/Cmdlets/Update-OCIDataintegrationCopyObjectRequest.cs index 65d7eb272..9452424f6 100644 --- a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityConnection.cs +++ b/Dataintegration/Cmdlets/Update-OCIDataintegrationCopyObjectRequest.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,25 +8,25 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Update", "OCIDataconnectivityConnection")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Connection), typeof(Oci.DataconnectivityService.Responses.UpdateConnectionResponse) })] - public class UpdateOCIDataconnectivityConnection : OCIDataConnectivityManagementCmdlet + [Cmdlet("Update", "OCIDataintegrationCopyObjectRequest")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.CopyObjectRequest), typeof(Oci.DataintegrationService.Responses.UpdateCopyObjectRequestResponse) })] + public class UpdateOCIDataintegrationCopyObjectRequest : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The connection key.")] - public string ConnectionKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The key of the object to be copied, for example this could be the key of a project.")] + public string CopyObjectRequestKey { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to update a connection.")] - public UpdateConnectionDetails UpdateConnectionDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details needed to update the status of a copy object request.")] + public UpdateCopyObjectRequestDetails UpdateCopyObjectRequestDetails { 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; } @@ -37,21 +37,21 @@ public class UpdateOCIDataconnectivityConnection : OCIDataConnectivityManagement protected override void ProcessRecord() { base.ProcessRecord(); - UpdateConnectionRequest request; + UpdateCopyObjectRequestRequest request; try { - request = new UpdateConnectionRequest + request = new UpdateCopyObjectRequestRequest { - RegistryId = RegistryId, - ConnectionKey = ConnectionKey, - UpdateConnectionDetails = UpdateConnectionDetails, + WorkspaceId = WorkspaceId, + CopyObjectRequestKey = CopyObjectRequestKey, + UpdateCopyObjectRequestDetails = UpdateCopyObjectRequestDetails, OpcRequestId = OpcRequestId, IfMatch = IfMatch }; - response = client.UpdateConnection(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Connection); + response = client.UpdateCopyObjectRequest(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CopyObjectRequest); FinishProcessing(response); } catch (OciException ex) @@ -70,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private UpdateConnectionResponse response; + private UpdateCopyObjectRequestResponse response; } } diff --git a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityFolder.cs b/Dataintegration/Cmdlets/Update-OCIDataintegrationDisApplicationDetailedDescription.cs similarity index 58% rename from Dataconnectivity/Cmdlets/Update-OCIDataconnectivityFolder.cs rename to Dataintegration/Cmdlets/Update-OCIDataintegrationDisApplicationDetailedDescription.cs index 6a7e67abb..5991c7d33 100644 --- a/Dataconnectivity/Cmdlets/Update-OCIDataconnectivityFolder.cs +++ b/Dataintegration/Cmdlets/Update-OCIDataintegrationDisApplicationDetailedDescription.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200430 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,25 +8,25 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.DataintegrationService.Requests; +using Oci.DataintegrationService.Responses; +using Oci.DataintegrationService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.DataintegrationService.Cmdlets { - [Cmdlet("Update", "OCIDataconnectivityFolder")] - [OutputType(new System.Type[] { typeof(Oci.DataconnectivityService.Models.Folder), typeof(Oci.DataconnectivityService.Responses.UpdateFolderResponse) })] - public class UpdateOCIDataconnectivityFolder : OCIDataConnectivityManagementCmdlet + [Cmdlet("Update", "OCIDataintegrationDisApplicationDetailedDescription")] + [OutputType(new System.Type[] { typeof(Oci.DataintegrationService.Models.DetailedDescription), typeof(Oci.DataintegrationService.Responses.UpdateDisApplicationDetailedDescriptionResponse) })] + public class UpdateOCIDataintegrationDisApplicationDetailedDescription : OCIDataIntegrationCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The workspace ID.")] + public string WorkspaceId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The folder ID.")] - public string FolderKey { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The application key.")] + public string ApplicationKey { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The information required to update a folder.")] - public UpdateFolderDetails UpdateFolderDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details needed to update the detailed description of Application.")] + public UpdateDetailedDescriptionDetails UpdateDisApplicationDetailedDescriptionDetails { 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; } @@ -37,21 +37,21 @@ public class UpdateOCIDataconnectivityFolder : OCIDataConnectivityManagementCmdl protected override void ProcessRecord() { base.ProcessRecord(); - UpdateFolderRequest request; + UpdateDisApplicationDetailedDescriptionRequest request; try { - request = new UpdateFolderRequest + request = new UpdateDisApplicationDetailedDescriptionRequest { - RegistryId = RegistryId, - FolderKey = FolderKey, - UpdateFolderDetails = UpdateFolderDetails, + WorkspaceId = WorkspaceId, + ApplicationKey = ApplicationKey, + UpdateDisApplicationDetailedDescriptionDetails = UpdateDisApplicationDetailedDescriptionDetails, OpcRequestId = OpcRequestId, IfMatch = IfMatch }; - response = client.UpdateFolder(request).GetAwaiter().GetResult(); - WriteOutput(response, response.Folder); + response = client.UpdateDisApplicationDetailedDescription(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DetailedDescription); FinishProcessing(response); } catch (OciException ex) @@ -70,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private UpdateFolderResponse response; + private UpdateDisApplicationDetailedDescriptionResponse response; } } diff --git a/Dataintegration/OCI.PSModules.Dataintegration.psd1 b/Dataintegration/OCI.PSModules.Dataintegration.psd1 index d9335fef5..c39d0640e 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Dataintegration.dll' @@ -72,11 +72,14 @@ 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-OCIDataintegrationApplication', + 'Get-OCIDataintegrationApplicationDetailedDescription', 'Get-OCIDataintegrationApplicationsList', 'Get-OCIDataintegrationConnection', 'Get-OCIDataintegrationConnectionsList', 'Get-OCIDataintegrationConnectionValidation', 'Get-OCIDataintegrationConnectionValidationsList', + 'Get-OCIDataintegrationCopyObjectRequest', + 'Get-OCIDataintegrationCopyObjectRequestsList', 'Get-OCIDataintegrationCountStatistic', 'Get-OCIDataintegrationDataAsset', 'Get-OCIDataintegrationDataAssetsList', @@ -89,6 +92,7 @@ CmdletsToExport = 'Get-OCIDataintegrationApplication', 'Get-OCIDataintegrationDependentObject', 'Get-OCIDataintegrationDependentObjectsList', 'Get-OCIDataintegrationDisApplication', + 'Get-OCIDataintegrationDisApplicationDetailedDescription', 'Get-OCIDataintegrationDisApplicationsList', 'Get-OCIDataintegrationDisApplicationTaskRunLineagesList', 'Get-OCIDataintegrationExternalPublication', @@ -127,6 +131,8 @@ CmdletsToExport = 'Get-OCIDataintegrationApplication', 'Get-OCIDataintegrationTasksList', 'Get-OCIDataintegrationTaskValidation', 'Get-OCIDataintegrationTaskValidationsList', + 'Get-OCIDataintegrationTemplate', + 'Get-OCIDataintegrationTemplatesList', 'Get-OCIDataintegrationUserDefinedFunction', 'Get-OCIDataintegrationUserDefinedFunctionsList', 'Get-OCIDataintegrationUserDefinedFunctionValidation', @@ -140,11 +146,14 @@ CmdletsToExport = 'Get-OCIDataintegrationApplication', 'Move-OCIDataintegrationCompartment', 'Move-OCIDataintegrationDisApplicationCompartment', 'New-OCIDataintegrationApplication', + 'New-OCIDataintegrationApplicationDetailedDescription', 'New-OCIDataintegrationConnection', 'New-OCIDataintegrationConnectionValidation', + 'New-OCIDataintegrationCopyObjectRequest', 'New-OCIDataintegrationDataAsset', 'New-OCIDataintegrationDataFlow', 'New-OCIDataintegrationDataFlowValidation', 'New-OCIDataintegrationDisApplication', + 'New-OCIDataintegrationDisApplicationDetailedDescription', 'New-OCIDataintegrationEntityShape', 'New-OCIDataintegrationExternalPublication', 'New-OCIDataintegrationExternalPublicationValidation', @@ -160,12 +169,15 @@ CmdletsToExport = 'Get-OCIDataintegrationApplication', 'New-OCIDataintegrationUserDefinedFunctionValidation', 'New-OCIDataintegrationWorkspace', 'Remove-OCIDataintegrationApplication', + 'Remove-OCIDataintegrationApplicationDetailedDescription', 'Remove-OCIDataintegrationConnection', 'Remove-OCIDataintegrationConnectionValidation', + 'Remove-OCIDataintegrationCopyObjectRequest', 'Remove-OCIDataintegrationDataAsset', 'Remove-OCIDataintegrationDataFlow', 'Remove-OCIDataintegrationDataFlowValidation', 'Remove-OCIDataintegrationDisApplication', + 'Remove-OCIDataintegrationDisApplicationDetailedDescription', 'Remove-OCIDataintegrationExternalPublication', 'Remove-OCIDataintegrationExternalPublicationValidation', 'Remove-OCIDataintegrationFolder', @@ -184,10 +196,13 @@ CmdletsToExport = 'Get-OCIDataintegrationApplication', 'Start-OCIDataintegrationWorkspace', 'Stop-OCIDataintegrationWorkspace', 'Update-OCIDataintegrationApplication', + 'Update-OCIDataintegrationApplicationDetailedDescription', 'Update-OCIDataintegrationConnection', + 'Update-OCIDataintegrationCopyObjectRequest', 'Update-OCIDataintegrationDataAsset', 'Update-OCIDataintegrationDataFlow', 'Update-OCIDataintegrationDisApplication', + 'Update-OCIDataintegrationDisApplicationDetailedDescription', 'Update-OCIDataintegrationExternalPublication', 'Update-OCIDataintegrationFolder', 'Update-OCIDataintegrationFunctionLibrary', diff --git a/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 b/Datalabelingservice/OCI.PSModules.Datalabelingservice.psd1 index aff8141fc..9a996c7db 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 e8df7cbdf..aadf43c93 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 7db589fe2..dd32803c1 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Datasafe.dll' diff --git a/Datascience/OCI.PSModules.Datascience.psd1 b/Datascience/OCI.PSModules.Datascience.psd1 index 948e7947a..982bb2edf 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 1a098d1e1..ccdcb2234 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 5d52201c0..3badd686d 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 54.0.0 + 55.0.0 diff --git a/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 b/Disasterrecovery/OCI.PSModules.Disasterrecovery.psd1 index 3fa8cef97..d606f7aa4 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 ccab4a2fd..d94a9c8b3 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 c3f559455..8d2a25f6b 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 172eabb03..b8f11b6ec 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 383659394..d8fc30af3 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 ad73d19b2..11a28f69c 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 efd798a5d..5ee3b3adf 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Filestorage.dll' diff --git a/Functions/OCI.PSModules.Functions.psd1 b/Functions/OCI.PSModules.Functions.psd1 index af5317b39..a2b7ed63b 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 e2a7ebd1d..284ee4f70 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 66d5d573c..af09316ea 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Genericartifactscontent.dll' diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentTypesList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentTypesList.cs index ce1fbc56c..4012f5af2 100644 --- a/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentTypesList.cs +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentTypesList.cs @@ -24,6 +24,12 @@ public class GetOCIGoldengateDeploymentTypesList : OCIGoldenGateCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] public string CompartmentId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.")] + public System.Nullable DeploymentType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Allows to query by a specific GoldenGate version.")] + public string OggVersion { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A filter to return only the resources that match the entire 'displayName' given.")] public string DisplayName { get; set; } @@ -55,6 +61,8 @@ protected override void ProcessRecord() request = new ListDeploymentTypesRequest { CompartmentId = CompartmentId, + DeploymentType = DeploymentType, + OggVersion = OggVersion, DisplayName = DisplayName, OpcRequestId = OpcRequestId, Limit = Limit, diff --git a/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentVersionsList.cs b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentVersionsList.cs new file mode 100644 index 000000000..ba592ad45 --- /dev/null +++ b/Goldengate/Cmdlets/Get-OCIGoldengateDeploymentVersionsList.cs @@ -0,0 +1,112 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; +using Oci.Common.Model; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Get", "OCIGoldengateDeploymentVersionsList")] + [OutputType(new System.Type[] { typeof(Oci.GoldengateService.Models.DeploymentVersionCollection), typeof(Oci.GoldengateService.Responses.ListDeploymentVersionsResponse) })] + public class GetOCIGoldengateDeploymentVersionsList : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the deployment in which to list resources.")] + public string DeploymentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The type of deployment, the value determines the exact 'type' of the service executed in the deployment. Default value is DATABASE_ORACLE.")] + public System.Nullable DeploymentType { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] + public string OpcRequestId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return.", ParameterSetName = LimitSet)] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The sort order to use, either 'asc' or 'desc'.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is descending. Default order for 'displayName' is ascending. If no value is specified timeCreated is the default.")] + public System.Nullable SortBy { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Fetches all pages of results.", ParameterSetName = AllPageSet)] + public SwitchParameter All { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListDeploymentVersionsRequest request; + + try + { + request = new ListDeploymentVersionsRequest + { + CompartmentId = CompartmentId, + DeploymentId = DeploymentId, + DeploymentType = DeploymentType, + OpcRequestId = OpcRequestId, + Limit = Limit, + Page = Page, + SortOrder = SortOrder, + SortBy = SortBy + }; + IEnumerable responses = GetRequestDelegate().Invoke(request); + foreach (var item in responses) + { + response = item; + WriteOutput(response, response.DeploymentVersionCollection, 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(ListDeploymentVersionsRequest request) => Enumerable.Repeat(client.ListDeploymentVersions(request).GetAwaiter().GetResult(), 1); + if (ParameterSetName.Equals(AllPageSet)) + { + return req => client.Paginators.ListDeploymentVersionsResponseEnumerator(req); + } + return DefaultRequest; + } + + private ListDeploymentVersionsResponse response; + private delegate IEnumerable RequestDelegate(ListDeploymentVersionsRequest request); + private const string AllPageSet = "AllPages"; + private const string LimitSet = "Limit"; + } +} diff --git a/Dataconnectivity/Cmdlets/Move-OCIDataconnectivityRegistryCompartment.cs b/Goldengate/Cmdlets/Invoke-OCIGoldengateRollbackDeploymentUpgrade.cs similarity index 51% rename from Dataconnectivity/Cmdlets/Move-OCIDataconnectivityRegistryCompartment.cs rename to Goldengate/Cmdlets/Invoke-OCIGoldengateRollbackDeploymentUpgrade.cs index 76ca6a5a2..1c563dd03 100644 --- a/Dataconnectivity/Cmdlets/Move-OCIDataconnectivityRegistryCompartment.cs +++ b/Goldengate/Cmdlets/Invoke-OCIGoldengateRollbackDeploymentUpgrade.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,49 +8,49 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.GoldengateService.Cmdlets { - [Cmdlet("Move", "OCIDataconnectivityRegistryCompartment")] - [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DataconnectivityService.Responses.ChangeRegistryCompartmentResponse) })] - public class MoveOCIDataconnectivityRegistryCompartment : OCIDataConnectivityManagementCmdlet + [Cmdlet("Invoke", "OCIGoldengateRollbackDeploymentUpgrade")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.RollbackDeploymentUpgradeResponse) })] + public class InvokeOCIGoldengateRollbackDeploymentUpgrade : OCIGoldenGateCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The registry OCID.")] - public string RegistryId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment Upgrade identifier.")] + public string DeploymentUpgradeId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details of the change compartment action.")] - public ChangeRegistryCompartmentDetails ChangeRegistryCompartmentDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment rollback. This parameter also accepts subtype of type .")] + public RollbackDeploymentUpgradeDetails RollbackDeploymentUpgradeDetails { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] public string IfMatch { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] + [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 is rejected.")] public string OpcRetryToken { get; set; } protected override void ProcessRecord() { base.ProcessRecord(); - ChangeRegistryCompartmentRequest request; + RollbackDeploymentUpgradeRequest request; try { - request = new ChangeRegistryCompartmentRequest + request = new RollbackDeploymentUpgradeRequest { - RegistryId = RegistryId, - ChangeRegistryCompartmentDetails = ChangeRegistryCompartmentDetails, + DeploymentUpgradeId = DeploymentUpgradeId, + RollbackDeploymentUpgradeDetails = RollbackDeploymentUpgradeDetails, IfMatch = IfMatch, OpcRequestId = OpcRequestId, OpcRetryToken = OpcRetryToken }; - response = client.ChangeRegistryCompartment(request).GetAwaiter().GetResult(); + response = client.RollbackDeploymentUpgrade(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } @@ -70,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private ChangeRegistryCompartmentResponse response; + private RollbackDeploymentUpgradeResponse response; } } diff --git a/Goldengate/Cmdlets/Invoke-OCIGoldengateSnoozeDeploymentUpgrade.cs b/Goldengate/Cmdlets/Invoke-OCIGoldengateSnoozeDeploymentUpgrade.cs new file mode 100644 index 000000000..209c22f3a --- /dev/null +++ b/Goldengate/Cmdlets/Invoke-OCIGoldengateSnoozeDeploymentUpgrade.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; +using Oci.Common.Model; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Invoke", "OCIGoldengateSnoozeDeploymentUpgrade")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.GoldengateService.Responses.SnoozeDeploymentUpgradeResponse) })] + public class InvokeOCIGoldengateSnoozeDeploymentUpgrade : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment Upgrade identifier.")] + public string DeploymentUpgradeId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the snooze of deployment upgrade. This parameter also accepts subtype of type .")] + public SnoozeDeploymentUpgradeDetails SnoozeDeploymentUpgradeDetails { 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 is 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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SnoozeDeploymentUpgradeRequest request; + + try + { + request = new SnoozeDeploymentUpgradeRequest + { + DeploymentUpgradeId = DeploymentUpgradeId, + SnoozeDeploymentUpgradeDetails = SnoozeDeploymentUpgradeDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.SnoozeDeploymentUpgrade(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 SnoozeDeploymentUpgradeResponse response; + } +} diff --git a/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeployment.cs b/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeployment.cs index 13465f417..19752aec8 100644 --- a/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeployment.cs +++ b/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeployment.cs @@ -22,7 +22,7 @@ public class InvokeOCIGoldengateUpgradeDeployment : OCIGoldenGateCmdlet [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment identifier.")] public string DeploymentId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment upgrade. This parameter also accepts subtype of type .")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment upgrade. This parameter also accepts subtypes , of type .")] public UpgradeDeploymentDetails UpgradeDeploymentDetails { 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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] diff --git a/Dataconnectivity/Cmdlets/Move-OCIDataconnectivityEndpointCompartment.cs b/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeploymentUpgrade.cs similarity index 50% rename from Dataconnectivity/Cmdlets/Move-OCIDataconnectivityEndpointCompartment.cs rename to Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeploymentUpgrade.cs index 8fc7f3232..27d37043f 100644 --- a/Dataconnectivity/Cmdlets/Move-OCIDataconnectivityEndpointCompartment.cs +++ b/Goldengate/Cmdlets/Invoke-OCIGoldengateUpgradeDeploymentUpgrade.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -8,53 +8,49 @@ using System; using System.Management.Automation; -using Oci.DataconnectivityService.Requests; -using Oci.DataconnectivityService.Responses; -using Oci.DataconnectivityService.Models; +using Oci.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; using Oci.Common.Model; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.GoldengateService.Cmdlets { - [Cmdlet("Move", "OCIDataconnectivityEndpointCompartment")] - [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.DataconnectivityService.Responses.ChangeEndpointCompartmentResponse) })] - public class MoveOCIDataconnectivityEndpointCompartment : OCIDataConnectivityManagementCmdlet + [Cmdlet("Invoke", "OCIGoldengateUpgradeDeploymentUpgrade")] + [OutputType(new System.Type[] { typeof(Oci.PSModules.Common.Cmdlets.WorkRequest), typeof(Oci.GoldengateService.Responses.UpgradeDeploymentUpgradeResponse) })] + public class InvokeOCIGoldengateUpgradeDeploymentUpgrade : OCIGoldenGateCmdlet { - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS endpoint ID.")] - public string EndpointId { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment Upgrade identifier.")] + public string DeploymentUpgradeId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The details of the change compartment action.")] - public ChangeEndpointCompartmentDetails ChangeEndpointCompartmentDetails { get; set; } + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the deployment upgrade. This parameter also accepts subtype of type .")] + public UpgradeDeploymentUpgradeDetails UpgradeDeploymentUpgradeDetails { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DCMS registry ID")] - public string RegistryId { 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. When 'if-match' is provided and its value does not exactly match the 'etag' of the resource on the server, the request fails with the 412 response code.")] + [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 is updated or deleted only if the etag you provide matches the resource's current etag value.")] public string IfMatch { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The client request ID for tracing.")] public string OpcRequestId { get; set; } - [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token that uniquely identifies a request so it can be retried in case of a timeout or server error without the risk of executing that same action again.")] + [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 is rejected.")] public string OpcRetryToken { get; set; } protected override void ProcessRecord() { base.ProcessRecord(); - ChangeEndpointCompartmentRequest request; + UpgradeDeploymentUpgradeRequest request; try { - request = new ChangeEndpointCompartmentRequest + request = new UpgradeDeploymentUpgradeRequest { - EndpointId = EndpointId, - ChangeEndpointCompartmentDetails = ChangeEndpointCompartmentDetails, - RegistryId = RegistryId, + DeploymentUpgradeId = DeploymentUpgradeId, + UpgradeDeploymentUpgradeDetails = UpgradeDeploymentUpgradeDetails, IfMatch = IfMatch, OpcRequestId = OpcRequestId, OpcRetryToken = OpcRetryToken }; - response = client.ChangeEndpointCompartment(request).GetAwaiter().GetResult(); + response = client.UpgradeDeploymentUpgrade(request).GetAwaiter().GetResult(); WriteOutput(response, CreateWorkRequestObject(response.OpcWorkRequestId)); FinishProcessing(response); } @@ -74,6 +70,6 @@ protected override void StopProcessing() TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); } - private ChangeEndpointCompartmentResponse response; + private UpgradeDeploymentUpgradeResponse response; } } diff --git a/Goldengate/Cmdlets/Stop-OCIGoldengateSnoozeDeploymentUpgrade.cs b/Goldengate/Cmdlets/Stop-OCIGoldengateSnoozeDeploymentUpgrade.cs new file mode 100644 index 000000000..1b05b4f93 --- /dev/null +++ b/Goldengate/Cmdlets/Stop-OCIGoldengateSnoozeDeploymentUpgrade.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200407 + * 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.GoldengateService.Requests; +using Oci.GoldengateService.Responses; +using Oci.GoldengateService.Models; +using Oci.Common.Model; + +namespace Oci.GoldengateService.Cmdlets +{ + [Cmdlet("Stop", "OCIGoldengateSnoozeDeploymentUpgrade")] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.GoldengateService.Responses.CancelSnoozeDeploymentUpgradeResponse) })] + public class StopOCIGoldengateSnoozeDeploymentUpgrade : OCIGoldenGateCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A unique Deployment Upgrade identifier.")] + public string DeploymentUpgradeId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"A placeholder for any additional metadata to describe the cancel snooze of deployment upgrade. This parameter also accepts subtype of type .")] + public CancelSnoozeDeploymentUpgradeDetails CancelSnoozeDeploymentUpgradeDetails { 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 is 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 is rejected.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CancelSnoozeDeploymentUpgradeRequest request; + + try + { + request = new CancelSnoozeDeploymentUpgradeRequest + { + DeploymentUpgradeId = DeploymentUpgradeId, + CancelSnoozeDeploymentUpgradeDetails = CancelSnoozeDeploymentUpgradeDetails, + IfMatch = IfMatch, + OpcRequestId = OpcRequestId, + OpcRetryToken = OpcRetryToken + }; + + response = client.CancelSnoozeDeploymentUpgrade(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 CancelSnoozeDeploymentUpgradeResponse response; + } +} diff --git a/Goldengate/OCI.PSModules.Goldengate.psd1 b/Goldengate/OCI.PSModules.Goldengate.psd1 index 6fa15cce4..b301fa167 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Goldengate.dll' @@ -84,6 +84,7 @@ CmdletsToExport = 'Export-OCIGoldengateDeploymentWallet', 'Get-OCIGoldengateDeploymentTypesList', 'Get-OCIGoldengateDeploymentUpgrade', 'Get-OCIGoldengateDeploymentUpgradesList', + 'Get-OCIGoldengateDeploymentVersionsList', 'Get-OCIGoldengateDeploymentWalletsOperationsList', 'Get-OCIGoldengateMessagesList', 'Get-OCIGoldengateTrailFilesList', 'Get-OCIGoldengateTrailSequencesList', @@ -94,7 +95,10 @@ CmdletsToExport = 'Export-OCIGoldengateDeploymentWallet', 'Import-OCIGoldengateDeploymentWallet', 'Invoke-OCIGoldengateCollectDeploymentDiagnostic', 'Invoke-OCIGoldengateDeploymentWalletExists', + 'Invoke-OCIGoldengateRollbackDeploymentUpgrade', + 'Invoke-OCIGoldengateSnoozeDeploymentUpgrade', 'Invoke-OCIGoldengateUpgradeDeployment', + 'Invoke-OCIGoldengateUpgradeDeploymentUpgrade', 'Move-OCIGoldengateConnectionCompartment', 'Move-OCIGoldengateDatabaseRegistrationCompartment', 'Move-OCIGoldengateDeploymentBackupCompartment', @@ -111,6 +115,7 @@ CmdletsToExport = 'Export-OCIGoldengateDeploymentWallet', 'Restore-OCIGoldengateDeployment', 'Start-OCIGoldengateDeployment', 'Stop-OCIGoldengateDeployment', 'Stop-OCIGoldengateDeploymentBackup', + 'Stop-OCIGoldengateSnoozeDeploymentUpgrade', 'Update-OCIGoldengateConnection', 'Update-OCIGoldengateDatabaseRegistration', 'Update-OCIGoldengateDeployment', diff --git a/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 b/Governancerulescontrolplane/OCI.PSModules.Governancerulescontrolplane.psd1 index 23402de23..b307145b4 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 5dbc6365c..e1340127b 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 2c6dbe844..f48769f0c 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 1ea2e8a80..39025684f 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identitydataplane.dll' diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKey.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKey.cs new file mode 100644 index 000000000..a853ed2fd --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKey.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsApiKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.ApiKey), typeof(Oci.IdentitydomainsService.Responses.GetApiKeyResponse) })] + public class GetOCIIdentitydomainsApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string ApiKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetApiKeyRequest request; + + try + { + request = new GetApiKeyRequest + { + ApiKeyId = ApiKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetApiKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApiKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKeysList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKeysList.cs new file mode 100644 index 000000000..c75cde8c7 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsApiKeysList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsApiKeysList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.ApiKeys), typeof(Oci.IdentitydomainsService.Responses.ListApiKeysResponse) })] + public class GetOCIIdentitydomainsApiKeysList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListApiKeysRequest request; + + try + { + request = new ListApiKeysRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListApiKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApiKeys); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListApiKeysResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthToken.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthToken.cs new file mode 100644 index 000000000..ab004a3ae --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthToken.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsAuthToken")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthToken), typeof(Oci.IdentitydomainsService.Responses.GetAuthTokenResponse) })] + public class GetOCIIdentitydomainsAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string AuthTokenId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetAuthTokenRequest request; + + try + { + request = new GetAuthTokenRequest + { + AuthTokenId = AuthTokenId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetAuthToken(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthToken); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthTokensList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthTokensList.cs new file mode 100644 index 000000000..741040f72 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthTokensList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsAuthTokensList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthTokens), typeof(Oci.IdentitydomainsService.Responses.ListAuthTokensResponse) })] + public class GetOCIIdentitydomainsAuthTokensList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListAuthTokensRequest request; + + try + { + request = new ListAuthTokensRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListAuthTokens(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthTokens); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListAuthTokensResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSetting.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSetting.cs new file mode 100644 index 000000000..fb7b58e3d --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSetting.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsAuthenticationFactorSetting")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthenticationFactorSetting), typeof(Oci.IdentitydomainsService.Responses.GetAuthenticationFactorSettingResponse) })] + public class GetOCIIdentitydomainsAuthenticationFactorSetting : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string AuthenticationFactorSettingId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetAuthenticationFactorSettingRequest request; + + try + { + request = new GetAuthenticationFactorSettingRequest + { + AuthenticationFactorSettingId = AuthenticationFactorSettingId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetAuthenticationFactorSetting(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthenticationFactorSetting); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetAuthenticationFactorSettingResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSettingsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSettingsList.cs new file mode 100644 index 000000000..782c1a644 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsAuthenticationFactorSettingsList.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsAuthenticationFactorSettingsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthenticationFactorSettings), typeof(Oci.IdentitydomainsService.Responses.ListAuthenticationFactorSettingsResponse) })] + public class GetOCIIdentitydomainsAuthenticationFactorSettingsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListAuthenticationFactorSettingsRequest request; + + try + { + request = new ListAuthenticationFactorSettingsRequest + { + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListAuthenticationFactorSettings(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthenticationFactorSettings); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListAuthenticationFactorSettingsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKey.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKey.cs new file mode 100644 index 000000000..6a186bdfb --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKey.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsCustomerSecretKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.CustomerSecretKey), typeof(Oci.IdentitydomainsService.Responses.GetCustomerSecretKeyResponse) })] + public class GetOCIIdentitydomainsCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string CustomerSecretKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetCustomerSecretKeyRequest request; + + try + { + request = new GetCustomerSecretKeyRequest + { + CustomerSecretKeyId = CustomerSecretKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetCustomerSecretKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CustomerSecretKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKeysList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKeysList.cs new file mode 100644 index 000000000..645d336f1 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsCustomerSecretKeysList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsCustomerSecretKeysList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.CustomerSecretKeys), typeof(Oci.IdentitydomainsService.Responses.ListCustomerSecretKeysResponse) })] + public class GetOCIIdentitydomainsCustomerSecretKeysList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListCustomerSecretKeysRequest request; + + try + { + request = new ListCustomerSecretKeysRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListCustomerSecretKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CustomerSecretKeys); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListCustomerSecretKeysResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroup.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroup.cs new file mode 100644 index 000000000..52bb9bc40 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroup.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsDynamicResourceGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.DynamicResourceGroup), typeof(Oci.IdentitydomainsService.Responses.GetDynamicResourceGroupResponse) })] + public class GetOCIIdentitydomainsDynamicResourceGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string DynamicResourceGroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetDynamicResourceGroupRequest request; + + try + { + request = new GetDynamicResourceGroupRequest + { + DynamicResourceGroupId = DynamicResourceGroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetDynamicResourceGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DynamicResourceGroup); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetDynamicResourceGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroupsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroupsList.cs new file mode 100644 index 000000000..4b24d3528 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsDynamicResourceGroupsList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsDynamicResourceGroupsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.DynamicResourceGroups), typeof(Oci.IdentitydomainsService.Responses.ListDynamicResourceGroupsResponse) })] + public class GetOCIIdentitydomainsDynamicResourceGroupsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListDynamicResourceGroupsRequest request; + + try + { + request = new ListDynamicResourceGroupsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListDynamicResourceGroups(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DynamicResourceGroups); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListDynamicResourceGroupsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroup.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroup.cs new file mode 100644 index 000000000..cd01b1c0f --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroup.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Group), typeof(Oci.IdentitydomainsService.Responses.GetGroupResponse) })] + public class GetOCIIdentitydomainsGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string GroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetGroupRequest request; + + try + { + request = new GetGroupRequest + { + GroupId = GroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Group); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroupsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroupsList.cs new file mode 100644 index 000000000..a9dabf021 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsGroupsList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsGroupsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Groups), typeof(Oci.IdentitydomainsService.Responses.ListGroupsResponse) })] + public class GetOCIIdentitydomainsGroupsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListGroupsRequest request; + + try + { + request = new ListGroupsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListGroups(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Groups); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListGroupsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvider.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvider.cs new file mode 100644 index 000000000..bade2a3b1 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvider.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsIdentityProvider")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.IdentityProvider), typeof(Oci.IdentitydomainsService.Responses.GetIdentityProviderResponse) })] + public class GetOCIIdentitydomainsIdentityProvider : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string IdentityProviderId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetIdentityProviderRequest request; + + try + { + request = new GetIdentityProviderRequest + { + IdentityProviderId = IdentityProviderId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetIdentityProvider(request).GetAwaiter().GetResult(); + WriteOutput(response, response.IdentityProvider); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetIdentityProviderResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvidersList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvidersList.cs new file mode 100644 index 000000000..81610a71d --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsIdentityProvidersList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsIdentityProvidersList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.IdentityProviders), typeof(Oci.IdentitydomainsService.Responses.ListIdentityProvidersResponse) })] + public class GetOCIIdentitydomainsIdentityProvidersList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListIdentityProvidersRequest request; + + try + { + request = new ListIdentityProvidersRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListIdentityProviders(request).GetAwaiter().GetResult(); + WriteOutput(response, response.IdentityProviders); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListIdentityProvidersResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSetting.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSetting.cs new file mode 100644 index 000000000..31f9c0aea --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSetting.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsKmsiSetting")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.KmsiSetting), typeof(Oci.IdentitydomainsService.Responses.GetKmsiSettingResponse) })] + public class GetOCIIdentitydomainsKmsiSetting : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string KmsiSettingId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetKmsiSettingRequest request; + + try + { + request = new GetKmsiSettingRequest + { + KmsiSettingId = KmsiSettingId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetKmsiSetting(request).GetAwaiter().GetResult(); + WriteOutput(response, response.KmsiSetting); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetKmsiSettingResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSettingsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSettingsList.cs new file mode 100644 index 000000000..2fc2bb7b7 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsKmsiSettingsList.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsKmsiSettingsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.KmsiSettings), typeof(Oci.IdentitydomainsService.Responses.ListKmsiSettingsResponse) })] + public class GetOCIIdentitydomainsKmsiSettingsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListKmsiSettingsRequest request; + + try + { + request = new ListKmsiSettingsRequest + { + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListKmsiSettings(request).GetAwaiter().GetResult(); + WriteOutput(response, response.KmsiSettings); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListKmsiSettingsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMe.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMe.cs new file mode 100644 index 000000000..88e7ab58e --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMe.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMe")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Me), typeof(Oci.IdentitydomainsService.Responses.GetMeResponse) })] + public class GetOCIIdentitydomainsMe : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMeRequest request; + + try + { + request = new GetMeRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMe(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Me); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMeResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKey.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKey.cs new file mode 100644 index 000000000..48a3876f5 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKey.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyApiKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyApiKey), typeof(Oci.IdentitydomainsService.Responses.GetMyApiKeyResponse) })] + public class GetOCIIdentitydomainsMyApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyApiKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMyApiKeyRequest request; + + try + { + request = new GetMyApiKeyRequest + { + MyApiKeyId = MyApiKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMyApiKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyApiKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMyApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKeysList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKeysList.cs new file mode 100644 index 000000000..38c162b90 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyApiKeysList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyApiKeysList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyApiKeys), typeof(Oci.IdentitydomainsService.Responses.ListMyApiKeysResponse) })] + public class GetOCIIdentitydomainsMyApiKeysList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyApiKeysRequest request; + + try + { + request = new ListMyApiKeysRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyApiKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyApiKeys); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyApiKeysResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthToken.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthToken.cs new file mode 100644 index 000000000..3b07964f4 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthToken.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyAuthToken")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyAuthToken), typeof(Oci.IdentitydomainsService.Responses.GetMyAuthTokenResponse) })] + public class GetOCIIdentitydomainsMyAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyAuthTokenId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMyAuthTokenRequest request; + + try + { + request = new GetMyAuthTokenRequest + { + MyAuthTokenId = MyAuthTokenId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMyAuthToken(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyAuthToken); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMyAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthTokensList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthTokensList.cs new file mode 100644 index 000000000..0177379e1 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyAuthTokensList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyAuthTokensList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyAuthTokens), typeof(Oci.IdentitydomainsService.Responses.ListMyAuthTokensResponse) })] + public class GetOCIIdentitydomainsMyAuthTokensList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyAuthTokensRequest request; + + try + { + request = new ListMyAuthTokensRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyAuthTokens(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyAuthTokens); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyAuthTokensResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKey.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKey.cs new file mode 100644 index 000000000..9163559c8 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKey.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyCustomerSecretKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyCustomerSecretKey), typeof(Oci.IdentitydomainsService.Responses.GetMyCustomerSecretKeyResponse) })] + public class GetOCIIdentitydomainsMyCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyCustomerSecretKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMyCustomerSecretKeyRequest request; + + try + { + request = new GetMyCustomerSecretKeyRequest + { + MyCustomerSecretKeyId = MyCustomerSecretKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMyCustomerSecretKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyCustomerSecretKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMyCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKeysList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKeysList.cs new file mode 100644 index 000000000..92d467273 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyCustomerSecretKeysList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyCustomerSecretKeysList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyCustomerSecretKeys), typeof(Oci.IdentitydomainsService.Responses.ListMyCustomerSecretKeysResponse) })] + public class GetOCIIdentitydomainsMyCustomerSecretKeysList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyCustomerSecretKeysRequest request; + + try + { + request = new ListMyCustomerSecretKeysRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyCustomerSecretKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyCustomerSecretKeys); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyCustomerSecretKeysResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevice.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevice.cs new file mode 100644 index 000000000..884f22fe9 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevice.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyDevice")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyDevice), typeof(Oci.IdentitydomainsService.Responses.GetMyDeviceResponse) })] + public class GetOCIIdentitydomainsMyDevice : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyDeviceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMyDeviceRequest request; + + try + { + request = new GetMyDeviceRequest + { + MyDeviceId = MyDeviceId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMyDevice(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyDevice); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMyDeviceResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevicesList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevicesList.cs new file mode 100644 index 000000000..071090ec5 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyDevicesList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyDevicesList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyDevices), typeof(Oci.IdentitydomainsService.Responses.ListMyDevicesResponse) })] + public class GetOCIIdentitydomainsMyDevicesList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyDevicesRequest request; + + try + { + request = new ListMyDevicesRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyDevices(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyDevices); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyDevicesResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyGroupsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyGroupsList.cs new file mode 100644 index 000000000..a52b5b2ff --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyGroupsList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyGroupsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyGroups), typeof(Oci.IdentitydomainsService.Responses.ListMyGroupsResponse) })] + public class GetOCIIdentitydomainsMyGroupsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyGroupsRequest request; + + try + { + request = new ListMyGroupsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyGroups(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyGroups); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyGroupsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredential.cs new file mode 100644 index 000000000..b16994249 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredential.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyOAuth2ClientCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyOAuth2ClientCredential), typeof(Oci.IdentitydomainsService.Responses.GetMyOAuth2ClientCredentialResponse) })] + public class GetOCIIdentitydomainsMyOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyOAuth2ClientCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMyOAuth2ClientCredentialRequest request; + + try + { + request = new GetMyOAuth2ClientCredentialRequest + { + MyOAuth2ClientCredentialId = MyOAuth2ClientCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMyOAuth2ClientCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyOAuth2ClientCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMyOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredentialsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredentialsList.cs new file mode 100644 index 000000000..340232c3b --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyOAuth2ClientCredentialsList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyOAuth2ClientCredentialsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyOAuth2ClientCredentials), typeof(Oci.IdentitydomainsService.Responses.ListMyOAuth2ClientCredentialsResponse) })] + public class GetOCIIdentitydomainsMyOAuth2ClientCredentialsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyOAuth2ClientCredentialsRequest request; + + try + { + request = new ListMyOAuth2ClientCredentialsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyOAuth2ClientCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyOAuth2ClientCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyOAuth2ClientCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredential.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredential.cs new file mode 100644 index 000000000..aef3a00a7 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredential.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMySmtpCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MySmtpCredential), typeof(Oci.IdentitydomainsService.Responses.GetMySmtpCredentialResponse) })] + public class GetOCIIdentitydomainsMySmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MySmtpCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMySmtpCredentialRequest request; + + try + { + request = new GetMySmtpCredentialRequest + { + MySmtpCredentialId = MySmtpCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMySmtpCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MySmtpCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMySmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredentialsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredentialsList.cs new file mode 100644 index 000000000..769047c8d --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySmtpCredentialsList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMySmtpCredentialsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MySmtpCredentials), typeof(Oci.IdentitydomainsService.Responses.ListMySmtpCredentialsResponse) })] + public class GetOCIIdentitydomainsMySmtpCredentialsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMySmtpCredentialsRequest request; + + try + { + request = new ListMySmtpCredentialsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMySmtpCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MySmtpCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMySmtpCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccount.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccount.cs new file mode 100644 index 000000000..9ba686b22 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccount.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMySupportAccount")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MySupportAccount), typeof(Oci.IdentitydomainsService.Responses.GetMySupportAccountResponse) })] + public class GetOCIIdentitydomainsMySupportAccount : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MySupportAccountId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMySupportAccountRequest request; + + try + { + request = new GetMySupportAccountRequest + { + MySupportAccountId = MySupportAccountId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMySupportAccount(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MySupportAccount); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMySupportAccountResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccountsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccountsList.cs new file mode 100644 index 000000000..8f94fa1ba --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMySupportAccountsList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMySupportAccountsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MySupportAccounts), typeof(Oci.IdentitydomainsService.Responses.ListMySupportAccountsResponse) })] + public class GetOCIIdentitydomainsMySupportAccountsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMySupportAccountsRequest request; + + try + { + request = new ListMySupportAccountsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMySupportAccounts(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MySupportAccounts); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMySupportAccountsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgent.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgent.cs new file mode 100644 index 000000000..f9b53c026 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgent.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyTrustedUserAgent")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyTrustedUserAgent), typeof(Oci.IdentitydomainsService.Responses.GetMyTrustedUserAgentResponse) })] + public class GetOCIIdentitydomainsMyTrustedUserAgent : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyTrustedUserAgentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMyTrustedUserAgentRequest request; + + try + { + request = new GetMyTrustedUserAgentRequest + { + MyTrustedUserAgentId = MyTrustedUserAgentId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMyTrustedUserAgent(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyTrustedUserAgent); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMyTrustedUserAgentResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgentsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgentsList.cs new file mode 100644 index 000000000..b8a20d937 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyTrustedUserAgentsList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyTrustedUserAgentsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyTrustedUserAgents), typeof(Oci.IdentitydomainsService.Responses.ListMyTrustedUserAgentsResponse) })] + public class GetOCIIdentitydomainsMyTrustedUserAgentsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyTrustedUserAgentsRequest request; + + try + { + request = new ListMyTrustedUserAgentsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyTrustedUserAgents(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyTrustedUserAgents); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyTrustedUserAgentsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredential.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredential.cs new file mode 100644 index 000000000..e874e3723 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredential.cs @@ -0,0 +1,71 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyUserDbCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyUserDbCredential), typeof(Oci.IdentitydomainsService.Responses.GetMyUserDbCredentialResponse) })] + public class GetOCIIdentitydomainsMyUserDbCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyUserDbCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetMyUserDbCredentialRequest request; + + try + { + request = new GetMyUserDbCredentialRequest + { + MyUserDbCredentialId = MyUserDbCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetMyUserDbCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyUserDbCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetMyUserDbCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredentialsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredentialsList.cs new file mode 100644 index 000000000..21275c020 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsMyUserDbCredentialsList.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsMyUserDbCredentialsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyUserDbCredentials), typeof(Oci.IdentitydomainsService.Responses.ListMyUserDbCredentialsResponse) })] + public class GetOCIIdentitydomainsMyUserDbCredentialsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListMyUserDbCredentialsRequest request; + + try + { + request = new ListMyUserDbCredentialsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListMyUserDbCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyUserDbCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListMyUserDbCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredential.cs new file mode 100644 index 000000000..14f52116e --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredential.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsOAuth2ClientCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.OAuth2ClientCredential), typeof(Oci.IdentitydomainsService.Responses.GetOAuth2ClientCredentialResponse) })] + public class GetOCIIdentitydomainsOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string OAuth2ClientCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetOAuth2ClientCredentialRequest request; + + try + { + request = new GetOAuth2ClientCredentialRequest + { + OAuth2ClientCredentialId = OAuth2ClientCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetOAuth2ClientCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.OAuth2ClientCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredentialsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredentialsList.cs new file mode 100644 index 000000000..79287685e --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsOAuth2ClientCredentialsList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsOAuth2ClientCredentialsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.OAuth2ClientCredentials), typeof(Oci.IdentitydomainsService.Responses.ListOAuth2ClientCredentialsResponse) })] + public class GetOCIIdentitydomainsOAuth2ClientCredentialsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListOAuth2ClientCredentialsRequest request; + + try + { + request = new ListOAuth2ClientCredentialsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListOAuth2ClientCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.OAuth2ClientCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListOAuth2ClientCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPoliciesList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPoliciesList.cs new file mode 100644 index 000000000..f89f3d06a --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPoliciesList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsPasswordPoliciesList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.PasswordPolicies), typeof(Oci.IdentitydomainsService.Responses.ListPasswordPoliciesResponse) })] + public class GetOCIIdentitydomainsPasswordPoliciesList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListPasswordPoliciesRequest request; + + try + { + request = new ListPasswordPoliciesRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListPasswordPolicies(request).GetAwaiter().GetResult(); + WriteOutput(response, response.PasswordPolicies); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListPasswordPoliciesResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPolicy.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPolicy.cs new file mode 100644 index 000000000..88ba89aaa --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsPasswordPolicy.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsPasswordPolicy")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.PasswordPolicy), typeof(Oci.IdentitydomainsService.Responses.GetPasswordPolicyResponse) })] + public class GetOCIIdentitydomainsPasswordPolicy : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string PasswordPolicyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetPasswordPolicyRequest request; + + try + { + request = new GetPasswordPolicyRequest + { + PasswordPolicyId = PasswordPolicyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetPasswordPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, response.PasswordPolicy); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetPasswordPolicyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredential.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredential.cs new file mode 100644 index 000000000..807d475b1 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredential.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsSmtpCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.SmtpCredential), typeof(Oci.IdentitydomainsService.Responses.GetSmtpCredentialResponse) })] + public class GetOCIIdentitydomainsSmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string SmtpCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetSmtpCredentialRequest request; + + try + { + request = new GetSmtpCredentialRequest + { + SmtpCredentialId = SmtpCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetSmtpCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SmtpCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetSmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredentialsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredentialsList.cs new file mode 100644 index 000000000..a13979036 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsSmtpCredentialsList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsSmtpCredentialsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.SmtpCredentials), typeof(Oci.IdentitydomainsService.Responses.ListSmtpCredentialsResponse) })] + public class GetOCIIdentitydomainsSmtpCredentialsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListSmtpCredentialsRequest request; + + try + { + request = new ListSmtpCredentialsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListSmtpCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SmtpCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListSmtpCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUser.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUser.cs new file mode 100644 index 000000000..c2cd82b3b --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUser.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsUser")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.User), typeof(Oci.IdentitydomainsService.Responses.GetUserResponse) })] + public class GetOCIIdentitydomainsUser : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetUserRequest request; + + try + { + request = new GetUserRequest + { + UserId = UserId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetUser(request).GetAwaiter().GetResult(); + WriteOutput(response, response.User); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetUserResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredential.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredential.cs new file mode 100644 index 000000000..b3d892eca --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredential.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsUserDbCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserDbCredential), typeof(Oci.IdentitydomainsService.Responses.GetUserDbCredentialResponse) })] + public class GetOCIIdentitydomainsUserDbCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserDbCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + GetUserDbCredentialRequest request; + + try + { + request = new GetUserDbCredentialRequest + { + UserDbCredentialId = UserDbCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OpcRetryToken = OpcRetryToken + }; + + response = client.GetUserDbCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserDbCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private GetUserDbCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredentialsList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredentialsList.cs new file mode 100644 index 000000000..53f16bc71 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUserDbCredentialsList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsUserDbCredentialsList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserDbCredentials), typeof(Oci.IdentitydomainsService.Responses.ListUserDbCredentialsResponse) })] + public class GetOCIIdentitydomainsUserDbCredentialsList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListUserDbCredentialsRequest request; + + try + { + request = new ListUserDbCredentialsRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListUserDbCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserDbCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListUserDbCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUsersList.cs b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUsersList.cs new file mode 100644 index 000000000..3d8cd02f9 --- /dev/null +++ b/Identitydomains/Cmdlets/Get-OCIIdentitydomainsUsersList.cs @@ -0,0 +1,103 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Get", "OCIIdentitydomainsUsersList")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Users), typeof(Oci.IdentitydomainsService.Responses.ListUsersResponse) })] + public class GetOCIIdentitydomainsUsersList : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. The filter string that is used to request a subset of resources. The filter string MUST be a valid filter expression. See the Filtering section of the SCIM specification for more information (Section 3.4.2.2). The string should contain at least one condition that each item must match in order to be returned in the search results. Each condition specifies an attribute, an operator, and a value. Conditions within a filter can be connected by logical operators (such as AND and OR). Sets of conditions can be grouped together using parentheses.")] + public string Filter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. A string that indicates the attribute whose value SHALL be used to order the returned responses. The sortBy attribute MUST be in standard attribute notation form. See the Attribute Notation section of the SCIM specification for more information (Section 3.10). Also, see the Sorting section of the SCIM specification for more information (Section 3.4.2.3).")] + public string SortBy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A string that indicates the order in which the sortBy parameter is applied. Allowed values are 'ascending' and 'descending'. See ([Sorting Section](https://tools.ietf.org/html/draft-ietf-scim-api-19#section-3.4.2.3)). OPTIONAL.")] + public System.Nullable SortOrder { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the 1-based index of the first query result. See the Pagination section of the SCIM specification for more information. (Section 3.4.2.4). The number of results pages to return. The first page is 1. Specify 2 to access the second page of results, and so on.")] + public System.Nullable StartIndex { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OPTIONAL. An integer that indicates the desired maximum number of query results per page. 1000 is the largest value that you can use. See the Pagination section of the System for Cross-Domain Identity Management Protocol specification for more information. (Section 3.4.2.4).")] + public System.Nullable Count { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + ListUsersRequest request; + + try + { + request = new ListUsersRequest + { + Filter = Filter, + SortBy = SortBy, + SortOrder = SortOrder, + StartIndex = StartIndex, + Count = Count, + Attributes = Attributes, + AttributeSets = AttributeSets, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.ListUsers(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Users); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private ListUsersResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchApiKey.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchApiKey.cs new file mode 100644 index 000000000..61669ca23 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchApiKey.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchApiKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.ApiKey), typeof(Oci.IdentitydomainsService.Responses.PatchApiKeyResponse) })] + public class InvokeOCIIdentitydomainsPatchApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string ApiKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the ApiKey with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchApiKeyRequest request; + + try + { + request = new PatchApiKeyRequest + { + ApiKeyId = ApiKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchApiKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApiKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchAuthToken.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchAuthToken.cs new file mode 100644 index 000000000..c13e6166e --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchAuthToken.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchAuthToken")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthToken), typeof(Oci.IdentitydomainsService.Responses.PatchAuthTokenResponse) })] + public class InvokeOCIIdentitydomainsPatchAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string AuthTokenId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the AuthToken with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchAuthTokenRequest request; + + try + { + request = new PatchAuthTokenRequest + { + AuthTokenId = AuthTokenId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchAuthToken(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthToken); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchCustomerSecretKey.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchCustomerSecretKey.cs new file mode 100644 index 000000000..cb2555f18 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchCustomerSecretKey.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchCustomerSecretKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.CustomerSecretKey), typeof(Oci.IdentitydomainsService.Responses.PatchCustomerSecretKeyResponse) })] + public class InvokeOCIIdentitydomainsPatchCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string CustomerSecretKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the CustomerSecretKey with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchCustomerSecretKeyRequest request; + + try + { + request = new PatchCustomerSecretKeyRequest + { + CustomerSecretKeyId = CustomerSecretKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchCustomerSecretKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CustomerSecretKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchDynamicResourceGroup.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchDynamicResourceGroup.cs new file mode 100644 index 000000000..21dcc23de --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchDynamicResourceGroup.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchDynamicResourceGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.DynamicResourceGroup), typeof(Oci.IdentitydomainsService.Responses.PatchDynamicResourceGroupResponse) })] + public class InvokeOCIIdentitydomainsPatchDynamicResourceGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string DynamicResourceGroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the DynamicResourceGroup with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchDynamicResourceGroupRequest request; + + try + { + request = new PatchDynamicResourceGroupRequest + { + DynamicResourceGroupId = DynamicResourceGroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchDynamicResourceGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DynamicResourceGroup); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchDynamicResourceGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchGroup.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchGroup.cs new file mode 100644 index 000000000..b124ce154 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchGroup.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Group), typeof(Oci.IdentitydomainsService.Responses.PatchGroupResponse) })] + public class InvokeOCIIdentitydomainsPatchGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string GroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the Group with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchGroupRequest request; + + try + { + request = new PatchGroupRequest + { + GroupId = GroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Group); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchIdentityProvider.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchIdentityProvider.cs new file mode 100644 index 000000000..eecc69df5 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchIdentityProvider.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchIdentityProvider")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.IdentityProvider), typeof(Oci.IdentitydomainsService.Responses.PatchIdentityProviderResponse) })] + public class InvokeOCIIdentitydomainsPatchIdentityProvider : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string IdentityProviderId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the IdentityProvider with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchIdentityProviderRequest request; + + try + { + request = new PatchIdentityProviderRequest + { + IdentityProviderId = IdentityProviderId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchIdentityProvider(request).GetAwaiter().GetResult(); + WriteOutput(response, response.IdentityProvider); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchIdentityProviderResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchKmsiSetting.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchKmsiSetting.cs new file mode 100644 index 000000000..3a3e10017 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchKmsiSetting.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchKmsiSetting")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.KmsiSetting), typeof(Oci.IdentitydomainsService.Responses.PatchKmsiSettingResponse) })] + public class InvokeOCIIdentitydomainsPatchKmsiSetting : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string KmsiSettingId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the KmsiSettings with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchKmsiSettingRequest request; + + try + { + request = new PatchKmsiSettingRequest + { + KmsiSettingId = KmsiSettingId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchKmsiSetting(request).GetAwaiter().GetResult(); + WriteOutput(response, response.KmsiSetting); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchKmsiSettingResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMe.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMe.cs new file mode 100644 index 000000000..833d32617 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMe.cs @@ -0,0 +1,87 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchMe")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Me), typeof(Oci.IdentitydomainsService.Responses.PatchMeResponse) })] + public class InvokeOCIIdentitydomainsPatchMe : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the Me with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchMeRequest request; + + try + { + request = new PatchMeRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchMe(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Me); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchMeResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyApiKey.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyApiKey.cs new file mode 100644 index 000000000..dcdffca31 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyApiKey.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchMyApiKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyApiKey), typeof(Oci.IdentitydomainsService.Responses.PatchMyApiKeyResponse) })] + public class InvokeOCIIdentitydomainsPatchMyApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyApiKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the MyApiKey with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchMyApiKeyRequest request; + + try + { + request = new PatchMyApiKeyRequest + { + MyApiKeyId = MyApiKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchMyApiKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyApiKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchMyApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyAuthToken.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyAuthToken.cs new file mode 100644 index 000000000..055dbd826 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyAuthToken.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchMyAuthToken")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyAuthToken), typeof(Oci.IdentitydomainsService.Responses.PatchMyAuthTokenResponse) })] + public class InvokeOCIIdentitydomainsPatchMyAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyAuthTokenId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the MyAuthToken with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchMyAuthTokenRequest request; + + try + { + request = new PatchMyAuthTokenRequest + { + MyAuthTokenId = MyAuthTokenId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchMyAuthToken(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyAuthToken); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchMyAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyCustomerSecretKey.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyCustomerSecretKey.cs new file mode 100644 index 000000000..4b4635139 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyCustomerSecretKey.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchMyCustomerSecretKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyCustomerSecretKey), typeof(Oci.IdentitydomainsService.Responses.PatchMyCustomerSecretKeyResponse) })] + public class InvokeOCIIdentitydomainsPatchMyCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyCustomerSecretKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the MyCustomerSecretKey with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchMyCustomerSecretKeyRequest request; + + try + { + request = new PatchMyCustomerSecretKeyRequest + { + MyCustomerSecretKeyId = MyCustomerSecretKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchMyCustomerSecretKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyCustomerSecretKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchMyCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyDevice.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyDevice.cs new file mode 100644 index 000000000..430cef051 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyDevice.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchMyDevice")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyDevice), typeof(Oci.IdentitydomainsService.Responses.PatchMyDeviceResponse) })] + public class InvokeOCIIdentitydomainsPatchMyDevice : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyDeviceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the MyDevice with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchMyDeviceRequest request; + + try + { + request = new PatchMyDeviceRequest + { + MyDeviceId = MyDeviceId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchMyDevice(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyDevice); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchMyDeviceResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyOAuth2ClientCredential.cs new file mode 100644 index 000000000..6c8ee8312 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMyOAuth2ClientCredential.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchMyOAuth2ClientCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyOAuth2ClientCredential), typeof(Oci.IdentitydomainsService.Responses.PatchMyOAuth2ClientCredentialResponse) })] + public class InvokeOCIIdentitydomainsPatchMyOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyOAuth2ClientCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the MyOAuth2ClientCredential with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchMyOAuth2ClientCredentialRequest request; + + try + { + request = new PatchMyOAuth2ClientCredentialRequest + { + MyOAuth2ClientCredentialId = MyOAuth2ClientCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchMyOAuth2ClientCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyOAuth2ClientCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchMyOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMySmtpCredential.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMySmtpCredential.cs new file mode 100644 index 000000000..0ce8ad02b --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchMySmtpCredential.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchMySmtpCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MySmtpCredential), typeof(Oci.IdentitydomainsService.Responses.PatchMySmtpCredentialResponse) })] + public class InvokeOCIIdentitydomainsPatchMySmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MySmtpCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the MySmtpCredential with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchMySmtpCredentialRequest request; + + try + { + request = new PatchMySmtpCredentialRequest + { + MySmtpCredentialId = MySmtpCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchMySmtpCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MySmtpCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchMySmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchOAuth2ClientCredential.cs new file mode 100644 index 000000000..6e099e0c8 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchOAuth2ClientCredential.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchOAuth2ClientCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.OAuth2ClientCredential), typeof(Oci.IdentitydomainsService.Responses.PatchOAuth2ClientCredentialResponse) })] + public class InvokeOCIIdentitydomainsPatchOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string OAuth2ClientCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the OAuth2ClientCredential with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchOAuth2ClientCredentialRequest request; + + try + { + request = new PatchOAuth2ClientCredentialRequest + { + OAuth2ClientCredentialId = OAuth2ClientCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchOAuth2ClientCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.OAuth2ClientCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchPasswordPolicy.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchPasswordPolicy.cs new file mode 100644 index 000000000..fd8be6ae6 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchPasswordPolicy.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchPasswordPolicy")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.PasswordPolicy), typeof(Oci.IdentitydomainsService.Responses.PatchPasswordPolicyResponse) })] + public class InvokeOCIIdentitydomainsPatchPasswordPolicy : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string PasswordPolicyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the PasswordPolicy with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchPasswordPolicyRequest request; + + try + { + request = new PatchPasswordPolicyRequest + { + PasswordPolicyId = PasswordPolicyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchPasswordPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, response.PasswordPolicy); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchPasswordPolicyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchSmtpCredential.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchSmtpCredential.cs new file mode 100644 index 000000000..6e08bd043 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchSmtpCredential.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchSmtpCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.SmtpCredential), typeof(Oci.IdentitydomainsService.Responses.PatchSmtpCredentialResponse) })] + public class InvokeOCIIdentitydomainsPatchSmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string SmtpCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the SmtpCredential with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchSmtpCredentialRequest request; + + try + { + request = new PatchSmtpCredentialRequest + { + SmtpCredentialId = SmtpCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchSmtpCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SmtpCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchSmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchUser.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchUser.cs new file mode 100644 index 000000000..0e4c8d7c5 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsPatchUser.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsPatchUser")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.User), typeof(Oci.IdentitydomainsService.Responses.PatchUserResponse) })] + public class InvokeOCIIdentitydomainsPatchUser : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Update the User with SCIM Patch schema. + +Before you specify an attribute-value in a request to update a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PatchOp PatchOp { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PatchUserRequest request; + + try + { + request = new PatchUserRequest + { + UserId = UserId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PatchOp = PatchOp, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PatchUser(request).GetAwaiter().GetResult(); + WriteOutput(response, response.User); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PatchUserResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchApiKeys.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchApiKeys.cs new file mode 100644 index 000000000..710a23be6 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchApiKeys.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchApiKeys")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.ApiKeys), typeof(Oci.IdentitydomainsService.Responses.SearchApiKeysResponse) })] + public class InvokeOCIIdentitydomainsSearchApiKeys : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching ApiKeys")] + public ApiKeySearchRequest ApiKeySearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchApiKeysRequest request; + + try + { + request = new SearchApiKeysRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ApiKeySearchRequest = ApiKeySearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchApiKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApiKeys); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchApiKeysResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthTokens.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthTokens.cs new file mode 100644 index 000000000..5f181e16f --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthTokens.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchAuthTokens")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthTokens), typeof(Oci.IdentitydomainsService.Responses.SearchAuthTokensResponse) })] + public class InvokeOCIIdentitydomainsSearchAuthTokens : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching AuthTokens")] + public AuthTokenSearchRequest AuthTokenSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchAuthTokensRequest request; + + try + { + request = new SearchAuthTokensRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + AuthTokenSearchRequest = AuthTokenSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchAuthTokens(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthTokens); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchAuthTokensResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthenticationFactorSettings.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthenticationFactorSettings.cs new file mode 100644 index 000000000..669dc55f2 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchAuthenticationFactorSettings.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchAuthenticationFactorSettings")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthenticationFactorSettings), typeof(Oci.IdentitydomainsService.Responses.SearchAuthenticationFactorSettingsResponse) })] + public class InvokeOCIIdentitydomainsSearchAuthenticationFactorSettings : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching AuthenticationFactorSettings")] + public AuthenticationFactorSettingsSearchRequest AuthenticationFactorSettingsSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchAuthenticationFactorSettingsRequest request; + + try + { + request = new SearchAuthenticationFactorSettingsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + AuthenticationFactorSettingsSearchRequest = AuthenticationFactorSettingsSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchAuthenticationFactorSettings(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthenticationFactorSettings); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchAuthenticationFactorSettingsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchCustomerSecretKeys.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchCustomerSecretKeys.cs new file mode 100644 index 000000000..1523bda77 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchCustomerSecretKeys.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchCustomerSecretKeys")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.CustomerSecretKeys), typeof(Oci.IdentitydomainsService.Responses.SearchCustomerSecretKeysResponse) })] + public class InvokeOCIIdentitydomainsSearchCustomerSecretKeys : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching CustomerSecretKeys")] + public CustomerSecretKeySearchRequest CustomerSecretKeySearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchCustomerSecretKeysRequest request; + + try + { + request = new SearchCustomerSecretKeysRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + CustomerSecretKeySearchRequest = CustomerSecretKeySearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchCustomerSecretKeys(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CustomerSecretKeys); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchCustomerSecretKeysResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchDynamicResourceGroups.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchDynamicResourceGroups.cs new file mode 100644 index 000000000..d5f421133 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchDynamicResourceGroups.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchDynamicResourceGroups")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.DynamicResourceGroups), typeof(Oci.IdentitydomainsService.Responses.SearchDynamicResourceGroupsResponse) })] + public class InvokeOCIIdentitydomainsSearchDynamicResourceGroups : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching DynamicResourceGroups")] + public DynamicResourceGroupSearchRequest DynamicResourceGroupSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchDynamicResourceGroupsRequest request; + + try + { + request = new SearchDynamicResourceGroupsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + DynamicResourceGroupSearchRequest = DynamicResourceGroupSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchDynamicResourceGroups(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DynamicResourceGroups); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchDynamicResourceGroupsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchGroups.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchGroups.cs new file mode 100644 index 000000000..0de1cbf29 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchGroups.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchGroups")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Groups), typeof(Oci.IdentitydomainsService.Responses.SearchGroupsResponse) })] + public class InvokeOCIIdentitydomainsSearchGroups : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching Groups")] + public GroupSearchRequest GroupSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchGroupsRequest request; + + try + { + request = new SearchGroupsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + GroupSearchRequest = GroupSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchGroups(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Groups); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchGroupsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchIdentityProviders.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchIdentityProviders.cs new file mode 100644 index 000000000..c1efed0d4 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchIdentityProviders.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchIdentityProviders")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.IdentityProviders), typeof(Oci.IdentitydomainsService.Responses.SearchIdentityProvidersResponse) })] + public class InvokeOCIIdentitydomainsSearchIdentityProviders : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching IdentityProviders")] + public IdentityProviderSearchRequest IdentityProviderSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchIdentityProvidersRequest request; + + try + { + request = new SearchIdentityProvidersRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + IdentityProviderSearchRequest = IdentityProviderSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchIdentityProviders(request).GetAwaiter().GetResult(); + WriteOutput(response, response.IdentityProviders); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchIdentityProvidersResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchKmsiSettings.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchKmsiSettings.cs new file mode 100644 index 000000000..43eae1804 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchKmsiSettings.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchKmsiSettings")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.KmsiSettings), typeof(Oci.IdentitydomainsService.Responses.SearchKmsiSettingsResponse) })] + public class InvokeOCIIdentitydomainsSearchKmsiSettings : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching KmsiSettings")] + public KmsiSettingsSearchRequest KmsiSettingsSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchKmsiSettingsRequest request; + + try + { + request = new SearchKmsiSettingsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + KmsiSettingsSearchRequest = KmsiSettingsSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchKmsiSettings(request).GetAwaiter().GetResult(); + WriteOutput(response, response.KmsiSettings); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchKmsiSettingsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchMyGroups.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchMyGroups.cs new file mode 100644 index 000000000..3b7b7a0a0 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchMyGroups.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchMyGroups")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyGroups), typeof(Oci.IdentitydomainsService.Responses.SearchMyGroupsResponse) })] + public class InvokeOCIIdentitydomainsSearchMyGroups : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching MyGroups")] + public MyGroupSearchRequest MyGroupSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchMyGroupsRequest request; + + try + { + request = new SearchMyGroupsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyGroupSearchRequest = MyGroupSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchMyGroups(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyGroups); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchMyGroupsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchOAuth2ClientCredentials.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchOAuth2ClientCredentials.cs new file mode 100644 index 000000000..336d16355 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchOAuth2ClientCredentials.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchOAuth2ClientCredentials")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.OAuth2ClientCredentials), typeof(Oci.IdentitydomainsService.Responses.SearchOAuth2ClientCredentialsResponse) })] + public class InvokeOCIIdentitydomainsSearchOAuth2ClientCredentials : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching OAuth2ClientCredentials")] + public OAuth2ClientCredentialSearchRequest OAuth2ClientCredentialSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchOAuth2ClientCredentialsRequest request; + + try + { + request = new SearchOAuth2ClientCredentialsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + OAuth2ClientCredentialSearchRequest = OAuth2ClientCredentialSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchOAuth2ClientCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.OAuth2ClientCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchOAuth2ClientCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchPasswordPolicies.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchPasswordPolicies.cs new file mode 100644 index 000000000..303b21a34 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchPasswordPolicies.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchPasswordPolicies")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.PasswordPolicies), typeof(Oci.IdentitydomainsService.Responses.SearchPasswordPoliciesResponse) })] + public class InvokeOCIIdentitydomainsSearchPasswordPolicies : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching PasswordPolicies")] + public PasswordPolicySearchRequest PasswordPolicySearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchPasswordPoliciesRequest request; + + try + { + request = new SearchPasswordPoliciesRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + PasswordPolicySearchRequest = PasswordPolicySearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchPasswordPolicies(request).GetAwaiter().GetResult(); + WriteOutput(response, response.PasswordPolicies); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchPasswordPoliciesResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchSmtpCredentials.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchSmtpCredentials.cs new file mode 100644 index 000000000..afeb6eb97 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchSmtpCredentials.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchSmtpCredentials")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.SmtpCredentials), typeof(Oci.IdentitydomainsService.Responses.SearchSmtpCredentialsResponse) })] + public class InvokeOCIIdentitydomainsSearchSmtpCredentials : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching SmtpCredentials")] + public SmtpCredentialSearchRequest SmtpCredentialSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchSmtpCredentialsRequest request; + + try + { + request = new SearchSmtpCredentialsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + SmtpCredentialSearchRequest = SmtpCredentialSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchSmtpCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SmtpCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchSmtpCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUserDbCredentials.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUserDbCredentials.cs new file mode 100644 index 000000000..7d26aa1c4 --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUserDbCredentials.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchUserDbCredentials")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserDbCredentials), typeof(Oci.IdentitydomainsService.Responses.SearchUserDbCredentialsResponse) })] + public class InvokeOCIIdentitydomainsSearchUserDbCredentials : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching UserDbCredentials")] + public UserDbCredentialsSearchRequest UserDbCredentialsSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchUserDbCredentialsRequest request; + + try + { + request = new SearchUserDbCredentialsRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + UserDbCredentialsSearchRequest = UserDbCredentialsSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchUserDbCredentials(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserDbCredentials); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchUserDbCredentialsResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUsers.cs b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUsers.cs new file mode 100644 index 000000000..dec3bc01c --- /dev/null +++ b/Identitydomains/Cmdlets/Invoke-OCIIdentitydomainsSearchUsers.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Invoke", "OCIIdentitydomainsSearchUsers")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Users), typeof(Oci.IdentitydomainsService.Responses.SearchUsersResponse) })] + public class InvokeOCIIdentitydomainsSearchUsers : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Parameters for searching Users")] + public UserSearchRequest UserSearchRequest { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The value of the `opc-next-page` response header from the previous 'List' call.")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The maximum number of items to return in a paginated 'List' call.")] + public System.Nullable Limit { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SearchUsersRequest request; + + try + { + request = new SearchUsersRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + UserSearchRequest = UserSearchRequest, + OpcRetryToken = OpcRetryToken, + Page = Page, + Limit = Limit + }; + + response = client.SearchUsers(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Users); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SearchUsersResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsApiKey.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsApiKey.cs new file mode 100644 index 000000000..f27fd3752 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsApiKey.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsApiKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.ApiKey), typeof(Oci.IdentitydomainsService.Responses.CreateApiKeyResponse) })] + public class NewOCIIdentitydomainsApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"ApiKey schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public ApiKey ApiKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateApiKeyRequest request; + + try + { + request = new CreateApiKeyRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + ApiKey = ApiKey, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateApiKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.ApiKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthToken.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthToken.cs new file mode 100644 index 000000000..af9f3b0b8 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthToken.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsAuthToken")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthToken), typeof(Oci.IdentitydomainsService.Responses.CreateAuthTokenResponse) })] + public class NewOCIIdentitydomainsAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"AuthToken schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public AuthToken AuthToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateAuthTokenRequest request; + + try + { + request = new CreateAuthTokenRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + AuthToken = AuthToken, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateAuthToken(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthToken); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthenticationFactorsRemover.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthenticationFactorsRemover.cs new file mode 100644 index 000000000..b64561aef --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsAuthenticationFactorsRemover.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsAuthenticationFactorsRemover")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthenticationFactorsRemover), typeof(Oci.IdentitydomainsService.Responses.CreateAuthenticationFactorsRemoverResponse) })] + public class NewOCIIdentitydomainsAuthenticationFactorsRemover : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"AuthenticationFactorsRemover schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public AuthenticationFactorsRemover AuthenticationFactorsRemover { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateAuthenticationFactorsRemoverRequest request; + + try + { + request = new CreateAuthenticationFactorsRemoverRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + AuthenticationFactorsRemover = AuthenticationFactorsRemover, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateAuthenticationFactorsRemover(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthenticationFactorsRemover); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateAuthenticationFactorsRemoverResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsCustomerSecretKey.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsCustomerSecretKey.cs new file mode 100644 index 000000000..c7f3916dc --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsCustomerSecretKey.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsCustomerSecretKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.CustomerSecretKey), typeof(Oci.IdentitydomainsService.Responses.CreateCustomerSecretKeyResponse) })] + public class NewOCIIdentitydomainsCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"CustomerSecretKey schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public CustomerSecretKey CustomerSecretKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateCustomerSecretKeyRequest request; + + try + { + request = new CreateCustomerSecretKeyRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + CustomerSecretKey = CustomerSecretKey, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateCustomerSecretKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.CustomerSecretKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsDynamicResourceGroup.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsDynamicResourceGroup.cs new file mode 100644 index 000000000..98a8a5624 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsDynamicResourceGroup.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsDynamicResourceGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.DynamicResourceGroup), typeof(Oci.IdentitydomainsService.Responses.CreateDynamicResourceGroupResponse) })] + public class NewOCIIdentitydomainsDynamicResourceGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"DynamicResourceGroup schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public DynamicResourceGroup DynamicResourceGroup { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateDynamicResourceGroupRequest request; + + try + { + request = new CreateDynamicResourceGroupRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + DynamicResourceGroup = DynamicResourceGroup, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateDynamicResourceGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DynamicResourceGroup); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateDynamicResourceGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsGroup.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsGroup.cs new file mode 100644 index 000000000..0f27d8895 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsGroup.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Group), typeof(Oci.IdentitydomainsService.Responses.CreateGroupResponse) })] + public class NewOCIIdentitydomainsGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Group schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public Group Group { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateGroupRequest request; + + try + { + request = new CreateGroupRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + Group = Group, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Group); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsIdentityProvider.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsIdentityProvider.cs new file mode 100644 index 000000000..ea8b22e84 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsIdentityProvider.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsIdentityProvider")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.IdentityProvider), typeof(Oci.IdentitydomainsService.Responses.CreateIdentityProviderResponse) })] + public class NewOCIIdentitydomainsIdentityProvider : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"IdentityProvider schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public IdentityProvider IdentityProvider { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateIdentityProviderRequest request; + + try + { + request = new CreateIdentityProviderRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + IdentityProvider = IdentityProvider, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateIdentityProvider(request).GetAwaiter().GetResult(); + WriteOutput(response, response.IdentityProvider); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateIdentityProviderResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMe.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMe.cs new file mode 100644 index 000000000..bb14454f1 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMe.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMe")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Me), typeof(Oci.IdentitydomainsService.Responses.CreateMeResponse) })] + public class NewOCIIdentitydomainsMe : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Me schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public Me Me { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMeRequest request; + + try + { + request = new CreateMeRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + Me = Me, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMe(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Me); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMeResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyApiKey.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyApiKey.cs new file mode 100644 index 000000000..fca2c096d --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyApiKey.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyApiKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyApiKey), typeof(Oci.IdentitydomainsService.Responses.CreateMyApiKeyResponse) })] + public class NewOCIIdentitydomainsMyApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyApiKey schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyApiKey MyApiKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyApiKeyRequest request; + + try + { + request = new CreateMyApiKeyRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyApiKey = MyApiKey, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyApiKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyApiKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthToken.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthToken.cs new file mode 100644 index 000000000..39b74f3c7 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthToken.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyAuthToken")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyAuthToken), typeof(Oci.IdentitydomainsService.Responses.CreateMyAuthTokenResponse) })] + public class NewOCIIdentitydomainsMyAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyAuthToken schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyAuthToken MyAuthToken { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyAuthTokenRequest request; + + try + { + request = new CreateMyAuthTokenRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyAuthToken = MyAuthToken, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyAuthToken(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyAuthToken); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorInitiator.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorInitiator.cs new file mode 100644 index 000000000..08fe701aa --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorInitiator.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyAuthenticationFactorInitiator")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyAuthenticationFactorInitiator), typeof(Oci.IdentitydomainsService.Responses.CreateMyAuthenticationFactorInitiatorResponse) })] + public class NewOCIIdentitydomainsMyAuthenticationFactorInitiator : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyAuthenticationFactorInitiator schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyAuthenticationFactorInitiator MyAuthenticationFactorInitiator { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyAuthenticationFactorInitiatorRequest request; + + try + { + request = new CreateMyAuthenticationFactorInitiatorRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyAuthenticationFactorInitiator = MyAuthenticationFactorInitiator, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyAuthenticationFactorInitiator(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyAuthenticationFactorInitiator); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyAuthenticationFactorInitiatorResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorValidator.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorValidator.cs new file mode 100644 index 000000000..928c38358 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorValidator.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyAuthenticationFactorValidator")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyAuthenticationFactorValidator), typeof(Oci.IdentitydomainsService.Responses.CreateMyAuthenticationFactorValidatorResponse) })] + public class NewOCIIdentitydomainsMyAuthenticationFactorValidator : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyAuthenticationFactorValidator schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyAuthenticationFactorValidator MyAuthenticationFactorValidator { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyAuthenticationFactorValidatorRequest request; + + try + { + request = new CreateMyAuthenticationFactorValidatorRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyAuthenticationFactorValidator = MyAuthenticationFactorValidator, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyAuthenticationFactorValidator(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyAuthenticationFactorValidator); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyAuthenticationFactorValidatorResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorsRemover.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorsRemover.cs new file mode 100644 index 000000000..8e5835ff7 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyAuthenticationFactorsRemover.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyAuthenticationFactorsRemover")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyAuthenticationFactorsRemover), typeof(Oci.IdentitydomainsService.Responses.CreateMyAuthenticationFactorsRemoverResponse) })] + public class NewOCIIdentitydomainsMyAuthenticationFactorsRemover : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyAuthenticationFactorsRemover schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyAuthenticationFactorsRemover MyAuthenticationFactorsRemover { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyAuthenticationFactorsRemoverRequest request; + + try + { + request = new CreateMyAuthenticationFactorsRemoverRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyAuthenticationFactorsRemover = MyAuthenticationFactorsRemover, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyAuthenticationFactorsRemover(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyAuthenticationFactorsRemover); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyAuthenticationFactorsRemoverResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyCustomerSecretKey.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyCustomerSecretKey.cs new file mode 100644 index 000000000..50c3e016a --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyCustomerSecretKey.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyCustomerSecretKey")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyCustomerSecretKey), typeof(Oci.IdentitydomainsService.Responses.CreateMyCustomerSecretKeyResponse) })] + public class NewOCIIdentitydomainsMyCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyCustomerSecretKey schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyCustomerSecretKey MyCustomerSecretKey { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyCustomerSecretKeyRequest request; + + try + { + request = new CreateMyCustomerSecretKeyRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyCustomerSecretKey = MyCustomerSecretKey, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyCustomerSecretKey(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyCustomerSecretKey); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyOAuth2ClientCredential.cs new file mode 100644 index 000000000..256654c57 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyOAuth2ClientCredential.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyOAuth2ClientCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyOAuth2ClientCredential), typeof(Oci.IdentitydomainsService.Responses.CreateMyOAuth2ClientCredentialResponse) })] + public class NewOCIIdentitydomainsMyOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyOAuth2ClientCredential schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyOAuth2ClientCredential MyOAuth2ClientCredential { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyOAuth2ClientCredentialRequest request; + + try + { + request = new CreateMyOAuth2ClientCredentialRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyOAuth2ClientCredential = MyOAuth2ClientCredential, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyOAuth2ClientCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyOAuth2ClientCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMySmtpCredential.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMySmtpCredential.cs new file mode 100644 index 000000000..e7e61e3e8 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMySmtpCredential.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMySmtpCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MySmtpCredential), typeof(Oci.IdentitydomainsService.Responses.CreateMySmtpCredentialResponse) })] + public class NewOCIIdentitydomainsMySmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MySmtpCredential schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MySmtpCredential MySmtpCredential { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMySmtpCredentialRequest request; + + try + { + request = new CreateMySmtpCredentialRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MySmtpCredential = MySmtpCredential, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMySmtpCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MySmtpCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMySmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMySupportAccount.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMySupportAccount.cs new file mode 100644 index 000000000..51af7433f --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMySupportAccount.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMySupportAccount")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MySupportAccount), typeof(Oci.IdentitydomainsService.Responses.CreateMySupportAccountResponse) })] + public class NewOCIIdentitydomainsMySupportAccount : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MySupportAccount schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MySupportAccount MySupportAccount { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMySupportAccountRequest request; + + try + { + request = new CreateMySupportAccountRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MySupportAccount = MySupportAccount, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMySupportAccount(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MySupportAccount); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMySupportAccountResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyUserDbCredential.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyUserDbCredential.cs new file mode 100644 index 000000000..ef45b0c8a --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsMyUserDbCredential.cs @@ -0,0 +1,75 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsMyUserDbCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MyUserDbCredential), typeof(Oci.IdentitydomainsService.Responses.CreateMyUserDbCredentialResponse) })] + public class NewOCIIdentitydomainsMyUserDbCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"MyUserDbCredentials schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MyUserDbCredential MyUserDbCredential { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateMyUserDbCredentialRequest request; + + try + { + request = new CreateMyUserDbCredentialRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MyUserDbCredential = MyUserDbCredential, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateMyUserDbCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MyUserDbCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateMyUserDbCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsOAuth2ClientCredential.cs new file mode 100644 index 000000000..791aecbdb --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsOAuth2ClientCredential.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsOAuth2ClientCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.OAuth2ClientCredential), typeof(Oci.IdentitydomainsService.Responses.CreateOAuth2ClientCredentialResponse) })] + public class NewOCIIdentitydomainsOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"OAuth2ClientCredential schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public OAuth2ClientCredential OAuth2ClientCredential { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateOAuth2ClientCredentialRequest request; + + try + { + request = new CreateOAuth2ClientCredentialRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + OAuth2ClientCredential = OAuth2ClientCredential, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateOAuth2ClientCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.OAuth2ClientCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsPasswordPolicy.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsPasswordPolicy.cs new file mode 100644 index 000000000..6f411bd87 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsPasswordPolicy.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsPasswordPolicy")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.PasswordPolicy), typeof(Oci.IdentitydomainsService.Responses.CreatePasswordPolicyResponse) })] + public class NewOCIIdentitydomainsPasswordPolicy : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"PasswordPolicy schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PasswordPolicy PasswordPolicy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreatePasswordPolicyRequest request; + + try + { + request = new CreatePasswordPolicyRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PasswordPolicy = PasswordPolicy, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreatePasswordPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, response.PasswordPolicy); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreatePasswordPolicyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsSmtpCredential.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsSmtpCredential.cs new file mode 100644 index 000000000..c45dd66a0 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsSmtpCredential.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsSmtpCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.SmtpCredential), typeof(Oci.IdentitydomainsService.Responses.CreateSmtpCredentialResponse) })] + public class NewOCIIdentitydomainsSmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"SmtpCredential schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public SmtpCredential SmtpCredential { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateSmtpCredentialRequest request; + + try + { + request = new CreateSmtpCredentialRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + SmtpCredential = SmtpCredential, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateSmtpCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SmtpCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateSmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsUser.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsUser.cs new file mode 100644 index 000000000..d34634ea4 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsUser.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsUser")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.User), typeof(Oci.IdentitydomainsService.Responses.CreateUserResponse) })] + public class NewOCIIdentitydomainsUser : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"User schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public User User { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateUserRequest request; + + try + { + request = new CreateUserRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + User = User, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateUser(request).GetAwaiter().GetResult(); + WriteOutput(response, response.User); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateUserResponse response; + } +} diff --git a/Identitydomains/Cmdlets/New-OCIIdentitydomainsUserDbCredential.cs b/Identitydomains/Cmdlets/New-OCIIdentitydomainsUserDbCredential.cs new file mode 100644 index 000000000..8eba7ba45 --- /dev/null +++ b/Identitydomains/Cmdlets/New-OCIIdentitydomainsUserDbCredential.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("New", "OCIIdentitydomainsUserDbCredential")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserDbCredential), typeof(Oci.IdentitydomainsService.Responses.CreateUserDbCredentialResponse) })] + public class NewOCIIdentitydomainsUserDbCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"UserDbCredentials schema. + +Before you specify an attribute-value in a request to create a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public UserDbCredential UserDbCredential { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + CreateUserDbCredentialRequest request; + + try + { + request = new CreateUserDbCredentialRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + UserDbCredential = UserDbCredential, + OpcRetryToken = OpcRetryToken + }; + + response = client.CreateUserDbCredential(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserDbCredential); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private CreateUserDbCredentialResponse response; + } +} diff --git a/Dataconnectivity/Cmdlets/OCINetworkValidationCmdlet.cs b/Identitydomains/Cmdlets/OCIIdentityDomainsCmdlet.cs similarity index 70% rename from Dataconnectivity/Cmdlets/OCINetworkValidationCmdlet.cs rename to Identitydomains/Cmdlets/OCIIdentityDomainsCmdlet.cs index cb4361b7c..70b4739f0 100644 --- a/Dataconnectivity/Cmdlets/OCINetworkValidationCmdlet.cs +++ b/Identitydomains/Cmdlets/OCIIdentityDomainsCmdlet.cs @@ -1,5 +1,5 @@ /* - * NOTE: Generated using OracleSDKGenerator, API Version: 20210217 + * NOTE: Generated using OracleSDKGenerator, API Version: v1 * DO NOT EDIT this file manually. * * Copyright (c) 2020, 2023, Oracle and/or its affiliates. @@ -9,13 +9,16 @@ using System; using System.Management.Automation; using Oci.Common.Retry; -using Oci.DataconnectivityService; +using Oci.IdentitydomainsService; -namespace Oci.DataconnectivityService.Cmdlets +namespace Oci.IdentitydomainsService.Cmdlets { - public abstract class OCINetworkValidationCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet + public abstract class OCIIdentityDomainsCmdlet : Oci.PSModules.Common.Cmdlets.OCICmdlet { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The value to use as the service endpoint, including any required API version path")] + public override string Endpoint { get; set; } + protected override void BeginProcessing() { base.BeginProcessing(); @@ -39,23 +42,14 @@ protected override void ProcessRecord() client?.Dispose(); int timeout = GetPreferredTimeout(); WriteDebug($"Cmdlet Timeout : {timeout} milliseconds."); - client = new NetworkValidationClient(AuthProvider, new Oci.Common.ClientConfiguration + client = new IdentityDomainsClient(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); - } + WriteDebug("Choosing Endpoint:" + Endpoint); + client.SetEndpoint(Endpoint); } catch (Exception ex) { @@ -80,7 +74,7 @@ protected override void TerminatingErrorDuringExecution(Exception ex) base.TerminatingErrorDuringExecution(ex); } - protected NetworkValidationClient client; + protected IdentityDomainsClient client; private RetryConfiguration retryConfig; } } \ No newline at end of file diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsApiKey.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsApiKey.cs new file mode 100644 index 000000000..1792a62a7 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsApiKey.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsApiKey", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteApiKeyResponse) })] + public class RemoveOCIIdentitydomainsApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string ApiKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsApiKey", "Remove")) + { + return; + } + + DeleteApiKeyRequest request; + + try + { + request = new DeleteApiKeyRequest + { + ApiKeyId = ApiKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteApiKey(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 DeleteApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsAuthToken.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsAuthToken.cs new file mode 100644 index 000000000..8b47ae46a --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsAuthToken.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsAuthToken", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteAuthTokenResponse) })] + public class RemoveOCIIdentitydomainsAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string AuthTokenId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsAuthToken", "Remove")) + { + return; + } + + DeleteAuthTokenRequest request; + + try + { + request = new DeleteAuthTokenRequest + { + AuthTokenId = AuthTokenId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteAuthToken(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 DeleteAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsCustomerSecretKey.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsCustomerSecretKey.cs new file mode 100644 index 000000000..144632362 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsCustomerSecretKey.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsCustomerSecretKey", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteCustomerSecretKeyResponse) })] + public class RemoveOCIIdentitydomainsCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string CustomerSecretKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsCustomerSecretKey", "Remove")) + { + return; + } + + DeleteCustomerSecretKeyRequest request; + + try + { + request = new DeleteCustomerSecretKeyRequest + { + CustomerSecretKeyId = CustomerSecretKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteCustomerSecretKey(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 DeleteCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsDynamicResourceGroup.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsDynamicResourceGroup.cs new file mode 100644 index 000000000..5fcb3dc51 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsDynamicResourceGroup.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsDynamicResourceGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteDynamicResourceGroupResponse) })] + public class RemoveOCIIdentitydomainsDynamicResourceGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string DynamicResourceGroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsDynamicResourceGroup", "Remove")) + { + return; + } + + DeleteDynamicResourceGroupRequest request; + + try + { + request = new DeleteDynamicResourceGroupRequest + { + DynamicResourceGroupId = DynamicResourceGroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteDynamicResourceGroup(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 DeleteDynamicResourceGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsGroup.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsGroup.cs new file mode 100644 index 000000000..3df041e03 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsGroup.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteGroupResponse) })] + public class RemoveOCIIdentitydomainsGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string GroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsGroup", "Remove")) + { + return; + } + + DeleteGroupRequest request; + + try + { + request = new DeleteGroupRequest + { + GroupId = GroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteGroup(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 DeleteGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsIdentityProvider.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsIdentityProvider.cs new file mode 100644 index 000000000..b9e6fa293 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsIdentityProvider.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsIdentityProvider", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteIdentityProviderResponse) })] + public class RemoveOCIIdentitydomainsIdentityProvider : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string IdentityProviderId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsIdentityProvider", "Remove")) + { + return; + } + + DeleteIdentityProviderRequest request; + + try + { + request = new DeleteIdentityProviderRequest + { + IdentityProviderId = IdentityProviderId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteIdentityProvider(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 DeleteIdentityProviderResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyApiKey.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyApiKey.cs new file mode 100644 index 000000000..6a471afb3 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyApiKey.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMyApiKey", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMyApiKeyResponse) })] + public class RemoveOCIIdentitydomainsMyApiKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyApiKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMyApiKey", "Remove")) + { + return; + } + + DeleteMyApiKeyRequest request; + + try + { + request = new DeleteMyApiKeyRequest + { + MyApiKeyId = MyApiKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMyApiKey(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 DeleteMyApiKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyAuthToken.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyAuthToken.cs new file mode 100644 index 000000000..9c4600cee --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyAuthToken.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMyAuthToken", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMyAuthTokenResponse) })] + public class RemoveOCIIdentitydomainsMyAuthToken : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyAuthTokenId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMyAuthToken", "Remove")) + { + return; + } + + DeleteMyAuthTokenRequest request; + + try + { + request = new DeleteMyAuthTokenRequest + { + MyAuthTokenId = MyAuthTokenId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMyAuthToken(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 DeleteMyAuthTokenResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyCustomerSecretKey.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyCustomerSecretKey.cs new file mode 100644 index 000000000..24d0ab515 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyCustomerSecretKey.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMyCustomerSecretKey", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMyCustomerSecretKeyResponse) })] + public class RemoveOCIIdentitydomainsMyCustomerSecretKey : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyCustomerSecretKeyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMyCustomerSecretKey", "Remove")) + { + return; + } + + DeleteMyCustomerSecretKeyRequest request; + + try + { + request = new DeleteMyCustomerSecretKeyRequest + { + MyCustomerSecretKeyId = MyCustomerSecretKeyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMyCustomerSecretKey(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 DeleteMyCustomerSecretKeyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyDevice.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyDevice.cs new file mode 100644 index 000000000..8e9fb7149 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyDevice.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMyDevice", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMyDeviceResponse) })] + public class RemoveOCIIdentitydomainsMyDevice : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyDeviceId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMyDevice", "Remove")) + { + return; + } + + DeleteMyDeviceRequest request; + + try + { + request = new DeleteMyDeviceRequest + { + MyDeviceId = MyDeviceId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMyDevice(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 DeleteMyDeviceResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyOAuth2ClientCredential.cs new file mode 100644 index 000000000..fd6f74660 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyOAuth2ClientCredential.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMyOAuth2ClientCredential", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMyOAuth2ClientCredentialResponse) })] + public class RemoveOCIIdentitydomainsMyOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyOAuth2ClientCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMyOAuth2ClientCredential", "Remove")) + { + return; + } + + DeleteMyOAuth2ClientCredentialRequest request; + + try + { + request = new DeleteMyOAuth2ClientCredentialRequest + { + MyOAuth2ClientCredentialId = MyOAuth2ClientCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMyOAuth2ClientCredential(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 DeleteMyOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySmtpCredential.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySmtpCredential.cs new file mode 100644 index 000000000..cd567b624 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySmtpCredential.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMySmtpCredential", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMySmtpCredentialResponse) })] + public class RemoveOCIIdentitydomainsMySmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MySmtpCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMySmtpCredential", "Remove")) + { + return; + } + + DeleteMySmtpCredentialRequest request; + + try + { + request = new DeleteMySmtpCredentialRequest + { + MySmtpCredentialId = MySmtpCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMySmtpCredential(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 DeleteMySmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySupportAccount.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySupportAccount.cs new file mode 100644 index 000000000..1f39ed132 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMySupportAccount.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMySupportAccount", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMySupportAccountResponse) })] + public class RemoveOCIIdentitydomainsMySupportAccount : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MySupportAccountId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMySupportAccount", "Remove")) + { + return; + } + + DeleteMySupportAccountRequest request; + + try + { + request = new DeleteMySupportAccountRequest + { + MySupportAccountId = MySupportAccountId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMySupportAccount(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 DeleteMySupportAccountResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyTrustedUserAgent.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyTrustedUserAgent.cs new file mode 100644 index 000000000..629b6c20f --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyTrustedUserAgent.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMyTrustedUserAgent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMyTrustedUserAgentResponse) })] + public class RemoveOCIIdentitydomainsMyTrustedUserAgent : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyTrustedUserAgentId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMyTrustedUserAgent", "Remove")) + { + return; + } + + DeleteMyTrustedUserAgentRequest request; + + try + { + request = new DeleteMyTrustedUserAgentRequest + { + MyTrustedUserAgentId = MyTrustedUserAgentId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMyTrustedUserAgent(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 DeleteMyTrustedUserAgentResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyUserDbCredential.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyUserDbCredential.cs new file mode 100644 index 000000000..ba6c88179 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsMyUserDbCredential.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsMyUserDbCredential", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteMyUserDbCredentialResponse) })] + public class RemoveOCIIdentitydomainsMyUserDbCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string MyUserDbCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsMyUserDbCredential", "Remove")) + { + return; + } + + DeleteMyUserDbCredentialRequest request; + + try + { + request = new DeleteMyUserDbCredentialRequest + { + MyUserDbCredentialId = MyUserDbCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteMyUserDbCredential(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 DeleteMyUserDbCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsOAuth2ClientCredential.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsOAuth2ClientCredential.cs new file mode 100644 index 000000000..a7f79cd01 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsOAuth2ClientCredential.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsOAuth2ClientCredential", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteOAuth2ClientCredentialResponse) })] + public class RemoveOCIIdentitydomainsOAuth2ClientCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string OAuth2ClientCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsOAuth2ClientCredential", "Remove")) + { + return; + } + + DeleteOAuth2ClientCredentialRequest request; + + try + { + request = new DeleteOAuth2ClientCredentialRequest + { + OAuth2ClientCredentialId = OAuth2ClientCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteOAuth2ClientCredential(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 DeleteOAuth2ClientCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsPasswordPolicy.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsPasswordPolicy.cs new file mode 100644 index 000000000..ee0df1b22 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsPasswordPolicy.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsPasswordPolicy", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeletePasswordPolicyResponse) })] + public class RemoveOCIIdentitydomainsPasswordPolicy : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string PasswordPolicyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsPasswordPolicy", "Remove")) + { + return; + } + + DeletePasswordPolicyRequest request; + + try + { + request = new DeletePasswordPolicyRequest + { + PasswordPolicyId = PasswordPolicyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeletePasswordPolicy(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 DeletePasswordPolicyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsSmtpCredential.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsSmtpCredential.cs new file mode 100644 index 000000000..e2e4aa236 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsSmtpCredential.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsSmtpCredential", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteSmtpCredentialResponse) })] + public class RemoveOCIIdentitydomainsSmtpCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string SmtpCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsSmtpCredential", "Remove")) + { + return; + } + + DeleteSmtpCredentialRequest request; + + try + { + request = new DeleteSmtpCredentialRequest + { + SmtpCredentialId = SmtpCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteSmtpCredential(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 DeleteSmtpCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUser.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUser.cs new file mode 100644 index 000000000..4b8dddce4 --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUser.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsUser", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteUserResponse) })] + public class RemoveOCIIdentitydomainsUser : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsUser", "Remove")) + { + return; + } + + DeleteUserRequest request; + + try + { + request = new DeleteUserRequest + { + UserId = UserId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteUser(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 DeleteUserResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUserDbCredential.cs b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUserDbCredential.cs new file mode 100644 index 000000000..561c6ccdb --- /dev/null +++ b/Identitydomains/Cmdlets/Remove-OCIIdentitydomainsUserDbCredential.cs @@ -0,0 +1,88 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Remove", "OCIIdentitydomainsUserDbCredential", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + [OutputType(new System.Type[] { typeof(void), typeof(Oci.IdentitydomainsService.Responses.DeleteUserDbCredentialResponse) })] + public class RemoveOCIIdentitydomainsUserDbCredential : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserDbCredentialId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"To force delete the resource and all its references (if any).")] + public System.Nullable ForceDelete { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + 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("OCIIdentitydomainsUserDbCredential", "Remove")) + { + return; + } + + DeleteUserDbCredentialRequest request; + + try + { + request = new DeleteUserDbCredentialRequest + { + UserDbCredentialId = UserDbCredentialId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + ForceDelete = ForceDelete, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.DeleteUserDbCredential(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 DeleteUserDbCredentialResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsAuthenticationFactorSetting.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsAuthenticationFactorSetting.cs new file mode 100644 index 000000000..8b0fc7afb --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsAuthenticationFactorSetting.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsAuthenticationFactorSetting")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.AuthenticationFactorSetting), typeof(Oci.IdentitydomainsService.Responses.PutAuthenticationFactorSettingResponse) })] + public class WriteOCIIdentitydomainsAuthenticationFactorSetting : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string AuthenticationFactorSettingId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of AuthenticationFactorSettings with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public AuthenticationFactorSetting AuthenticationFactorSetting { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutAuthenticationFactorSettingRequest request; + + try + { + request = new PutAuthenticationFactorSettingRequest + { + AuthenticationFactorSettingId = AuthenticationFactorSettingId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + AuthenticationFactorSetting = AuthenticationFactorSetting, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutAuthenticationFactorSetting(request).GetAwaiter().GetResult(); + WriteOutput(response, response.AuthenticationFactorSetting); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutAuthenticationFactorSettingResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsDynamicResourceGroup.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsDynamicResourceGroup.cs new file mode 100644 index 000000000..02e2a7aad --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsDynamicResourceGroup.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsDynamicResourceGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.DynamicResourceGroup), typeof(Oci.IdentitydomainsService.Responses.PutDynamicResourceGroupResponse) })] + public class WriteOCIIdentitydomainsDynamicResourceGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string DynamicResourceGroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of DynamicResourceGroup with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public DynamicResourceGroup DynamicResourceGroup { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutDynamicResourceGroupRequest request; + + try + { + request = new PutDynamicResourceGroupRequest + { + DynamicResourceGroupId = DynamicResourceGroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + DynamicResourceGroup = DynamicResourceGroup, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutDynamicResourceGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.DynamicResourceGroup); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutDynamicResourceGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsGroup.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsGroup.cs new file mode 100644 index 000000000..19b3680b6 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsGroup.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsGroup")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Group), typeof(Oci.IdentitydomainsService.Responses.PutGroupResponse) })] + public class WriteOCIIdentitydomainsGroup : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string GroupId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of Group with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public Group Group { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutGroupRequest request; + + try + { + request = new PutGroupRequest + { + GroupId = GroupId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + Group = Group, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutGroup(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Group); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutGroupResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsIdentityProvider.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsIdentityProvider.cs new file mode 100644 index 000000000..69b71e522 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsIdentityProvider.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsIdentityProvider")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.IdentityProvider), typeof(Oci.IdentitydomainsService.Responses.PutIdentityProviderResponse) })] + public class WriteOCIIdentitydomainsIdentityProvider : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string IdentityProviderId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of IdentityProvider with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public IdentityProvider IdentityProvider { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutIdentityProviderRequest request; + + try + { + request = new PutIdentityProviderRequest + { + IdentityProviderId = IdentityProviderId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + IdentityProvider = IdentityProvider, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutIdentityProvider(request).GetAwaiter().GetResult(); + WriteOutput(response, response.IdentityProvider); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutIdentityProviderResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsKmsiSetting.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsKmsiSetting.cs new file mode 100644 index 000000000..b14143bba --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsKmsiSetting.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsKmsiSetting")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.KmsiSetting), typeof(Oci.IdentitydomainsService.Responses.PutKmsiSettingResponse) })] + public class WriteOCIIdentitydomainsKmsiSetting : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string KmsiSettingId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of KmsiSettings with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public KmsiSetting KmsiSetting { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutKmsiSettingRequest request; + + try + { + request = new PutKmsiSettingRequest + { + KmsiSettingId = KmsiSettingId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + KmsiSetting = KmsiSetting, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutKmsiSetting(request).GetAwaiter().GetResult(); + WriteOutput(response, response.KmsiSetting); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutKmsiSettingResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsMe.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsMe.cs new file mode 100644 index 000000000..03e50d3a9 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsMe.cs @@ -0,0 +1,87 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsMe")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.Me), typeof(Oci.IdentitydomainsService.Responses.PutMeResponse) })] + public class WriteOCIIdentitydomainsMe : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of Me with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public Me Me { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutMeRequest request; + + try + { + request = new PutMeRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + Me = Me, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutMe(request).GetAwaiter().GetResult(); + WriteOutput(response, response.Me); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutMeResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsMePasswordChanger.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsMePasswordChanger.cs new file mode 100644 index 000000000..8ecb92c17 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsMePasswordChanger.cs @@ -0,0 +1,79 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsMePasswordChanger")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.MePasswordChanger), typeof(Oci.IdentitydomainsService.Responses.PutMePasswordChangerResponse) })] + public class WriteOCIIdentitydomainsMePasswordChanger : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of MePasswordChanger with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public MePasswordChanger MePasswordChanger { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutMePasswordChangerRequest request; + + try + { + request = new PutMePasswordChangerRequest + { + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + MePasswordChanger = MePasswordChanger, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutMePasswordChanger(request).GetAwaiter().GetResult(); + WriteOutput(response, response.MePasswordChanger); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutMePasswordChangerResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsPasswordPolicy.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsPasswordPolicy.cs new file mode 100644 index 000000000..7335fadf5 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsPasswordPolicy.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsPasswordPolicy")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.PasswordPolicy), typeof(Oci.IdentitydomainsService.Responses.PutPasswordPolicyResponse) })] + public class WriteOCIIdentitydomainsPasswordPolicy : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string PasswordPolicyId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of PasswordPolicy with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public PasswordPolicy PasswordPolicy { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutPasswordPolicyRequest request; + + try + { + request = new PutPasswordPolicyRequest + { + PasswordPolicyId = PasswordPolicyId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + PasswordPolicy = PasswordPolicy, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutPasswordPolicy(request).GetAwaiter().GetResult(); + WriteOutput(response, response.PasswordPolicy); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutPasswordPolicyResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUser.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUser.cs new file mode 100644 index 000000000..e72461c43 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUser.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsUser")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.User), typeof(Oci.IdentitydomainsService.Responses.PutUserResponse) })] + public class WriteOCIIdentitydomainsUser : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of User with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public User User { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutUserRequest request; + + try + { + request = new PutUserRequest + { + UserId = UserId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + User = User, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutUser(request).GetAwaiter().GetResult(); + WriteOutput(response, response.User); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutUserResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserCapabilitiesChanger.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserCapabilitiesChanger.cs new file mode 100644 index 000000000..8cdfa6398 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserCapabilitiesChanger.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsUserCapabilitiesChanger")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserCapabilitiesChanger), typeof(Oci.IdentitydomainsService.Responses.PutUserCapabilitiesChangerResponse) })] + public class WriteOCIIdentitydomainsUserCapabilitiesChanger : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserCapabilitiesChangerId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of UserCapabilitiesChanger with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public UserCapabilitiesChanger UserCapabilitiesChanger { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutUserCapabilitiesChangerRequest request; + + try + { + request = new PutUserCapabilitiesChangerRequest + { + UserCapabilitiesChangerId = UserCapabilitiesChangerId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + UserCapabilitiesChanger = UserCapabilitiesChanger, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutUserCapabilitiesChanger(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserCapabilitiesChanger); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutUserCapabilitiesChangerResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordChanger.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordChanger.cs new file mode 100644 index 000000000..751cc7257 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordChanger.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsUserPasswordChanger")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserPasswordChanger), typeof(Oci.IdentitydomainsService.Responses.PutUserPasswordChangerResponse) })] + public class WriteOCIIdentitydomainsUserPasswordChanger : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserPasswordChangerId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of UserPasswordChanger with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public UserPasswordChanger UserPasswordChanger { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutUserPasswordChangerRequest request; + + try + { + request = new PutUserPasswordChangerRequest + { + UserPasswordChangerId = UserPasswordChangerId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + UserPasswordChanger = UserPasswordChanger, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutUserPasswordChanger(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserPasswordChanger); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutUserPasswordChangerResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordResetter.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordResetter.cs new file mode 100644 index 000000000..c443db544 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserPasswordResetter.cs @@ -0,0 +1,83 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsUserPasswordResetter")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserPasswordResetter), typeof(Oci.IdentitydomainsService.Responses.PutUserPasswordResetterResponse) })] + public class WriteOCIIdentitydomainsUserPasswordResetter : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserPasswordResetterId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of UserPasswordResetter with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public UserPasswordResetter UserPasswordResetter { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutUserPasswordResetterRequest request; + + try + { + request = new PutUserPasswordResetterRequest + { + UserPasswordResetterId = UserPasswordResetterId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + UserPasswordResetter = UserPasswordResetter, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutUserPasswordResetter(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserPasswordResetter); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutUserPasswordResetterResponse response; + } +} diff --git a/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserStatusChanger.cs b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserStatusChanger.cs new file mode 100644 index 000000000..f34242ab8 --- /dev/null +++ b/Identitydomains/Cmdlets/Write-OCIIdentitydomainsUserStatusChanger.cs @@ -0,0 +1,91 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: v1 + * 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.IdentitydomainsService.Requests; +using Oci.IdentitydomainsService.Responses; +using Oci.IdentitydomainsService.Models; +using Oci.Common.Model; + +namespace Oci.IdentitydomainsService.Cmdlets +{ + [Cmdlet("Write", "OCIIdentitydomainsUserStatusChanger")] + [OutputType(new System.Type[] { typeof(Oci.IdentitydomainsService.Models.UserStatusChanger), typeof(Oci.IdentitydomainsService.Responses.PutUserStatusChangerResponse) })] + public class WriteOCIIdentitydomainsUserStatusChanger : OCIIdentityDomainsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"ID of the resource")] + public string UserStatusChangerId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"The Authorization field value consists of credentials containing the authentication information of the user agent for the realm of the resource being requested.")] + public string Authorization { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"An endpoint-specific schema version number to use in the Request. Allowed version values are Earliest Version or Latest Version as specified in each REST API endpoint description, or any sequential number inbetween. All schema attributes/body parameters are a part of version 1. After version 1, any attributes added or deprecated will be tagged with the version that they were added to or deprecated in. If no version is provided, the latest schema version is returned.")] + public string ResourceTypeSchemaVersion { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A comma-delimited string that specifies the names of resource attributes that should be returned in the response. By default, a response that contains resource attributes contains only attributes that are defined in the schema for that resource type as returned=always or returned=default. An attribute that is defined as returned=request is returned in a response only if the request specifies its name in the value of this query parameter. If a request specifies this query parameter, the response contains the attributes that this query parameter specifies, as well as any attribute that is defined as returned=always.")] + public string Attributes { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A multi-valued list of strings indicating the return type of attribute definition. The specified set of attributes can be fetched by the return type of the attribute. One or more values can be given together to fetch more than one group of attributes. If 'attributes' query parameter is also available, union of the two is fetched. Valid values - all, always, never, request, default. Values are case-insensitive.")] + public System.Collections.Generic.List AttributeSets { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Replace the current instance of UserStatusChanger with provided payload. + +Before you specify an attribute-value in a request to replace a resource, please check the **'mutability'** property of that attribute in the resource-type schema below. Clicking on an attribute-row will expand that row to show the **SCIM++ Properties** of that attribute. - Your request to create, update or replace a resource may specify in its payload a value for any attribute that is defined as *mutability:readWrite* or *mutability:writeOnly* or *mutability:immutable*: - The SCIM APIs to create a resource will ignore silently any value that you specify for an attribute that is defined as *mutability:readOnly*. - The SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify a value for an attribute that is defined as *mutability:readOnly*. - Similarly, the SCIM APIs to update or replace a resource will fail with an error 400 Bad Request if you specify any value for an attribute that is defined as *mutability:immutable* and that already has a value in the specified resource. + +Also, before you use the query-parameter attributes to request specific attributes, please check the **'returned'** property of that attribute in the resource-type schema below: - Your request to read a resource (or to search a resource-type) can specify as the value of attributes any attributes that are defined as *returned:default* or *returned:request* or *returned:always*: - If you request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the set of attributes that you requested, as well as any attribute that is defined as *returned:always*. - If you do not request a specific set of attributes, the SCIM APIs to read a resource (or to search a resource-type) will return in each resource the the set of attributes defined as *returned:default*, as well as any attribute that is defined as *returned:always*. - The SCIM APIs to read a resource (or to search a resource-type) will ignore silently any request to return an attribute that is defined as *returned:never*.")] + public UserStatusChanger UserStatusChanger { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Used to make the request conditional on an ETag")] + public string IfMatch { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.")] + public string OpcRetryToken { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + PutUserStatusChangerRequest request; + + try + { + request = new PutUserStatusChangerRequest + { + UserStatusChangerId = UserStatusChangerId, + Authorization = Authorization, + ResourceTypeSchemaVersion = ResourceTypeSchemaVersion, + Attributes = Attributes, + AttributeSets = AttributeSets, + UserStatusChanger = UserStatusChanger, + IfMatch = IfMatch, + OpcRetryToken = OpcRetryToken + }; + + response = client.PutUserStatusChanger(request).GetAwaiter().GetResult(); + WriteOutput(response, response.UserStatusChanger); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private PutUserStatusChangerResponse response; + } +} diff --git a/Dataconnectivity/OCI.PSModules.Dataconnectivity.csproj b/Identitydomains/OCI.PSModules.Identitydomains.csproj similarity index 54% rename from Dataconnectivity/OCI.PSModules.Dataconnectivity.csproj rename to Identitydomains/OCI.PSModules.Identitydomains.csproj index 0d64836ba..a8a7ed49d 100644 --- a/Dataconnectivity/OCI.PSModules.Dataconnectivity.csproj +++ b/Identitydomains/OCI.PSModules.Identitydomains.csproj @@ -1,19 +1,19 @@ - + netstandard2.0 - OCI.PSModules.Dataconnectivity - OCI.PSModules.Dataconnectivity + OCI.PSModules.Identitydomains + OCI.PSModules.Identitydomains Oracle Cloud Infrastructure Oracle 8.0 - Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Dataconnectivity - Dataconnectivity Service + Oracle;OCI;Cloud;oci-sdk;OracleCloudInfrastructure;Identitydomains + Identitydomains Service - + diff --git a/Identitydomains/OCI.PSModules.Identitydomains.psd1 b/Identitydomains/OCI.PSModules.Identitydomains.psd1 new file mode 100644 index 000000000..92de9ad61 --- /dev/null +++ b/Identitydomains/OCI.PSModules.Identitydomains.psd1 @@ -0,0 +1,259 @@ +# +# Module manifest for module 'OCI.PSModules.Identitydomains' +# +# Generated by: Oracle Cloud Infrastructure +# +# + +@{ + +# Script module or binary module file associated with this manifest. +RootModule = 'assemblies/OCI.PSModules.Identitydomains.dll' + +# Version number of this module. +ModuleVersion = '51.0.0' + +# Supported PSEditions +CompatiblePSEditions = 'Core' + +# ID used to uniquely identify this module +GUID = 'a6c13cbd-d51d-4887-9285-9eb20c02e9cc' + +# 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 Identitydomains 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 = '51.0.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Identitydomains.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-OCIIdentitydomainsApiKey', 'Get-OCIIdentitydomainsApiKeysList', + 'Get-OCIIdentitydomainsAuthenticationFactorSetting', + 'Get-OCIIdentitydomainsAuthenticationFactorSettingsList', + 'Get-OCIIdentitydomainsAuthToken', + 'Get-OCIIdentitydomainsAuthTokensList', + 'Get-OCIIdentitydomainsCustomerSecretKey', + 'Get-OCIIdentitydomainsCustomerSecretKeysList', + 'Get-OCIIdentitydomainsDynamicResourceGroup', + 'Get-OCIIdentitydomainsDynamicResourceGroupsList', + 'Get-OCIIdentitydomainsGroup', 'Get-OCIIdentitydomainsGroupsList', + 'Get-OCIIdentitydomainsIdentityProvider', + 'Get-OCIIdentitydomainsIdentityProvidersList', + 'Get-OCIIdentitydomainsKmsiSetting', + 'Get-OCIIdentitydomainsKmsiSettingsList', + 'Get-OCIIdentitydomainsMe', 'Get-OCIIdentitydomainsMyApiKey', + 'Get-OCIIdentitydomainsMyApiKeysList', + 'Get-OCIIdentitydomainsMyAuthToken', + 'Get-OCIIdentitydomainsMyAuthTokensList', + 'Get-OCIIdentitydomainsMyCustomerSecretKey', + 'Get-OCIIdentitydomainsMyCustomerSecretKeysList', + 'Get-OCIIdentitydomainsMyDevice', + 'Get-OCIIdentitydomainsMyDevicesList', + 'Get-OCIIdentitydomainsMyGroupsList', + 'Get-OCIIdentitydomainsMyOAuth2ClientCredential', + 'Get-OCIIdentitydomainsMyOAuth2ClientCredentialsList', + 'Get-OCIIdentitydomainsMySmtpCredential', + 'Get-OCIIdentitydomainsMySmtpCredentialsList', + 'Get-OCIIdentitydomainsMySupportAccount', + 'Get-OCIIdentitydomainsMySupportAccountsList', + 'Get-OCIIdentitydomainsMyTrustedUserAgent', + 'Get-OCIIdentitydomainsMyTrustedUserAgentsList', + 'Get-OCIIdentitydomainsMyUserDbCredential', + 'Get-OCIIdentitydomainsMyUserDbCredentialsList', + 'Get-OCIIdentitydomainsOAuth2ClientCredential', + 'Get-OCIIdentitydomainsOAuth2ClientCredentialsList', + 'Get-OCIIdentitydomainsPasswordPoliciesList', + 'Get-OCIIdentitydomainsPasswordPolicy', + 'Get-OCIIdentitydomainsSmtpCredential', + 'Get-OCIIdentitydomainsSmtpCredentialsList', + 'Get-OCIIdentitydomainsUser', + 'Get-OCIIdentitydomainsUserDbCredential', + 'Get-OCIIdentitydomainsUserDbCredentialsList', + 'Get-OCIIdentitydomainsUsersList', + 'Invoke-OCIIdentitydomainsPatchApiKey', + 'Invoke-OCIIdentitydomainsPatchAuthToken', + 'Invoke-OCIIdentitydomainsPatchCustomerSecretKey', + 'Invoke-OCIIdentitydomainsPatchDynamicResourceGroup', + 'Invoke-OCIIdentitydomainsPatchGroup', + 'Invoke-OCIIdentitydomainsPatchIdentityProvider', + 'Invoke-OCIIdentitydomainsPatchKmsiSetting', + 'Invoke-OCIIdentitydomainsPatchMe', + 'Invoke-OCIIdentitydomainsPatchMyApiKey', + 'Invoke-OCIIdentitydomainsPatchMyAuthToken', + 'Invoke-OCIIdentitydomainsPatchMyCustomerSecretKey', + 'Invoke-OCIIdentitydomainsPatchMyDevice', + 'Invoke-OCIIdentitydomainsPatchMyOAuth2ClientCredential', + 'Invoke-OCIIdentitydomainsPatchMySmtpCredential', + 'Invoke-OCIIdentitydomainsPatchOAuth2ClientCredential', + 'Invoke-OCIIdentitydomainsPatchPasswordPolicy', + 'Invoke-OCIIdentitydomainsPatchSmtpCredential', + 'Invoke-OCIIdentitydomainsPatchUser', + 'Invoke-OCIIdentitydomainsSearchApiKeys', + 'Invoke-OCIIdentitydomainsSearchAuthenticationFactorSettings', + 'Invoke-OCIIdentitydomainsSearchAuthTokens', + 'Invoke-OCIIdentitydomainsSearchCustomerSecretKeys', + 'Invoke-OCIIdentitydomainsSearchDynamicResourceGroups', + 'Invoke-OCIIdentitydomainsSearchGroups', + 'Invoke-OCIIdentitydomainsSearchIdentityProviders', + 'Invoke-OCIIdentitydomainsSearchKmsiSettings', + 'Invoke-OCIIdentitydomainsSearchMyGroups', + 'Invoke-OCIIdentitydomainsSearchOAuth2ClientCredentials', + 'Invoke-OCIIdentitydomainsSearchPasswordPolicies', + 'Invoke-OCIIdentitydomainsSearchSmtpCredentials', + 'Invoke-OCIIdentitydomainsSearchUserDbCredentials', + 'Invoke-OCIIdentitydomainsSearchUsers', + 'New-OCIIdentitydomainsApiKey', + 'New-OCIIdentitydomainsAuthenticationFactorsRemover', + 'New-OCIIdentitydomainsAuthToken', + 'New-OCIIdentitydomainsCustomerSecretKey', + 'New-OCIIdentitydomainsDynamicResourceGroup', + 'New-OCIIdentitydomainsGroup', + 'New-OCIIdentitydomainsIdentityProvider', + 'New-OCIIdentitydomainsMe', 'New-OCIIdentitydomainsMyApiKey', + 'New-OCIIdentitydomainsMyAuthenticationFactorInitiator', + 'New-OCIIdentitydomainsMyAuthenticationFactorsRemover', + 'New-OCIIdentitydomainsMyAuthenticationFactorValidator', + 'New-OCIIdentitydomainsMyAuthToken', + 'New-OCIIdentitydomainsMyCustomerSecretKey', + 'New-OCIIdentitydomainsMyOAuth2ClientCredential', + 'New-OCIIdentitydomainsMySmtpCredential', + 'New-OCIIdentitydomainsMySupportAccount', + 'New-OCIIdentitydomainsMyUserDbCredential', + 'New-OCIIdentitydomainsOAuth2ClientCredential', + 'New-OCIIdentitydomainsPasswordPolicy', + 'New-OCIIdentitydomainsSmtpCredential', + 'New-OCIIdentitydomainsUser', + 'New-OCIIdentitydomainsUserDbCredential', + 'Remove-OCIIdentitydomainsApiKey', + 'Remove-OCIIdentitydomainsAuthToken', + 'Remove-OCIIdentitydomainsCustomerSecretKey', + 'Remove-OCIIdentitydomainsDynamicResourceGroup', + 'Remove-OCIIdentitydomainsGroup', + 'Remove-OCIIdentitydomainsIdentityProvider', + 'Remove-OCIIdentitydomainsMyApiKey', + 'Remove-OCIIdentitydomainsMyAuthToken', + 'Remove-OCIIdentitydomainsMyCustomerSecretKey', + 'Remove-OCIIdentitydomainsMyDevice', + 'Remove-OCIIdentitydomainsMyOAuth2ClientCredential', + 'Remove-OCIIdentitydomainsMySmtpCredential', + 'Remove-OCIIdentitydomainsMySupportAccount', + 'Remove-OCIIdentitydomainsMyTrustedUserAgent', + 'Remove-OCIIdentitydomainsMyUserDbCredential', + 'Remove-OCIIdentitydomainsOAuth2ClientCredential', + 'Remove-OCIIdentitydomainsPasswordPolicy', + 'Remove-OCIIdentitydomainsSmtpCredential', + 'Remove-OCIIdentitydomainsUser', + 'Remove-OCIIdentitydomainsUserDbCredential', + 'Write-OCIIdentitydomainsAuthenticationFactorSetting', + 'Write-OCIIdentitydomainsDynamicResourceGroup', + 'Write-OCIIdentitydomainsGroup', + 'Write-OCIIdentitydomainsIdentityProvider', + 'Write-OCIIdentitydomainsKmsiSetting', 'Write-OCIIdentitydomainsMe', + 'Write-OCIIdentitydomainsMePasswordChanger', + 'Write-OCIIdentitydomainsPasswordPolicy', + 'Write-OCIIdentitydomainsUser', + 'Write-OCIIdentitydomainsUserCapabilitiesChanger', + 'Write-OCIIdentitydomainsUserPasswordChanger', + 'Write-OCIIdentitydomainsUserPasswordResetter', + 'Write-OCIIdentitydomainsUserStatusChanger' + +# 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','Identitydomains' + + # 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/Integration/OCI.PSModules.Integration.psd1 b/Integration/OCI.PSModules.Integration.psd1 index 8054783af..d73c1e892 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 2c299ac4e..c2fea7308 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 59a800d42..87cc9884a 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 3b89e8878..23653b669 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 cd6017e1c..e16a6b811 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 d7dc4247c..805d40442 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loadbalancer.dll' diff --git a/Lockbox/OCI.PSModules.Lockbox.psd1 b/Lockbox/OCI.PSModules.Lockbox.psd1 index e931a5676..aa794b1fd 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Lockbox.dll' diff --git a/Loganalytics/OCI.PSModules.Loganalytics.psd1 b/Loganalytics/OCI.PSModules.Loganalytics.psd1 index be37704a2..f7e7f22ca 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Loganalytics.dll' diff --git a/Logging/OCI.PSModules.Logging.psd1 b/Logging/OCI.PSModules.Logging.psd1 index f17aa6829..fdff66b26 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 ef270da8c..197446758 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 eddd7c433..c4199e172 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 104dc9b7b..394ecf99e 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 9ff953043..b26138d40 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 603dfddc3..2af027cbb 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Marketplace.dll' diff --git a/Mediaservices/OCI.PSModules.Mediaservices.psd1 b/Mediaservices/OCI.PSModules.Mediaservices.psd1 index 5eb242b3e..2df3b9edc 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 c7a69e682..65c58d742 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 9044da8d9..da3489680 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Mysql.dll' diff --git a/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 b/Networkfirewall/OCI.PSModules.Networkfirewall.psd1 index 0db38343b..f6a46cd8e 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Networkfirewall.dll' diff --git a/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 b/Networkloadbalancer/OCI.PSModules.Networkloadbalancer.psd1 index 31f44f296..946177767 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 231cb09b3..69ab8a5e3 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 a43940383..6ce9ca15f 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 8b0f07c21..f55d79278 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Oce.dll' diff --git a/Ocvp/OCI.PSModules.Ocvp.psd1 b/Ocvp/OCI.PSModules.Ocvp.psd1 index 987782794..81dbc2a6c 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 1a5fccf91..5fcb633a4 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 972dcdc64..b5de69273 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 6ed1c9649..ac21ce9d2 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 a77361397..5d3a5162d 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 abcda1388..c25c666a3 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 deefbf4a1..8d008e87b 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Operatoraccesscontrol.dll' diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightNetworkUsageTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightNetworkUsageTrend.cs new file mode 100644 index 000000000..8843ab3eb --- /dev/null +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightNetworkUsageTrend.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200630 + * 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.OpsiService.Requests; +using Oci.OpsiService.Responses; +using Oci.OpsiService.Models; +using Oci.Common.Model; + +namespace Oci.OpsiService.Cmdlets +{ + [Cmdlet("Invoke", "OCIOpsiSummarizeHostInsightNetworkUsageTrend")] + [OutputType(new System.Type[] { typeof(Oci.OpsiService.Models.SummarizeHostInsightNetworkUsageTrendAggregationCollection), typeof(Oci.OpsiService.Responses.SummarizeHostInsightNetworkUsageTrendResponse) })] + public class InvokeOCIOpsiSummarizeHostInsightNetworkUsageTrend : OCIOperationsInsightsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Required [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host insight resource.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] + public string AnalysisTimeInterval { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored.")] + public System.Nullable TimeIntervalStart { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd.")] + public System.Nullable TimeIntervalEnd { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] + public string HostId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine).")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Example: `50`")] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Choose the type of statistic metric data to be used for forecasting.")] + public System.Nullable Statistic { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SummarizeHostInsightNetworkUsageTrendRequest request; + + try + { + request = new SummarizeHostInsightNetworkUsageTrendRequest + { + CompartmentId = CompartmentId, + Id = Id, + AnalysisTimeInterval = AnalysisTimeInterval, + TimeIntervalStart = TimeIntervalStart, + TimeIntervalEnd = TimeIntervalEnd, + HostId = HostId, + Page = Page, + Limit = Limit, + Statistic = Statistic, + OpcRequestId = OpcRequestId + }; + + response = client.SummarizeHostInsightNetworkUsageTrend(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SummarizeHostInsightNetworkUsageTrendAggregationCollection); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SummarizeHostInsightNetworkUsageTrendResponse response; + } +} diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs index d5bf64d86..445319ff0 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend.cs @@ -22,7 +22,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceCapacityTrend : OCIOperati [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] public string CompartmentId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK.")] public string ResourceMetric { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] @@ -82,6 +82,12 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceCapacityTrend : OCIOperati [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional list of Exadata Insight VM cluster name.")] public System.Collections.Generic.List VmclusterName { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered highly utilized.")] + public System.Nullable HighUtilizationThreshold { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered low utilized.")] + public System.Nullable LowUtilizationThreshold { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); @@ -111,7 +117,9 @@ protected override void ProcessRecord() CompartmentIdInSubtree = CompartmentIdInSubtree, HostType = HostType, HostId = HostId, - VmclusterName = VmclusterName + VmclusterName = VmclusterName, + HighUtilizationThreshold = HighUtilizationThreshold, + LowUtilizationThreshold = LowUtilizationThreshold }; response = client.SummarizeHostInsightResourceCapacityTrend(request).GetAwaiter().GetResult(); diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs index 8c4011d9c..a890a1764 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend.cs @@ -22,7 +22,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceForecastTrend : OCIOperati [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] public string CompartmentId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK.")] public string ResourceMetric { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] @@ -88,6 +88,18 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceForecastTrend : OCIOperati [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional list of Exadata Insight VM cluster name.")] public System.Collections.Generic.List VmclusterName { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered highly utilized.")] + public System.Nullable HighUtilizationThreshold { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered low utilized.")] + public System.Nullable LowUtilizationThreshold { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Mount points are specialized NTFS filesystem objects.")] + public string MountPoint { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Name of the network interface.")] + public string InterfaceName { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); @@ -119,7 +131,11 @@ protected override void ProcessRecord() CompartmentIdInSubtree = CompartmentIdInSubtree, HostType = HostType, HostId = HostId, - VmclusterName = VmclusterName + VmclusterName = VmclusterName, + HighUtilizationThreshold = HighUtilizationThreshold, + LowUtilizationThreshold = LowUtilizationThreshold, + MountPoint = MountPoint, + InterfaceName = InterfaceName }; response = client.SummarizeHostInsightResourceForecastTrend(request).GetAwaiter().GetResult(); diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs index f59e820ce..3f8afcdd2 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceStatistics.cs @@ -22,7 +22,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceStatistics : OCIOperations [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] public string CompartmentId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK.")] public string ResourceMetric { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] @@ -91,6 +91,12 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceStatistics : OCIOperations [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional list of Exadata Insight VM cluster name.")] public System.Collections.Generic.List VmclusterName { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered highly utilized.")] + public System.Nullable HighUtilizationThreshold { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered low utilized.")] + public System.Nullable LowUtilizationThreshold { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); @@ -123,7 +129,9 @@ protected override void ProcessRecord() CompartmentIdInSubtree = CompartmentIdInSubtree, HostType = HostType, HostId = HostId, - VmclusterName = VmclusterName + VmclusterName = VmclusterName, + HighUtilizationThreshold = HighUtilizationThreshold, + LowUtilizationThreshold = LowUtilizationThreshold }; response = client.SummarizeHostInsightResourceStatistics(request).GetAwaiter().GetResult(); diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs index b2f8ac4e3..3f14b77c3 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsage.cs @@ -22,7 +22,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceUsage : OCIOperationsInsig [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] public string CompartmentId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK.")] public string ResourceMetric { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs index 9bdf0e05e..aefce03f0 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend.cs @@ -22,7 +22,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceUsageTrend : OCIOperations [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] public string CompartmentId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK.")] public string ResourceMetric { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs index 18aafdfbf..a81a5fdd7 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight.cs @@ -22,7 +22,7 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceUtilizationInsight : OCIOp [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] public string CompartmentId { get; set; } - [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric.")] + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Filter by host resource metric. Supported values are CPU, MEMORY, LOGICAL_MEMORY, STORAGE and NETWORK.")] public string ResourceMetric { get; set; } [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] @@ -76,6 +76,12 @@ public class InvokeOCIOpsiSummarizeHostInsightResourceUtilizationInsight : OCIOp [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional list of Exadata Insight VM cluster name.")] public System.Collections.Generic.List VmclusterName { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered highly utilized.")] + public System.Nullable HighUtilizationThreshold { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Percent value in which a resource metric is considered low utilized.")] + public System.Nullable LowUtilizationThreshold { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); @@ -103,7 +109,9 @@ protected override void ProcessRecord() CompartmentIdInSubtree = CompartmentIdInSubtree, HostType = HostType, HostId = HostId, - VmclusterName = VmclusterName + VmclusterName = VmclusterName, + HighUtilizationThreshold = HighUtilizationThreshold, + LowUtilizationThreshold = LowUtilizationThreshold }; response = client.SummarizeHostInsightResourceUtilizationInsight(request).GetAwaiter().GetResult(); diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightStorageUsageTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightStorageUsageTrend.cs new file mode 100644 index 000000000..df110a759 --- /dev/null +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightStorageUsageTrend.cs @@ -0,0 +1,95 @@ +/* + * NOTE: Generated using OracleSDKGenerator, API Version: 20200630 + * 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.OpsiService.Requests; +using Oci.OpsiService.Responses; +using Oci.OpsiService.Models; +using Oci.Common.Model; + +namespace Oci.OpsiService.Cmdlets +{ + [Cmdlet("Invoke", "OCIOpsiSummarizeHostInsightStorageUsageTrend")] + [OutputType(new System.Type[] { typeof(Oci.OpsiService.Models.SummarizeHostInsightStorageUsageTrendAggregationCollection), typeof(Oci.OpsiService.Responses.SummarizeHostInsightStorageUsageTrendResponse) })] + public class InvokeOCIOpsiSummarizeHostInsightStorageUsageTrend : OCIOperationsInsightsCmdlet + { + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.")] + public string CompartmentId { get; set; } + + [Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = @"Required [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host insight resource.")] + public string Id { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Specify time period in ISO 8601 format with respect to current time. Default is last 30 days represented by P30D. If timeInterval is specified, then timeIntervalStart and timeIntervalEnd will be ignored. Examples P90D (last 90 days), P4W (last 4 weeks), P2M (last 2 months), P1Y (last 12 months), . Maximum value allowed is 25 months prior to current time (P25M).")] + public string AnalysisTimeInterval { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Analysis start time in UTC in ISO 8601 format(inclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). The minimum allowed value is 2 years prior to the current day. timeIntervalStart and timeIntervalEnd parameters are used together. If analysisTimeInterval is specified, this parameter is ignored.")] + public System.Nullable TimeIntervalStart { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Analysis end time in UTC in ISO 8601 format(exclusive). Example 2019-10-30T00:00:00Z (yyyy-MM-ddThh:mm:ssZ). timeIntervalStart and timeIntervalEnd are used together. If timeIntervalEnd is not specified, current time is used as timeIntervalEnd.")] + public System.Nullable TimeIntervalEnd { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] + public string HostId { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The value of the `opc-next-page` response header from the previous ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine).")] + public string Page { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"For list pagination. The maximum number of results per page, or items to return in a paginated ""List"" call. For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/Content/API/Concepts/usingapi.htm#nine). Example: `50`")] + public System.Nullable Limit { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Choose the type of statistic metric data to be used for forecasting.")] + public System.Nullable Statistic { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.")] + public string OpcRequestId { get; set; } + + protected override void ProcessRecord() + { + base.ProcessRecord(); + SummarizeHostInsightStorageUsageTrendRequest request; + + try + { + request = new SummarizeHostInsightStorageUsageTrendRequest + { + CompartmentId = CompartmentId, + Id = Id, + AnalysisTimeInterval = AnalysisTimeInterval, + TimeIntervalStart = TimeIntervalStart, + TimeIntervalEnd = TimeIntervalEnd, + HostId = HostId, + Page = Page, + Limit = Limit, + Statistic = Statistic, + OpcRequestId = OpcRequestId + }; + + response = client.SummarizeHostInsightStorageUsageTrend(request).GetAwaiter().GetResult(); + WriteOutput(response, response.SummarizeHostInsightStorageUsageTrendAggregationCollection); + FinishProcessing(response); + } + catch (OciException ex) + { + TerminatingErrorDuringExecution(ex); + } + catch (Exception ex) + { + TerminatingErrorDuringExecution(ex); + } + } + + protected override void StopProcessing() + { + base.StopProcessing(); + TerminatingErrorDuringExecution(new OperationCanceledException("Cmdlet execution interrupted")); + } + + private SummarizeHostInsightStorageUsageTrendResponse response; + } +} diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs index 97f04d60f..349f105c7 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage.cs @@ -55,6 +55,9 @@ public class InvokeOCIOpsiSummarizeHostInsightTopProcessesUsage : OCIOperationsI [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Optional [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host (Compute Id)")] public string HostId { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Choose the type of statistic metric data to be used for forecasting.")] + public System.Nullable Statistic { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); @@ -75,7 +78,8 @@ protected override void ProcessRecord() OpcRequestId = OpcRequestId, AnalysisTimeInterval = AnalysisTimeInterval, HostType = HostType, - HostId = HostId + HostId = HostId, + Statistic = Statistic }; response = client.SummarizeHostInsightTopProcessesUsage(request).GetAwaiter().GetResult(); diff --git a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs index cad06f561..2f3e4f01c 100644 --- a/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs +++ b/Opsi/Cmdlets/Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend.cs @@ -55,6 +55,9 @@ public class InvokeOCIOpsiSummarizeHostInsightTopProcessesUsageTrend : OCIOperat [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Unique identifier for a process.")] public string ProcessHash { get; set; } + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = @"Choose the type of statistic metric data to be used for forecasting.")] + public System.Nullable Statistic { get; set; } + protected override void ProcessRecord() { base.ProcessRecord(); @@ -75,7 +78,8 @@ protected override void ProcessRecord() OpcRequestId = OpcRequestId, HostType = HostType, HostId = HostId, - ProcessHash = ProcessHash + ProcessHash = ProcessHash, + Statistic = Statistic }; response = client.SummarizeHostInsightTopProcessesUsageTrend(request).GetAwaiter().GetResult(); diff --git a/Opsi/OCI.PSModules.Opsi.psd1 b/Opsi/OCI.PSModules.Opsi.psd1 index 85b2002e5..d1f129e1f 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Opsi.dll' @@ -142,12 +142,14 @@ CmdletsToExport = 'Add-OCIOpsiExadataInsightMembers', 'Invoke-OCIOpsiSummarizeExadataInsightResourceUsageAggregated', 'Invoke-OCIOpsiSummarizeExadataInsightResourceUtilizationInsight', 'Invoke-OCIOpsiSummarizeExadataMembers', + 'Invoke-OCIOpsiSummarizeHostInsightNetworkUsageTrend', 'Invoke-OCIOpsiSummarizeHostInsightResourceCapacityTrend', 'Invoke-OCIOpsiSummarizeHostInsightResourceForecastTrend', 'Invoke-OCIOpsiSummarizeHostInsightResourceStatistics', 'Invoke-OCIOpsiSummarizeHostInsightResourceUsage', 'Invoke-OCIOpsiSummarizeHostInsightResourceUsageTrend', 'Invoke-OCIOpsiSummarizeHostInsightResourceUtilizationInsight', + 'Invoke-OCIOpsiSummarizeHostInsightStorageUsageTrend', 'Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsage', 'Invoke-OCIOpsiSummarizeHostInsightTopProcessesUsageTrend', 'Invoke-OCIOpsiSummarizeOperationsInsightsWarehouseResourceUsage', diff --git a/Optimizer/OCI.PSModules.Optimizer.psd1 b/Optimizer/OCI.PSModules.Optimizer.psd1 index 0dd620818..50d1c0fb8 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 711734e66..6a31e0347 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Osmanagement.dll' diff --git a/Ospgateway/OCI.PSModules.Ospgateway.psd1 b/Ospgateway/OCI.PSModules.Ospgateway.psd1 index 86b583a5c..00cf98206 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 ca00eaf37..8fa74ded3 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 93a842414..b8f0ab0b5 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 8b59f41a8..66cafe6dd 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 c1be46cbb..0f813e5b0 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 92bdffb35..a2647940a 100644 --- a/PSModules/OCI.PSModules.psd1 +++ b/PSModules/OCI.PSModules.psd1 @@ -11,7 +11,7 @@ # RootModule = '' # Version number of this module. -ModuleVersion = '50.0.0' +ModuleVersion = '51.0.0' # Supported PSEditions CompatiblePSEditions = 'Core', 'Desktop' @@ -51,129 +51,129 @@ PowerShellVersion = '6.0' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aidocument'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudbridge'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Cloudmigrations'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Containerinstances'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataconnectivity'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Disasterrecovery'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Fusionapps'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Lockbox'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Mediaservices'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opa'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opensearch'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Queue'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Recovery'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vbsinst'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '50.0.0'; }, - @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Adm'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aianomalydetection'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aidocument'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ailanguage'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aispeech'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Aivision'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Analytics'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Announcementsservice'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apigateway'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmconfig'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmcontrolplane'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmsynthetics'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Apmtraces'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Applicationmigration'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Appmgmtcontrol'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Artifacts'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Audit'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Autoscaling'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Bastion'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Bds'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Blockchain'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Budget'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Certificates'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Certificatesmanagement'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cims'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudbridge'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudguard'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Cloudmigrations'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Computeinstanceagent'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Containerengine'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Containerinstances'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Core'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dashboardservice'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Database'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemanagement'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Databasemigration'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Databasetools'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datacatalog'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dataflow'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dataintegration'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservice'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datalabelingservicedataplane'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datasafe'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Datascience'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Devops'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Disasterrecovery'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dns'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Dts'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Email'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Emwarehouse'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Events'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Filestorage'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Functions'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Fusionapps'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Genericartifactscontent'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Goldengate'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Governancerulescontrolplane'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Healthchecks'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Identity'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Identitydataplane'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Identitydomains'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Integration'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Jms'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Keymanagement'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Licensemanager'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Limits'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loadbalancer'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Lockbox'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loganalytics'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Logging'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingingestion'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Loggingsearch'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Managementagent'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Managementdashboard'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Marketplace'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Mediaservices'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Monitoring'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Mysql'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Networkfirewall'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Networkloadbalancer'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Nosql'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Objectstorage'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Oce'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ocvp'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Oda'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Onesubscription'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ons'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Opa'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Opensearch'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Operatoraccesscontrol'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Opsi'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Optimizer'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osmanagement'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Ospgateway'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osubbillingschedule'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osuborganizationsubscription'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osubsubscription'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Osubusage'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Queue'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Recovery'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcemanager'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Resourcesearch'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Rover'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Sch'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Secrets'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Servicecatalog'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemanagerproxy'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Servicemesh'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Stackmonitoring'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Streaming'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Tenantmanagercontrolplane'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Threatintelligence'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Usage'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Usageapi'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vault'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vbsinst'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Visualbuilder'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vnmonitoring'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Vulnerabilityscanning'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Waa'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Waas'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Waf'; RequiredVersion = '51.0.0'; }, + @{ModuleName = 'OCI.PSModules.Workrequests'; RequiredVersion = '51.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 1743871fe..bc87cf7e9 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 e64626f17..a1975b40b 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.0.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'assemblies/OCI.DotNetSDK.Recovery.dll' diff --git a/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 b/Resourcemanager/OCI.PSModules.Resourcemanager.psd1 index 664962117..668c8092d 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 7e6671955..00971831f 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 796cf52d0..ae18a84a8 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 c1bc53851..ac48f5bd2 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 532897fd1..daf04e597 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 e5317d30e..8bf1f58ff 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 3a3f0e9a6..98aba96bc 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 d36badafd..13652e239 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 2dafb752b..afc486e86 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 f4dd5a087..ea07f5fb9 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 13d1b5395..66b0c2219 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 1c2c179d9..d6123d1a1 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 903dd1f4d..8d6b5d2b5 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 1a2c32cf3..a684a8799 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 7360b928e..8f348acde 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 e9126e9ad..1074cf74e 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 0bfb04319..3858ebfdd 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 633bd7ae7..4baa172d2 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 dde1ef466..b866b9d69 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 8e62e132f..6cf36390c 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 1a59e012c..4ec3babb9 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 4743a58f5..902c3d41b 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 6860fd158..314ba22f1 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 = '50.0.0' +ModuleVersion = '51.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 = '50.0.0'; }) +RequiredModules = @(@{ModuleName = 'OCI.PSModules.Common'; GUID = 'b3061a0d-375b-4099-ae76-f92fb3cdcdae'; RequiredVersion = '51.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 da0b9dd32..0488818d6 100644 --- a/oci-powershell-modules.sln +++ b/oci-powershell-modules.sln @@ -203,8 +203,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Aivision", "A EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Aispeech", "Aispeech\OCI.PSModules.Aispeech.csproj", "{57645787-34D1-4650-B537-B54C9736C7D3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Dataconnectivity", "Dataconnectivity\OCI.PSModules.Dataconnectivity.csproj", "{EE08C01D-A896-481A-8ADC-3216B88ED691}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Stackmonitoring", "Stackmonitoring\OCI.PSModules.Stackmonitoring.csproj", "{C50E681E-D3B8-466D-A9D5-C12E5BC8CD75}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Servicemesh", "Servicemesh\OCI.PSModules.Servicemesh.csproj", "{0F926617-9B34-497F-8553-7413BD2BB222}" @@ -251,6 +249,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Recovery", "R EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Vbsinst", "Vbsinst\OCI.PSModules.Vbsinst.csproj", "{06BDD81E-9D62-4F2A-9459-5F9EC5C5EBCF}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OCI.PSModules.Identitydomains", "Identitydomains\OCI.PSModules.Identitydomains.csproj", "{FCA70193-D202-4C9D-9600-64245D02900B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -1476,18 +1476,6 @@ Global {57645787-34D1-4650-B537-B54C9736C7D3}.Release|x64.Build.0 = Release|Any CPU {57645787-34D1-4650-B537-B54C9736C7D3}.Release|x86.ActiveCfg = Release|Any CPU {57645787-34D1-4650-B537-B54C9736C7D3}.Release|x86.Build.0 = Release|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Debug|x64.ActiveCfg = Debug|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Debug|x64.Build.0 = Debug|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Debug|x86.ActiveCfg = Debug|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Debug|x86.Build.0 = Debug|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Release|Any CPU.Build.0 = Release|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Release|x64.ActiveCfg = Release|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Release|x64.Build.0 = Release|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Release|x86.ActiveCfg = Release|Any CPU - {EE08C01D-A896-481A-8ADC-3216B88ED691}.Release|x86.Build.0 = Release|Any CPU {C50E681E-D3B8-466D-A9D5-C12E5BC8CD75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {C50E681E-D3B8-466D-A9D5-C12E5BC8CD75}.Debug|Any CPU.Build.0 = Debug|Any CPU {C50E681E-D3B8-466D-A9D5-C12E5BC8CD75}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -1764,5 +1752,17 @@ Global {06BDD81E-9D62-4F2A-9459-5F9EC5C5EBCF}.Release|x64.Build.0 = Release|Any CPU {06BDD81E-9D62-4F2A-9459-5F9EC5C5EBCF}.Release|x86.ActiveCfg = Release|Any CPU {06BDD81E-9D62-4F2A-9459-5F9EC5C5EBCF}.Release|x86.Build.0 = Release|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Debug|x64.ActiveCfg = Debug|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Debug|x64.Build.0 = Debug|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Debug|x86.ActiveCfg = Debug|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Debug|x86.Build.0 = Debug|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Release|Any CPU.Build.0 = Release|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Release|x64.ActiveCfg = Release|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Release|x64.Build.0 = Release|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Release|x86.ActiveCfg = Release|Any CPU + {FCA70193-D202-4C9D-9600-64245D02900B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection EndGlobal