Skip to content

Commit

Permalink
Revert "Show "NotPolice" legal terms for Face. (#12618)" (#12645)
Browse files Browse the repository at this point in the history
This reverts commit 9335d18.
  • Loading branch information
yangyuan authored Aug 12, 2020
1 parent cf84676 commit 89b7856
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 39 deletions.
1 change: 0 additions & 1 deletion src/CognitiveServices/CognitiveServices/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
- Additional information about change #1
-->
## Upcoming Release
* Show additional legal terms for certain APIs.

## Version 1.5.1
* Used `Deny` specifically as NetworkRules default action.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,4 @@
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="7.3.0-preview" />
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
</Compile>
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -245,24 +245,6 @@ public override void ExecuteCmdlet()
}
}
}

if (Type.Equals("Face", StringComparison.InvariantCultureIgnoreCase))
{
if (Force.IsPresent)
{
WriteWarning(Resources.NewAccount_LegalTerm_NotPolice);
}
else
{
bool yesToAll = false, noToAll = false;
if (!ShouldContinue(Resources.NewAccount_LegalTerm_NotPolice, "Notice", true, ref yesToAll, ref noToAll))
{
return;
}
}
}


try
{
CognitiveServicesAccount createAccountResponse = CognitiveServicesClient.Accounts.Create(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@
<data name="NewAccountKey_ProcessMessage" xml:space="preserve">
<value>Regenerating Key {0} for account {1}.</value>
</data>
<data name="NewAccount_LegalTerm_NotPolice" xml:space="preserve">
<value>I certify that use of this service is not by or for a police department in the United States.</value>
</data>
<data name="NewAccount_Notice" xml:space="preserve">
<value>Microsoft will use data you send to Bing Search Services to improve Microsoft products and services. Where you send personal data to these Cognitive Services, you are responsible for obtaining sufficient consent from the data subjects. The General Privacy and Security Terms in the Online Services Terms do not apply to these Cognitive Services. Please refer to the Microsoft Cognitive Services section in the Online Services Terms (https://www.microsoft.com/en-us/Licensing/product-licensing/products.aspx) for details. Microsoft offers policy controls that may be used to disable new Cognitive Services deployments (https://docs.microsoft.com/en-us/azure/cognitive-services/cognitive-services-apis-create-account).</value>
</data>
Expand Down

0 comments on commit 89b7856

Please sign in to comment.