|
1 |
| -using Microsoft.Azure.Commands.HealthcareApis.Properties; |
| 1 | +// ---------------------------------------------------------------------------------- |
| 2 | +// |
| 3 | +// Copyright Microsoft Corporation |
| 4 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +// you may not use this file except in compliance with the License. |
| 6 | +// You may obtain a copy of the License at |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// Unless required by applicable law or agreed to in writing, software |
| 9 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +// See the License for the specific language governing permissions and |
| 12 | +// limitations under the License. |
| 13 | +// ---------------------------------------------------------------------------------- |
| 14 | + |
| 15 | +using Microsoft.Azure.Commands.HealthcareApis.Properties; |
2 | 16 | using System;
|
3 |
| -using System.Collections.Generic; |
4 | 17 | using System.Management.Automation;
|
5 |
| -using System.Text; |
6 |
| -using System.Text.RegularExpressions; |
7 | 18 |
|
8 | 19 | namespace Microsoft.Azure.PowerShell.Cmdlets.HealthcareApis.Common
|
9 | 20 | {
|
10 | 21 | public static class HealthcareApisArgumentValidator
|
11 | 22 | {
|
12 |
| - |
13 |
| - public static bool ValidateObjectId(string AccessPolicyObjectId) |
| 23 | + public static bool ValidateObjectId(string accessPolicyObjectId) |
14 | 24 | {
|
15 |
| - if (!Guid.TryParse(AccessPolicyObjectId, out _)) |
| 25 | + if (!Guid.TryParse(accessPolicyObjectId, out _)) |
16 | 26 | {
|
17 | 27 | throw new PSArgumentException(Resources.invalidAccessPolicyObjectIdMessage);
|
18 | 28 | }
|
|
0 commit comments