Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#200218
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Feb 19, 2020
1 parent 512a7ec commit b60b803
Show file tree
Hide file tree
Showing 21 changed files with 6,225 additions and 152 deletions.
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabAdminApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ namespace PlayFab
static void CheckLimitedEditionItemAvailability(AdminModels::CheckLimitedEditionItemAvailabilityRequest& request, const ProcessApiCallback<AdminModels::CheckLimitedEditionItemAvailabilityResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreateActionsOnPlayersInSegmentTask(AdminModels::CreateActionsOnPlayerSegmentTaskRequest& request, const ProcessApiCallback<AdminModels::CreateTaskResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreateCloudScriptTask(AdminModels::CreateCloudScriptTaskRequest& request, const ProcessApiCallback<AdminModels::CreateTaskResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreateInsightsScheduledScalingTask(AdminModels::CreateInsightsScheduledScalingTaskRequest& request, const ProcessApiCallback<AdminModels::CreateTaskResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreateOpenIdConnection(AdminModels::CreateOpenIdConnectionRequest& request, const ProcessApiCallback<AdminModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreatePlayerSharedSecret(AdminModels::CreatePlayerSharedSecretRequest& request, const ProcessApiCallback<AdminModels::CreatePlayerSharedSecretResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void CreatePlayerStatisticDefinition(AdminModels::CreatePlayerStatisticDefinitionRequest& request, const ProcessApiCallback<AdminModels::CreatePlayerStatisticDefinitionResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -148,6 +149,7 @@ namespace PlayFab
static void OnCheckLimitedEditionItemAvailabilityResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreateActionsOnPlayersInSegmentTaskResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreateCloudScriptTaskResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreateInsightsScheduledScalingTaskResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreateOpenIdConnectionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreatePlayerSharedSecretResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnCreatePlayerStatisticDefinitionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
113 changes: 112 additions & 1 deletion code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5449,6 +5449,8 @@ namespace PlayFab
GenericErrorCodesExperimentationNoScorecard,
GenericErrorCodesExperimentationTreatmentAssignmentFailed,
GenericErrorCodesExperimentationTreatmentAssignmentDisabled,
GenericErrorCodesExperimentationInvalidDuration,
GenericErrorCodesExperimentationMaxExperimentsReached,
GenericErrorCodesMaxActionDepthExceeded,
GenericErrorCodesSnapshotNotFound
};
Expand Down Expand Up @@ -8240,6 +8242,16 @@ namespace PlayFab
output = Json::Value("ExperimentationTreatmentAssignmentDisabled");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationInvalidDuration)
{
output = Json::Value("ExperimentationInvalidDuration");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesExperimentationMaxExperimentsReached)
{
output = Json::Value("ExperimentationMaxExperimentsReached");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded)
{
output = Json::Value("MaxActionDepthExceeded");
Expand Down Expand Up @@ -11043,6 +11055,16 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesExperimentationTreatmentAssignmentDisabled;
return;
}
if (inputStr == "ExperimentationInvalidDuration")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationInvalidDuration;
return;
}
if (inputStr == "ExperimentationMaxExperimentsReached")
{
output = GenericErrorCodes::GenericErrorCodesExperimentationMaxExperimentsReached;
return;
}
if (inputStr == "MaxActionDepthExceeded")
{
output = GenericErrorCodes::GenericErrorCodesMaxActionDepthExceeded;
Expand Down Expand Up @@ -11551,7 +11573,8 @@ namespace PlayFab
{
ScheduledTaskTypeCloudScript,
ScheduledTaskTypeActionsOnPlayerSegment,
ScheduledTaskTypeCloudScriptAzureFunctions
ScheduledTaskTypeCloudScriptAzureFunctions,
ScheduledTaskTypeInsightsScheduledScaling
};

inline void ToJsonEnum(const ScheduledTaskType input, Json::Value& output)
Expand All @@ -11571,6 +11594,11 @@ namespace PlayFab
output = Json::Value("CloudScriptAzureFunctions");
return;
}
if (input == ScheduledTaskType::ScheduledTaskTypeInsightsScheduledScaling)
{
output = Json::Value("InsightsScheduledScaling");
return;
}
}
inline void FromJsonEnum(const Json::Value& input, ScheduledTaskType& output)
{
Expand All @@ -11594,6 +11622,11 @@ namespace PlayFab
output = ScheduledTaskType::ScheduledTaskTypeCloudScriptAzureFunctions;
return;
}
if (inputStr == "InsightsScheduledScaling")
{
output = ScheduledTaskType::ScheduledTaskTypeInsightsScheduledScaling;
return;
}
}

enum class SourceType
Expand Down Expand Up @@ -14295,6 +14328,84 @@ namespace PlayFab
}
};

struct InsightsScalingTaskParameter : public PlayFabBaseModel
{
Int32 Level;

InsightsScalingTaskParameter() :
PlayFabBaseModel(),
Level()
{}

InsightsScalingTaskParameter(const InsightsScalingTaskParameter& src) :
PlayFabBaseModel(),
Level(src.Level)
{}

~InsightsScalingTaskParameter() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilP(input["Level"], Level);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_Level; ToJsonUtilP(Level, each_Level); output["Level"] = each_Level;
return output;
}
};

struct CreateInsightsScheduledScalingTaskRequest : public PlayFabRequestCommon
{
std::string Description;
bool IsActive;
std::string Name;
InsightsScalingTaskParameter Parameter;
std::string Schedule;

CreateInsightsScheduledScalingTaskRequest() :
PlayFabRequestCommon(),
Description(),
IsActive(),
Name(),
Parameter(),
Schedule()
{}

CreateInsightsScheduledScalingTaskRequest(const CreateInsightsScheduledScalingTaskRequest& src) :
PlayFabRequestCommon(),
Description(src.Description),
IsActive(src.IsActive),
Name(src.Name),
Parameter(src.Parameter),
Schedule(src.Schedule)
{}

~CreateInsightsScheduledScalingTaskRequest() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["Description"], Description);
FromJsonUtilP(input["IsActive"], IsActive);
FromJsonUtilS(input["Name"], Name);
FromJsonUtilO(input["Parameter"], Parameter);
FromJsonUtilS(input["Schedule"], Schedule);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_Description; ToJsonUtilS(Description, each_Description); output["Description"] = each_Description;
Json::Value each_IsActive; ToJsonUtilP(IsActive, each_IsActive); output["IsActive"] = each_IsActive;
Json::Value each_Name; ToJsonUtilS(Name, each_Name); output["Name"] = each_Name;
Json::Value each_Parameter; ToJsonUtilO(Parameter, each_Parameter); output["Parameter"] = each_Parameter;
Json::Value each_Schedule; ToJsonUtilS(Schedule, each_Schedule); output["Schedule"] = each_Schedule;
return output;
}
};

struct OpenIdIssuerInformation : public PlayFabBaseModel
{
std::string AuthorizationUrl;
Expand Down
2 changes: 2 additions & 0 deletions code/include/playfab/PlayFabAdminInstanceApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ namespace PlayFab
void CheckLimitedEditionItemAvailability(AdminModels::CheckLimitedEditionItemAvailabilityRequest& request, const ProcessApiCallback<AdminModels::CheckLimitedEditionItemAvailabilityResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void CreateActionsOnPlayersInSegmentTask(AdminModels::CreateActionsOnPlayerSegmentTaskRequest& request, const ProcessApiCallback<AdminModels::CreateTaskResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void CreateCloudScriptTask(AdminModels::CreateCloudScriptTaskRequest& request, const ProcessApiCallback<AdminModels::CreateTaskResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void CreateInsightsScheduledScalingTask(AdminModels::CreateInsightsScheduledScalingTaskRequest& request, const ProcessApiCallback<AdminModels::CreateTaskResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void CreateOpenIdConnection(AdminModels::CreateOpenIdConnectionRequest& request, const ProcessApiCallback<AdminModels::EmptyResponse> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void CreatePlayerSharedSecret(AdminModels::CreatePlayerSharedSecretRequest& request, const ProcessApiCallback<AdminModels::CreatePlayerSharedSecretResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
void CreatePlayerStatisticDefinition(AdminModels::CreatePlayerStatisticDefinitionRequest& request, const ProcessApiCallback<AdminModels::CreatePlayerStatisticDefinitionResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
Expand Down Expand Up @@ -162,6 +163,7 @@ namespace PlayFab
void OnCheckLimitedEditionItemAvailabilityResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnCreateActionsOnPlayersInSegmentTaskResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnCreateCloudScriptTaskResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnCreateInsightsScheduledScalingTaskResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnCreateOpenIdConnectionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnCreatePlayerSharedSecretResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
void OnCreatePlayerStatisticDefinitionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
Expand Down
22 changes: 22 additions & 0 deletions code/include/playfab/PlayFabCloudScriptApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,35 @@ namespace PlayFab

// ------------ Generated API calls
static void ExecuteEntityCloudScript(CloudScriptModels::ExecuteEntityCloudScriptRequest& request, const ProcessApiCallback<CloudScriptModels::ExecuteCloudScriptResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ExecuteFunction(CloudScriptModels::ExecuteFunctionRequest& request, const ProcessApiCallback<CloudScriptModels::ExecuteFunctionResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback<CloudScriptModels::ListFunctionsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListHttpFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback<CloudScriptModels::ListHttpFunctionsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void ListQueuedFunctions(CloudScriptModels::ListFunctionsRequest& request, const ProcessApiCallback<CloudScriptModels::ListQueuedFunctionsResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void PostFunctionResultForEntityTriggeredAction(CloudScriptModels::PostFunctionResultForEntityTriggeredActionRequest& request, const ProcessApiCallback<CloudScriptModels::EmptyResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void PostFunctionResultForFunctionExecution(CloudScriptModels::PostFunctionResultForFunctionExecutionRequest& request, const ProcessApiCallback<CloudScriptModels::EmptyResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void PostFunctionResultForPlayerTriggeredAction(CloudScriptModels::PostFunctionResultForPlayerTriggeredActionRequest& request, const ProcessApiCallback<CloudScriptModels::EmptyResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void PostFunctionResultForScheduledTask(CloudScriptModels::PostFunctionResultForScheduledTaskRequest& request, const ProcessApiCallback<CloudScriptModels::EmptyResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void RegisterHttpFunction(CloudScriptModels::RegisterHttpFunctionRequest& request, const ProcessApiCallback<CloudScriptModels::EmptyResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void RegisterQueuedFunction(CloudScriptModels::RegisterQueuedFunctionRequest& request, const ProcessApiCallback<CloudScriptModels::EmptyResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);
static void UnregisterFunction(CloudScriptModels::UnregisterFunctionRequest& request, const ProcessApiCallback<CloudScriptModels::EmptyResult> callback, const ErrorCallback errorCallback = nullptr, void* customData = nullptr);

private:
PlayFabCloudScriptAPI(); // Private constructor, static class should never have an instance
PlayFabCloudScriptAPI(const PlayFabCloudScriptAPI& other); // Private copy-constructor, static class should never have an instance

// ------------ Generated result handlers
static void OnExecuteEntityCloudScriptResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnExecuteFunctionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnListFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnListHttpFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnListQueuedFunctionsResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnPostFunctionResultForEntityTriggeredActionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnPostFunctionResultForFunctionExecutionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnPostFunctionResultForPlayerTriggeredActionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnPostFunctionResultForScheduledTaskResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnRegisterHttpFunctionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnRegisterQueuedFunctionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);
static void OnUnregisterFunctionResult(int httpCode, const std::string& result, const std::shared_ptr<CallRequestContainerBase>& reqContainer);

static bool ValidateResult(PlayFabResultCommon& resultCommon, const CallRequestContainer& container);
};
Expand Down
Loading

0 comments on commit b60b803

Please sign in to comment.