Changes
This commit is contained in:
parent
de289d6cc6
commit
31be7840c3
|
@ -1,48 +0,0 @@
|
||||||
{
|
|
||||||
"GlobalsecondaryindexesBuilderDescription": "Provision a Globalsecondaryindexes builder cluster for your Azure Cosmos DB account. Globalsecondaryindexes builder is compute in your account that performs read operations on source collection for any updates and updates the global secondary indexes as per the globalsecondaryindexes definition.",
|
|
||||||
"GlobalsecondaryindexesBuilder": "Globalsecondaryindexes Builder",
|
|
||||||
"Provisioned": "Provisioned",
|
|
||||||
"Deprovisioned": "Deprovisioned",
|
|
||||||
"LearnAboutGlobalSecondaryIndexes": "Learn more about globalsecondaryindexes.",
|
|
||||||
"GlobalsecondaryindexesDeprovisioningDetailsText": "Learn more about globalsecondaryindexes.",
|
|
||||||
"GlobalsecondaryindexesBuilderPricing": "Learn more about Globalsecondaryindexes pricing.",
|
|
||||||
"SKUs": "SKUs",
|
|
||||||
"SKUsPlaceHolder": "Select SKUs",
|
|
||||||
"NumberOfInstances": "Number of instances",
|
|
||||||
"CosmosD2s": "Cosmos.D2s (General Purpose Cosmos Compute with 2 vCPUs, 8 GB Memory)",
|
|
||||||
"CosmosD4s": "Cosmos.D4s (General Purpose Cosmos Compute with 4 vCPUs, 16 GB Memory)",
|
|
||||||
"CosmosD8s": "Cosmos.D8s (General Purpose Cosmos Compute with 8 vCPUs, 32 GB Memory)",
|
|
||||||
"CosmosD16s": "Cosmos.D16s (General Purpose Cosmos Compute with 16 vCPUs, 64 GB Memory)",
|
|
||||||
"CosmosD32s": "Cosmos.D32s (General Purpose Cosmos Compute with 32 vCPUs, 128 GB Memory)",
|
|
||||||
"GlobalsecondaryindexesCreateMessage": "GlobalSecondaryIndexesBuilder resource is being created.",
|
|
||||||
"CreateInitializeTitle": "Provisioning resource",
|
|
||||||
"GlobalsecondaryindexesCreateInitializeMessage": "Globalsecondaryindexes Builder resource will be provisioned.",
|
|
||||||
"CreateSuccessTitle": "Resource provisioned",
|
|
||||||
"GlobalsecondaryindexesCreateSuccesseMessage": "Globalsecondaryindexes Builder resource provisioned.",
|
|
||||||
"CreateFailureTitle": "Failed to provision resource",
|
|
||||||
"GlobalsecondaryindexesCreateFailureMessage": "Globalsecondaryindexes Builder resource provisioning failed.",
|
|
||||||
"GlobalsecondaryindexesUpdateMessage": "GlobalSecondaryIndexesBuilder resource is being updated.",
|
|
||||||
"UpdateInitializeTitle": "Updating resource",
|
|
||||||
"GlobalsecondaryindexesUpdateInitializeMessage": "Globalsecondaryindexes Builder resource will be updated.",
|
|
||||||
"UpdateSuccessTitle": "Resource updated",
|
|
||||||
"GlobalsecondaryindexesUpdateSuccesseMessage": "Globalsecondaryindexes Builder resource updated.",
|
|
||||||
"UpdateFailureTitle": "Failed to update resource",
|
|
||||||
"GlobalsecondaryindexesUpdateFailureMessage": "Globalsecondaryindexes Builder resource updation failed.",
|
|
||||||
"GlobalsecondaryindexesDeleteMessage": "GlobalSecondaryIndexesBuilder resource is being deleted.",
|
|
||||||
"DeleteInitializeTitle": "Deleting resource",
|
|
||||||
"GlobalsecondaryindexesDeleteInitializeMessage": "Globalsecondaryindexes Builder resource will be deleted.",
|
|
||||||
"DeleteSuccessTitle": "Resource deleted",
|
|
||||||
"GlobalsecondaryindexesDeleteSuccesseMessage": "Globalsecondaryindexes Builder resource deleted.",
|
|
||||||
"DeleteFailureTitle": "Failed to delete resource",
|
|
||||||
"GlobalsecondaryindexesDeleteFailureMessage": "Globalsecondaryindexes Builder resource deletion failed.",
|
|
||||||
"ApproximateCost": "Approximate Cost Per Hour",
|
|
||||||
"GlobalsecondaryindexesCostText": "Hourly cost of the Globalsecondaryindexes Builder resource depends on the SKU selection, number of instances per region, and number of regions.",
|
|
||||||
"MetricsString": "Metrics",
|
|
||||||
"GlobalsecondaryindexesMetricsText": "Monitor the CPU and memory usage for the Globalsecondaryindexes Builder instances in ",
|
|
||||||
"MetricsBlade": "the metrics blade.",
|
|
||||||
"MonitorUsage": "Monitor Usage",
|
|
||||||
"GlobalsecondaryindexesResizingDecisionText": "To understand if the Globalsecondaryindexes Builder is the right size, ",
|
|
||||||
"RGlobalsecondaryindexesesizingDecisionLink": "learn more about Globalsecondaryindexes Builder sizing.",
|
|
||||||
"GlobalsecondaryindexesWarningBannerOnUpdate": "Adding or modifying Globalsecondaryindexes Builder instances may affect your bill.",
|
|
||||||
"GlobalsecondaryindexesWarningBannerOnDelete": "After deprovisioning the Globalsecondaryindexes Builder, your globalsecondaryindexes will not be updated with new source changes anymore. Globalsecondaryindexes builder is compute in your account that performs read operations on source collection for any updates and applies them on global secondary indexes as per the global secondary indexes definition."
|
|
||||||
}
|
|
|
@ -44,5 +44,28 @@
|
||||||
"ResizingDecisionText": "To understand if the Materializedviews Builder is the right size, ",
|
"ResizingDecisionText": "To understand if the Materializedviews Builder is the right size, ",
|
||||||
"ResizingDecisionLink": "learn more about Materializedviews Builder sizing.",
|
"ResizingDecisionLink": "learn more about Materializedviews Builder sizing.",
|
||||||
"WarningBannerOnUpdate": "Adding or modifying Materializedviews Builder instances may affect your bill.",
|
"WarningBannerOnUpdate": "Adding or modifying Materializedviews Builder instances may affect your bill.",
|
||||||
"WarningBannerOnDelete": "After deprovisioning the Materializedviews Builder, your materializedviews will not be updated with new source changes anymore. Materializedviews builder is compute in your account that performs read operations on source collection for any updates and applies them on materialized views as per the materializedview definition."
|
"WarningBannerOnDelete": "After deprovisioning the Materializedviews Builder, your materializedviews will not be updated with new source changes anymore. Materializedviews builder is compute in your account that performs read operations on source collection for any updates and applies them on materialized views as per the materializedview definition.",
|
||||||
|
"GlobalsecondaryindexesBuilderDescription": "Provision a Globalsecondaryindexes builder cluster for your Azure Cosmos DB account. Globalsecondaryindexes builder is compute in your account that performs read operations on source collection for any updates and updates the global secondary indexes as per the globalsecondaryindexes definition.",
|
||||||
|
"GlobalsecondaryindexesBuilder": "Globalsecondaryindexes Builder",
|
||||||
|
"LearnAboutGlobalSecondaryIndexes": "Learn more about globalsecondaryindexes.",
|
||||||
|
"GlobalsecondaryindexesDeprovisioningDetailsText": "Learn more about globalsecondaryindexes.",
|
||||||
|
"GlobalsecondaryindexesBuilderPricing": "Learn more about Globalsecondaryindexes pricing.",
|
||||||
|
"GlobalsecondaryindexesCreateMessage": "GlobalSecondaryIndexesBuilder resource is being created.",
|
||||||
|
"GlobalsecondaryindexesCreateInitializeMessage": "Globalsecondaryindexes Builder resource will be provisioned.",
|
||||||
|
"GlobalsecondaryindexesCreateSuccesseMessage": "Globalsecondaryindexes Builder resource provisioned.",
|
||||||
|
"GlobalsecondaryindexesCreateFailureMessage": "Globalsecondaryindexes Builder resource provisioning failed.",
|
||||||
|
"GlobalsecondaryindexesUpdateMessage": "GlobalSecondaryIndexesBuilder resource is being updated.",
|
||||||
|
"GlobalsecondaryindexesUpdateInitializeMessage": "Globalsecondaryindexes Builder resource will be updated.",
|
||||||
|
"GlobalsecondaryindexesUpdateSuccesseMessage": "Globalsecondaryindexes Builder resource updated.",
|
||||||
|
"GlobalsecondaryindexesUpdateFailureMessage": "Globalsecondaryindexes Builder resource updation failed.",
|
||||||
|
"GlobalsecondaryindexesDeleteMessage": "GlobalSecondaryIndexesBuilder resource is being deleted.",
|
||||||
|
"GlobalsecondaryindexesDeleteInitializeMessage": "Globalsecondaryindexes Builder resource will be deleted.",
|
||||||
|
"GlobalsecondaryindexesDeleteSuccesseMessage": "Globalsecondaryindexes Builder resource deleted.",
|
||||||
|
"GlobalsecondaryindexesDeleteFailureMessage": "Globalsecondaryindexes Builder resource deletion failed.",
|
||||||
|
"GlobalsecondaryindexesCostText": "Hourly cost of the Globalsecondaryindexes Builder resource depends on the SKU selection, number of instances per region, and number of regions.",
|
||||||
|
"GlobalsecondaryindexesMetricsText": "Monitor the CPU and memory usage for the Globalsecondaryindexes Builder instances in ",
|
||||||
|
"GlobalsecondaryindexesResizingDecisionText": "To understand if the Globalsecondaryindexes Builder is the right size, ",
|
||||||
|
"GlobalsecondaryindexesesizingDecisionLink": "learn more about Globalsecondaryindexes Builder sizing.",
|
||||||
|
"GlobalsecondaryindexesWarningBannerOnUpdate": "Adding or modifying Globalsecondaryindexes Builder instances may affect your bill.",
|
||||||
|
"GlobalsecondaryindexesWarningBannerOnDelete": "After deprovisioning the Globalsecondaryindexes Builder, your globalsecondaryindexes will not be updated with new source changes anymore. Globalsecondaryindexes builder is compute in your account that performs read operations on source collection for any updates and applies them on global secondary indexes as per the global secondary indexes definition."
|
||||||
}
|
}
|
|
@ -6,9 +6,9 @@ import { RefreshResult } from "../SelfServeTypes";
|
||||||
import MaterializedViewsBuilder from "./MaterializedViewsBuilder";
|
import MaterializedViewsBuilder from "./MaterializedViewsBuilder";
|
||||||
import {
|
import {
|
||||||
FetchPricesResponse,
|
FetchPricesResponse,
|
||||||
|
MaterializedViewsBuilderServiceResource,
|
||||||
PriceMapAndCurrencyCode,
|
PriceMapAndCurrencyCode,
|
||||||
RegionsResponse,
|
RegionsResponse,
|
||||||
MaterializedViewsBuilderServiceResource,
|
|
||||||
UpdateMaterializedViewsBuilderRequestParameters,
|
UpdateMaterializedViewsBuilderRequestParameters,
|
||||||
} from "./MaterializedViewsBuilderTypes";
|
} from "./MaterializedViewsBuilderTypes";
|
||||||
|
|
||||||
|
@ -123,11 +123,11 @@ export const refreshMaterializedViewsBuilderProvisioning = async (): Promise<Ref
|
||||||
if (response.properties.status === ResourceStatus.Running.toString()) {
|
if (response.properties.status === ResourceStatus.Running.toString()) {
|
||||||
return { isUpdateInProgress: false, updateInProgressMessageTKey: undefined };
|
return { isUpdateInProgress: false, updateInProgressMessageTKey: undefined };
|
||||||
} else if (response.properties.status === ResourceStatus.Creating.toString()) {
|
} else if (response.properties.status === ResourceStatus.Creating.toString()) {
|
||||||
return { isUpdateInProgress: true, updateInProgressMessageTKey: "CreateMessage" };
|
return { isUpdateInProgress: true, updateInProgressMessageTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesCreateMessage" : "CreateMessage"};
|
||||||
} else if (response.properties.status === ResourceStatus.Deleting.toString()) {
|
} else if (response.properties.status === ResourceStatus.Deleting.toString()) {
|
||||||
return { isUpdateInProgress: true, updateInProgressMessageTKey: "DeleteMessage" };
|
return { isUpdateInProgress: true, updateInProgressMessageTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesDeleteMessage" : "DeleteMessage"};
|
||||||
} else {
|
} else {
|
||||||
return { isUpdateInProgress: true, updateInProgressMessageTKey: "UpdateMessage" };
|
return { isUpdateInProgress: true, updateInProgressMessageTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesUpdateMessage" : "UpdateMessage"};
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
//TODO differentiate between different failures
|
//TODO differentiate between different failures
|
||||||
|
|
|
@ -41,7 +41,7 @@ const costPerHourDefaultValue: Description = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const metricsStringValue: Description = {
|
const metricsStringValue: Description = {
|
||||||
textTKey: "MetricsText",
|
textTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesMetricsText" : "MetricsText",
|
||||||
type: DescriptionType.Text,
|
type: DescriptionType.Text,
|
||||||
link: {
|
link: {
|
||||||
href: generateBladeLink(BladeType.Metrics),
|
href: generateBladeLink(BladeType.Metrics),
|
||||||
|
@ -131,10 +131,10 @@ const onEnableMaterializedViewsBuilderChange = (
|
||||||
} else {
|
} else {
|
||||||
currentValues.set("warningBanner", {
|
currentValues.set("warningBanner", {
|
||||||
value: {
|
value: {
|
||||||
textTKey: "WarningBannerOnDelete",
|
textTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesWarningBannerOnDelete" : "WarningBannerOnDelete",
|
||||||
link: {
|
link: {
|
||||||
href: "https://aka.ms/cosmos-db-materializedviews",
|
href: userContext.apiType === "SQL" ? "https://aka.ms/cosmos-db-globalsecondaryindexes" : "https://aka.ms/cosmos-db-materializedviews",
|
||||||
textTKey: "DeprovisioningDetailsText",
|
textTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesDeprovisioningDetailsText" : "DeprovisioningDetailsText",
|
||||||
},
|
},
|
||||||
} as Description,
|
} as Description,
|
||||||
hidden: false,
|
hidden: false,
|
||||||
|
@ -184,10 +184,10 @@ const getInstancesMax = async (): Promise<number> => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const NumberOfInstancesDropdownInfo: Info = {
|
const NumberOfInstancesDropdownInfo: Info = {
|
||||||
messageTKey: "ResizingDecisionText",
|
messageTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesResizingDecisionText" : "ResizingDecisionText",
|
||||||
link: {
|
link: {
|
||||||
href: "https://aka.ms/cosmos-db-materializedviewsbuilder-size",
|
href: userContext.apiType === "SQL" ? "https://aka.ms/cosmos-db-globalsecondaryindexesbuilder-size" : "https://aka.ms/cosmos-db-materializedviewsbuilder-size",
|
||||||
textTKey: "ResizingDecisionLink",
|
textTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesesizingDecisionLink" : "ResizingDecisionLink",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -368,11 +368,11 @@ export default class MaterializedViewsBuilder extends SelfServeBaseClass {
|
||||||
|
|
||||||
@Values({
|
@Values({
|
||||||
description: {
|
description: {
|
||||||
textTKey: "GlobalsecondaryindexesBuilderDescription",
|
textTKey: userContext.apiType === "SQL" ? "GlobalsecondaryindexesBuilderDescription" : "MaterializedViewsBuilderDescription",
|
||||||
type: DescriptionType.Text,
|
type: DescriptionType.Text,
|
||||||
link: {
|
link: {
|
||||||
href: "https://aka.ms/cosmos-db-globalsecondaryindexes",
|
href: userContext.apiType === "SQL" ? "https://aka.ms/cosmos-db-globalsecondaryindexes" : "https://aka.ms/cosmos-db-materializedviews",
|
||||||
textTKey: "LearnAboutGlobalSecondaryIndexes",
|
textTKey: userContext.apiType === "SQL" ? "LearnAboutGlobalSecondaryIndexes" : "LearnAboutMaterializedViews",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -380,7 +380,7 @@ export default class MaterializedViewsBuilder extends SelfServeBaseClass {
|
||||||
|
|
||||||
@OnChange(onEnableMaterializedViewsBuilderChange)
|
@OnChange(onEnableMaterializedViewsBuilderChange)
|
||||||
@Values({
|
@Values({
|
||||||
labelTKey: "GlobalSecondaryIndexesBuilder",
|
labelTKey: userContext.apiType === "SQL" ? "GlobalSecondaryIndexesBuilder" : "MaterializedViewsBuilder",
|
||||||
trueLabelTKey: "Provisioned",
|
trueLabelTKey: "Provisioned",
|
||||||
falseLabelTKey: "Deprovisioned",
|
falseLabelTKey: "Deprovisioned",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue