Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#211108
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Nov 9, 2021
2 parents f1a3e85 + 9bcd6f8 commit df894a0
Show file tree
Hide file tree
Showing 8 changed files with 315 additions and 31 deletions.
54 changes: 49 additions & 5 deletions code/include/playfab/PlayFabAdminDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -5405,8 +5405,12 @@ namespace PlayFab
GenericErrorCodesDuplicateTitleNameForPublisher,
GenericErrorCodesAzureTitleCreationInProgress,
GenericErrorCodesDuplicateAzureResourceId,
GenericErrorCodesTitleContraintsPublisherDeletion,
GenericErrorCodesTitleConstraintsPublisherDeletion,
GenericErrorCodesInvalidPlayerAccountPoolId,
GenericErrorCodesPlayerAccountPoolNotFound,
GenericErrorCodesPlayerAccountPoolDeleted,
GenericErrorCodesTitleCleanupInProgress,
GenericErrorCodesAzureResourceManagerNotSupportedInStamp,
GenericErrorCodesMatchmakingEntityInvalid,
GenericErrorCodesMatchmakingPlayerAttributesInvalid,
GenericErrorCodesMatchmakingQueueNotFound,
Expand Down Expand Up @@ -8124,16 +8128,36 @@ namespace PlayFab
output = Json::Value("DuplicateAzureResourceId");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTitleContraintsPublisherDeletion)
if (input == GenericErrorCodes::GenericErrorCodesTitleConstraintsPublisherDeletion)
{
output = Json::Value("TitleContraintsPublisherDeletion");
output = Json::Value("TitleConstraintsPublisherDeletion");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesInvalidPlayerAccountPoolId)
{
output = Json::Value("InvalidPlayerAccountPoolId");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesPlayerAccountPoolNotFound)
{
output = Json::Value("PlayerAccountPoolNotFound");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesPlayerAccountPoolDeleted)
{
output = Json::Value("PlayerAccountPoolDeleted");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesTitleCleanupInProgress)
{
output = Json::Value("TitleCleanupInProgress");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesAzureResourceManagerNotSupportedInStamp)
{
output = Json::Value("AzureResourceManagerNotSupportedInStamp");
return;
}
if (input == GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid)
{
output = Json::Value("MatchmakingEntityInvalid");
Expand Down Expand Up @@ -11447,16 +11471,36 @@ namespace PlayFab
output = GenericErrorCodes::GenericErrorCodesDuplicateAzureResourceId;
return;
}
if (inputStr == "TitleContraintsPublisherDeletion")
if (inputStr == "TitleConstraintsPublisherDeletion")
{
output = GenericErrorCodes::GenericErrorCodesTitleContraintsPublisherDeletion;
output = GenericErrorCodes::GenericErrorCodesTitleConstraintsPublisherDeletion;
return;
}
if (inputStr == "InvalidPlayerAccountPoolId")
{
output = GenericErrorCodes::GenericErrorCodesInvalidPlayerAccountPoolId;
return;
}
if (inputStr == "PlayerAccountPoolNotFound")
{
output = GenericErrorCodes::GenericErrorCodesPlayerAccountPoolNotFound;
return;
}
if (inputStr == "PlayerAccountPoolDeleted")
{
output = GenericErrorCodes::GenericErrorCodesPlayerAccountPoolDeleted;
return;
}
if (inputStr == "TitleCleanupInProgress")
{
output = GenericErrorCodes::GenericErrorCodesTitleCleanupInProgress;
return;
}
if (inputStr == "AzureResourceManagerNotSupportedInStamp")
{
output = GenericErrorCodes::GenericErrorCodesAzureResourceManagerNotSupportedInStamp;
return;
}
if (inputStr == "MatchmakingEntityInvalid")
{
output = GenericErrorCodes::GenericErrorCodesMatchmakingEntityInvalid;
Expand Down
96 changes: 90 additions & 6 deletions code/include/playfab/PlayFabCloudScriptDataModels.h
Original file line number Diff line number Diff line change
Expand Up @@ -3423,6 +3423,60 @@ namespace PlayFab
}
};

struct AzureResourceSystemData : public PlayFabBaseModel
{
Boxed<time_t> CreatedAt;
std::string CreatedBy;
std::string CreatedByType;
Boxed<time_t> LastModifiedAt;
std::string LastModifiedBy;
std::string LastModifiedByType;

AzureResourceSystemData() :
PlayFabBaseModel(),
CreatedAt(),
CreatedBy(),
CreatedByType(),
LastModifiedAt(),
LastModifiedBy(),
LastModifiedByType()
{}

AzureResourceSystemData(const AzureResourceSystemData& src) :
PlayFabBaseModel(),
CreatedAt(src.CreatedAt),
CreatedBy(src.CreatedBy),
CreatedByType(src.CreatedByType),
LastModifiedAt(src.LastModifiedAt),
LastModifiedBy(src.LastModifiedBy),
LastModifiedByType(src.LastModifiedByType)
{}

~AzureResourceSystemData() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilT(input["CreatedAt"], CreatedAt);
FromJsonUtilS(input["CreatedBy"], CreatedBy);
FromJsonUtilS(input["CreatedByType"], CreatedByType);
FromJsonUtilT(input["LastModifiedAt"], LastModifiedAt);
FromJsonUtilS(input["LastModifiedBy"], LastModifiedBy);
FromJsonUtilS(input["LastModifiedByType"], LastModifiedByType);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CreatedAt; ToJsonUtilT(CreatedAt, each_CreatedAt); output["CreatedAt"] = each_CreatedAt;
Json::Value each_CreatedBy; ToJsonUtilS(CreatedBy, each_CreatedBy); output["CreatedBy"] = each_CreatedBy;
Json::Value each_CreatedByType; ToJsonUtilS(CreatedByType, each_CreatedByType); output["CreatedByType"] = each_CreatedByType;
Json::Value each_LastModifiedAt; ToJsonUtilT(LastModifiedAt, each_LastModifiedAt); output["LastModifiedAt"] = each_LastModifiedAt;
Json::Value each_LastModifiedBy; ToJsonUtilS(LastModifiedBy, each_LastModifiedBy); output["LastModifiedBy"] = each_LastModifiedBy;
Json::Value each_LastModifiedByType; ToJsonUtilS(LastModifiedByType, each_LastModifiedByType); output["LastModifiedByType"] = each_LastModifiedByType;
return output;
}
};

struct ContactEmailInfoModel : public PlayFabBaseModel
{
std::string EmailAddress;
Expand Down Expand Up @@ -3961,13 +4015,15 @@ namespace PlayFab
std::string ConnectionString;
std::string FunctionUrl;
std::string QueueName;
Boxed<AzureResourceSystemData> SystemData;
std::string TriggerType;

GetFunctionResult() :
PlayFabResultCommon(),
ConnectionString(),
FunctionUrl(),
QueueName(),
SystemData(),
TriggerType()
{}

Expand All @@ -3976,6 +4032,7 @@ namespace PlayFab
ConnectionString(src.ConnectionString),
FunctionUrl(src.FunctionUrl),
QueueName(src.QueueName),
SystemData(src.SystemData),
TriggerType(src.TriggerType)
{}

Expand All @@ -3986,6 +4043,7 @@ namespace PlayFab
FromJsonUtilS(input["ConnectionString"], ConnectionString);
FromJsonUtilS(input["FunctionUrl"], FunctionUrl);
FromJsonUtilS(input["QueueName"], QueueName);
FromJsonUtilO(input["SystemData"], SystemData);
FromJsonUtilS(input["TriggerType"], TriggerType);
}

Expand All @@ -3995,6 +4053,7 @@ namespace PlayFab
Json::Value each_ConnectionString; ToJsonUtilS(ConnectionString, each_ConnectionString); output["ConnectionString"] = each_ConnectionString;
Json::Value each_FunctionUrl; ToJsonUtilS(FunctionUrl, each_FunctionUrl); output["FunctionUrl"] = each_FunctionUrl;
Json::Value each_QueueName; ToJsonUtilS(QueueName, each_QueueName); output["QueueName"] = each_QueueName;
Json::Value each_SystemData; ToJsonUtilO(SystemData, each_SystemData); output["SystemData"] = each_SystemData;
Json::Value each_TriggerType; ToJsonUtilS(TriggerType, each_TriggerType); output["TriggerType"] = each_TriggerType;
return output;
}
Expand All @@ -4004,17 +4063,20 @@ namespace PlayFab
{
std::string FunctionName;
std::string FunctionUrl;
Boxed<AzureResourceSystemData> SystemData;

HttpFunctionModel() :
PlayFabBaseModel(),
FunctionName(),
FunctionUrl()
FunctionUrl(),
SystemData()
{}

HttpFunctionModel(const HttpFunctionModel& src) :
PlayFabBaseModel(),
FunctionName(src.FunctionName),
FunctionUrl(src.FunctionUrl)
FunctionUrl(src.FunctionUrl),
SystemData(src.SystemData)
{}

~HttpFunctionModel() = default;
Expand All @@ -4023,13 +4085,15 @@ namespace PlayFab
{
FromJsonUtilS(input["FunctionName"], FunctionName);
FromJsonUtilS(input["FunctionUrl"], FunctionUrl);
FromJsonUtilO(input["SystemData"], SystemData);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_FunctionName; ToJsonUtilS(FunctionName, each_FunctionName); output["FunctionName"] = each_FunctionName;
Json::Value each_FunctionUrl; ToJsonUtilS(FunctionUrl, each_FunctionUrl); output["FunctionUrl"] = each_FunctionUrl;
Json::Value each_SystemData; ToJsonUtilO(SystemData, each_SystemData); output["SystemData"] = each_SystemData;
return output;
}
};
Expand Down Expand Up @@ -4081,28 +4145,33 @@ namespace PlayFab
struct ListFunctionsRequest : public PlayFabRequestCommon
{
std::map<std::string, std::string> CustomTags;
std::string TitleId;

ListFunctionsRequest() :
PlayFabRequestCommon(),
CustomTags()
CustomTags(),
TitleId()
{}

ListFunctionsRequest(const ListFunctionsRequest& src) :
PlayFabRequestCommon(),
CustomTags(src.CustomTags)
CustomTags(src.CustomTags),
TitleId(src.TitleId)
{}

~ListFunctionsRequest() = default;

void FromJson(const Json::Value& input) override
{
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilS(input["TitleId"], TitleId);
}

Json::Value ToJson() const override
{
Json::Value output;
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_TitleId; ToJsonUtilS(TitleId, each_TitleId); output["TitleId"] = each_TitleId;
return output;
}
};
Expand Down Expand Up @@ -4170,19 +4239,22 @@ namespace PlayFab
std::string ConnectionString;
std::string FunctionName;
std::string QueueName;
Boxed<AzureResourceSystemData> SystemData;

QueuedFunctionModel() :
PlayFabBaseModel(),
ConnectionString(),
FunctionName(),
QueueName()
QueueName(),
SystemData()
{}

QueuedFunctionModel(const QueuedFunctionModel& src) :
PlayFabBaseModel(),
ConnectionString(src.ConnectionString),
FunctionName(src.FunctionName),
QueueName(src.QueueName)
QueueName(src.QueueName),
SystemData(src.SystemData)
{}

~QueuedFunctionModel() = default;
Expand All @@ -4192,6 +4264,7 @@ namespace PlayFab
FromJsonUtilS(input["ConnectionString"], ConnectionString);
FromJsonUtilS(input["FunctionName"], FunctionName);
FromJsonUtilS(input["QueueName"], QueueName);
FromJsonUtilO(input["SystemData"], SystemData);
}

Json::Value ToJson() const override
Expand All @@ -4200,6 +4273,7 @@ namespace PlayFab
Json::Value each_ConnectionString; ToJsonUtilS(ConnectionString, each_ConnectionString); output["ConnectionString"] = each_ConnectionString;
Json::Value each_FunctionName; ToJsonUtilS(FunctionName, each_FunctionName); output["FunctionName"] = each_FunctionName;
Json::Value each_QueueName; ToJsonUtilS(QueueName, each_QueueName); output["QueueName"] = each_QueueName;
Json::Value each_SystemData; ToJsonUtilO(SystemData, each_SystemData); output["SystemData"] = each_SystemData;
return output;
}
};
Expand Down Expand Up @@ -4920,6 +4994,7 @@ namespace PlayFab
std::map<std::string, std::string> CustomTags;
std::string FunctionName;
std::string FunctionUrl;
Boxed<AzureResourceSystemData> SystemData;
std::string TitleId;

RegisterHttpFunctionRequest() :
Expand All @@ -4928,6 +5003,7 @@ namespace PlayFab
CustomTags(),
FunctionName(),
FunctionUrl(),
SystemData(),
TitleId()
{}

Expand All @@ -4937,6 +5013,7 @@ namespace PlayFab
CustomTags(src.CustomTags),
FunctionName(src.FunctionName),
FunctionUrl(src.FunctionUrl),
SystemData(src.SystemData),
TitleId(src.TitleId)
{}

Expand All @@ -4948,6 +5025,7 @@ namespace PlayFab
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilS(input["FunctionName"], FunctionName);
FromJsonUtilS(input["FunctionUrl"], FunctionUrl);
FromJsonUtilO(input["SystemData"], SystemData);
FromJsonUtilS(input["TitleId"], TitleId);
}

Expand All @@ -4958,6 +5036,7 @@ namespace PlayFab
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_FunctionName; ToJsonUtilS(FunctionName, each_FunctionName); output["FunctionName"] = each_FunctionName;
Json::Value each_FunctionUrl; ToJsonUtilS(FunctionUrl, each_FunctionUrl); output["FunctionUrl"] = each_FunctionUrl;
Json::Value each_SystemData; ToJsonUtilO(SystemData, each_SystemData); output["SystemData"] = each_SystemData;
Json::Value each_TitleId; ToJsonUtilS(TitleId, each_TitleId); output["TitleId"] = each_TitleId;
return output;
}
Expand All @@ -4970,6 +5049,7 @@ namespace PlayFab
std::map<std::string, std::string> CustomTags;
std::string FunctionName;
std::string QueueName;
Boxed<AzureResourceSystemData> SystemData;
std::string TitleId;

RegisterQueuedFunctionRequest() :
Expand All @@ -4979,6 +5059,7 @@ namespace PlayFab
CustomTags(),
FunctionName(),
QueueName(),
SystemData(),
TitleId()
{}

Expand All @@ -4989,6 +5070,7 @@ namespace PlayFab
CustomTags(src.CustomTags),
FunctionName(src.FunctionName),
QueueName(src.QueueName),
SystemData(src.SystemData),
TitleId(src.TitleId)
{}

Expand All @@ -5001,6 +5083,7 @@ namespace PlayFab
FromJsonUtilS(input["CustomTags"], CustomTags);
FromJsonUtilS(input["FunctionName"], FunctionName);
FromJsonUtilS(input["QueueName"], QueueName);
FromJsonUtilO(input["SystemData"], SystemData);
FromJsonUtilS(input["TitleId"], TitleId);
}

Expand All @@ -5012,6 +5095,7 @@ namespace PlayFab
Json::Value each_CustomTags; ToJsonUtilS(CustomTags, each_CustomTags); output["CustomTags"] = each_CustomTags;
Json::Value each_FunctionName; ToJsonUtilS(FunctionName, each_FunctionName); output["FunctionName"] = each_FunctionName;
Json::Value each_QueueName; ToJsonUtilS(QueueName, each_QueueName); output["QueueName"] = each_QueueName;
Json::Value each_SystemData; ToJsonUtilO(SystemData, each_SystemData); output["SystemData"] = each_SystemData;
Json::Value each_TitleId; ToJsonUtilS(TitleId, each_TitleId); output["TitleId"] = each_TitleId;
return output;
}
Expand Down
Loading

0 comments on commit df894a0

Please sign in to comment.