From 35a3120706f5c710ab3830e9f4295eac3bd90681 Mon Sep 17 00:00:00 2001 From: John Huang Date: Tue, 8 Feb 2022 22:40:27 -0800 Subject: [PATCH] Add more change after other PRs were merged --- .../Azure.AI.Personalizer.netstandard2.0.cs | 89 +++++++++++++++++-- 1 file changed, 81 insertions(+), 8 deletions(-) diff --git a/sdk/personalizer/Azure.AI.Personalizer/api/Azure.AI.Personalizer.netstandard2.0.cs b/sdk/personalizer/Azure.AI.Personalizer/api/Azure.AI.Personalizer.netstandard2.0.cs index c90b96fa93d01..42b44ee8dc4f9 100644 --- a/sdk/personalizer/Azure.AI.Personalizer/api/Azure.AI.Personalizer.netstandard2.0.cs +++ b/sdk/personalizer/Azure.AI.Personalizer/api/Azure.AI.Personalizer.netstandard2.0.cs @@ -1,5 +1,73 @@ namespace Azure.AI.Personalizer { + public partial class DecisionContext + { + public DecisionContext() { } + public DecisionContext(Azure.AI.Personalizer.PersonalizerRankMultiSlotOptions rankRequest, System.Collections.Generic.Dictionary> slotIdToFeatures) { } + public DecisionContext(System.Collections.Generic.IEnumerable contextFeatures, System.Collections.Generic.List rankableActions) { } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("FromUrl")] + public System.Collections.Generic.List ContextFeatures { get { throw null; } } + [System.Text.Json.Serialization.JsonPropertyNameAttribute("_multi")] + public Azure.AI.Personalizer.DecisionContextDocument[] Documents { get { throw null; } set { } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("_slots")] + public Azure.AI.Personalizer.DecisionContextDocument[] Slots { get { throw null; } set { } } + } + public partial class DecisionContextDocument + { + public DecisionContextDocument(string id, System.Collections.Generic.List json, string slotId, System.Collections.Generic.List slotJson) { } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("f")] + public System.Collections.Generic.Dictionary FloatFeatures { get { throw null; } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("_tag")] + public string ID { get { throw null; } set { } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("j")] + public System.Collections.Generic.List JSON { get { throw null; } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("i")] + public Azure.AI.Personalizer.DecisionContextDocumentId Marginal { get { throw null; } set { } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("_id")] + public string SlotId { get { throw null; } set { } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("sj")] + public System.Collections.Generic.List SlotJson { get { throw null; } set { } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + [System.Text.Json.Serialization.JsonPropertyNameAttribute("s")] + public Azure.AI.Personalizer.DecisionContextDocumentSource Source { get { throw null; } set { } } + } + public partial class DecisionContextDocumentId + { + public DecisionContextDocumentId() { } + [System.Text.Json.Serialization.JsonPropertyNameAttribute("constant")] + public int Constant { get { throw null; } set { } } + [System.Text.Json.Serialization.JsonPropertyNameAttribute("id")] + public string ID { get { throw null; } set { } } + } + public partial class DecisionContextDocumentSource + { + public DecisionContextDocumentSource() { } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + public string Parameter { get { throw null; } set { } } + [System.Text.Json.Serialization.JsonIgnoreAttribute(Condition=System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)] + public string Set { get { throw null; } set { } } + } + public partial class EventResponse : Azure.Response + { + public EventResponse(int status, string reasonPhrase = null) { } + public override string ClientRequestId { get { throw null; } set { } } + public override System.IO.Stream ContentStream { get { throw null; } set { } } + public override string ReasonPhrase { get { throw null; } } + public override int Status { get { throw null; } } + protected override bool ContainsHeader(string name) { throw null; } + public override void Dispose() { } + protected override System.Collections.Generic.IEnumerable EnumerateHeaders() { throw null; } + protected override bool TryGetHeader(string name, out string value) { throw null; } + protected override bool TryGetHeaderValues(string name, out System.Collections.Generic.IEnumerable values) { throw null; } + } public partial class PersonalizerAdministrationClient { protected PersonalizerAdministrationClient() { } @@ -19,14 +87,16 @@ public PersonalizerAdministrationClient(System.Uri endpoint, Azure.Core.TokenCre public virtual Azure.AsyncPageable GetPersonalizerEvaluationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetPersonalizerLogProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetPersonalizerLogPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetPersonalizerModel(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetPersonalizerModelAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetPersonalizerModel(bool isSigned = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetPersonalizerModelAsync(bool isSigned = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetPersonalizerModelProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetPersonalizerModelPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetPersonalizerPolicy(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetPersonalizerPolicyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetPersonalizerProperties(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetPersonalizerPropertiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ImportPersonalizerModel(System.IO.Stream modelStream, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ImportPersonalizerModelAsync(System.IO.Stream modelStream, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ResetPersonalizerModel(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ResetPersonalizerModelAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ResetPersonalizerPolicy(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -41,8 +111,10 @@ public partial class PersonalizerClient protected PersonalizerClient() { } public PersonalizerClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { } public PersonalizerClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.Personalizer.PersonalizerClientOptions options = null) { } + public PersonalizerClient(System.Uri endpoint, Azure.AzureKeyCredential credential, bool isLocalInference, float subsampleRate = 1f, Azure.AI.Personalizer.PersonalizerClientOptions options = null) { } public PersonalizerClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } public PersonalizerClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.AI.Personalizer.PersonalizerClientOptions options = null) { } + public PersonalizerClient(System.Uri endpoint, Azure.Core.TokenCredential credential, bool isLocalInference, float subsampleRate = 1f, Azure.AI.Personalizer.PersonalizerClientOptions options = null) { } public virtual Azure.Response Activate(string eventId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ActivateAsync(string eventId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ActivateMultiSlot(string eventId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -257,12 +329,13 @@ public partial class PersonalizerRankableAction public PersonalizerRankableAction(string id, System.Collections.Generic.IEnumerable features) { } public System.Collections.Generic.IList Features { get { throw null; } } public string Id { get { throw null; } } + public int Index { get { throw null; } set { } } } public partial class PersonalizerRankedAction { internal PersonalizerRankedAction() { } - public string Id { get { throw null; } } - public float? Probability { get { throw null; } } + public string Id { get { throw null; } set { } } + public float? Probability { get { throw null; } set { } } } public partial class PersonalizerRankMultiSlotOptions { @@ -289,9 +362,9 @@ public PersonalizerRankOptions(System.Collections.Generic.IEnumerable Ranking { get { throw null; } } - public string RewardActionId { get { throw null; } } + public string EventId { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Ranking { get { throw null; } set { } } + public string RewardActionId { get { throw null; } set { } } } public partial class PersonalizerRewardMultiSlotOptions { @@ -327,7 +400,7 @@ public PersonalizerSlotOptions(string id, string baselineAction) { } public PersonalizerSlotOptions(string id, string baselineAction, System.Collections.Generic.IList features = null, System.Collections.Generic.IList excludedActions = null) { } public string BaselineAction { get { throw null; } } public System.Collections.Generic.IList ExcludedActions { get { throw null; } } - public System.Collections.Generic.IList Features { get { throw null; } } + public System.Collections.Generic.IList Features { get { throw null; } set { } } public string Id { get { throw null; } } } public partial class PersonalizerSlotResult