Skip to content

Commit de39c0d

Browse files
committed
Removed invalid next line characters
1 parent b082d06 commit de39c0d

File tree

279 files changed

+1380
-1351
lines changed

Some content is hidden

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

279 files changed

+1380
-1351
lines changed

microsoftgraph/EscapeDisallowedHtmlTags.ps1

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ function Special-Escape{
217217
Move-Item -Path $tempFilePath -Destination $filePath
218218
}
219219
}
220-
#$___location = Get-Location
221-
#Set-Location microsoftgraph-docs-powershell
220+
Remove-Invalid-NextLine-Characters -FilePath $FilePath -GraphProfile $GraphProfile -ModuleName $ModuleName
222221
}catch{
223222
Write-Host "`nError Message: " $_.Exception.Message
224223
Write-Host "`nError in Line: " $_.InvocationInfo.Line
@@ -251,6 +250,36 @@ try{
251250
}
252251
return "NA"
253252
}
253+
function Remove-Invalid-NextLine-Characters{
254+
param (
255+
[ValidateNotNullOrEmpty()]
256+
[string] $FilePath,
257+
[ValidateSet("beta", "v1.0")]
258+
[string] $GraphProfile = "v1.0",
259+
[ValidateNotNullOrEmpty()]
260+
[string] $ModuleName = "Users"
261+
)
262+
$tempFilePath = "$env:TEMP\$($FilePath | Split-Path -Leaf)"
263+
264+
$replace = ""
265+
try{
266+
$text = Get-Content -Path $FilePath
267+
Write-Host $FilePath
268+
foreach($content in $text){
269+
if($content -match "\\n"){
270+
$text = $text -replace "\\n", $replace
271+
}
272+
}
273+
$text > $tempFilePath
274+
Remove-Item -Path $FilePath
275+
Move-Item -Path $tempFilePath -Destination $FilePath
276+
}catch{
277+
Write-Host "`nError Message: " $_.Exception.Message
278+
Write-Host "`nError in Line: " $_.InvocationInfo.Line
279+
Write-Host "`nError in Line Number: "$_.InvocationInfo.ScriptLineNumber
280+
Write-Host "`nError Item Name: "$_.Exception.ItemName
281+
}
282+
}
254283
Set-Location microsoftgraph-docs-powershell
255284
$date = Get-Date -Format "dd-MM-yyyy"
256285
$proposedBranch = "weekly_v2_docs_update_$date"

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Add-MgServicePrincipalTokenSigningCertificate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.prod: applications
1010

1111
## SYNOPSIS
1212
Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate.
13-
The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: \n+ The keyCredentials object with the following objects:\n + A private key object with usage set to Sign.\n + A public key object with usage set to Verify.\n+ The passwordCredentials object.
13+
The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object.
1414
All the objects have the same value of customKeyIdentifier.
1515
The passwordCredential is used to open the PFX file (private key).
1616
It and the associated private key object have the same value of keyId.
@@ -52,7 +52,7 @@ Add-MgServicePrincipalTokenSigningCertificate -InputObject <IApplicationsIdentit
5252

5353
## DESCRIPTION
5454
Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate.
55-
The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: \n+ The keyCredentials object with the following objects:\n + A private key object with usage set to Sign.\n + A public key object with usage set to Verify.\n+ The passwordCredentials object.
55+
The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object.
5656
All the objects have the same value of customKeyIdentifier.
5757
The passwordCredential is used to open the PFX file (private key).
5858
It and the associated private key object have the same value of keyId.

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Microsoft.Graph.Applications.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Add a strong password or secret to a servicePrincipal object.
3333

3434
### [Add-MgServicePrincipalTokenSigningCertificate](Add-MgServicePrincipalTokenSigningCertificate.md)
3535
Create a self-signed signing certificate and return a selfSignedCertificate object, which is the public part of the generated certificate.
36-
The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: \n+ The keyCredentials object with the following objects:\n + A private key object with usage set to Sign.\n + A public key object with usage set to Verify.\n+ The passwordCredentials object.
36+
The self-signed signing certificate is composed of the following objects, which are added to the servicePrincipal: + The keyCredentials object with the following objects: + A private key object with usage set to Sign. + A public key object with usage set to Verify.+ The passwordCredentials object.
3737
All the objects have the same value of customKeyIdentifier.
3838
The passwordCredential is used to open the PFX file (private key).
3939
It and the associated private key object have the same value of keyId.
@@ -875,9 +875,9 @@ All the progress, including job state, is persisted, and the job will continue f
875875
Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies.
876876
Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group.
877877
To validate the properties of an existing group, use the group: validateProperties function.
878-
The following policy validations are performed for the display name and mail nickname properties:\n1.
879-
Validate the prefix and suffix naming policy\n2.
880-
Validate the custom banned words policy\n3.
878+
The following policy validations are performed for the display name and mail nickname properties:1.
879+
Validate the prefix and suffix naming policy2.
880+
Validate the custom banned words policy3.
881881
Validate that the mail nickname is unique This API only returns the first validation failure that is encountered.
882882
If the properties fail multiple validations, only the first validation failure is returned.
883883
However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.
@@ -890,9 +890,9 @@ Validate that the credentials are valid in the tenant.
890890
Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies.
891891
Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group.
892892
To validate the properties of an existing group, use the group: validateProperties function.
893-
The following policy validations are performed for the display name and mail nickname properties:\n1.
894-
Validate the prefix and suffix naming policy\n2.
895-
Validate the custom banned words policy\n3.
893+
The following policy validations are performed for the display name and mail nickname properties:1.
894+
Validate the prefix and suffix naming policy2.
895+
Validate the custom banned words policy3.
896896
Validate that the mail nickname is unique This API only returns the first validation failure that is encountered.
897897
If the properties fail multiple validations, only the first validation failure is returned.
898898
However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Test-MgApplicationProperty.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ schema: 2.0.0
1111
Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies.
1212
Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group.
1313
To validate the properties of an existing group, use the group: validateProperties function.
14-
The following policy validations are performed for the display name and mail nickname properties:\n1.
15-
Validate the prefix and suffix naming policy\n2.
16-
Validate the custom banned words policy\n3.
14+
The following policy validations are performed for the display name and mail nickname properties:1.
15+
Validate the prefix and suffix naming policy2.
16+
Validate the custom banned words policy3.
1717
Validate that the mail nickname is unique This API only returns the first validation failure that is encountered.
1818
If the properties fail multiple validations, only the first validation failure is returned.
1919
However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.
@@ -41,9 +41,9 @@ Test-MgApplicationProperty
4141
Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies.
4242
Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group.
4343
To validate the properties of an existing group, use the group: validateProperties function.
44-
The following policy validations are performed for the display name and mail nickname properties:\n1.
45-
Validate the prefix and suffix naming policy\n2.
46-
Validate the custom banned words policy\n3.
44+
The following policy validations are performed for the display name and mail nickname properties:1.
45+
Validate the prefix and suffix naming policy2.
46+
Validate the custom banned words policy3.
4747
Validate that the mail nickname is unique This API only returns the first validation failure that is encountered.
4848
If the properties fail multiple validations, only the first validation failure is returned.
4949
However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Applications/Test-MgServicePrincipalProperty.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ schema: 2.0.0
1111
Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies.
1212
Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group.
1313
To validate the properties of an existing group, use the group: validateProperties function.
14-
The following policy validations are performed for the display name and mail nickname properties:\n1.
15-
Validate the prefix and suffix naming policy\n2.
16-
Validate the custom banned words policy\n3.
14+
The following policy validations are performed for the display name and mail nickname properties:1.
15+
Validate the prefix and suffix naming policy2.
16+
Validate the custom banned words policy3.
1717
Validate that the mail nickname is unique This API only returns the first validation failure that is encountered.
1818
If the properties fail multiple validations, only the first validation failure is returned.
1919
However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.
@@ -42,9 +42,9 @@ Test-MgServicePrincipalProperty
4242
Validate that a Microsoft 365 group's display name or mail nickname complies with naming policies.
4343
Clients can use this API to determine whether a display name or mail nickname is valid before trying to create a Microsoft 365 group.
4444
To validate the properties of an existing group, use the group: validateProperties function.
45-
The following policy validations are performed for the display name and mail nickname properties:\n1.
46-
Validate the prefix and suffix naming policy\n2.
47-
Validate the custom banned words policy\n3.
45+
The following policy validations are performed for the display name and mail nickname properties:1.
46+
Validate the prefix and suffix naming policy2.
47+
Validate the custom banned words policy3.
4848
Validate that the mail nickname is unique This API only returns the first validation failure that is encountered.
4949
If the properties fail multiple validations, only the first validation failure is returned.
5050
However, you can validate both the mail nickname and the display name and receive a collection of validation errors if you are only validating the prefix and suffix naming policy.

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Bookings/Microsoft.Graph.Bookings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Update the properties of a bookingCustomQuestion object.
147147

148148
### [Update-MgBookingBusinessService](Update-MgBookingBusinessService.md)
149149
Update the properties of a bookingService object in the specified bookingBusiness.
150-
The following are some examples you can customize for a service:\n- Price\n- Typical length of an appointment\n- Reminders\n- Any time buffer to set up before or finish up after the service\n- Scheduling policy parameters, such as minimum notice to book or cancel, and whether customers can select specific staff members for an appointment.
150+
The following are some examples you can customize for a service:- Price- Typical length of an appointment- Reminders- Any time buffer to set up before or finish up after the service- Scheduling policy parameters, such as minimum notice to book or cancel, and whether customers can select specific staff members for an appointment.
151151

152152
### [Update-MgBookingBusinessStaffMember](Update-MgBookingBusinessStaffMember.md)
153153
Update the properties of a bookingStaffMember in the specified bookingBusiness.

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Calendar/Get-MgUserDefaultCalendarEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ schema: 2.0.0
1111
Retrieve a list of events in a calendar.
1212
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
1313
The list of events contains single instance meetings and series masters.
14-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
14+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
1515

1616
> [!NOTE]
1717
> To view the beta release of this cmdlet, view [Get-MgBetaUserDefaultCalendarEvent](/powershell/module/Microsoft.Graph.Beta.Calendar/Get-MgBetaUserDefaultCalendarEvent?view=graph-powershell-beta)
@@ -28,7 +28,7 @@ Get-MgUserDefaultCalendarEvent -UserId <String> [-ExpandProperty <String[]>] [-F
2828
Retrieve a list of events in a calendar.
2929
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
3030
The list of events contains single instance meetings and series masters.
31-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
31+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
3232

3333
## PARAMETERS
3434

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Calendar/Get-MgUserEvent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ schema: 2.0.0
1111
Retrieve a list of events in a calendar.
1212
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
1313
The list of events contains single instance meetings and series masters.
14-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
14+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
1515

1616
> [!NOTE]
1717
> To view the beta release of this cmdlet, view [Get-MgBetaUserEvent](/powershell/module/Microsoft.Graph.Beta.Calendar/Get-MgBetaUserEvent?view=graph-powershell-beta)
@@ -28,7 +28,7 @@ Get-MgUserDefaultCalendarEvent -UserId <String> [-ExpandProperty <String[]>] [-F
2828
Retrieve a list of events in a calendar.
2929
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
3030
The list of events contains single instance meetings and series masters.
31-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
31+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
3232

3333
## EXAMPLES
3434
### Example 1: Code snippet

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Calendar/Get-MgUserEventAttachment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ schema: 2.0.0
1111
Retrieve a list of events in a calendar.
1212
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
1313
The list of events contains single instance meetings and series masters.
14-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
14+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
1515

1616
> [!NOTE]
1717
> To view the beta release of this cmdlet, view [Get-MgBetaUserEventAttachment](/powershell/module/Microsoft.Graph.Beta.Calendar/Get-MgBetaUserEventAttachment?view=graph-powershell-beta)
@@ -28,7 +28,7 @@ Get-MgUserDefaultCalendarEvent -UserId <String> [-ExpandProperty <String[]>] [-F
2828
Retrieve a list of events in a calendar.
2929
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
3030
The list of events contains single instance meetings and series masters.
31-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
31+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
3232

3333
## EXAMPLES
3434
### Example 1: Code snippet

microsoftgraph/graph-powershell-1.0/Microsoft.Graph.Calendar/Microsoft.Graph.Calendar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,19 @@ Read-only.
142142
Retrieve a list of events in a calendar.
143143
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
144144
The list of events contains single instance meetings and series masters.
145-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
145+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
146146

147147
### [Get-MgUserDefaultCalendarEvent](Get-MgUserDefaultCalendarEvent.md)
148148
Retrieve a list of events in a calendar.
149149
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
150150
The list of events contains single instance meetings and series masters.
151-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
151+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
152152

153153
### [Get-MgUserDefaultCalendarEvent](Get-MgUserDefaultCalendarEvent.md)
154154
Retrieve a list of events in a calendar.
155155
The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
156156
The list of events contains single instance meetings and series masters.
157-
To get expanded event instances, you can get the calendar view, or \nget the instances of an event.
157+
To get expanded event instances, you can get the calendar view, or get the instances of an event.
158158

159159
### [Get-MgUserEventAttachmentCount](Get-MgUserEventAttachmentCount.md)
160160
Get the number of the resource

0 commit comments

Comments
 (0)