Compare commits

..

1 Commits

Author SHA1 Message Date
cab8a437aa Update 'otc_metadata/data/services.yaml'
All checks were successful
gl/check check status: success (cab8a437aa745516c7abfee31052275ba255341c)
Public waf
2023-06-12 10:02:15 +00:00
302 changed files with 2077 additions and 3562 deletions

3
.gitignore vendored
View File

@ -59,6 +59,3 @@ ChangeLog
# Files created by releasenotes build
releasenotes/build
bindep.txt
packages.txt

View File

@ -9,13 +9,13 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
__all__ = ["__version__", "Docs"]
__all__ = ['__version__', 'Docs']
import pbr.version
from otc_metadata.services import Services # flake8: noqa
__version__ = pbr.version.VersionInfo("otc-metadata").version_string()
__version__ = pbr.version.VersionInfo('otc-metadata').version_string()
_service_manager = None

View File

@ -12,45 +12,30 @@
# limitations under the License.
import os
import pathlib
import yaml
__all__ = ["read_data"]
__all__ = ['read_data']
DATA_DIR = os.path.dirname(__file__)
def read_data(filename):
"""Return data that is shipped inside the Python package."""
"""Return data that is shipped inside the Python package.
"""
filepath = os.path.join(DATA_DIR, filename)
with open(filepath, "r") as fd:
data = yaml.safe_load(fd)
# Merge data found in individual element files
data.setdefault("documents", list())
data.setdefault("services", list())
data.setdefault("service_categories", list())
for item in pathlib.Path(DATA_DIR, "documents").glob("*.yaml"):
with open(item, "r") as fp:
data["documents"].append(yaml.safe_load(fp))
for item in pathlib.Path(DATA_DIR, "services").glob("*.yaml"):
with open(item, "r") as fp:
data["services"].append(yaml.safe_load(fp))
for item in pathlib.Path(DATA_DIR, "service_categories").glob(
"*.yaml"
):
with open(item, "r") as fp:
data["service_categories"].append(yaml.safe_load(fp))
return data
with open(filepath, 'r') as fd:
return yaml.safe_load(fd)
def rewrite_data(filename, data):
"""Rewrites data formatting it"""
from ruamel.yaml import YAML
"""Rewrites data formatting it
"""
from ruamel.yaml import YAML
_yaml = YAML()
_yaml.indent(mapping=2, sequence=4, offset=2)
filepath = os.path.join(DATA_DIR, filename)
with open(filepath, "w") as fd:
with open(filepath, 'w') as fd:
_yaml.dump(data, fd)

View File

@ -1,9 +0,0 @@
---
environment: public
link: /architecture-center/blueprints/
pdf_name: architecture-center-blueprints
rst_location: doc/blueprints/source
service_type: ac
title: Blueprints
type: blueprints
disable_import: true

View File

@ -1,9 +0,0 @@
---
environment: internal
link: /architecture-center/caf/
pdf_name: architecture-center-cloud-adoption-framework
rst_location: doc/caf/source
service_type: ac
title: Cloud Adoption Framework
type: caf
disable_import: true

View File

@ -1,9 +0,0 @@
---
hc_location: api/antiddos
html_location: docs/antiddos/api-ref
link: /anti-ddos/api-ref/
pdf_name: antiddos-api-ref
rst_location: api-ref/source
service_type: antiddos
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/antiddos
html_location: docs/antiddos/umn
link: /anti-ddos/umn/
pdf_name: antiddos-umn
rst_location: umn/source
service_type: antiddos
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api/aom
html_location: docs/aom/api-ref
link: /application-operations-management/api-ref/
pdf_name: aom-api-ref
rst_location: api-ref/source
service_type: aom
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/aom
html_location: docs/aom/umn
link: /application-operations-management/umn/
pdf_name: aom-umn
rst_location: umn/source
service_type: aom
title: User Guide
type: umn

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: api/aom2
html_location: docs/aom2/api-ref
link: /application-operations-management-2/api-ref/
pdf_name: aom2-api-ref
rst_location: api-ref/source
service_type: aom2
title: API Reference
type: api-ref

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: usermanual/aom2
html_location: docs/aom2/umn
link: /application-operations-management-2/umn/
pdf_name: aom2-umn
rst_location: umn/source
service_type: aom2
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api/apig
html_location: docs/apig/api-ref
link: /api-gateway/api-ref/
pdf_name: apig-api-ref
rst_location: api-ref/source
service_type: apig
title: API Reference
type: api-ref

View File

@ -1,10 +0,0 @@
---
environment: hidden
hc_location: devg/apig
html_location: docs/apig/dev
link: /api-gateway/dev-guide/
pdf_name: apig-dev-guide
rst_location: dev_guide/source
service_type: apig
title: Developer Guide
type: dev

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/apig
html_location: docs/apig/umn
link: /api-gateway/umn/
pdf_name: apig-umn
rst_location: umn/source
service_type: apig
title: User Guide
type: umn

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: api-usage/guidelines
html_location: docs/apiu/guidelines
link: /api-usage/guidelines/
pdf_name: apiu-guidelines
rst_location: doc/guidelines/source
service_type: apiu
title: API Usage Guidelines
type: guidelines

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: api/apm
html_location: docs/apm/api-ref
link: /application-performance-management/api-ref/
pdf_name: apm-api-ref
rst_location: api-ref/source
service_type: apm
title: API Reference
type: api-ref

View File

@ -1,10 +0,0 @@
---
environment: public
hc_location: usermanual/apm
html_location: docs/apm/umn
link: /application-performance-management/umn/
pdf_name: apm-umn
rst_location: umn/source
service_type: apm
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api/as
html_location: docs/as/api-ref
link: /auto-scaling/api-ref/
pdf_name: as-api-ref
rst_location: api-ref/source
service_type: as
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
hc_location: devg/as
html_location: docs/as/dev
link: /auto-scaling/dev-guide/
pdf_name: as-dev-guide
rst_location: dev_guide/source
service_type: as
title: Developer Guide
type: dev

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/as
html_location: docs/as/umn
link: /auto-scaling/umn/
pdf_name: as-umn
rst_location: umn/source
service_type: as
title: User Guide
type: umn

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: api/asm
html_location: docs/asm/api-ref
link: /application-service-mesh/api-ref/
pdf_name: asm-api-ref
rst_location: api-ref/source
service_type: asm
title: API Reference
type: api-ref

View File

@ -1,11 +0,0 @@
---
hc_location: bestpractice/asm
environment: internal
html_location: docs/asm/best-practice
link: /application-service-mesh/best-practice/
pdf_name: asm-best-practice
rst_location: doc/best-practice/source
service_type: asm
title: Best Practice
type: best-practice
disable_import: true

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: usermanual/asm
html_location: docs/asm/umn
link: /application-service-mesh/umn/
pdf_name: asm-umn
rst_location: umn/source
service_type: asm
title: User Guide
type: umn

View File

@ -1,6 +0,0 @@
---
link: /business-dashboard/umn/
rst_location: umn/source
service_type: bd
title: User Guide
type: umn

View File

@ -1,11 +0,0 @@
---
hc_location: bestpractice/blueprints
environment: internal
html_location: docs/blueprints/best-practice
link: /blueprints/best-practice/
pdf_name: blueprints-best-practice
rst_location: doc/best-practice/source
service_type: blueprints
title: Best Practice
type: best-practice
disable_import: true

View File

@ -1,9 +0,0 @@
---
hc_location: api/bms
html_location: docs/bms/api-ref
link: /bare-metal-server/api-ref/
pdf_name: bms-api-ref
rst_location: api-ref/source
service_type: bms
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
hc_location: devg/bms
html_location: docs/bms/dev
link: /bare-metal-server/dev-guide/
pdf_name: bms-dev-guide
rst_location: dev_guide/source
service_type: bms
title: Developer Guide
type: dev

View File

@ -1,9 +0,0 @@
---
hc_location: bpicg/bms
html_location: docs/bms/image-creation-guide
link: /bare-metal-server/image-creation-guide/
pdf_name: bms-image-creation-guide
rst_location: doc/image-creation-guide/source
service_type: bms
title: Private Image Creation Guide
type: image-creation-guide

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/bms
html_location: docs/bms/umn
link: /bare-metal-server/umn/
pdf_name: bms-umn
rst_location: umn/source
service_type: bms
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api/cbr
html_location: docs/cbr/api-ref
link: /cloud-backup-recovery/api-ref/
pdf_name: cbr-api-ref
rst_location: api-ref/source
service_type: cbr
title: API Reference
type: api-ref

View File

@ -1,11 +0,0 @@
---
hc_location: bestpractice/cbr
environment: internal
html_location: docs/cbr/best-practice
link: /cloud-backup-recovery/best-practice/
pdf_name: cbr-best-practice
rst_location: doc/best-practice/source
service_type: cbr
title: Best Practice
type: best-practice
disable_import: true

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/cbr
html_location: docs/cbr/umn
link: /cloud-backup-recovery/umn/
pdf_name: cbr-umn
rst_location: umn/source
service_type: cbr
title: User Guide
type: umn

View File

@ -1,7 +0,0 @@
---
link: /cloud-create/api-ref/
pdf_name: cc-api-ref
rst_location: api-ref/source
service_type: cc
title: API Reference
type: api-ref

View File

@ -1,8 +0,0 @@
---
html_location: docs/cc/umn
link: /cloud-create/umn/
pdf_name: cc-umn
rst_location: umn/source
service_type: cc
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api2/cce
html_location: docs/cce/api-ref
link: /cloud-container-engine/api-ref/
pdf_name: cce-api-ref
rst_location: api-ref/source
service_type: cce
title: API Reference
type: api-ref

View File

@ -1,11 +0,0 @@
---
hc_location: bestpractice/cce
environment: internal
html_location: docs/cce/best-practice
link: /cloud-container-engine/best-practice/
pdf_name: cce-best-practice
rst_location: doc/best-practice/source
service_type: cce
title: Best Practice
type: best-practice
disable_import: true

View File

@ -1,8 +0,0 @@
---
hc_location: usermanual2/cce
html_location: docs/cce/umn
link: /cloud-container-engine/umn/
rst_location: umn/source
service_type: cce
title: User Guide
type: umn

View File

@ -1,10 +0,0 @@
---
hc_location: api/cci
environment: internal
html_location: docs/cci/api-ref
link: /cloud-container-instance/api-ref/
pdf_name: cci-api-ref
rst_location: api-ref/source
service_type: cci
title: API Reference
type: api-ref

View File

@ -1,10 +0,0 @@
---
hc_location: usermanual/cci
environment: internal
html_location: docs/cci/umn
link: /cloud-container-instance/umn/
pdf_name: cci-umn
rst_location: umn/source
service_type: cci
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api/ces
html_location: docs/ces/api-ref
link: /cloud-eye/api-ref/
pdf_name: ces-api-ref
rst_location: api-ref/source
service_type: ces
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/ces
html_location: docs/ces/umn
link: /cloud-eye/umn/
pdf_name: ces-umn
rst_location: umn/source
service_type: ces
title: User Guide
type: umn

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: api/cfw
html_location: docs/cfw/api-ref
link: /cloud-firewall/api-ref/
pdf_name: cfw-api-ref
rst_location: api-ref/source
service_type: cfw
title: API Reference
type: api-ref

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: usermanual/cfw
html_location: docs/cfw/umn
link: /cloud-firewall/umn/
pdf_name: cfw-umn
rst_location: umn/source
service_type: cfw
title: User Guide
type: umn

View File

@ -1,10 +0,0 @@
---
environment: internal
hc_location: api/rms
html_location: docs/config/api-ref
link: /config/api-ref/
pdf_name: config-api-ref
rst_location: api-ref/source
service_type: config
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
environment: internal
hc_location: usermanual/rms
html_location: docs/config/umn
link: /config/umn/
rst_location: umn/source
service_type: config
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api/csbs
html_location: docs/csbs/api-ref
link: /cloud-server-backup-service/api-ref/
pdf_name: csbs-api-ref
rst_location: api-ref/source
service_type: csbs
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/csbs
html_location: docs/csbs/umn
link: /cloud-server-backup-service/umn/
pdf_name: csbs-umn
rst_location: umn/source
service_type: csbs
title: User Guide
type: umn

View File

@ -1,10 +0,0 @@
---
hc_location: api/cse
environment: internal
html_location: docs/cse/api-ref
link: /cloud-service-engine/api-ref/
pdf_name: cse-api-ref
rst_location: api-ref/source
service_type: cse
title: API Reference
type: api-ref

View File

@ -1,10 +0,0 @@
---
hc_location: usermanual/cse
environment: internal
html_location: docs/cse/umn
link: /cloud-service-engine/umn/
pdf_name: cse-umn
rst_location: umn/source
service_type: cse
title: User Guide
type: umn

View File

@ -1,9 +0,0 @@
---
hc_location: api/css
html_location: docs/css/api-ref
link: /cloud-search-service/api-ref/
pdf_name: css-api-ref
rst_location: api-ref/source
service_type: css
title: API Reference
type: api-ref

Some files were not shown because too many files have changed in this diff Show More