-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Reservations RP 2018-06-01: Add CosmosDb in reserved resource enum type. Add name property in PatchProperties #7164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
e3360fc
fc60fa6
68a2f63
05c123b
1c47af1
8f5019e
fa9b4b7
fd023fa
93b68af
cab9f49
aee3ade
1e48834
fb55009
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -49,6 +49,10 @@ public class PatchReservation : AzureReservationsCmdletBase | |
| [ValidateNotNull] | ||
| public PSReservation Reservation { get; set; } | ||
|
|
||
| [Parameter(Mandatory = false)] | ||
| [ValidateNotNull] | ||
| public string Name { get; set; } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see updated help documentation for the |
||
|
|
||
| public override void ExecuteCmdlet() | ||
| { | ||
| if (ParameterSetName.Equals(Constants.ParameterSetNames.ObjectParameterSet)) | ||
|
|
@@ -68,11 +72,11 @@ public override void ExecuteCmdlet() | |
| string subscriptionId = ValidateAndGetAppliedSubscription(); | ||
| PreRegister(subscriptionId); | ||
|
|
||
| Patch = new Patch(AppliedScopeType, new List<string>() { AppliedScope }, InstanceFlexibility); | ||
| Patch = new Patch(AppliedScopeType, new List<string>() { AppliedScope }, InstanceFlexibility, Name); | ||
| } | ||
| else | ||
| { | ||
| Patch = new Patch(AppliedScopeType, instanceFlexibility: InstanceFlexibility); | ||
| Patch = new Patch(AppliedScopeType, instanceFlexibility: InstanceFlexibility, name: Name); | ||
| } | ||
| var response = new PSReservation(AzureReservationAPIClient.Reservation.Update(ReservationOrderId.ToString(), ReservationId.ToString(), Patch)); | ||
| WriteObject(response); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,14 +15,14 @@ Update a `Reservation`. | |
| ### CommandLine (Default) | ||
| ``` | ||
| Update-AzureRmReservation -ReservationOrderId <Guid> -ReservationId <Guid> -AppliedScopeType <String> | ||
| [-AppliedScope <String>] [-InstanceFlexibility <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] | ||
| [-Confirm] [<CommonParameters>] | ||
| [-AppliedScope <String>] [-InstanceFlexibility <String>] [-Name <String>] | ||
| [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>] | ||
| ``` | ||
|
|
||
| ### PipeObject | ||
| ``` | ||
| Update-AzureRmReservation -AppliedScopeType <String> [-AppliedScope <String>] [-InstanceFlexibility <String>] | ||
| -Reservation <PSReservation> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] | ||
| -Reservation <PSReservation> [-Name <String>] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] | ||
| [<CommonParameters>] | ||
| ``` | ||
|
|
||
|
|
@@ -107,6 +107,21 @@ Accept pipeline input: False | |
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -Name | ||
| {{Fill Name Description}} | ||
|
||
|
|
||
| ```yaml | ||
| Type: System.String | ||
| Parameter Sets: (All) | ||
| Aliases: | ||
|
|
||
| Required: False | ||
| Position: Named | ||
| Default value: None | ||
| Accept pipeline input: False | ||
| Accept wildcard characters: False | ||
| ``` | ||
|
|
||
| ### -Reservation | ||
| Pipe object parameter for `Reservation` | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <packages> | ||
| <package id="Microsoft.Azure.Management.Reservations" version="1.8.0-preview" targetFramework="net452" /> | ||
| <package id="Microsoft.Azure.Management.Reservations" version="1.9.0-preview" targetFramework="net452" /> | ||
| </packages> |
Uh oh!
There was an error while loading. Please reload this page.