You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/AddAzureApiManagementApiToProduct.cs
+44-5Lines changed: 44 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,51 @@
12
12
// See the License for the specific language governing permissions and
HelpMessage="Instance of PsApiManagementContext. This parameter is required.")][ValidateNotNullOrEmpty]publicPsApiManagementContextContext{get;set;}[Parameter(ValueFromPipelineByPropertyName=true,
28
+
HelpMessage="Instance of PsApiManagementContext. This parameter is required.")]
29
+
[ValidateNotNullOrEmpty]
30
+
publicPsApiManagementContextContext{get;set;}
31
+
32
+
[Parameter(
33
+
ValueFromPipelineByPropertyName=true,
18
34
Mandatory=true,
19
-
HelpMessage="Identifier of existing Product to add API to. This parameter is required.")][ValidateNotNullOrEmpty]publicStringProductId{get;set;}[Parameter(ValueFromPipelineByPropertyName=true,
35
+
HelpMessage="Identifier of existing Product to add API to. This parameter is required.")]
36
+
[ValidateNotNullOrEmpty]
37
+
publicStringProductId{get;set;}
38
+
39
+
[Parameter(
40
+
ValueFromPipelineByPropertyName=true,
20
41
Mandatory=true,
21
-
HelpMessage="Identifier of existing APIs to be added to the product. This parameter is required.")][ValidateNotNullOrEmpty]publicStringApiId{get;set;}[Parameter(ValueFromPipelineByPropertyName=true,
42
+
HelpMessage="Identifier of existing APIs to be added to the product. This parameter is required.")]
43
+
[ValidateNotNullOrEmpty]
44
+
publicStringApiId{get;set;}
45
+
46
+
[Parameter(
47
+
ValueFromPipelineByPropertyName=true,
22
48
Mandatory=false,
23
-
HelpMessage="If specified will write true in case operation succeeds. This parameter is optional. Default value is false.")]publicSwitchParameterPassThru{get;set;}publicoverridevoidExecuteApiManagementCmdlet(){Client.ApiAddToProduct(Context,ProductId,ApiId);if(PassThru){WriteObject(true);}}}}
49
+
HelpMessage="If specified will write true in case operation succeeds. This parameter is optional. Default value is false.")]
0 commit comments