Skip to content

Commit fa560fd

Browse files
committed
Renamed customHeaders to headers
1 parent 3cbc424 commit fa560fd

17 files changed

+83
-83
lines changed

src/Groups/beta/custom/NewMgBetaGroupMember_Create.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ public partial class NewMgBetaGroupMember_Create : System.Management.Automation.
4343

4444
/// <summary>The reference to the client API class.</summary>
4545
public Groups Client => Module.Instance.ClientAPI;
46-
/// <summary>Backing field for <see cref="CustomHeaders" /> property.</summary>
47-
private System.Collections.IDictionary _customHeaders;
46+
/// <summary>Backing field for <see cref="Headers" /> property.</summary>
47+
private System.Collections.IDictionary _headers;
4848

4949
/// <summary>Optional headers that will be added to the request.</summary>
5050
[System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional headers that will be added to the request.", ValueFromPipeline = true)]
5151
[Category(ParameterCategory.Runtime)]
52-
public System.Collections.IDictionary CustomHeaders { get => this._customHeaders; set => this._customHeaders = value; }
53-
52+
public System.Collections.IDictionary Headers { get => this._headers; set => this._headers = value; }
53+
5454
/// <summary>Backing field for <see cref="GroupId" /> property.</summary>
5555
private string _groupId;
5656

@@ -269,12 +269,12 @@ protected async System.Threading.Tasks.Task ProcessRecordAsync()
269269
try
270270
{
271271
await ((Runtime.IEventListener)this).Signal(Runtime.Events.CmdletBeforeAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
272-
await this.Client.GroupCreateMemberGraphBPreRef(GroupId, CustomHeaders, BodyParameter, onNoContent, onDefault, this, Pipeline);
272+
await this.Client.GroupCreateMemberGraphBPreRef(GroupId, Headers, BodyParameter, onNoContent, onDefault, this, Pipeline);
273273
await ((Runtime.IEventListener)this).Signal(Runtime.Events.CmdletAfterAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
274274
}
275275
catch (Microsoft.Graph.Beta.PowerShell.Runtime.UndeclaredResponseException urexception)
276276
{
277-
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, CustomHeaders = CustomHeaders, body = BodyParameter })
277+
WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, Headers = Headers, body = BodyParameter })
278278
{
279279
ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
280280
});

src/Groups/beta/custom/NewMgBetaGroupMember_CreateExpanded.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public partial class NewMgBetaGroupMember_CreateExpanded : System.Management.Aut
3333
/// <summary>The reference to the client API class.</summary>
3434
public Groups Client => Module.Instance.ClientAPI;
3535

36-
/// <summary>Backing field for <see cref="CustomHeaders" /> property.</summary>
37-
private System.Collections.IDictionary _customHeaders;
36+
/// <summary>Backing field for <see cref="Headers" /> property.</summary>
37+
private System.Collections.IDictionary _headers;
3838

3939
/// <summary>Optional headers that will be added to the request.</summary>
4040
[System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional headers that will be added to the request.", ValueFromPipeline = true)]
4141
[Category(ParameterCategory.Runtime)]
42-
public System.Collections.IDictionary CustomHeaders { get => this._customHeaders; set => this._customHeaders = value; }
42+
public System.Collections.IDictionary Headers { get => this._headers; set => this._headers = value; }
4343

4444
/// <summary>Backing field for <see cref="GroupId" /> property.</summary>
4545
private string _groupId;
@@ -271,12 +271,12 @@ protected async System.Threading.Tasks.Task ProcessRecordAsync()
271271
{
272272
await ((Runtime.IEventListener)this).Signal(Microsoft.Graph.Beta.PowerShell.Runtime.Events.CmdletBeforeAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
273273
_bodyParameter.OdataId = $"https://graph.microsoft.com/beta/directoryObjects/{DirectoryObjectId}";
274-
await this.Client.GroupCreateMemberGraphBPreRef(GroupId, CustomHeaders, _bodyParameter, onNoContent, onDefault, this, Pipeline);
274+
await this.Client.GroupCreateMemberGraphBPreRef(GroupId, Headers, _bodyParameter, onNoContent, onDefault, this, Pipeline);
275275
await ((Runtime.IEventListener)this).Signal(Microsoft.Graph.Beta.PowerShell.Runtime.Events.CmdletAfterAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
276276
}
277277
catch (Runtime.UndeclaredResponseException urexception)
278278
{
279-
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, CustomHeaders = CustomHeaders, body = _bodyParameter })
279+
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, Headers = Headers, body = _bodyParameter })
280280
{
281281
ErrorDetails = new System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
282282
});

src/Groups/beta/custom/NewMgBetaGroupMember_CreateViaIdentity.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ public partial class NewMgBetaGroupMember_CreateViaIdentity : System.Management.
4444
/// <summary>The reference to the client API class.</summary>
4545
public Groups Client => Module.Instance.ClientAPI;
4646

47-
/// <summary>Backing field for <see cref="CustomHeaders" /> property.</summary>
48-
private System.Collections.IDictionary _customHeaders;
47+
/// <summary>Backing field for <see cref="Headers" /> property.</summary>
48+
private System.Collections.IDictionary _headers;
4949

5050
/// <summary>Optional headers that will be added to the request.</summary>
5151
[System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional headers that will be added to the request.", ValueFromPipeline = true)]
5252
[Category(ParameterCategory.Runtime)]
53-
public System.Collections.IDictionary CustomHeaders { get => this._customHeaders; set => this._customHeaders = value; }
53+
public System.Collections.IDictionary Headers { get => this._headers; set => this._headers = value; }
5454

5555
/// <summary>SendAsync Pipeline Steps to be appended to the front of the pipeline</summary>
5656
[System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -269,12 +269,12 @@ protected async System.Threading.Tasks.Task ProcessRecordAsync()
269269
{
270270
ThrowTerminatingError(new System.Management.Automation.ErrorRecord(new System.Exception("InputObject has null value for InputObject.GroupId"), string.Empty, System.Management.Automation.ErrorCategory.InvalidArgument, InputObject));
271271
}
272-
await this.Client.GroupCreateMemberGraphBPreRef(InputObject.GroupId, CustomHeaders, BodyParameter, onNoContent, onDefault, this, Pipeline);
272+
await this.Client.GroupCreateMemberGraphBPreRef(InputObject.GroupId, Headers, BodyParameter, onNoContent, onDefault, this, Pipeline);
273273
await ((Runtime.IEventListener)this).Signal(Runtime.Events.CmdletAfterAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
274274
}
275275
catch (Runtime.UndeclaredResponseException urexception)
276276
{
277-
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { CustomHeaders = CustomHeaders, body = BodyParameter })
277+
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { Headers = Headers, body = BodyParameter })
278278
{
279279
ErrorDetails = new System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
280280
});

src/Groups/beta/custom/NewMgBetaGroupMember_CreateViaIdentityExpanded.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public partial class NewMgBetaGroupMember_CreateViaIdentityExpanded : System.Man
3333
/// <summary>The reference to the client API class.</summary>
3434
public Groups Client => Module.Instance.ClientAPI;
3535

36-
/// <summary>Backing field for <see cref="CustomHeader" /> property.</summary>
37-
private System.Collections.IDictionary _customHeaders;
36+
/// <summary>Backing field for <see cref="Headers" /> property.</summary>
37+
private System.Collections.IDictionary _headers;
3838

3939
/// <summary>Optional headers that will be added to the request.</summary>
4040
[System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional headers that will be added to the request.", ValueFromPipeline = true)]
4141
[Category(ParameterCategory.Runtime)]
42-
public System.Collections.IDictionary CustomHeaders { get => this._customHeaders; set => this._customHeaders = value; }
42+
public System.Collections.IDictionary Headers { get => this._headers; set => this._headers = value; }
4343

4444
/// <summary>SendAsync Pipeline Steps to be appended to the front of the pipeline</summary>
4545
[System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")]
@@ -270,12 +270,12 @@ protected async System.Threading.Tasks.Task ProcessRecordAsync()
270270
ThrowTerminatingError(new System.Management.Automation.ErrorRecord(new System.Exception("InputObject has null value for InputObject.GroupId"), string.Empty, System.Management.Automation.ErrorCategory.InvalidArgument, InputObject));
271271
}
272272
_bodyParameter.OdataId = $"https://graph.microsoft.com/beta/directoryObjects/{DirectoryObjectId}";
273-
await this.Client.GroupCreateMemberGraphBPreRef(InputObject.GroupId, CustomHeaders, _bodyParameter, onNoContent, onDefault, this, Pipeline);
273+
await this.Client.GroupCreateMemberGraphBPreRef(InputObject.GroupId, Headers, _bodyParameter, onNoContent, onDefault, this, Pipeline);
274274
await ((Runtime.IEventListener)this).Signal(Runtime.Events.CmdletAfterAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
275275
}
276276
catch (Runtime.UndeclaredResponseException urexception)
277277
{
278-
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { CustomHeaders = CustomHeaders, body = _bodyParameter })
278+
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { Headers = Headers, body = _bodyParameter })
279279
{
280280
ErrorDetails = new System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
281281
});

src/Groups/beta/custom/NewMgBetaGroupOwner_Create.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ public partial class NewMgBetaGroupOwner_Create : System.Management.Automation.P
4242
/// <summary>The reference to the client API class.</summary>
4343
public Groups Client => Module.Instance.ClientAPI;
4444

45-
/// <summary>Backing field for <see cref="CustomHeaders" /> property.</summary>
46-
private System.Collections.IDictionary _customHeaders;
45+
/// <summary>Backing field for <see cref="Headers" /> property.</summary>
46+
private System.Collections.IDictionary _headers;
4747

4848
/// <summary>Optional headers that will be added to the request.</summary>
4949
[System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional headers that will be added to the request.", ValueFromPipeline = true)]
5050
[Category(ParameterCategory.Runtime)]
51-
public System.Collections.IDictionary CustomHeaders { get => this._customHeaders; set => this._customHeaders = value; }
51+
public System.Collections.IDictionary Headers { get => this._headers; set => this._headers = value; }
5252

5353
/// <summary>Backing field for <see cref="GroupId" /> property.</summary>
5454
private string _groupId;
@@ -268,12 +268,12 @@ protected async System.Threading.Tasks.Task ProcessRecordAsync()
268268
try
269269
{
270270
await ((Runtime.IEventListener)this).Signal(Runtime.Events.CmdletBeforeAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
271-
await this.Client.GroupCreateOwnerGraphBPreRef(GroupId, CustomHeaders, BodyParameter, onNoContent, onDefault, this, Pipeline);
271+
await this.Client.GroupCreateOwnerGraphBPreRef(GroupId, Headers, BodyParameter, onNoContent, onDefault, this, Pipeline);
272272
await ((Runtime.IEventListener)this).Signal(Runtime.Events.CmdletAfterAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
273273
}
274274
catch (Runtime.UndeclaredResponseException urexception)
275275
{
276-
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, CustomHeaders = CustomHeaders, body = BodyParameter })
276+
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, Headers = Headers, body = BodyParameter })
277277
{
278278
ErrorDetails = new System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
279279
});

src/Groups/beta/custom/NewMgBetaGroupOwner_CreateExpanded.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public partial class NewMgBetaGroupOwner_CreateExpanded : System.Management.Auto
3333
/// <summary>The reference to the client API class.</summary>
3434
public Groups Client => Module.Instance.ClientAPI;
3535

36-
/// <summary>Backing field for <see cref="CustomHeaders" /> property.</summary>
37-
private System.Collections.IDictionary _customHeaders;
36+
/// <summary>Backing field for <see cref="Headers" /> property.</summary>
37+
private System.Collections.IDictionary _headers;
3838

3939
/// <summary>Optional headers that will be added to the request.</summary>
4040
[System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Optional headers that will be added to the request.", ValueFromPipeline = true)]
4141
[Category(ParameterCategory.Runtime)]
42-
public System.Collections.IDictionary CustomHeaders { get => this._customHeaders; set => this._customHeaders = value; }
42+
public System.Collections.IDictionary Headers { get => this._headers; set => this._headers = value; }
4343

4444
/// <summary>Backing field for <see cref="GroupId" /> property.</summary>
4545
private string _groupId;
@@ -271,12 +271,12 @@ protected async System.Threading.Tasks.Task ProcessRecordAsync()
271271
{
272272
await ((Runtime.IEventListener)this).Signal(Microsoft.Graph.Beta.PowerShell.Runtime.Events.CmdletBeforeAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
273273
_bodyParameter.OdataId = $"https://graph.microsoft.com/beta/directoryObjects/{DirectoryObjectId}";
274-
await this.Client.GroupCreateOwnerGraphBPreRef(GroupId, CustomHeader, _bodyParameter, onNoContent, onDefault, this, Pipeline);
274+
await this.Client.GroupCreateOwnerGraphBPreRef(GroupId, Headers, _bodyParameter, onNoContent, onDefault, this, Pipeline);
275275
await ((Runtime.IEventListener)this).Signal(Microsoft.Graph.Beta.PowerShell.Runtime.Events.CmdletAfterAPICall); if (((Runtime.IEventListener)this).Token.IsCancellationRequested) { return; }
276276
}
277277
catch (Runtime.UndeclaredResponseException urexception)
278278
{
279-
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, CustomHeaders = CustomHeaders, body = _bodyParameter })
279+
WriteError(new System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), System.Management.Automation.ErrorCategory.InvalidOperation, new { GroupId = GroupId, Headers = Headers, body = _bodyParameter })
280280
{
281281
ErrorDetails = new System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action }
282282
});

0 commit comments

Comments
 (0)