Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[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 - CustomProviders")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
21 changes: 3 additions & 18 deletions src/CustomProviders/CustomProviders.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ module-version: 0.1.0
title: CustomProviders
subject-prefix: ''

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
- where:
subject: CustomResourceProvider
Expand All @@ -69,29 +65,18 @@ directive:
set:
subject: CustomProviderAssociation

- where:
verb: New
subject: ^CustomProvider.*$
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Create$
- where:
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true

- where:
verb: Set
subject: CustomProviderAssociation
variant: ^Update$|^UpdateViaIdentity$
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true

- where:
verb: Set
subject: ^CustomProvider$
remove: true

- where:
verb: Update
subject: CustomProvider
variant: ^Update$|^UpdateViaIdentity$
remove: true

- where:
verb: Set
subject: CustomProviderAssociation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.CustomProviders
Module Guid: b98dded0-6e9a-4371-b2c6-d74464fb724b
Module Guid: ada95d58-e126-4685-9380-6e88db6da852
Download Help Link: https://learn.microsoft.com/powershell/module/az.customproviders
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -18,10 +18,10 @@ Gets the custom resource provider manifest.
Get an association.

### [New-AzCustomProvider](New-AzCustomProvider.md)
Creates or updates the custom resource provider.
create the custom resource provider.

### [New-AzCustomProviderAssociation](New-AzCustomProviderAssociation.md)
Create or update an association.
create an association.

### [Remove-AzCustomProvider](Remove-AzCustomProvider.md)
Deletes the custom resource provider.
Expand All @@ -30,6 +30,9 @@ Deletes the custom resource provider.
Delete an association.

### [Update-AzCustomProvider](Update-AzCustomProvider.md)
Updates an existing custom resource provider.
update an existing custom resource provider.
The only value that can be updated via PATCH currently is the tags.

### [Update-AzCustomProviderAssociation](Update-AzCustomProviderAssociation.md)
update an association.

Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
Expand Down Expand Up @@ -164,7 +163,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpManifest
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpManifest

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
Expand Down Expand Up @@ -133,7 +132,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IAssociation
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.IAssociation

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,34 @@ schema: 2.0.0
# New-AzCustomProvider

## SYNOPSIS
Creates or updates the custom resource provider.
create the custom resource provider.

## SYNTAX

### CreateExpanded (Default)
```
New-AzCustomProvider -Name <String> -ResourceGroupName <String> -Location <String> [-SubscriptionId <String>]
[-Action <ICustomRpActionRouteDefinition[]>] [-ResourceType <ICustomRpResourceTypeRouteDefinition[]>]
[-Tag <Hashtable>] [-Validation <ICustomRpValidations[]>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait]
[-Confirm] [-WhatIf] [<CommonParameters>]
```

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

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

## DESCRIPTION
Creates or updates the custom resource provider.
create the custom resource provider.

## EXAMPLES

Expand Down Expand Up @@ -54,11 +69,10 @@ Create a custom provider, with a route for Custom provider associations.

### -Action
A list of actions that the custom resource provider implements.
To construct, see NOTES section for ACTION properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpActionRouteDefinition[]
Parameter Sets: (All)
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpActionRouteDefinition[]
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -99,12 +113,42 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Create operation

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

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

### -JsonString
Json string supplied to the Create operation

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

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

### -Location
Resource location

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: True
Expand Down Expand Up @@ -161,11 +205,10 @@ Accept wildcard characters: False

### -ResourceType
A list of resource types that the custom resource provider implements.
To construct, see NOTES section for RESOURCETYPE properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpResourceTypeRouteDefinition[]
Parameter Sets: (All)
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpResourceTypeRouteDefinition[]
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -197,7 +240,7 @@ Resource tags

```yaml
Type: System.Collections.Hashtable
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -209,11 +252,10 @@ Accept wildcard characters: False

### -Validation
A list of validations to run on the custom resource provider's requests.
To construct, see NOTES section for VALIDATION properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpValidations[]
Parameter Sets: (All)
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpValidations[]
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -261,7 +303,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.ICustomRpManifest
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomRpManifest

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,30 @@ schema: 2.0.0
# New-AzCustomProviderAssociation

## SYNOPSIS
Create or update an association.
create an association.

## SYNTAX

### CreateExpanded (Default)
```
New-AzCustomProviderAssociation -Name <String> -Scope <String> [-TargetResourceId <String>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### CreateViaJsonFilePath
```
New-AzCustomProviderAssociation -Name <String> -Scope <String> -JsonFilePath <String>
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### CreateViaJsonString
```
New-AzCustomProviderAssociation -Name <String> -Scope <String> -JsonString <String>
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

## DESCRIPTION
Create or update an association.
create an association.

## EXAMPLES

Expand Down Expand Up @@ -69,6 +82,36 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Create operation

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

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

### -JsonString
Json string supplied to the Create operation

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

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

### -Name
The name of the association.

Expand Down Expand Up @@ -121,7 +164,7 @@ The REST resource instance of the target resource for this association.

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -169,7 +212,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.Api20180901Preview.IAssociation
### Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.IAssociation

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.CustomProviders.Models.ICustomProvidersIdentity
Expand Down
Loading