-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from ChenglongLiu/feature/Cdndev
Add obj command
- Loading branch information
Showing
19 changed files
with
318 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnResourceReferenceObject.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
# ---------------------------------------------------------------------------------- | ||
# 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. | ||
# ---------------------------------------------------------------------------------- | ||
|
||
<# | ||
.Synopsis | ||
Create an in-memory object for ResourceReference. | ||
.Description | ||
Create an in-memory object for ResourceReference. | ||
.Outputs | ||
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReference | ||
.Link | ||
https://docs.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnResourceReferenceObject | ||
#> | ||
function New-AzFrontDoorCdnResourceReferenceObject { | ||
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReference')] | ||
[CmdletBinding(PositionalBinding=$false)] | ||
Param( | ||
|
||
[Parameter(HelpMessage="Resource ID.")] | ||
[string] | ||
$Id | ||
) | ||
|
||
process { | ||
$Object = [Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReference]::New() | ||
|
||
if ($PSBoundParameters.ContainsKey('Id')) { | ||
$Object.Id = $Id | ||
} | ||
return $Object | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
src/Cdn/Cdn.Autorest/docs/New-AzCdnResourceReferenceObject.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
external help file: | ||
Module Name: Az.Cdn | ||
online version: https://docs.microsoft.com/powershell/module/az.Cdn/new-AzCdnResourceReferenceObject | ||
schema: 2.0.0 | ||
--- | ||
|
||
# New-AzCdnResourceReferenceObject | ||
|
||
## SYNOPSIS | ||
Create an in-memory object for ResourceReference. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
New-AzCdnResourceReferenceObject [-Id <String>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Create an in-memory object for ResourceReference. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -Id | ||
Resource ID. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
## OUTPUTS | ||
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReference | ||
## NOTES | ||
ALIASES | ||
## RELATED LINKS | ||
77 changes: 77 additions & 0 deletions
77
src/Cdn/Cdn.Autorest/docs/New-AzFrontDoorCdnResourceReferenceObject.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
external help file: | ||
Module Name: Az.Cdn | ||
online version: https://docs.microsoft.com/powershell/module/az.Cdn/new-AzFrontDoorCdnResourceReferenceObject | ||
schema: 2.0.0 | ||
--- | ||
|
||
# New-AzFrontDoorCdnResourceReferenceObject | ||
|
||
## SYNOPSIS | ||
Create an in-memory object for ResourceReference. | ||
|
||
## SYNTAX | ||
|
||
``` | ||
New-AzFrontDoorCdnResourceReferenceObject [-Id <String>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
Create an in-memory object for ResourceReference. | ||
|
||
## EXAMPLES | ||
|
||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -Id | ||
Resource ID. | ||
|
||
```yaml | ||
Type: System.String | ||
Parameter Sets: (All) | ||
Aliases: | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
## OUTPUTS | ||
### Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20210601.ResourceReference | ||
## NOTES | ||
ALIASES | ||
## RELATED LINKS | ||
22 changes: 22 additions & 0 deletions
22
src/Cdn/Cdn.Autorest/examples/New-AzCdnResourceReferenceObject.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
22 changes: 22 additions & 0 deletions
22
src/Cdn/Cdn.Autorest/examples/New-AzFrontDoorCdnResourceReferenceObject.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
### Example 1: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
||
### Example 2: {{ Add title here }} | ||
```powershell | ||
{{ Add code here }} | ||
``` | ||
|
||
```output | ||
{{ Add output here }} | ||
``` | ||
|
||
{{ Add description here }} | ||
|
Oops, something went wrong.