Skip to content

Commit 8bb75b5

Browse files
Add support for managing admin consent requirement on selected domains for OneDrive Storage Connectors in AppStream2.0.
1 parent 2eca1d5 commit 8bb75b5

File tree

6 files changed

+47
-2
lines changed

6 files changed

+47
-2
lines changed

generator/ServiceModels/appstream/appstream-2016-12-01.api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3402,7 +3402,8 @@
34023402
"members":{
34033403
"ConnectorType":{"shape":"StorageConnectorType"},
34043404
"ResourceIdentifier":{"shape":"ResourceIdentifier"},
3405-
"Domains":{"shape":"DomainList"}
3405+
"Domains":{"shape":"DomainList"},
3406+
"DomainsRequireAdminConsent":{"shape":"DomainList"}
34063407
}
34073408
},
34083409
"StorageConnectorList":{

generator/ServiceModels/appstream/appstream-2016-12-01.docs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,8 @@
10861086
"DomainList": {
10871087
"base": null,
10881088
"refs": {
1089-
"StorageConnector$Domains": "<p>The names of the domains for the account.</p>"
1089+
"StorageConnector$Domains": "<p>The names of the domains for the account.</p>",
1090+
"StorageConnector$DomainsRequireAdminConsent": "<p>The OneDrive for Business domains where you require admin consent when users try to link their OneDrive account to AppStream 2.0. The attribute can only be specified when ConnectorType=ONE_DRIVE.</p>"
10901091
}
10911092
},
10921093
"DynamicAppProvidersEnabled": {

generator/ServiceModels/appstream/appstream-2016-12-01.normal.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5041,6 +5041,10 @@
50415041
"Domains":{
50425042
"shape":"DomainList",
50435043
"documentation":"<p>The names of the domains for the account.</p>"
5044+
},
5045+
"DomainsRequireAdminConsent":{
5046+
"shape":"DomainList",
5047+
"documentation":"<p>The OneDrive for Business domains where you require admin consent when users try to link their OneDrive account to AppStream 2.0. The attribute can only be specified when ConnectorType=ONE_DRIVE.</p>"
50445048
}
50455049
},
50465050
"documentation":"<p>Describes a connector that enables persistent storage for users.</p>"

sdk/src/Services/AppStream/Generated/Model/Internal/MarshallTransformations/StorageConnectorMarshaller.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,17 @@ public void Marshall(StorageConnector requestObject, JsonMarshallerContext conte
6565
context.Writer.WriteArrayEnd();
6666
}
6767

68+
if(requestObject.IsSetDomainsRequireAdminConsent())
69+
{
70+
context.Writer.WritePropertyName("DomainsRequireAdminConsent");
71+
context.Writer.WriteArrayStart();
72+
foreach(var requestObjectDomainsRequireAdminConsentListValue in requestObject.DomainsRequireAdminConsent)
73+
{
74+
context.Writer.Write(requestObjectDomainsRequireAdminConsentListValue);
75+
}
76+
context.Writer.WriteArrayEnd();
77+
}
78+
6879
if(requestObject.IsSetResourceIdentifier())
6980
{
7081
context.Writer.WritePropertyName("ResourceIdentifier");

sdk/src/Services/AppStream/Generated/Model/Internal/MarshallTransformations/StorageConnectorUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ public StorageConnector Unmarshall(JsonUnmarshallerContext context)
7878
unmarshalledObject.Domains = unmarshaller.Unmarshall(context);
7979
continue;
8080
}
81+
if (context.TestExpression("DomainsRequireAdminConsent", targetDepth))
82+
{
83+
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
84+
unmarshalledObject.DomainsRequireAdminConsent = unmarshaller.Unmarshall(context);
85+
continue;
86+
}
8187
if (context.TestExpression("ResourceIdentifier", targetDepth))
8288
{
8389
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/AppStream/Generated/Model/StorageConnector.cs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public partial class StorageConnector
3636
{
3737
private StorageConnectorType _connectorType;
3838
private List<string> _domains = AWSConfigs.InitializeCollections ? new List<string>() : null;
39+
private List<string> _domainsRequireAdminConsent = AWSConfigs.InitializeCollections ? new List<string>() : null;
3940
private string _resourceIdentifier;
4041

4142
/// <summary>
@@ -76,6 +77,27 @@ internal bool IsSetDomains()
7677
return this._domains != null && (this._domains.Count > 0 || !AWSConfigs.InitializeCollections);
7778
}
7879

80+
/// <summary>
81+
/// Gets and sets the property DomainsRequireAdminConsent.
82+
/// <para>
83+
/// The OneDrive for Business domains where you require admin consent when users try to
84+
/// link their OneDrive account to AppStream 2.0. The attribute can only be specified
85+
/// when ConnectorType=ONE_DRIVE.
86+
/// </para>
87+
/// </summary>
88+
[AWSProperty(Max=50)]
89+
public List<string> DomainsRequireAdminConsent
90+
{
91+
get { return this._domainsRequireAdminConsent; }
92+
set { this._domainsRequireAdminConsent = value; }
93+
}
94+
95+
// Check to see if DomainsRequireAdminConsent property is set
96+
internal bool IsSetDomainsRequireAdminConsent()
97+
{
98+
return this._domainsRequireAdminConsent != null && (this._domainsRequireAdminConsent.Count > 0 || !AWSConfigs.InitializeCollections);
99+
}
100+
79101
/// <summary>
80102
/// Gets and sets the property ResourceIdentifier.
81103
/// <para>

0 commit comments

Comments
 (0)