Skip to content

PATCH /tenant/access/git is No Longer Required #2522

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

Merged
merged 6 commits into from
Jun 29, 2016
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
Expand Up @@ -1657,19 +1657,6 @@ public PsApiManagementAccessInformation GetTenantGitAccessInformation(PsApiManag

return Mapper.Map<PsApiManagementAccessInformation>(response.Value);
}

public void TenantGitAccessSet(
PsApiManagementContext context,
bool enableGitAccess)
{
var tenantAccess = Client.TenantAccessGit.Get(context.ResourceGroupName, context.ServiceName);

var accessInformationParams = new AccessInformationUpdateParameters
{
Enabled = enableGitAccess
};
Client.TenantAccessGit.Update(context.ResourceGroupName, context.ServiceName, accessInformationParams, tenantAccess.ETag);
}
#endregion

#region TenantConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@
<Compile Include="Commands\SetAzureApiManagementSubscription.cs" />
<Compile Include="Commands\SetAzureApiManagementUser.cs" />
<Compile Include="Commands\SetAzureRmApiManagementTenantAccess.cs" />
<Compile Include="Commands\SetAzureRmApiManagementTenantGitAccess.cs" />
<Compile Include="Constants.cs" />
<Compile Include="Models\ErrorBody.cs" />
<Compile Include="Models\ErrorField.cs" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ Imported API</ReturnTypeDescription>
<Examples>
<Example>
<Name>Example 1</Name>
<Cmd>New-AzureRmApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl 'https://contoso.com/apis/echo' -Protocols @('http', 'https') -Path 'echoapi'</Cmd>
<Cmd>New-AzureRmApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl 'https://contoso.com/apis/echo' -Protocols @("http", "https") -Path 'echoapi'</Cmd>
<Description>Create new API.</Description>
<Output />
</Example>
Expand Down Expand Up @@ -7233,93 +7233,6 @@ OpenId Connect Provider.</Description>
<SupportInformation ad="false" rsat="false" ps2="false" ps3="false" ps4="false" ps5="false" wxp="false" wv="false" w7="false" w8="false" w81="false" w2k3s="false" w2k3e="false" w2k3d="false" w2k8s="false" w2k8e="false" w2k8d="false" w2k8r2s="false" w2k8r2e="false" w2k8r2d="false" w2k12s="false" w2k12d="false" w2k12r2s="false" w2k12r2d="false" />
<Publish>false</Publish>
</CmdletObject>
<CmdletObject verb="Set" noun="AzureRmApiManagementTenantGitAccess">
<Name>Set-AzureRmApiManagementTenantGitAccess</Name>
<GeneralHelp>
<Synopsis>Sets the Git access configuration of the Tenant.</Synopsis>
<Description>Sets the Git access configuration of the Tenant.</Description>
<Notes />
<InputType />
<InputUrl />
<InputTypeDescription />
<ReturnType>Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation</ReturnType>
<ReturnUrl />
<ReturnTypeDescription />
</GeneralHelp>
<ParamSets>
<CommandParameterSetInfo2 Name="__AllParameterSets" Params="Context Enabled PassThru Verbose Debug ErrorAction WarningAction InformationAction ErrorVariable WarningVariable InformationVariable OutVariable OutBuffer PipelineVariable" />
</ParamSets>
<Syntax>
<string>Set-AzureRmApiManagementTenantGitAccess -Context &lt;PsApiManagementContext&gt; -Enabled &lt;Boolean&gt; [-PassThru] [-InformationAction &lt;ActionPreference&gt;] [-InformationVariable &lt;String&gt;]</string>
</Syntax>
<Parameters>
<ParameterDescription type="PsApiManagementContext" varLen="false" required="true" dynamic="false" pipeRemaining="false" pipe="false" pipeProp="true" isPos="false" pos="named" globbing="false">
<Name>Context</Name>
<Attributes>
<string>System.Management.Automation.ParameterAttribute</string>
<string>System.Management.Automation.ValidateNotNullOrEmptyAttribute</string>
</Attributes>
<Aliases />
<Description>Instance of PsApiManagementContext. This parameter is required.</Description>
<DefaultValue />
</ParameterDescription>
<ParameterDescription type="Boolean" varLen="false" required="true" dynamic="false" pipeRemaining="false" pipe="false" pipeProp="false" isPos="false" pos="named" globbing="false">
<Name>Enabled</Name>
<Attributes>
<string>System.Management.Automation.ParameterAttribute</string>
<string>System.Management.Automation.ValidateNotNullOrEmptyAttribute</string>
</Attributes>
<Aliases />
<Description>Enable Git access. Set to true for enabling and false for disabling. This parameter is required.</Description>
<DefaultValue />
</ParameterDescription>
<ParameterDescription type="SwitchParameter" varLen="false" required="false" dynamic="false" pipeRemaining="false" pipe="false" pipeProp="true" isPos="false" pos="named" globbing="false">
<Name>PassThru</Name>
<Attributes>
<string>System.Management.Automation.ParameterAttribute</string>
</Attributes>
<Aliases />
<Description>If specified then instance of Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation type is returned.</Description>
<DefaultValue />
</ParameterDescription>
<ParameterDescription type="ActionPreference" varLen="false" required="false" dynamic="false" pipeRemaining="false" pipe="false" pipeProp="false" isPos="false" pos="named" globbing="false">
<Name>InformationAction</Name>
<Attributes>
<string>System.Management.Automation.ParameterAttribute</string>
<string>System.Management.Automation.AliasAttribute</string>
</Attributes>
<Aliases>
<string>infa</string>
</Aliases>
<Description />
<DefaultValue />
</ParameterDescription>
<ParameterDescription type="String" varLen="false" required="false" dynamic="false" pipeRemaining="false" pipe="false" pipeProp="false" isPos="false" pos="named" globbing="false">
<Name>InformationVariable</Name>
<Attributes>
<string>System.Management.Automation.ParameterAttribute</string>
<string>System.Management.Automation.AliasAttribute</string>
<string>System.Management.Automation.Internal.CommonParameters+ValidateVariableName</string>
</Attributes>
<Aliases>
<string>iv</string>
</Aliases>
<Description />
<DefaultValue />
</ParameterDescription>
</Parameters>
<Examples>
<Example>
<Name>Example 1</Name>
<Cmd>Set-AzureRmApiManagementTenantGitAccess -Context $apimContext -Enabled $true</Cmd>
<Description>Sets the Git access configuration to True.</Description>
<Output />
</Example>
</Examples>
<RelatedLinks />
<SupportInformation ad="false" rsat="false" ps2="false" ps3="false" ps4="false" ps5="false" wxp="false" wv="false" w7="false" w8="false" w81="false" w2k3s="false" w2k3e="false" w2k3d="false" w2k8s="false" w2k8e="false" w2k8d="false" w2k8r2s="false" w2k8r2e="false" w2k8r2d="false" w2k12s="false" w2k12d="false" w2k12r2s="false" w2k12r2d="false" />
<Publish>false</Publish>
</CmdletObject>
<CmdletObject verb="Get" noun="AzureRmApiManagementTenantAccess">
<Name>Get-AzureRmApiManagementTenantAccess</Name>
<GeneralHelp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4463,7 +4463,7 @@ Imported API</maml:para>
<maml:introduction>
<maml:paragraph>PS C:\&gt;</maml:paragraph>
</maml:introduction>
<dev:code>New-AzureRmApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl &apos;https://contoso.com/apis/echo&apos; -Protocols @(&apos;http&apos;, &apos;https&apos;) -Path &apos;echoapi&apos;</dev:code>
<dev:code>New-AzureRmApiManagementApi –Context $apimContext –Name EchoApi –ServiceUrl &apos;https://contoso.com/apis/echo&apos; -Protocols @(&quot;http&quot;, &quot;https&quot;) -Path &apos;echoapi&apos;</dev:code>
<dev:remarks>
<maml:para>Create new API.</maml:para>
<maml:para />
Expand Down Expand Up @@ -16056,182 +16056,6 @@ OpenId Connect Provider.</maml:para>
</maml:relatedLinks>
</command:command>
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Set-AzureRmApiManagementTenantGitAccess</command:name>
<maml:description>
<maml:para>Sets the Git access configuration of the Tenant.</maml:para>
</maml:description>
<maml:copyright>
<maml:para />
</maml:copyright>
<command:verb>Set</command:verb>
<command:noun>AzureRmApiManagementTenantGitAccess</command:noun>
<dev:version />
</command:details>
<maml:description>
<maml:para>Sets the Git access configuration of the Tenant.</maml:para>
</maml:description>
<command:syntax>
<command:syntaxItem>
<maml:name>Set-AzureRmApiManagementTenantGitAccess</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>Context</maml:name>
<maml:description>
<maml:para>Instance of PsApiManagementContext. This parameter is required.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">PsApiManagementContext</command:parameterValue>
</command:parameter>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>Enabled</maml:name>
<maml:description>
<maml:para>Enable Git access. Set to true for enabling and false for disabling. This parameter is required.</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>PassThru</maml:name>
<maml:description>
<maml:para>If specified then instance of Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation type is returned.</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>InformationAction</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>InformationVariable</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
</command:parameter>
</command:syntaxItem>
</command:syntax>
<command:parameters>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>Context</maml:name>
<maml:description>
<maml:para>Instance of PsApiManagementContext. This parameter is required.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">PsApiManagementContext</command:parameterValue>
<dev:type>
<maml:name>PsApiManagementContext</maml:name>
<maml:uri/>
</dev:type>
<dev:defaultValue></dev:defaultValue>
</command:parameter>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>Enabled</maml:name>
<maml:description>
<maml:para>Enable Git access. Set to true for enabling and false for disabling. This parameter is required.</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">Boolean</command:parameterValue>
<dev:type>
<maml:name>Boolean</maml:name>
<maml:uri/>
</dev:type>
<dev:defaultValue></dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>PassThru</maml:name>
<maml:description>
<maml:para>If specified then instance of Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation type is returned.</maml:para>
</maml:description>
<command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue>
<dev:type>
<maml:name>SwitchParameter</maml:name>
<maml:uri/>
</dev:type>
<dev:defaultValue></dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>InformationAction</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="true" variableLength="false">ActionPreference</command:parameterValue>
<dev:type>
<maml:name>ActionPreference</maml:name>
<maml:uri/>
</dev:type>
<dev:defaultValue></dev:defaultValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>InformationVariable</maml:name>
<maml:description>
<maml:para />
</maml:description>
<command:parameterValue required="true" variableLength="false">String</command:parameterValue>
<dev:type>
<maml:name>String</maml:name>
<maml:uri/>
</dev:type>
<dev:defaultValue></dev:defaultValue>
</command:parameter>
</command:parameters>
<command:inputTypes>
<command:inputType>
<dev:type>
<maml:name></maml:name>
<maml:uri></maml:uri>
<maml:description/>
</dev:type>
<maml:description>
<maml:para />
</maml:description>
</command:inputType>
</command:inputTypes>
<command:returnValues>
<command:returnValue>
<dev:type>
<maml:name>Microsoft.Azure.Commands.ApiManagement.ServiceManagement.Models.PsApiManagementAccessInformation</maml:name>
<maml:uri></maml:uri>
<maml:description/>
</dev:type>
<maml:description>
<maml:para />
</maml:description>
</command:returnValue>
</command:returnValues>
<command:terminatingErrors></command:terminatingErrors>
<command:nonTerminatingErrors></command:nonTerminatingErrors>
<maml:alertSet>
<maml:title></maml:title>
<maml:alert>
<maml:para />
</maml:alert>
</maml:alertSet>
<command:examples>
<command:example>
<maml:title>-------------------------- Example 1 --------------------------</maml:title>
<maml:introduction>
<maml:paragraph>PS C:\&gt;</maml:paragraph>
</maml:introduction>
<dev:code>Set-AzureRmApiManagementTenantGitAccess -Context $apimContext -Enabled $true</dev:code>
<dev:remarks>
<maml:para>Sets the Git access configuration to True.</maml:para>
<maml:para />
<maml:para />
<maml:para></maml:para>
</dev:remarks>
<command:commandLines>
<command:commandLine>
<command:commandText>
<maml:para />
</command:commandText>
</command:commandLine>
</command:commandLines>
</command:example>
</command:examples>
<maml:relatedLinks>
</maml:relatedLinks>
</command:command>
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Get-AzureRmApiManagementTenantAccess</command:name>
Expand Down Expand Up @@ -16528,7 +16352,7 @@ OpenId Connect Provider.</maml:para>
</maml:introduction>
<dev:code>Set-AzureRmApiManagementTenantAccess -Context $apimContext -Enabled $true</dev:code>
<dev:remarks>
<maml:para>Sets the Tenant Access using REST API </maml:para>
<maml:para>Sets the Tenant Access using REST API to True.</maml:para>
<maml:para />
<maml:para />
<maml:para></maml:para>
Expand Down
Loading