Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/Oracle/Oracle.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
Comment on lines 1 to 5
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand All @@ -19,10 +22,8 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Oracle")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.2.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.2.0")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - OracleDatabaseResourceManager")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]


64 changes: 0 additions & 64 deletions src/Oracle/Oracle.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,67 +22,3 @@ AutoRest does not generate authentication code for the module. Authentication is
## Development
For information on how to develop for `Az.Oracle`, see [how-to.md](how-to.md).
<!-- endregion -->

### AutoRest Configuration
> see https://aka.ms/autorest

```yaml
commit: 0a626b790148b419c9b0bbbc7f4db746d4d886e4
require:
- $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/oracle/resource-manager/readme.md

try-require:
- $(repo)/specification/oracle/resource-manager/readme.md

module-version: 0.1.0
title: Oracle
subject-prefix: $(service-name)

inlining-threshold: 100
resourcegroup-append: true
nested-object-to-string: true
identity-correction-for-post: true

directive:
# Model complex objects
- model-cmdlet:
- model-name: CustomerContact
- model-cmdlet:
- model-name: NsgCidr

# Remove the set-* cmdlet
- where:
verb: Set
remove: true

# Remove APIs
- where:
subject: CloudExadataInfrastructureStorageCapacity|PrivateIpaddress|SystemVersion|VirtualNetworkAddress|AutonomousDatabaseWallet|ShrinkAutonomousDatabase|OracleSubscription
remove: true
- where:
subject: AutonomousDatabaseBackUp
verb: Update
remove: true

# Remove variants
- where:
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity.*$
remove: true
- where:
variant: ^Add$|^AddViaIdentity$|^Action$|^ActionViaIdentity$|^ActionViaIdentityCloudVMCluster$|^Switchover$|^SwitchoverViaIdentity$
remove: true

# Rename parameter
- where:
parameter-name: ScheduledOperationScheduledStartTime
set:
parameter-name: ScheduledStartTime
- where:
parameter-name: ScheduledOperationScheduledStopTime
set:
parameter-name: ScheduledStopTime
```
2 changes: 1 addition & 1 deletion src/Oracle/Oracle.Autorest/docs/Az.Oracle.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Oracle
Module Guid: 7fe37b20-8414-454f-98c1-fee11f1b09fa
Module Guid: 59118740-791b-4e86-86a8-9c6b79a592d3
Download Help Link: https://learn.microsoft.com/powershell/module/az.oracle
Help Version: 1.0.0.0
Locale: en-US
Expand Down
15 changes: 15 additions & 0 deletions src/Oracle/Oracle.Autorest/docs/Get-AzOracleDbVersion.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ IsPreview : True
Lists the available Oracle Database versions for **eastus2**.
For more information, execute `Get-Help Get-AzOracleDbVersion`.

### Example 2: List versions for a specific shape
```powershell
Get-AzOracleDbVersion -Location eastus2
```

```output
Version : 19c
VersionFull : 19.22.0.0
IsDefault : True
IsPreview : False
```

Filters versions by compute shape.
For more information, execute `Get-Help Get-AzOracleDbVersion`.

## PARAMETERS

### -DbSystemId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Get a ExascaleDbStorageVault

## SYNTAX

### List (Default)
### List1 (Default)
```
Get-AzOracleExascaleDbStorageVault [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
Expand All @@ -30,7 +30,7 @@ Get-AzOracleExascaleDbStorageVault -InputObject <IOracleIdentity> [-DefaultProfi
[<CommonParameters>]
```

### List1
### List
```
Get-AzOracleExascaleDbStorageVault -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
Expand Down Expand Up @@ -129,7 +129,7 @@ The name is case insensitive.

```yaml
Type: System.String
Parameter Sets: Get, List1
Parameter Sets: Get, List
Aliases:

Required: True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

26 changes: 21 additions & 5 deletions src/Oracle/Oracle.Autorest/docs/New-AzOracleDbSystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Create a DbSystem
New-AzOracleDbSystem -Name <String> -ResourceGroupName <String> -Location <String> [-SubscriptionId <String>]
[-AdminPassword <SecureString>] [-ClusterName <String>] [-ComputeCount <Int32>] [-ComputeModel <String>]
[-DatabaseEdition <String>] [-DbSystemOptionStorageManagement <String>] [-DbVersion <String>]
[-DiskRedundancy <String>] [-DisplayName <String>] [-DomainV2 <String>] [-Hostname <String>]
[-InitialDataStorageSizeInGb <Int32>] [-LicenseModelV2 <String>] [-NetworkAnchorId <String>]
[-NodeCount <Int32>] [-PdbName <String>] [-ResourceAnchorId <String>] [-Shape <String>]
[-DiskRedundancy <String>] [-DisplayName <String>] [-Domain <String>] [-Hostname <String>]
[-InitialDataStorageSizeInGb <Int32>] [-LicenseModel <String>] [-NetworkAnchorId <String>]
[-NodeCount <Int32>] [-PdbName <String>] [-ResourceAnchorId <String>] [-Shape <String>] [-Source <String>]
[-SshPublicKey <String[]>] [-StorageVolumePerformanceMode <String>] [-Tag <Hashtable>] [-TimeZone <String>]
[-Zone <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```
Expand Down Expand Up @@ -308,7 +308,7 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -DomainV2
### -Domain
The domain name for the DB system.

```yaml
Expand Down Expand Up @@ -385,7 +385,7 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -LicenseModelV2
### -LicenseModel
The Oracle license model that applies to all the databases on the DB system.
The default is LicenseIncluded.

Expand Down Expand Up @@ -544,6 +544,22 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -Source
The source of the database: Use `None` for creating a new database.
The default is `None`.

```yaml
Type: System.String
Parameter Sets: CreateExpanded
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SshPublicKey
The public key portion of one or more key pairs used for SSH access to the DB system.

Expand Down
7 changes: 4 additions & 3 deletions src/Oracle/Oracle.Autorest/docs/New-AzOracleNetworkAnchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ New-AzOracleNetworkAnchor -Name <String> -ResourceGroupName <String> -Location <
[-DnsListeningEndpointAllowedCidr <String>] [-IsOracleDnsForwardingEndpointEnabled]
[-IsOracleDnsListeningEndpointEnabled] [-IsOracleToAzureDnsZoneSyncEnabled] [-OciBackupCidrBlock <String>]
[-OciVcnDnsLabel <String>] [-ResourceAnchorId <String>] [-SubnetId <String>] [-Tag <Hashtable>]
[-Zone <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [<CommonParameters>]
[-Zone <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### CreateViaJsonFilePath
```
New-AzOracleNetworkAnchor -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm]
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### CreateViaJsonString
```
New-AzOracleNetworkAnchor -Name <String> -ResourceGroupName <String> -JsonString <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm]
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

Expand Down Expand Up @@ -425,3 +425,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Delete a NetworkAnchor
### Delete (Default)
```
Remove-AzOracleNetworkAnchor -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### DeleteViaIdentity
```
Remove-AzOracleNetworkAnchor -InputObject <IOracleIdentity> [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
[-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]
[-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -223,3 +223,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ Update a NetworkAnchor
Update-AzOracleNetworkAnchor -Name <String> -ResourceGroupName <String> [-SubscriptionId <String>]
[-IsOracleDnsForwardingEndpointEnabled] [-IsOracleDnsListeningEndpointEnabled]
[-IsOracleToAzureDnsZoneSyncEnabled] [-OciBackupCidrBlock <String>] [-Tag <Hashtable>] [-Zone <String[]>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### UpdateViaIdentityExpanded
```
Update-AzOracleNetworkAnchor -InputObject <IOracleIdentity> [-IsOracleDnsForwardingEndpointEnabled]
[-IsOracleDnsListeningEndpointEnabled] [-IsOracleToAzureDnsZoneSyncEnabled] [-OciBackupCidrBlock <String>]
[-Tag <Hashtable>] [-Zone <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm]
[-Tag <Hashtable>] [-Zone <String[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### UpdateViaJsonFilePath
```
Update-AzOracleNetworkAnchor -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm]
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### UpdateViaJsonString
```
Update-AzOracleNetworkAnchor -Name <String> -ResourceGroupName <String> -JsonString <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-WhatIf] [-Confirm]
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

Expand Down Expand Up @@ -344,3 +344,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

2 changes: 1 addition & 1 deletion src/Oracle/Oracle.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "3a6dec5a-cd78-4d6e-840f-158dd44500a8"
"generate_Id": "2dc936c1-d297-42f2-871e-500ff8f39feb"
}
3 changes: 3 additions & 0 deletions src/Oracle/Oracle.Autorest/tsp-location.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
directory: specification\oracle\resource-manager\Oracle.Database\OracleDatabase
commit: dac076369edef5252b3e871da5cd37ba99eff91b
repo: Azure/azure-rest-api-specs
73 changes: 73 additions & 0 deletions src/Oracle/Oracle.Autorest/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
options:
"@azure-tools/typespec-powershell":
service-dir: "src"
emitter-output-dir: "{output-dir}/{service-dir}/Oracle/Oracle.Autorest"
clear-output-folder: true
azure: true
module-version: 2.0.0
prefix: "Az"
subject-prefix: "Oracle"
service-name: Oracle
module-name: "{prefix}.{service-name}"
output-folder: "{output-dir}"
exclude-tableview-properties:
- Id
- Type

directive:
# Common directives (previously inherited from readme.azure.noprofile.md)
- where:
subject: Operation
hide: true
- where:
parameter-name: SubscriptionId
set:
default:
script: '(Get-AzContext).Subscription.Id'

# Model complex objects
- model-cmdlet:
- model-name: CustomerContact
cmdlet-name: New-AzOracleCustomerContactObject
- model-name: NsgCidr
cmdlet-name: New-AzOracleNsgCidrObject

# Remove the set-* cmdlet
- where:
verb: Set
remove: true

# Remove APIs
- where:
subject: CloudExadataInfrastructureStorageCapacity|PrivateIpaddress|SystemVersion|VirtualNetworkAddress|AutonomousDatabaseWallet|ShrinkAutonomousDatabase|OracleSubscription
remove: true
- where:
subject: AutonomousDatabaseBackUp
verb: Update
remove: true

# Remove variants
- where:
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity.*$
remove: true
- where:
variant: ^Add$|^AddViaIdentity$|^Action$|^ActionViaIdentity$|^ActionViaIdentityCloudVMCluster$|^Switchover$|^SwitchoverViaIdentity$
remove: true

# Rename parameter
- where:
parameter-name: ScheduledOperationScheduledStartTime
set:
parameter-name: ScheduledStartTime
- where:
parameter-name: ScheduledOperationScheduledStopTime
set:
parameter-name: ScheduledStopTime

# Remove this once the spec repo drops that rule set.
linter:
extends:
- "@azure-tools/typespec-azure-rulesets/resource-manager"
Loading
Loading