Skip to content

Commit f692ffe

Browse files
authored
Merge pull request #47 from sherweb/cpigeon/service-provider
feature: generate nuget client for API rev 13
2 parents aaaee86 + 89ed368 commit f692ffe

33 files changed

+4119
-4228
lines changed

.github/workflows/beta.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Dotnet
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 3.1.301
19+
dotnet-version: 8.x.x
2020
- name: Install dependencies
2121
run: dotnet restore
2222
working-directory: ${{env.working-directory}}
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Dotnet
4242
uses: actions/setup-dotnet@v1
4343
with:
44-
dotnet-version: 3.1.301
44+
dotnet-version: 8.x.x
4545
- name: Install dependencies
4646
run: dotnet restore
4747
working-directory: ${{env.working-directory}}
@@ -66,7 +66,7 @@ jobs:
6666
- name: Setup Dotnet
6767
uses: actions/setup-dotnet@v1
6868
with:
69-
dotnet-version: 3.1.301
69+
dotnet-version: 8.x.x
7070
- name: Install dependencies
7171
run: dotnet restore
7272
working-directory: ${{env.working-directory}}
@@ -91,7 +91,7 @@ jobs:
9191
- name: Setup Dotnet
9292
uses: actions/setup-dotnet@v1
9393
with:
94-
dotnet-version: 3.1.301
94+
dotnet-version: 8.x.x
9595
- name: Install dependencies
9696
run: dotnet restore
9797
working-directory: ${{env.working-directory}}

.github/workflows/master.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Dotnet
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 3.1.301
19+
dotnet-version: 8.x.x
2020
- name: Install dependencies
2121
run: dotnet restore
2222
working-directory: ${{env.working-directory}}
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Dotnet
4242
uses: actions/setup-dotnet@v1
4343
with:
44-
dotnet-version: 3.1.301
44+
dotnet-version: 8.x.x
4545
- name: Install dependencies
4646
run: dotnet restore
4747
working-directory: ${{env.working-directory}}
@@ -66,7 +66,7 @@ jobs:
6666
- name: Setup Dotnet
6767
uses: actions/setup-dotnet@v1
6868
with:
69-
dotnet-version: 3.1.301
69+
dotnet-version: 8.x.x
7070
- name: Install dependencies
7171
run: dotnet restore
7272
working-directory: ${{env.working-directory}}
@@ -91,7 +91,7 @@ jobs:
9191
- name: Setup Dotnet
9292
uses: actions/setup-dotnet@v1
9393
with:
94-
dotnet-version: 3.1.301
94+
dotnet-version: 8.x.x
9595
- name: Install dependencies
9696
run: dotnet restore
9797
working-directory: ${{env.working-directory}}

.github/workflows/pullrequests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup Dotnet
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 3.1.301
19+
dotnet-version: 8.x.x
2020
- name: Install dependencies
2121
run: dotnet restore
2222
working-directory: ${{env.working-directory}}
@@ -38,7 +38,7 @@ jobs:
3838
- name: Setup Dotnet
3939
uses: actions/setup-dotnet@v1
4040
with:
41-
dotnet-version: 3.1.301
41+
dotnet-version: 8.x.x
4242
- name: Install dependencies
4343
run: dotnet restore
4444
working-directory: ${{env.working-directory}}
@@ -60,7 +60,7 @@ jobs:
6060
- name: Setup Dotnet
6161
uses: actions/setup-dotnet@v1
6262
with:
63-
dotnet-version: 3.1.301
63+
dotnet-version: 8.x.x
6464
- name: Install dependencies
6565
run: dotnet restore
6666
working-directory: ${{env.working-directory}}
@@ -82,7 +82,7 @@ jobs:
8282
- name: Setup Dotnet
8383
uses: actions/setup-dotnet@v1
8484
with:
85-
dotnet-version: 3.1.301
85+
dotnet-version: 8.x.x
8686
- name: Install dependencies
8787
run: dotnet restore
8888
working-directory: ${{env.working-directory}}

NugetPackagesSourceCode/Sherweb.Apis.ServiceProvider/HttpClient/IServiceProviderService.cs

Lines changed: 79 additions & 26 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace Sherweb.Apis.ServiceProvider.Models
8+
{
9+
using Newtonsoft.Json;
10+
using System.Collections;
11+
using System.Collections.Generic;
12+
using System.Linq;
13+
14+
public partial class CannotPurchaseAzureLimitedSkusProblemDetails
15+
{
16+
/// <summary>
17+
/// Initializes a new instance of the
18+
/// CannotPurchaseAzureLimitedSkusProblemDetails class.
19+
/// </summary>
20+
public CannotPurchaseAzureLimitedSkusProblemDetails()
21+
{
22+
CustomInit();
23+
}
24+
25+
/// <summary>
26+
/// Initializes a new instance of the
27+
/// CannotPurchaseAzureLimitedSkusProblemDetails class.
28+
/// </summary>
29+
public CannotPurchaseAzureLimitedSkusProblemDetails(string type = default(string), string title = default(string), int? status = default(int?), string detail = default(string), string instance = default(string), IDictionary<string, object> extensions = default(IDictionary<string, object>))
30+
{
31+
Type = type;
32+
Title = title;
33+
Status = status;
34+
Detail = detail;
35+
Instance = instance;
36+
Extensions = extensions;
37+
CustomInit();
38+
}
39+
40+
/// <summary>
41+
/// An initialization method that performs custom operations like setting defaults
42+
/// </summary>
43+
partial void CustomInit();
44+
45+
/// <summary>
46+
/// </summary>
47+
[JsonProperty(PropertyName = "type")]
48+
public string Type { get; set; }
49+
50+
/// <summary>
51+
/// </summary>
52+
[JsonProperty(PropertyName = "title")]
53+
public string Title { get; set; }
54+
55+
/// <summary>
56+
/// </summary>
57+
[JsonProperty(PropertyName = "status")]
58+
public int? Status { get; set; }
59+
60+
/// <summary>
61+
/// </summary>
62+
[JsonProperty(PropertyName = "detail")]
63+
public string Detail { get; set; }
64+
65+
/// <summary>
66+
/// </summary>
67+
[JsonProperty(PropertyName = "instance")]
68+
public string Instance { get; set; }
69+
70+
/// <summary>
71+
/// </summary>
72+
[JsonProperty(PropertyName = "extensions")]
73+
public IDictionary<string, object> Extensions { get; set; }
74+
75+
}
76+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
// <auto-generated>
2+
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Changes may cause incorrect behavior and will be lost if the code is
4+
// regenerated.
5+
// </auto-generated>
6+
7+
namespace Sherweb.Apis.ServiceProvider.Models
8+
{
9+
using Newtonsoft.Json;
10+
using System.Collections;
11+
using System.Collections.Generic;
12+
using System.Linq;
13+
14+
public partial class CannotPurchaseLimitedSkusProblemDetails
15+
{
16+
/// <summary>
17+
/// Initializes a new instance of the
18+
/// CannotPurchaseLimitedSkusProblemDetails class.
19+
/// </summary>
20+
public CannotPurchaseLimitedSkusProblemDetails()
21+
{
22+
CustomInit();
23+
}
24+
25+
/// <summary>
26+
/// Initializes a new instance of the
27+
/// CannotPurchaseLimitedSkusProblemDetails class.
28+
/// </summary>
29+
public CannotPurchaseLimitedSkusProblemDetails(string type = default(string), string title = default(string), int? status = default(int?), string detail = default(string), string instance = default(string), IDictionary<string, object> extensions = default(IDictionary<string, object>))
30+
{
31+
Type = type;
32+
Title = title;
33+
Status = status;
34+
Detail = detail;
35+
Instance = instance;
36+
Extensions = extensions;
37+
CustomInit();
38+
}
39+
40+
/// <summary>
41+
/// An initialization method that performs custom operations like setting defaults
42+
/// </summary>
43+
partial void CustomInit();
44+
45+
/// <summary>
46+
/// </summary>
47+
[JsonProperty(PropertyName = "type")]
48+
public string Type { get; set; }
49+
50+
/// <summary>
51+
/// </summary>
52+
[JsonProperty(PropertyName = "title")]
53+
public string Title { get; set; }
54+
55+
/// <summary>
56+
/// </summary>
57+
[JsonProperty(PropertyName = "status")]
58+
public int? Status { get; set; }
59+
60+
/// <summary>
61+
/// </summary>
62+
[JsonProperty(PropertyName = "detail")]
63+
public string Detail { get; set; }
64+
65+
/// <summary>
66+
/// </summary>
67+
[JsonProperty(PropertyName = "instance")]
68+
public string Instance { get; set; }
69+
70+
/// <summary>
71+
/// </summary>
72+
[JsonProperty(PropertyName = "extensions")]
73+
public IDictionary<string, object> Extensions { get; set; }
74+
75+
}
76+
}

NugetPackagesSourceCode/Sherweb.Apis.ServiceProvider/HttpClient/Models/CartItemsCannotBeEmptyProblemDetails.cs

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,6 @@ public CartItemsCannotBeEmptyProblemDetails()
2626
/// Initializes a new instance of the
2727
/// CartItemsCannotBeEmptyProblemDetails class.
2828
/// </summary>
29-
/// <param name="type">A URI reference [RFC3986] that identifies the
30-
/// problem type. This specification encourages that, when
31-
/// dereferenced, it provides human-readable documentation for the
32-
/// problem type (e.g., using HTML [W3C.REC-html5-20141028]).
33-
/// When this member is not present, its value is assumed to be
34-
/// "about:blank".</param>
35-
/// <param name="title">A short, human-readable summary of the problem
36-
/// type. It SHOULD NOT change from occurrence to occurrence
37-
/// of the problem, except for purposes of localization(e.g., using
38-
/// proactive content negotiation; see[RFC7231], Section 3.4).</param>
39-
/// <param name="status">The HTTP status code([RFC7231], Section 6)
40-
/// generated by the origin server for this occurrence of the
41-
/// problem.</param>
42-
/// <param name="detail">A human-readable explanation specific to this
43-
/// occurrence of the problem.</param>
44-
/// <param name="instance">A URI reference that identifies the specific
45-
/// occurrence of the problem. It may or may not yield further
46-
/// information if dereferenced.</param>
47-
/// <param name="extensions">Gets the
48-
/// System.Collections.Generic.IDictionary`2 for extension members.
49-
///
50-
///
51-
/// Problem type definitions MAY extend the problem details object with
52-
/// additional members.
53-
/// Extension members appear in the same namespace as other members of
54-
/// a problem type.
55-
/// </param>
5629
public CartItemsCannotBeEmptyProblemDetails(string type = default(string), string title = default(string), int? status = default(int?), string detail = default(string), string instance = default(string), IDictionary<string, object> extensions = default(IDictionary<string, object>))
5730
{
5831
Type = type;
@@ -70,57 +43,31 @@ public CartItemsCannotBeEmptyProblemDetails()
7043
partial void CustomInit();
7144

7245
/// <summary>
73-
/// Gets or sets a URI reference [RFC3986] that identifies the problem
74-
/// type. This specification encourages that, when
75-
/// dereferenced, it provides human-readable documentation for the
76-
/// problem type (e.g., using HTML [W3C.REC-html5-20141028]).
77-
/// When this member is not present, its value is assumed to be
78-
/// "about:blank".
7946
/// </summary>
8047
[JsonProperty(PropertyName = "type")]
8148
public string Type { get; set; }
8249

8350
/// <summary>
84-
/// Gets or sets a short, human-readable summary of the problem type.
85-
/// It SHOULD NOT change from occurrence to occurrence
86-
/// of the problem, except for purposes of localization(e.g., using
87-
/// proactive content negotiation; see[RFC7231], Section 3.4).
8851
/// </summary>
8952
[JsonProperty(PropertyName = "title")]
9053
public string Title { get; set; }
9154

9255
/// <summary>
93-
/// Gets or sets the HTTP status code([RFC7231], Section 6) generated
94-
/// by the origin server for this occurrence of the problem.
9556
/// </summary>
9657
[JsonProperty(PropertyName = "status")]
9758
public int? Status { get; set; }
9859

9960
/// <summary>
100-
/// Gets or sets a human-readable explanation specific to this
101-
/// occurrence of the problem.
10261
/// </summary>
10362
[JsonProperty(PropertyName = "detail")]
10463
public string Detail { get; set; }
10564

10665
/// <summary>
107-
/// Gets or sets a URI reference that identifies the specific
108-
/// occurrence of the problem. It may or may not yield further
109-
/// information if dereferenced.
11066
/// </summary>
11167
[JsonProperty(PropertyName = "instance")]
11268
public string Instance { get; set; }
11369

11470
/// <summary>
115-
/// Gets the System.Collections.Generic.IDictionary`2 for extension
116-
/// members.
117-
///
118-
///
119-
/// Problem type definitions MAY extend the problem details object with
120-
/// additional members.
121-
/// Extension members appear in the same namespace as other members of
122-
/// a problem type.
123-
///
12471
/// </summary>
12572
[JsonProperty(PropertyName = "extensions")]
12673
public IDictionary<string, object> Extensions { get; set; }

0 commit comments

Comments
 (0)