Skip to content

Commit b337608

Browse files
committed
get assigned items with by user is or asset id
1 parent 64fa379 commit b337608

File tree

70 files changed

+2550
-2559
lines changed

Some content is hidden

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

70 files changed

+2550
-2559
lines changed

docs/Get-SnipeitAccessory.md

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -52,42 +52,42 @@ Get accessories checked out to user ID 1
5252

5353
## PARAMETERS
5454

55-
### -search
56-
A text string to search the Accessory data
55+
### -all
56+
A return all results, works with -offset and other parameters
5757

5858
```yaml
59-
Type: String
60-
Parameter Sets: Search
59+
Type: SwitchParameter
60+
Parameter Sets: Search, Accessories checked out to user id
6161
Aliases:
6262

6363
Required: False
6464
Position: Named
65-
Default value: None
65+
Default value: False
6666
Accept pipeline input: False
6767
Accept wildcard characters: False
6868
```
6969
70-
### -id
71-
A id of specific Accessory
70+
### -apiKey
71+
Users API Key for Snipeit, can be set using Set-SnipeitInfo command
7272
7373
```yaml
74-
Type: Int32
75-
Parameter Sets: Get by ID
74+
Type: String
75+
Parameter Sets: (All)
7676
Aliases:
7777

78-
Required: False
78+
Required: True
7979
Position: Named
80-
Default value: 0
80+
Default value: None
8181
Accept pipeline input: False
8282
Accept wildcard characters: False
8383
```
8484
85-
### -user_id
86-
{{ Fill user_id Description }}
85+
### -category_id
86+
{{ Fill category_id Description }}
8787
8888
```yaml
8989
Type: Int32
90-
Parameter Sets: Accessories checked out to user id
90+
Parameter Sets: Search
9191
Aliases:
9292

9393
Required: False
@@ -112,12 +112,12 @@ Accept pipeline input: False
112112
Accept wildcard characters: False
113113
```
114114
115-
### -category_id
116-
{{ Fill category_id Description }}
115+
### -id
116+
A id of specific Accessory
117117
118118
```yaml
119119
Type: Int32
120-
Parameter Sets: Search
120+
Parameter Sets: Get by ID
121121
Aliases:
122122

123123
Required: False
@@ -127,8 +127,10 @@ Accept pipeline input: False
127127
Accept wildcard characters: False
128128
```
129129
130-
### -manufacturer_id
131-
{{ Fill manufacturer_id Description }}
130+
### -limit
131+
Specify the number of results you wish to return.
132+
Defaults to 50.
133+
Defines batch size for -all
132134
133135
```yaml
134136
Type: Int32
@@ -137,13 +139,13 @@ Aliases:
137139

138140
Required: False
139141
Position: Named
140-
Default value: 0
142+
Default value: 50
141143
Accept pipeline input: False
142144
Accept wildcard characters: False
143145
```
144146
145-
### -supplier_id
146-
{{ Fill supplier_id Description }}
147+
### -manufacturer_id
148+
{{ Fill manufacturer_id Description }}
147149
148150
```yaml
149151
Type: Int32
@@ -157,17 +159,17 @@ Accept pipeline input: False
157159
Accept wildcard characters: False
158160
```
159161
160-
### -sort
161-
{{ Fill sort Description }}
162+
### -offset
163+
Result offset to use
162164
163165
```yaml
164-
Type: String
166+
Type: Int32
165167
Parameter Sets: Search
166168
Aliases:
167169

168170
Required: False
169171
Position: Named
170-
Default value: Created_at
172+
Default value: 0
171173
Accept pipeline input: False
172174
Accept wildcard characters: False
173175
```
@@ -187,49 +189,47 @@ Accept pipeline input: False
187189
Accept wildcard characters: False
188190
```
189191
190-
### -limit
191-
Specify the number of results you wish to return.
192-
Defaults to 50.
193-
Defines batch size for -all
192+
### -search
193+
A text string to search the Accessory data
194194
195195
```yaml
196-
Type: Int32
196+
Type: String
197197
Parameter Sets: Search
198198
Aliases:
199199

200200
Required: False
201201
Position: Named
202-
Default value: 50
202+
Default value: None
203203
Accept pipeline input: False
204204
Accept wildcard characters: False
205205
```
206206
207-
### -offset
208-
Result offset to use
207+
### -sort
208+
{{ Fill sort Description }}
209209
210210
```yaml
211-
Type: Int32
211+
Type: String
212212
Parameter Sets: Search
213213
Aliases:
214214

215215
Required: False
216216
Position: Named
217-
Default value: 0
217+
Default value: Created_at
218218
Accept pipeline input: False
219219
Accept wildcard characters: False
220220
```
221221
222-
### -all
223-
A return all results, works with -offset and other parameters
222+
### -supplier_id
223+
{{ Fill supplier_id Description }}
224224
225225
```yaml
226-
Type: SwitchParameter
227-
Parameter Sets: Search, Accessories checked out to user id
226+
Type: Int32
227+
Parameter Sets: Search
228228
Aliases:
229229

230230
Required: False
231231
Position: Named
232-
Default value: False
232+
Default value: 0
233233
Accept pipeline input: False
234234
Accept wildcard characters: False
235235
```
@@ -249,17 +249,17 @@ Accept pipeline input: False
249249
Accept wildcard characters: False
250250
```
251251
252-
### -apiKey
253-
Users API Key for Snipeit, can be set using Set-SnipeitInfo command
252+
### -user_id
253+
{{ Fill user_id Description }}
254254
255255
```yaml
256-
Type: String
257-
Parameter Sets: (All)
256+
Type: Int32
257+
Parameter Sets: Accessories checked out to user id
258258
Aliases:
259259

260-
Required: True
260+
Required: False
261261
Position: Named
262-
Default value: None
262+
Default value: 0
263263
Accept pipeline input: False
264264
Accept wildcard characters: False
265265
```

docs/Get-SnipeitAccessoryOwner.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,59 +29,58 @@ Get-SnipeitAccessoryOwner -id 1
2929

3030
## PARAMETERS
3131

32-
### -id
33-
Unique ID For accessory to list
32+
### -apiKey
33+
User's API Key for Snipeit, can be set using Set-SnipeitInfo command
3434

3535
```yaml
36-
Type: Int32
36+
Type: String
3737
Parameter Sets: (All)
3838
Aliases:
3939

4040
Required: True
41-
Position: 1
42-
Default value: 0
41+
Position: 3
42+
Default value: None
4343
Accept pipeline input: False
4444
Accept wildcard characters: False
4545
```
4646
47-
### -url
48-
URL of Snipeit system, can be set using Set-SnipeitInfo command
47+
### -id
48+
Unique ID For accessory to list
4949
5050
```yaml
51-
Type: String
51+
Type: Int32
5252
Parameter Sets: (All)
5353
Aliases:
5454

5555
Required: True
56-
Position: 2
57-
Default value: None
56+
Position: 1
57+
Default value: 0
5858
Accept pipeline input: False
5959
Accept wildcard characters: False
6060
```
6161
62-
### -apiKey
63-
User's API Key for Snipeit, can be set using Set-SnipeitInfo command
62+
### -url
63+
URL of Snipeit system, can be set using Set-SnipeitInfo command
6464
6565
```yaml
6666
Type: String
6767
Parameter Sets: (All)
6868
Aliases:
6969

7070
Required: True
71-
Position: 3
71+
Position: 2
7272
Default value: None
7373
Accept pipeline input: False
7474
Accept wildcard characters: False
7575
```
7676
77-
### -WhatIf
78-
Shows what would happen if the cmdlet runs.
79-
The cmdlet is not run.
77+
### -Confirm
78+
Prompts you for confirmation before running the cmdlet.
8079
8180
```yaml
8281
Type: SwitchParameter
8382
Parameter Sets: (All)
84-
Aliases: wi
83+
Aliases: cf
8584

8685
Required: False
8786
Position: Named
@@ -90,13 +89,14 @@ Accept pipeline input: False
9089
Accept wildcard characters: False
9190
```
9291
93-
### -Confirm
94-
Prompts you for confirmation before running the cmdlet.
92+
### -WhatIf
93+
Shows what would happen if the cmdlet runs.
94+
The cmdlet is not run.
9595
9696
```yaml
9797
Type: SwitchParameter
9898
Parameter Sets: (All)
99-
Aliases: cf
99+
Aliases: wi
100100

101101
Required: False
102102
Position: Named

0 commit comments

Comments
 (0)