Skip to content

Commit 399249a

Browse files
authored
AIO Powershell SDK (#27259)
1 parent 7e90069 commit 399249a

File tree

215 files changed

+37497
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+37497
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
bin
2+
obj
3+
.vs
4+
generated
5+
internal
6+
exports
7+
tools
8+
custom/*.psm1
9+
custom/autogen-model-cmdlets
10+
test/*-TestResults.xml
11+
license.txt
12+
/*.ps1
13+
/*.psd1
14+
/*.ps1xml
15+
/*.psm1
16+
/*.snk
17+
/*.csproj
18+
/*.nuspec
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MicrosoftIoTOperationsManagementService")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+
37+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!-- region Generated -->
2+
# Az.IoTOperationsService
3+
This directory contains the PowerShell module for the IoTOperationsService service.
4+
5+
---
6+
## Info
7+
- Modifiable: yes
8+
- Generated: all
9+
- Committed: yes
10+
- Packaged: yes
11+
12+
---
13+
## Detail
14+
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
15+
16+
## Module Requirements
17+
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
18+
19+
## Authentication
20+
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
21+
22+
## Development
23+
For information on how to develop for `Az.IoTOperationsService`, see [how-to.md](how-to.md).
24+
<!-- endregion -->
25+
26+
### AutoRest Configuration
27+
> see https://aka.ms/autorest
28+
29+
title: IoTOperations
30+
31+
# For new RP, the version is 0.1.0
32+
module-version: 0.1.0
33+
34+
```yaml
35+
commit: 1c91368ace1631264d46bd6dbd01c947c660858c
36+
require:
37+
# readme.azure.noprofile.md is the common configuration file
38+
- $(this-folder)/../../readme.azure.noprofile.md
39+
- $(repo)/specification/iotoperations/resource-manager/readme.md
40+
41+
try-require:
42+
- $(repo)/specification/iotoperations/resource-manager/readme.powershell.md
43+
44+
directive:
45+
# Following are common directives which are normally required in all the RPs
46+
# 1. Remove the unexpanded parameter set
47+
# 2. For New-* cmdlets, ViaIdentity is not required
48+
# Following two directives are v4 specific
49+
- where:
50+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
51+
remove: true
52+
- where:
53+
variant: ^CreateViaIdentity.*$
54+
remove: true
55+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"resourceType": "instances/brokers/authentications",
3+
"apiVersion": "2024-11-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.iotoperationsservice"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzIoTOperationsServiceBrokerAuthentication",
10+
"description": "Get a BrokerAuthenticationResource",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.iotoperationsservice/get-aziotoperationsservicebrokerauthentication"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-AuthenticationName <String>",
20+
"-BrokerName <String>",
21+
"-InstanceName <String>",
22+
"-ResourceGroupName <String>",
23+
"[-SubscriptionId <String[]>]"
24+
]
25+
}
26+
]
27+
},
28+
"examples": [
29+
{
30+
"description": "Get a BrokerAuthenticationResource",
31+
"parameters": [
32+
{
33+
"name": "-AuthenticationName",
34+
"value": "[Path.authenticationName]"
35+
},
36+
{
37+
"name": "-BrokerName",
38+
"value": "[Path.brokerName]"
39+
},
40+
{
41+
"name": "-InstanceName",
42+
"value": "[Path.instanceName]"
43+
},
44+
{
45+
"name": "-ResourceGroupName",
46+
"value": "[Path.resourceGroupName]"
47+
},
48+
{
49+
"name": "-SubscriptionId",
50+
"value": "[Path.subscriptionId]"
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"name": "Remove-AzIoTOperationsServiceBrokerAuthentication",
58+
"description": "Delete a BrokerAuthenticationResource",
59+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authentications/{authenticationName}",
60+
"help": {
61+
"learnMore": {
62+
"url": "https://learn.microsoft.com/powershell/module/az.iotoperationsservice/remove-aziotoperationsservicebrokerauthentication"
63+
},
64+
"parameterSets": [
65+
{
66+
"parameters": [
67+
"-AuthenticationName <String>",
68+
"-BrokerName <String>",
69+
"-InstanceName <String>",
70+
"-ResourceGroupName <String>",
71+
"[-SubscriptionId <String>]"
72+
]
73+
}
74+
]
75+
},
76+
"examples": [
77+
{
78+
"description": "Delete a BrokerAuthenticationResource",
79+
"parameters": [
80+
{
81+
"name": "-AuthenticationName",
82+
"value": "[Path.authenticationName]"
83+
},
84+
{
85+
"name": "-BrokerName",
86+
"value": "[Path.brokerName]"
87+
},
88+
{
89+
"name": "-InstanceName",
90+
"value": "[Path.instanceName]"
91+
},
92+
{
93+
"name": "-ResourceGroupName",
94+
"value": "[Path.resourceGroupName]"
95+
},
96+
{
97+
"name": "-SubscriptionId",
98+
"value": "[Path.subscriptionId]"
99+
}
100+
]
101+
}
102+
]
103+
}
104+
]
105+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"resourceType": "instances/brokers/authorizations",
3+
"apiVersion": "2024-11-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.iotoperationsservice"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzIoTOperationsServiceBrokerAuthorization",
10+
"description": "Get a BrokerAuthorizationResource",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.iotoperationsservice/get-aziotoperationsservicebrokerauthorization"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-AuthorizationName <String>",
20+
"-BrokerName <String>",
21+
"-InstanceName <String>",
22+
"-ResourceGroupName <String>",
23+
"[-SubscriptionId <String[]>]"
24+
]
25+
}
26+
]
27+
},
28+
"examples": [
29+
{
30+
"description": "Get a BrokerAuthorizationResource",
31+
"parameters": [
32+
{
33+
"name": "-AuthorizationName",
34+
"value": "[Path.authorizationName]"
35+
},
36+
{
37+
"name": "-BrokerName",
38+
"value": "[Path.brokerName]"
39+
},
40+
{
41+
"name": "-InstanceName",
42+
"value": "[Path.instanceName]"
43+
},
44+
{
45+
"name": "-ResourceGroupName",
46+
"value": "[Path.resourceGroupName]"
47+
},
48+
{
49+
"name": "-SubscriptionId",
50+
"value": "[Path.subscriptionId]"
51+
}
52+
]
53+
}
54+
]
55+
},
56+
{
57+
"name": "Remove-AzIoTOperationsServiceBrokerAuthorization",
58+
"description": "Delete a BrokerAuthorizationResource",
59+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/brokers/{brokerName}/authorizations/{authorizationName}",
60+
"help": {
61+
"learnMore": {
62+
"url": "https://learn.microsoft.com/powershell/module/az.iotoperationsservice/remove-aziotoperationsservicebrokerauthorization"
63+
},
64+
"parameterSets": [
65+
{
66+
"parameters": [
67+
"-AuthorizationName <String>",
68+
"-BrokerName <String>",
69+
"-InstanceName <String>",
70+
"-ResourceGroupName <String>",
71+
"[-SubscriptionId <String>]"
72+
]
73+
}
74+
]
75+
},
76+
"examples": [
77+
{
78+
"description": "Delete a BrokerAuthorizationResource",
79+
"parameters": [
80+
{
81+
"name": "-AuthorizationName",
82+
"value": "[Path.authorizationName]"
83+
},
84+
{
85+
"name": "-BrokerName",
86+
"value": "[Path.brokerName]"
87+
},
88+
{
89+
"name": "-InstanceName",
90+
"value": "[Path.instanceName]"
91+
},
92+
{
93+
"name": "-ResourceGroupName",
94+
"value": "[Path.resourceGroupName]"
95+
},
96+
{
97+
"name": "-SubscriptionId",
98+
"value": "[Path.subscriptionId]"
99+
}
100+
]
101+
}
102+
]
103+
}
104+
]
105+
}

0 commit comments

Comments
 (0)