diff --git a/.gitignore b/.gitignore index 45f23d21d..ddb59ac94 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,8 @@ containers/ssh/* !containers/ssh/example_config !okitweb/static/model +/docker-compose.yml +/containers/runtime/ +/node/ +/node/node_modules +/node/package-lock.json diff --git a/CHANGELOG.md b/CHANGELOG.md index a8bd10334..65b8dd6a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Release Notes + +## Version 0.17.0 +**Release Date**: 10th February 2021 +### Features +1. Simple Tabular view added to display the required properties for resources in a table format (OKIT-124). +2. Allow Subnets to be place in compartments that do not contain the associated Virtual Cloud Network (OKIT-128). +3. Update Copyright + +### Bug Fixes +1. Compartment name is now displayed correctly for queried compartment. + + ## Version 0.16.0 **Release Date**: 20th January 2021 ### Features diff --git a/Dockerfile b/Dockerfile index 4253204f0..5d887a872 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. FROM oraclelinux:7-slim LABEL "provider"="Oracle" \ "issues"="https://github.com/oracle/oci-designer-toolkit/issues" \ - "version"="0.16.0" \ + "version"="0.17.0" \ "description"="OKIT Web Server Container." \ - "copyright"="Copyright (c) 2020, Oracle and/or its affiliates." + "copyright"="Copyright (c) 2021, Oracle and/or its affiliates." SHELL ["/bin/bash", "-c"] ENV PYTHONIOENCODING=utf8 \ PYTHONPATH=":/okit/visualiser:/okit/okitweb:/okit" \ @@ -41,6 +41,7 @@ RUN yum install -y \ && python3 -m pip install --upgrade pip \ # Install required python modules && pip3 install --no-cache-dir \ + authlib==0.15.3 \ flask==1.1.1 \ gitpython==3.1.11 \ git-url-parse==1.2.2 \ diff --git a/README.md b/README.md index fc4cd2c32..da25ac8b4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Oracle Cloud Infrastructure Designer and Visualisation Toolkit [0.16.0](CHANGELOG.md#version-0.16.0) +# Oracle Cloud Infrastructure Designer and Visualisation Toolkit [0.17.0](CHANGELOG.md#version-0.17.0) OCI designer and visualisation toolKIT (OKIT) is a browser based tool that allows the user to [design](https://www.ateam-oracle.com/introduction-to-okit-the-oci-designer-toolkit), [deploy](https://www.ateam-oracle.com/introduction-to-okit-the-oci-designer-toolkit) and visualise ([introspect/query](https://www.ateam-oracle.com/the-oci-designer-toolkit-query-feature)) diff --git a/containers/cloud/cloud_init.yml b/containers/cloud/cloud_init.yml index 36456a088..7273ae89e 100644 --- a/containers/cloud/cloud_init.yml +++ b/containers/cloud/cloud_init.yml @@ -12,7 +12,7 @@ runcmd: # Install Required Packages because the packages section may not complete before the runcmd - sudo bash -c "yum install -y git python-oci-cli oci-utils" # Install Required Python Modules - - sudo bash -c "pip3 install --no-cache-dir flask==1.1.1 gitpython==3.1.11 git-url-parse==1.2.2 gunicorn==20.0.4 oci==2.22.0 oci-cli==2.14.1 openpyxl==3.0.5 pandas==1.1.2 python-magic==0.4.18 pyyaml==5.3.1 requests==2.24.0 xlsxwriter==1.3.6" + - sudo bash -c "pip3 install --no-cache-dir authlib==0.15.3 flask==1.1.1 gitpython==3.1.11 git-url-parse==1.2.2 gunicorn==20.0.4 oci==2.22.0 oci-cli==2.14.1 openpyxl==3.0.5 pandas==1.1.2 python-magic==0.4.18 pyyaml==5.3.1 requests==2.24.0 xlsxwriter==1.3.6" # Clone OKIT - sudo bash -c "git clone -b master --depth 1 https://github.com/oracle/oci-designer-toolkit.git /okit" - sudo bash -c "mkdir /okit/{log,workspace}" diff --git a/containers/cloud/okit-ws.json b/containers/cloud/okit-ws.json index 7e178257d..3c9f426a1 100644 --- a/containers/cloud/okit-ws.json +++ b/containers/cloud/okit-ws.json @@ -51,7 +51,7 @@ }, "metadata": { "ssh_authorized_keys": "", - "user_data": "#cloud-config\nwrite_files:\n # Add aliases to bash (Note: At time of writing the append flag does not appear to be working)\n - path: /etc/.bashrc\n append: true\n content: |\n alias lh='ls -lash'\n alias lt='ls -last'\n alias env='/usr/bin/env | sort'\n\nruncmd:\n # Install Required Packages because the packages section may not complete before the runcmd\n - sudo bash -c \"yum install -y git python-oci-cli oci-utils\"\n # Install Required Python Modules\n - sudo bash -c \"pip3 install --no-cache-dir flask==1.1.1 gitpython==3.1.11 git-url-parse==1.2.2 gunicorn==20.0.4 oci==2.22.0 oci-cli==2.14.1 openpyxl==3.0.5 pandas==1.1.2 python-magic==0.4.18 pyyaml==5.3.1 requests==2.24.0 xlsxwriter==1.3.6\"\n # Clone OKIT\n - sudo bash -c \"git clone -b master --depth 1 https://github.com/oracle/oci-designer-toolkit.git /okit\"\n - sudo bash -c \"mkdir /okit/{log,workspace}\"\n # Add additional environment information because append does not appear to work in write_file\n - sudo bash -c \"echo 'source /etc/.bashrc' >> /etc/bashrc\"\n - sudo bash -c \"echo 'export OCI_CLI_AUTH=instance_principal' >> /etc/bashrc\"\n - sudo bash -c \"echo 'export OKIT_VM_COMPARTMENT=`oci-metadata -g \"compartmentID\" --value-only`' >> /etc/bashrc\"\n # Copy GUnicorn Service File\n - sudo bash -c 'sed \"s/{COMPARTMENT_OCID}/`oci-metadata -g compartmentID --value-only`/\" /okit/containers/services/gunicorn.service > /etc/systemd/system/gunicorn.service'\n # Enable Gunicorn Service\n - sudo systemctl enable gunicorn.service\n - sudo systemctl start gunicorn.service\n\nfinal_message: \"**** The system is finally up, after $UPTIME seconds ****\"\n" + "user_data": "#cloud-config\nwrite_files:\n # Add aliases to bash (Note: At time of writing the append flag does not appear to be working)\n - path: /etc/.bashrc\n append: true\n content: |\n alias lh='ls -lash'\n alias lt='ls -last'\n alias env='/usr/bin/env | sort'\n\nruncmd:\n # Install Required Packages because the packages section may not complete before the runcmd\n - sudo bash -c \"yum install -y git python-oci-cli oci-utils\"\n # Install Required Python Modules\n - sudo bash -c \"pip3 install --no-cache-dir authlib==0.15.3 flask==1.1.1 gitpython==3.1.11 git-url-parse==1.2.2 gunicorn==20.0.4 oci==2.22.0 oci-cli==2.14.1 openpyxl==3.0.5 pandas==1.1.2 python-magic==0.4.18 pyyaml==5.3.1 requests==2.24.0 xlsxwriter==1.3.6\"\n # Clone OKIT\n - sudo bash -c \"git clone -b master --depth 1 https://github.com/oracle/oci-designer-toolkit.git /okit\"\n - sudo bash -c \"mkdir /okit/{log,workspace}\"\n # Add additional environment information because append does not appear to work in write_file\n - sudo bash -c \"echo 'source /etc/.bashrc' >> /etc/bashrc\"\n - sudo bash -c \"echo 'export OCI_CLI_AUTH=instance_principal' >> /etc/bashrc\"\n - sudo bash -c \"echo 'export OKIT_VM_COMPARTMENT=`oci-metadata -g \"compartmentID\" --value-only`' >> /etc/bashrc\"\n # Copy GUnicorn Service File\n - sudo bash -c 'sed \"s/{COMPARTMENT_OCID}/`oci-metadata -g compartmentID --value-only`/\" /okit/containers/services/gunicorn.service > /etc/systemd/system/gunicorn.service'\n # Enable Gunicorn Service\n - sudo systemctl enable gunicorn.service\n - sudo systemctl start gunicorn.service\n\nfinal_message: \"**** The system is finally up, after $UPTIME seconds ****\"\n" }, "block_storage_volume_ids": [], "object_storage_bucket_ids": [], diff --git a/containers/docker/8-slim/Dockerfile b/containers/docker/8-slim/Dockerfile index f6208a349..49892ba09 100644 --- a/containers/docker/8-slim/Dockerfile +++ b/containers/docker/8-slim/Dockerfile @@ -1,13 +1,13 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. FROM oraclelinux:8-slim LABEL "provider"="Oracle" \ "issues"="https://github.com/oracle/oci-designer-toolkit/issues" \ - "version"="0.16.0" \ + "version"="0.17.0" \ "description"="OKIT Web Server Container." \ - "copyright"="Copyright (c) 2020, Oracle and/or its affiliates." + "copyright"="Copyright (c) 2021, Oracle and/or its affiliates." SHELL ["/bin/bash", "-c"] ENV PYTHONIOENCODING=utf8 \ PYTHONPATH=":/okit/visualiser:/okit/okitweb:/okit" \ diff --git a/containers/docker/8-slim/docker-compose.yml b/containers/docker/8-slim/docker-compose.yml index ccbea0ebe..ae46f22aa 100644 --- a/containers/docker/8-slim/docker-compose.yml +++ b/containers/docker/8-slim/docker-compose.yml @@ -1,6 +1,6 @@ --- # file: docker-compose -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. version: '3.1' services: diff --git a/containers/docker/Dockerfile b/containers/docker/Dockerfile index 87f5fd2c5..1696cc91d 100644 --- a/containers/docker/Dockerfile +++ b/containers/docker/Dockerfile @@ -1,13 +1,13 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. FROM oraclelinux:7-slim LABEL "provider"="Oracle" \ "issues"="https://github.com/oracle/oci-designer-toolkit/issues" \ - "version"="0.16.0" \ + "version"="0.17.0" \ "description"="OKIT Web Server Container." \ - "copyright"="Copyright (c) 2020, Oracle and/or its affiliates." + "copyright"="Copyright (c) 2021, Oracle and/or its affiliates." SHELL ["/bin/bash", "-c"] ENV PYTHONIOENCODING=utf8 \ PYTHONPATH=":/okit/visualiser:/okit/okitweb:/okit" \ @@ -33,7 +33,6 @@ RUN yum install -y \ git \ python36 \ python3-pip \ - git \ # python36-pyyaml \ # python36-oci-sdk \ # rh-nginx114 \ @@ -42,6 +41,7 @@ RUN yum install -y \ && python3 -m pip install --upgrade pip \ # Install required python modules && pip3 install --no-cache-dir \ + authlib==0.15.3 \ flask==1.1.1 \ gitpython==3.1.11 \ git-url-parse==1.2.2 \ diff --git a/containers/docker/docker-compose.yml b/containers/docker/docker-compose.yml index 420c99f51..9f2cff5f8 100644 --- a/containers/docker/docker-compose.yml +++ b/containers/docker/docker-compose.yml @@ -1,6 +1,6 @@ --- # file: docker-compose -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. version: '3.1' services: diff --git a/containers/docker/nginx.conf b/containers/docker/nginx.conf index 9762178cc..d1f24dbdb 100644 --- a/containers/docker/nginx.conf +++ b/containers/docker/nginx.conf @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. # For more information on configuration, see: diff --git a/containers/docker/okit_nginx.conf b/containers/docker/okit_nginx.conf index b84f7e940..bdc88fb09 100644 --- a/containers/docker/okit_nginx.conf +++ b/containers/docker/okit_nginx.conf @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. server { diff --git a/containers/docker/run-server.sh b/containers/docker/run-server.sh index b35f2d301..d7d6a57d7 100755 --- a/containers/docker/run-server.sh +++ b/containers/docker/run-server.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. echo "*******************************************************************" diff --git a/containers/scripts/build-docker-image.sh b/containers/scripts/build-docker-image.sh index 4e2f76a57..0684de6f9 100755 --- a/containers/scripts/build-docker-image.sh +++ b/containers/scripts/build-docker-image.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. export ROOT_DIR=$(cd $(dirname $0)/../..; pwd) diff --git a/containers/scripts/start-okit-server.sh b/containers/scripts/start-okit-server.sh index ae24ac8fc..50b5dd783 100755 --- a/containers/scripts/start-okit-server.sh +++ b/containers/scripts/start-okit-server.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. export ROOT_DIR=$(cd $(dirname $0)/../..; pwd) diff --git a/containers/vagrant/Vagrantfile b/containers/vagrant/Vagrantfile index e54ce081c..33c47d0db 100644 --- a/containers/vagrant/Vagrantfile +++ b/containers/vagrant/Vagrantfile @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. # Vagrantfile API/syntax version. diff --git a/containers/vagrant/configure_firewall.sh b/containers/vagrant/configure_firewall.sh index e1d955108..9534be752 100644 --- a/containers/vagrant/configure_firewall.sh +++ b/containers/vagrant/configure_firewall.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. diff --git a/containers/vagrant/configure_software.sh b/containers/vagrant/configure_software.sh index 81172731a..e2e3bd29f 100644 --- a/containers/vagrant/configure_software.sh +++ b/containers/vagrant/configure_software.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. export PATH=/usr/local/bin:/usr/bin:${PATH} @@ -38,13 +38,16 @@ python3 -m pip install --upgrade pip==20.0.2 # Install required python modules pip3 install --no-cache-dir \ - flask==1.1.1 \ - gitpython==3.1.11 \ - gunicorn==20.0.4 \ - oci==2.22.0 \ - pandas==1.1.2 \ - python-magic==0.4.18 \ - pyyaml==5.3.1 \ - requests==2.24.0 \ - xlsxwriter==1.3.6 + authlib==0.15.3 \ + flask==1.1.1 \ + gitpython==3.1.11 \ + git-url-parse==1.2.2 \ + gunicorn==20.0.4 \ + oci==2.22.0 \ + openpyxl==3.0.5 \ + pandas==1.1.2 \ + python-magic==0.4.18 \ + pyyaml==5.3.1 \ + requests==2.24.0 \ + xlsxwriter==1.3.6 diff --git a/containers/vagrant/enable_flask_service.sh b/containers/vagrant/enable_flask_service.sh index 3f76ce3a4..e7f3b952d 100644 --- a/containers/vagrant/enable_flask_service.sh +++ b/containers/vagrant/enable_flask_service.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. source /etc/bashrc diff --git a/containers/vagrant/enable_gunicorn_service.sh b/containers/vagrant/enable_gunicorn_service.sh index 7fe30faf7..2940e5d6e 100644 --- a/containers/vagrant/enable_gunicorn_service.sh +++ b/containers/vagrant/enable_gunicorn_service.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. source /etc/bashrc diff --git a/containers/vagrant/enable_nginx_service.sh b/containers/vagrant/enable_nginx_service.sh index 797c5294e..6ce54260b 100644 --- a/containers/vagrant/enable_nginx_service.sh +++ b/containers/vagrant/enable_nginx_service.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. source /etc/bashrc diff --git a/containers/vagrant/nginx.conf b/containers/vagrant/nginx.conf index 62ee56ed9..76c09b701 100644 --- a/containers/vagrant/nginx.conf +++ b/containers/vagrant/nginx.conf @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. # For more information on configuration, see: diff --git a/documentation/Development.md b/documentation/Development.md index 224cf7a7b..251bcab1d 100644 --- a/documentation/Development.md +++ b/documentation/Development.md @@ -68,7 +68,7 @@ INFO: Writing File: ../visualiser/facade/ociBlockStorageVolume.py Following generation a model file will be created in the **okitweb/static/okit/model/js/artefacts** directory as shown below. ```javascript /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Block Storage Volume Javascript'); @@ -160,7 +160,7 @@ any reference to it on delete. This is done by adding the deleteChildren() funct Following the update the model JavaScript will be modified as below: ```javascript /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Block Storage Volume Javascript'); @@ -259,7 +259,7 @@ OkitJson.prototype.deleteBlockStorageVolume = function(id) { Following generation a view file will be created in the **okitweb/static/okit/view/js/artefacts** directory as shown below. ```javascript /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Block Storage Volume View Javascript'); @@ -367,7 +367,7 @@ Instance it is attached to) by creating the following functions: Following the update the model JavaScript will be modified as below: ```javascript /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Block Storage Volume View Javascript'); @@ -512,7 +512,7 @@ Following the update the model JavaScript will be modified as below: Following generation a property sheet HTML file will be created in the **okitweb/templates/okit/propertysheets** directory as shown below. ```jinja2 {% extends "okit/propertysheets/base_property_sheet.html" %} @@ -532,7 +532,7 @@ worked example we will need add the following fields: ```jinja2 {% extends "okit/propertysheets/base_property_sheet.html" %} @@ -566,7 +566,7 @@ Following generation a Python Facade file will be created in the **visualiser/fa ```python #!/usr/bin/python -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description @@ -628,7 +628,7 @@ to the correct name **self.client.list_volumes** which will result in the follow ```python #!/usr/bin/python -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description @@ -1009,5 +1009,5 @@ docker run -it --rm -p 80:80 --name okit --hostname okit \ -v ${OKIT_GITHUB}/skeletons:/okit/skeletons \ -v ${OKIT_GITHUB}/visualiser:/okit/visualiser \ -v ${OKIT_WORKSPACE}/log:/okit/log \ - -v ${OKIT_WORKSPACE}/dropdown.json:/okit/okitweb/static/okit/json/dropdown.json okit' + okit ``` diff --git a/okitweb/__init__.py b/okitweb/__init__.py index a2799443b..04af4fa44 100644 --- a/okitweb/__init__.py +++ b/okitweb/__init__.py @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description diff --git a/okitweb/okitImport.py b/okitweb/okitImport.py index 437a62cf8..03b166f23 100644 --- a/okitweb/okitImport.py +++ b/okitweb/okitImport.py @@ -20,7 +20,7 @@ from common.okitLogging import getLogger from parsers.okitHclJsonParser import OkitHclJsonParser from parsers.okitCceJsonParser import OkitCceJsonParser -from parsers.OkitCd3ExcelParser import OkitCd3ExcelParser +from parsers.okitCd3ExcelParser import OkitCd3ExcelParser # Configure logging logger = getLogger() diff --git a/okitweb/okitOci.py b/okitweb/okitOci.py index 8071ac505..8765c6445 100644 --- a/okitweb/okitOci.py +++ b/okitweb/okitOci.py @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description diff --git a/okitweb/okitPricing.py b/okitweb/okitPricing.py index 45af36819..78d839293 100644 --- a/okitweb/okitPricing.py +++ b/okitweb/okitPricing.py @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description diff --git a/okitweb/okitWebDesigner.py b/okitweb/okitWebDesigner.py index b279ad105..9ef1c1c66 100644 --- a/okitweb/okitWebDesigner.py +++ b/okitweb/okitWebDesigner.py @@ -1,5 +1,5 @@ -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """Provide Module Description diff --git a/okitweb/static/okit/css/okit_console.css b/okitweb/static/okit/css/okit_console.css index 434627319..26cb4b511 100644 --- a/okitweb/static/okit/css/okit_console.css +++ b/okitweb/static/okit/css/okit_console.css @@ -1,5 +1,5 @@ /* -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ @@ -607,6 +607,13 @@ li a.parent-item:hover { text-align: center; } +.okit-tbody-alternating-colours > .tr:nth-child(odd) { +} + +.okit-tbody-alternating-colours > .tr:nth-child(even) { + background-color: lightsteelblue; +} + .okit-properties-table { } diff --git a/okitweb/static/okit/css/okit_designer.css b/okitweb/static/okit/css/okit_designer.css index 993b61756..f445fdbbe 100644 --- a/okitweb/static/okit/css/okit_designer.css +++ b/okitweb/static/okit/css/okit_designer.css @@ -1,5 +1,5 @@ /* -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ @@ -158,6 +158,16 @@ color: #aeaeae; } +.okit-tab-contents { + display: block; + width: 100%; + margin: 2px; + overflow-x: auto; + white-space: nowrap; + flex-wrap: nowrap; + scrollbar-width: none; /* Firefox */ +} + .okit-tab:hover { color: black !important; } @@ -198,6 +208,14 @@ width: 87%; } +.okit-tabular-canvas { + display: block; + padding: 0; + margin: 0; + height: 100%; + width: 100%; + overflow: scroll; +} .okit-svg-canvas { display: block; padding: 0; diff --git a/okitweb/static/okit/js/okit.js b/okitweb/static/okit/js/okit.js index 2b134e12d..ae2520be8 100644 --- a/okitweb/static/okit/js/okit.js +++ b/okitweb/static/okit/js/okit.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT Javascript'); @@ -113,6 +113,14 @@ class OkitOCIData { getCpeDeviceShapes() { return this.cpe_device_shapes; } + getCpeDeviceShape(id) { + for (let shape of this.getCpeDeviceShapes()) { + if (shape.id === id) { + shape.display_name = `${shape.cpe_device_info.vendor} ${shape.cpe_device_info.platform_software_version}`; + return shape; + } + } + } getDBSystemShapes(family='') { if (family === '') { @@ -189,6 +197,13 @@ class OkitOCIData { return this.mysql_configurations.filter(function(dss) {return dss.shape_name === shape_name;}); } } + getMySQLConfiguration(id) { + for (let shape of this.getMySQLConfigurations()) { + if (shape.id === id) { + return shape; + } + } + } getMySQLShapes() { return this.mysql_shapes; @@ -231,6 +246,7 @@ class OkitSettings { this.name_prefix = 'okit-'; this.auto_save = false; this.show_ocids = false; + this.validate_markdown = true; this.load(); } @@ -316,6 +332,8 @@ class OkitSettings { this.addHighlightAssociations(tbody, autosave); // Display OCIDs this.addShowOcids(tbody, autosave); + // Validate Before Markdowns + this.addValidateMarkdown(tbody, autosave); // Display Label this.addDisplayLabel(tbody, autosave); // Tooltip Style @@ -546,6 +564,27 @@ class OkitSettings { .text('Display OCIDs'); } + addValidateMarkdown(tbody, autosave) { + let self = this; + let tr = tbody.append('div').attr('class', 'tr'); + tr.append('div').attr('class', 'td').text(''); + let td = tr.append('div').attr('class', 'td'); + td.append('input') + .attr('id', 'validate_markdown') + .attr('name', 'validate_markdown') + .attr('type', 'checkbox') + .property('checked', this.validate_markdown) + .on('change', function () { + if (autosave) { + self.validate_markdown = $('#validate_markdown').is(':checked'); + self.save(); + } + }); + td.append('label') + .attr('for', 'validate_markdown') + .text('Validate Before Markdown'); + } + addDisplayLabel(tbody, autosave) { // Display Label let self = this; diff --git a/okitweb/static/okit/js/okit_common.js b/okitweb/static/okit/js/okit_common.js index 99f6214dc..35d194147 100644 --- a/okitweb/static/okit/js/okit_common.js +++ b/okitweb/static/okit/js/okit_common.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT Common Javascript'); diff --git a/okitweb/static/okit/js/okit_console.js b/okitweb/static/okit/js/okit_console.js index cc630fa54..fa401df99 100644 --- a/okitweb/static/okit/js/okit_console.js +++ b/okitweb/static/okit/js/okit_console.js @@ -1,11 +1,11 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Console Javascript'); -const okitVersion = '0.16.0'; -const okitReleaseDate = '20th January 2021'; +const okitVersion = '0.17.0'; +const okitReleaseDate = '10th February 2021'; // Validation const validate_error_colour = "#ff4d4d"; const validate_warning_colour = "#ffd633"; diff --git a/okitweb/static/okit/js/okit_designer.js b/okitweb/static/okit/js/okit_designer.js index 87d6e2133..1c6a8a501 100644 --- a/okitweb/static/okit/js/okit_designer.js +++ b/okitweb/static/okit/js/okit_designer.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer Javascript'); @@ -33,6 +33,7 @@ let right_drag_bar_start_x = 0; let ociRegions = []; function resetDesigner() { + handleSwitchToCompartmentView(); newModel(); newDesignerView(); regionOkitJson = {}; diff --git a/okitweb/static/okit/js/okit_designer_drag_drop.js b/okitweb/static/okit/js/okit_designer_drag_drop.js index 1e032bc91..99e0a8260 100644 --- a/okitweb/static/okit/js/okit_designer_drag_drop.js +++ b/okitweb/static/okit/js/okit_designer_drag_drop.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Drag & Drop Javascript'); diff --git a/okitweb/static/okit/js/okit_designer_generation.js b/okitweb/static/okit/js/okit_designer_generation.js index b8bdffef6..678e44519 100644 --- a/okitweb/static/okit/js/okit_designer_generation.js +++ b/okitweb/static/okit/js/okit_designer_generation.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Generation Javascript'); @@ -548,7 +548,7 @@ function handleExportToMarkdownGit(e) { okitJsonModel.validate(generateMarkdown); } function generateMarkdown(results) { - if (results.valid) { + if (results.valid || !okitSettings.validate_markdown) { let requestJson = JSON.clone(okitJsonModel); requestJson.use_variables = okitSettings.is_variables; setExportDisplay(); diff --git a/okitweb/static/okit/js/okit_designer_properties.js b/okitweb/static/okit/js/okit_designer_properties.js index 9c37594be..4a8b3cc59 100644 --- a/okitweb/static/okit/js/okit_designer_properties.js +++ b/okitweb/static/okit/js/okit_designer_properties.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Properties Javascript'); @@ -89,13 +89,13 @@ function loadPropertiesSheet(json_element) { $(jqId(key)).find("input:checkbox").each(function() { if ($(this).prop('checked')) {json_element[key].push($(this).val());} }); - redrawSVGCanvas(); + redrawSVGCanvas(true); }); if (val.includes($(this).val())) {$(this).prop("checked", true);} }); } else if ($(jqId(key)).is("select")) { // Select console.info(key + ' is select with value ' + val); - $(jqId(key)).on('change', () => {json_element[key] = $(jqId(key)).val() ? $(jqId(key)).val() : ''; $(jqId(key)).removeClass('okit-warning'); redrawSVGCanvas();}); + $(jqId(key)).on('change', () => {json_element[key] = $(jqId(key)).val() ? $(jqId(key)).val() : ''; $(jqId(key)).removeClass('okit-warning'); redrawSVGCanvas(true);}); $(jqId(key)).val(val); if (!$(jqId(key)).val() && !Array.isArray(val) && String(val).trim() !== '') { console.warn(`Value ${val} not in select list ${key}`); diff --git a/okitweb/static/okit/js/okit_designer_ready.js b/okitweb/static/okit/js/okit_designer_ready.js index 7fd9a61bd..1b3e6503a 100644 --- a/okitweb/static/okit/js/okit_designer_ready.js +++ b/okitweb/static/okit/js/okit_designer_ready.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer Ready Javascript'); @@ -7,12 +7,13 @@ console.info('Loaded Designer Ready Javascript'); /* ** Define variables for Artefact classes */ -let okitJsonModel = new OkitJson(); +//let okitJsonModel = new OkitJson(); let okitOciConfig = new OkitOCIConfig(); let okitOciData = new OkitOCIData(); let okitSettings = new OkitSettings(); let okitGitConfig = new OkitGITConfig(); let okitAutoSave = undefined; +//let okitTabularView = new OkitTabularJsonView(); /* ** Ready function initiated on page load. */ @@ -26,6 +27,7 @@ $(document).ready(function() { okitGitConfig = new OkitGITConfig(); okitJsonModel = new OkitJson(); okitJsonView = new OkitDesignerJsonView(okitJsonModel); + okitTabularView = new OkitTabularJsonView(okitJsonModel); console.info(okitJsonView); /* ** Configure Auto Save @@ -101,7 +103,7 @@ $(document).ready(function() { // Right Bar & Panels // Description d3.select(d3Id('console_right_bar')).append('label') - .attr('id', 'toggle_properties_button') + .attr('id', 'toggle_description_button') .attr('class', 'okit-pointer-cursor') .on('click', function () { let open = $(this).hasClass('okit-bar-panel-displayed'); diff --git a/okitweb/static/okit/js/okit_designer_svg.js b/okitweb/static/okit/js/okit_designer_svg.js index 39f023c16..0ef314732 100644 --- a/okitweb/static/okit/js/okit_designer_svg.js +++ b/okitweb/static/okit/js/okit_designer_svg.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded SVG Javascript'); diff --git a/okitweb/static/okit/js/okit_import.js b/okitweb/static/okit/js/okit_import.js index 64c9729ce..8ab48c37b 100644 --- a/okitweb/static/okit/js/okit_import.js +++ b/okitweb/static/okit/js/okit_import.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Import Javascript'); diff --git a/okitweb/static/okit/js/okit_mode.js b/okitweb/static/okit/js/okit_mode.js index e216c95cf..5a051310b 100644 --- a/okitweb/static/okit/js/okit_mode.js +++ b/okitweb/static/okit/js/okit_mode.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT Mode Javascript'); diff --git a/okitweb/static/okit/js/okit_view_layout.js b/okitweb/static/okit/js/okit_view_layout.js new file mode 100644 index 000000000..4caf91aba --- /dev/null +++ b/okitweb/static/okit/js/okit_view_layout.js @@ -0,0 +1,34 @@ +/* +** Copyright (c) 2021, Oracle and/or its affiliates. +** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. +*/ +console.info('Loaded View Layout Javascript'); + +function hideAllViewDivs() { + $("#canvas-div").addClass('hidden'); + $("#tabular-div").addClass('hidden'); + $("#network-div").addClass('hidden'); + $("#security-div").addClass('hidden'); +} + +function handleSwitchToCompartmentView(e) { + hideAllViewDivs(); + $("#canvas-div").removeClass('hidden'); +} + +function handleSwitchToTabularView(e) { + hideAllViewDivs(); + $("#tabular-div").removeClass('hidden'); + okitTabularView = new OkitTabularJsonView(okitJsonModel, okitOciData); + okitTabularView.draw(); +} + +function handleSwitchToNetworkView(e) { + hideAllViewDivs(); + $("#network-div").removeClass('hidden'); +} + +function handleSwitchToSecurityView(e) { + hideAllViewDivs(); + $("#security-div").removeClass('hidden'); +} diff --git a/okitweb/static/okit/json/dropdown.json b/okitweb/static/okit/json/dropdown.json index 611035f96..6a432ec5a 100644 --- a/okitweb/static/okit/json/dropdown.json +++ b/okitweb/static/okit/json/dropdown.json @@ -147,9 +147,9 @@ { "available_core_count": 48, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 74, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 720, "core_count_increment": 2, "maximum_node_count": 2, "min_core_count_per_node": 0, @@ -165,9 +165,9 @@ { "available_core_count": 336, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 336, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 5760, "core_count_increment": 8, "maximum_node_count": 8, "min_core_count_per_node": 44, @@ -183,9 +183,9 @@ { "available_core_count": 368, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 424, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 5760, "core_count_increment": 8, "maximum_node_count": 8, "min_core_count_per_node": 0, @@ -201,9 +201,9 @@ { "available_core_count": 400, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 598, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 5760, "core_count_increment": 8, "maximum_node_count": 8, "min_core_count_per_node": 0, @@ -219,9 +219,9 @@ { "available_core_count": 168, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 168, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 2880, "core_count_increment": 4, "maximum_node_count": 4, "min_core_count_per_node": 22, @@ -237,9 +237,9 @@ { "available_core_count": 184, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 212, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 2880, "core_count_increment": 4, "maximum_node_count": 4, "min_core_count_per_node": 0, @@ -255,9 +255,9 @@ { "available_core_count": 200, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 299, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 2880, "core_count_increment": 4, "maximum_node_count": 4, "min_core_count_per_node": 0, @@ -273,9 +273,9 @@ { "available_core_count": 84, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 84, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 1440, "core_count_increment": 2, "maximum_node_count": 2, "min_core_count_per_node": 11, @@ -291,9 +291,9 @@ { "available_core_count": 92, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 106, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 1440, "core_count_increment": 2, "maximum_node_count": 2, "min_core_count_per_node": 0, @@ -309,9 +309,9 @@ { "available_core_count": 100, "available_core_count_per_node": null, - "available_data_storage_in_t_bs": null, + "available_data_storage_in_t_bs": 149, "available_db_node_storage_in_g_bs": null, - "available_memory_in_gbs": null, + "available_memory_in_gbs": 1440, "core_count_increment": 2, "maximum_node_count": 2, "min_core_count_per_node": 0, @@ -1211,6 +1211,40 @@ } ], "images": [ + { + "agent_features": null, + "base_image_id": null, + "compartment_id": null, + "create_image_allowed": true, + "defined_tags": {}, + "display_name": "Canonical-Ubuntu-16.04-Gen2-GPU-2021.01.26-0", + "freeform_tags": {}, + "id": "ocid1.image.oc1.phx.aaaaaaaamnjllb6qtmqo25knnwqhdgu2powizexveh3w5dp5lyifvftihl7q", + "launch_mode": "NATIVE", + "launch_options": { + "boot_volume_type": "PARAVIRTUALIZED", + "firmware": "UEFI_64", + "is_consistent_volume_naming_enabled": true, + "is_pv_encryption_in_transit_enabled": true, + "network_type": "PARAVIRTUALIZED", + "remote_data_volume_type": "PARAVIRTUALIZED" + }, + "lifecycle_state": "AVAILABLE", + "operating_system": "Canonical Ubuntu", + "operating_system_version": "16.04", + "shapes": [ + "VM.GPU2.1", + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", + "BM.GPU4.8", + "BM.GPU2.2", + "BM.GPU3.8" + ], + "size_in_mbs": 47694, + "sort_key": "Canonical Ubuntu 16.04", + "time_created": "2021-01-30T00:09:03.242000+00:00" + }, { "agent_features": null, "base_image_id": null, @@ -1285,9 +1319,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Canonical-Ubuntu-16.04-Gen2-GPU-2020.10.17-0", + "display_name": "Canonical-Ubuntu-16.04-2021.01.25-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaakrpo525cbdlmxnb6fv4lzrvtuf5saiztg6ep457qff2uxuijpbva", + "id": "ocid1.image.oc1.phx.aaaaaaaahuntkbemfd76qqabj3onaaae37k7hmmuskimrzcvcfsmarz6jznq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -1301,17 +1335,55 @@ "operating_system": "Canonical Ubuntu", "operating_system_version": "16.04", "shapes": [ + "VM.DenseIO1.16", + "VM.DenseIO1.4", + "VM.DenseIO1.8", + "VM.DenseIO2.16", + "VM.DenseIO2.24", + "VM.DenseIO2.8", "VM.GPU2.1", "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", + "VM.Standard.B1.1", + "VM.Standard.B1.16", + "VM.Standard.B1.2", + "VM.Standard.B1.4", + "VM.Standard.B1.8", + "VM.Standard.E2.1", + "VM.Standard.E2.1.Micro", + "VM.Standard.E2.2", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard.E3.Flex", + "VM.Standard1.1", + "VM.Standard1.16", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8", + "BM.Standard.E2.64", + "BM.Standard.E3.128", "BM.GPU4.8", + "BM.Standard1.36", + "BM.HighIO1.36", + "BM.DenseIO1.36", + "x5-2.36.512.nvme-6.4-Internal", + "BM.Standard.B1.44", "BM.GPU2.2", - "BM.GPU3.8" + "BM.HPC2.36", + "BM.Standard2.52", + "BM.GPU3.8", + "BM.DenseIO2.52" ], "size_in_mbs": 47694, "sort_key": "Canonical Ubuntu 16.04", - "time_created": "2020-10-17T06:10:47.756000+00:00" + "time_created": "2021-01-30T00:09:50.061000+00:00" }, { "agent_features": null, @@ -1463,9 +1535,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Canonical-Ubuntu-16.04-2020.10.14-0", + "display_name": "Canonical-Ubuntu-16.04-Minimal-2021.01.19-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaaylgfzjbb5bl7ugranvp6jk3d2niqwjs5dqu3ftesmihaqlp3fduq", + "id": "ocid1.image.oc1.phx.aaaaaaaaev2og2iedtda77mjqiklsnfhapwg4scbhfvdsk2n7xivynmoeipq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -1477,7 +1549,7 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "Canonical Ubuntu", - "operating_system_version": "16.04", + "operating_system_version": "16.04 Minimal", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -1526,8 +1598,8 @@ "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "Canonical Ubuntu 16.04", - "time_created": "2020-10-17T01:10:16.621000+00:00" + "sort_key": "Canonical Ubuntu 16.04 Minimal", + "time_created": "2021-02-01T11:07:34.997000+00:00" }, { "agent_features": null, @@ -1679,9 +1751,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Canonical-Ubuntu-16.04-Minimal-2020.10.14-0", + "display_name": "Canonical-Ubuntu-18.04-2021.01.25-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaaulhs5moiigqei3xtkuzpel7irbte2iao2d6avilnx2sig2xqjvla", + "id": "ocid1.image.oc1.phx.aaaaaaaa3wktpwwvpwlf25nlssxbqxaa3k3gao2j2lph7nfft434pppvmvlq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -1693,7 +1765,7 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "Canonical Ubuntu", - "operating_system_version": "16.04 Minimal", + "operating_system_version": "18.04", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -1742,8 +1814,8 @@ "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "Canonical Ubuntu 16.04 Minimal", - "time_created": "2020-10-17T01:09:59.474000+00:00" + "sort_key": "Canonical Ubuntu 18.04", + "time_created": "2021-02-01T07:30:36.017000+00:00" }, { "agent_features": null, @@ -1895,9 +1967,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Canonical-Ubuntu-18.04-2020.10.16-0", + "display_name": "Canonical-Ubuntu-18.04-Minimal-2021.01.26-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaaqpfr4ttra3tngnyr7blmpwvzuqa753mjxjltx2a65evrtp5wj3eq", + "id": "ocid1.image.oc1.phx.aaaaaaaay5azy4q7hzolsgfkuor3vv3popf33vpism7pzxdhlik7lzsvsq3a", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -1909,7 +1981,7 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "Canonical Ubuntu", - "operating_system_version": "18.04", + "operating_system_version": "18.04 Minimal", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -1958,8 +2030,8 @@ "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "Canonical Ubuntu 18.04", - "time_created": "2020-10-17T02:21:19.931000+00:00" + "sort_key": "Canonical Ubuntu 18.04 Minimal", + "time_created": "2021-02-01T07:33:22.506000+00:00" }, { "agent_features": null, @@ -2111,9 +2183,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Canonical-Ubuntu-18.04-Minimal-2020.10.15-0", + "display_name": "Canonical-Ubuntu-20.04-2021.01.25-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaaosuvccvo2rcps2gdcsc26yt4z2d5qhbjrfrs3wst444y75pow2fa", + "id": "ocid1.image.oc1.phx.aaaaaaaavhykwhe4bhsoa25kv2sbjixy3a3kqud33wvfjnim7yuhbvwbb4gq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -2125,7 +2197,7 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "Canonical Ubuntu", - "operating_system_version": "18.04 Minimal", + "operating_system_version": "20.04", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -2174,8 +2246,8 @@ "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "Canonical Ubuntu 18.04 Minimal", - "time_created": "2020-10-17T02:44:05.737000+00:00" + "sort_key": "Canonical Ubuntu 20.04", + "time_created": "2021-01-30T00:06:56.770000+00:00" }, { "agent_features": null, @@ -2327,9 +2399,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Canonical-Ubuntu-20.04-2020.10.14-0", + "display_name": "Canonical-Ubuntu-20.04-Minimal-2021.01.19-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaah454432fg7zf5h2ufqxvfhzqokkaufgf5znua36p4puwnog7akcq", + "id": "ocid1.image.oc1.phx.aaaaaaaacctmcjjajc7xawyz3uuot4ei7q2tqw4yipbh5okosppc5v3yxava", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -2341,7 +2413,7 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "Canonical Ubuntu", - "operating_system_version": "20.04", + "operating_system_version": "20.04 Minimal", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -2390,8 +2462,8 @@ "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "Canonical Ubuntu 20.04", - "time_created": "2020-10-17T03:32:47.380000+00:00" + "sort_key": "Canonical Ubuntu 20.04 Minimal", + "time_created": "2021-01-30T00:03:15.081000+00:00" }, { "agent_features": null, @@ -2543,9 +2615,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Canonical-Ubuntu-20.04-Minimal-2020.10.14-0", + "display_name": "CentOS-6.10-2020.11.30-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaaky4luenz7yvuzz26zipiun6dzbkm7hkon7tppynpm2l6p32aen7a", + "id": "ocid1.image.oc1.phx.aaaaaaaagomxh6kz5w2qyowz4bovjwcplqwemlvx6xu67slgq4bd7d7sdnoq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -2556,8 +2628,8 @@ "remote_data_volume_type": "PARAVIRTUALIZED" }, "lifecycle_state": "AVAILABLE", - "operating_system": "Canonical Ubuntu", - "operating_system_version": "20.04 Minimal", + "operating_system": "CentOS", + "operating_system_version": "6.10", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -2565,21 +2637,11 @@ "VM.DenseIO2.16", "VM.DenseIO2.24", "VM.DenseIO2.8", - "VM.GPU2.1", - "VM.GPU3.1", - "VM.GPU3.2", - "VM.GPU3.4", - "VM.Standard.B1.1", - "VM.Standard.B1.16", - "VM.Standard.B1.2", - "VM.Standard.B1.4", - "VM.Standard.B1.8", + "VM.Standard.A1.Flex", "VM.Standard.E2.1", - "VM.Standard.E2.1.Micro", "VM.Standard.E2.2", "VM.Standard.E2.4", "VM.Standard.E2.8", - "VM.Standard.E3.Flex", "VM.Standard1.1", "VM.Standard1.16", "VM.Standard1.2", @@ -2592,13 +2654,9 @@ "VM.Standard2.4", "VM.Standard2.8", "BM.Standard.E2.64", - "BM.Standard.E3.128", - "BM.GPU4.8", "BM.Standard1.36", "BM.HighIO1.36", "BM.DenseIO1.36", - "x5-2.36.512.nvme-6.4-Internal", - "BM.Standard.B1.44", "BM.GPU2.2", "BM.HPC2.36", "BM.Standard2.52", @@ -2606,8 +2664,8 @@ "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "Canonical Ubuntu 20.04 Minimal", - "time_created": "2020-10-17T03:34:27.562000+00:00" + "sort_key": "CentOS 6.10", + "time_created": "2020-12-01T00:17:07.381000+00:00" }, { "agent_features": null, @@ -2615,9 +2673,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "CentOS-6.10-2020.11.30-0", + "display_name": "CentOS-6.10-2020.10.21-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaagomxh6kz5w2qyowz4bovjwcplqwemlvx6xu67slgq4bd7d7sdnoq", + "id": "ocid1.image.oc1.phx.aaaaaaaabahzlltad2dwfgwbvyp2xju4efyuydq23gg3uifakab7umpyyjba", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -2637,7 +2695,6 @@ "VM.DenseIO2.16", "VM.DenseIO2.24", "VM.DenseIO2.8", - "VM.Standard.A1.Flex", "VM.Standard.E2.1", "VM.Standard.E2.2", "VM.Standard.E2.4", @@ -2665,7 +2722,7 @@ ], "size_in_mbs": 47694, "sort_key": "CentOS 6.10", - "time_created": "2020-12-01T00:17:07.381000+00:00" + "time_created": "2020-10-27T18:29:41.501000+00:00" }, { "agent_features": null, @@ -2673,9 +2730,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "CentOS-6.10-2020.10.21-0", + "display_name": "CentOS-6.10-2020.09.21-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaabahzlltad2dwfgwbvyp2xju4efyuydq23gg3uifakab7umpyyjba", + "id": "ocid1.image.oc1.phx.aaaaaaaa4krne6bs2onsnjbyo7vo2fa2wt4cp4jpra2fjbprumpmcjuhqwuq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -2722,7 +2779,7 @@ ], "size_in_mbs": 47694, "sort_key": "CentOS 6.10", - "time_created": "2020-10-27T18:29:41.501000+00:00" + "time_created": "2020-09-30T05:14:13.700000+00:00" }, { "agent_features": null, @@ -2730,9 +2787,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "CentOS-6.10-2020.09.21-0", + "display_name": "CentOS-7-2021.01.14-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaa4krne6bs2onsnjbyo7vo2fa2wt4cp4jpra2fjbprumpmcjuhqwuq", + "id": "ocid1.image.oc1.phx.aaaaaaaa4asphkm3spt4uuawwovhktrb4x6minpoer3gt6kjwvfre2vi6ohq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -2744,7 +2801,7 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "CentOS", - "operating_system_version": "6.10", + "operating_system_version": "7", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -2752,10 +2809,17 @@ "VM.DenseIO2.16", "VM.DenseIO2.24", "VM.DenseIO2.8", + "VM.GPU2.1", + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", "VM.Standard.E2.1", + "VM.Standard.E2.1.Micro", "VM.Standard.E2.2", "VM.Standard.E2.4", "VM.Standard.E2.8", + "VM.Standard.E3.Flex", + "VM.Standard.E4.Flex", "VM.Standard1.1", "VM.Standard1.16", "VM.Standard1.2", @@ -2768,6 +2832,8 @@ "VM.Standard2.4", "VM.Standard2.8", "BM.Standard.E2.64", + "BM.Standard.E3.128", + "BM.GPU4.8", "BM.Standard1.36", "BM.HighIO1.36", "BM.DenseIO1.36", @@ -2778,8 +2844,8 @@ "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "CentOS 6.10", - "time_created": "2020-09-30T05:14:13.700000+00:00" + "sort_key": "CentOS 7", + "time_created": "2021-01-15T17:50:02.815000+00:00" }, { "agent_features": null, @@ -2840,6 +2906,7 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", + "BM.DenseIO2.52", "BM.DenseIO2.52" ], "size_in_mbs": 47694, @@ -2918,9 +2985,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "CentOS-7-2020.10.21-0", + "display_name": "CentOS-8-2021.01.14-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaafaixos2vp4v3mukoqsxmmof52gpbh63yvnegg27g5osoyy77auqa", + "id": "ocid1.image.oc1.phx.aaaaaaaa2o6pedsahmakjfcrzy3yyh2ju4zuuusxzgwdnr7pozqeqb6fp3jq", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -2932,7 +2999,7 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "CentOS", - "operating_system_version": "7", + "operating_system_version": "8", "shapes": [ "VM.DenseIO1.16", "VM.DenseIO1.4", @@ -2950,6 +3017,7 @@ "VM.Standard.E2.4", "VM.Standard.E2.8", "VM.Standard.E3.Flex", + "VM.Standard.E4.Flex", "VM.Standard1.1", "VM.Standard1.16", "VM.Standard1.2", @@ -2971,11 +3039,15 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", + "BM.DenseIO2.52", + "BM.HPC2.36", + "BM.Standard2.52", + "BM.GPU3.8", "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "CentOS 7", - "time_created": "2020-10-27T18:33:00.631000+00:00" + "sort_key": "CentOS 8", + "time_created": "2021-01-15T17:52:15.583000+00:00" }, { "agent_features": null, @@ -3090,6 +3162,7 @@ "VM.Standard.E2.4", "VM.Standard.E2.8", "VM.Standard.E3.Flex", + "VM.Standard.E4.Flex", "VM.Standard1.1", "VM.Standard1.16", "VM.Standard1.2", @@ -3181,6 +3254,7 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", + "BM.DenseIO2.52", "BM.DenseIO2.52" ], "size_in_mbs": 47694, @@ -3459,6 +3533,9 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", + "BM.DenseIO2.52", + "BM.Standard2.52", + "BM.GPU3.8", "BM.DenseIO2.52" ], "size_in_mbs": 47694, @@ -3529,8 +3606,8 @@ "BM.Standard2.52", "BM.GPU3.8", "BM.DenseIO2.52", - "BM.Standard2.52", "BM.GPU3.8", + "BM.DenseIO2.52", "BM.DenseIO2.52" ], "size_in_mbs": 47694, @@ -3737,6 +3814,7 @@ "VM.Standard2.8", "BM.Standard.E2.64", "BM.Standard.E3.128", + "BM.GPU4.8", "BM.Standard1.36", "BM.HighIO1.36", "BM.DenseIO1.36", @@ -3746,7 +3824,6 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", - "BM.DenseIO2.52", "BM.DenseIO2.52" ], "size_in_mbs": 47694, @@ -3963,6 +4040,7 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", + "BM.DenseIO2.52", "BM.DenseIO2.52" ], "size_in_mbs": 47694, @@ -3975,9 +4053,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Oracle-Linux-7.9-2020.11.10-1", + "display_name": "Oracle-Linux-7.9-2020.12.16-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaaxdnx3den32vwplngpeu44zakw7lxup7vcdd3jmke4pfleaug3m6q", + "id": "ocid1.image.oc1.phx.aaaaaaaaykn4jrvc7z742odk6c5ilyzoijju6zzvtm2nn5w7i6pwqwnub74a", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -4001,7 +4079,6 @@ "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", - "VM.Standard.A1.Flex", "VM.Standard.B1.1", "VM.Standard.B1.16", "VM.Standard.B1.2", @@ -4040,7 +4117,7 @@ ], "size_in_mbs": 47694, "sort_key": "Oracle Linux 7.9", - "time_created": "2020-11-11T06:17:35.790000+00:00" + "time_created": "2020-12-16T20:47:12.898000+00:00" }, { "agent_features": null, @@ -4048,9 +4125,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Oracle-Linux-7.9-2020.10.26-0", + "display_name": "Oracle-Linux-7.9-2020.11.10-1", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaacirjuulpw2vbdiogz3jtcw3cdd3u5iuangemxq5f5ajfox3aplxa", + "id": "ocid1.image.oc1.phx.aaaaaaaaxdnx3den32vwplngpeu44zakw7lxup7vcdd3jmke4pfleaug3m6q", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -4074,6 +4151,7 @@ "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", + "VM.Standard.A1.Flex", "VM.Standard.B1.1", "VM.Standard.B1.16", "VM.Standard.B1.2", @@ -4112,7 +4190,7 @@ ], "size_in_mbs": 47694, "sort_key": "Oracle Linux 7.9", - "time_created": "2020-10-27T06:35:40.075000+00:00" + "time_created": "2020-11-11T06:17:35.790000+00:00" }, { "agent_features": null, @@ -4120,9 +4198,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Oracle-Linux-8.3-Gen2-GPU-2021.01.12-0", + "display_name": "Oracle-Linux-7.9-2020.10.26-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaa7zfitddebg2o6rfwqtlc7g7vpkikole4ltif6cq45rwbdvvxg2va", + "id": "ocid1.image.oc1.phx.aaaaaaaacirjuulpw2vbdiogz3jtcw3cdd3u5iuangemxq5f5ajfox3aplxa", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -4134,18 +4212,18 @@ }, "lifecycle_state": "AVAILABLE", "operating_system": "Oracle Linux", - "operating_system_version": "8", + "operating_system_version": "7.9", "shapes": [ + "VM.DenseIO1.16", + "VM.DenseIO1.4", + "VM.DenseIO1.8", + "VM.DenseIO2.16", + "VM.DenseIO2.24", + "VM.DenseIO2.8", "VM.GPU2.1", "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", - "BM.GPU4.8", - "BM.GPU2.2", - "BM.GPU3.8", - "VM.GPU3.1", - "VM.GPU3.2", - "VM.GPU3.4", "VM.Standard.B1.1", "VM.Standard.B1.16", "VM.Standard.B1.2", @@ -4170,6 +4248,7 @@ "VM.Standard2.8", "BM.Standard.E2.64", "BM.Standard.E3.128", + "BM.GPU4.8", "BM.Standard1.36", "BM.HighIO1.36", "BM.DenseIO1.36", @@ -4179,12 +4258,11 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", - "BM.DenseIO2.52", "BM.DenseIO2.52" ], "size_in_mbs": 47694, - "sort_key": "Oracle Linux 8", - "time_created": "2021-01-11T19:05:36.782000+00:00" + "sort_key": "Oracle Linux 7.9", + "time_created": "2020-10-27T06:35:40.075000+00:00" }, { "agent_features": null, @@ -4192,9 +4270,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Oracle-Linux-8.3-2021.01.12-0", + "display_name": "Oracle-Linux-8.3-Gen2-GPU-2021.01.12-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaatgj6aodlwvyrwlmd6pjrfk3ccr4fv23mw56l3gwsy6cnze56d4ja", + "id": "ocid1.image.oc1.phx.aaaaaaaa7zfitddebg2o6rfwqtlc7g7vpkikole4ltif6cq45rwbdvvxg2va", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -4208,16 +4286,16 @@ "operating_system": "Oracle Linux", "operating_system_version": "8", "shapes": [ - "VM.DenseIO1.16", - "VM.DenseIO1.4", - "VM.DenseIO1.8", - "VM.DenseIO2.16", - "VM.DenseIO2.24", - "VM.DenseIO2.8", "VM.GPU2.1", "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", + "BM.GPU4.8", + "BM.GPU2.2", + "BM.GPU3.8", + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", "VM.Standard.B1.1", "VM.Standard.B1.16", "VM.Standard.B1.2", @@ -4255,7 +4333,7 @@ ], "size_in_mbs": 47694, "sort_key": "Oracle Linux 8", - "time_created": "2021-01-11T19:05:56.733000+00:00" + "time_created": "2021-01-11T19:05:36.782000+00:00" }, { "agent_features": null, @@ -4263,9 +4341,9 @@ "compartment_id": null, "create_image_allowed": true, "defined_tags": {}, - "display_name": "Oracle-Linux-8.3-2020.12.17-0", + "display_name": "Oracle-Linux-8.3-2021.01.12-0", "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaachy5qla6fy7pmkxf44r7ixoz6qybnkv7zsd3psxahihvbc54ahea", + "id": "ocid1.image.oc1.phx.aaaaaaaatgj6aodlwvyrwlmd6pjrfk3ccr4fv23mw56l3gwsy6cnze56d4ja", "launch_mode": "NATIVE", "launch_options": { "boot_volume_type": "PARAVIRTUALIZED", @@ -4326,7 +4404,78 @@ ], "size_in_mbs": 47694, "sort_key": "Oracle Linux 8", - "time_created": "2020-12-20T20:30:36.361000+00:00" + "time_created": "2021-01-11T19:05:56.733000+00:00" + }, + { + "agent_features": null, + "base_image_id": null, + "compartment_id": null, + "create_image_allowed": true, + "defined_tags": {}, + "display_name": "Oracle-Linux-8.3-2020.12.17-0", + "freeform_tags": {}, + "id": "ocid1.image.oc1.phx.aaaaaaaachy5qla6fy7pmkxf44r7ixoz6qybnkv7zsd3psxahihvbc54ahea", + "launch_mode": "NATIVE", + "launch_options": { + "boot_volume_type": "PARAVIRTUALIZED", + "firmware": "UEFI_64", + "is_consistent_volume_naming_enabled": true, + "is_pv_encryption_in_transit_enabled": true, + "network_type": "PARAVIRTUALIZED", + "remote_data_volume_type": "PARAVIRTUALIZED" + }, + "lifecycle_state": "AVAILABLE", + "operating_system": "Oracle Linux", + "operating_system_version": "8", + "shapes": [ + "VM.DenseIO1.16", + "VM.DenseIO1.4", + "VM.DenseIO1.8", + "VM.DenseIO2.16", + "VM.DenseIO2.24", + "VM.DenseIO2.8", + "VM.GPU2.1", + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard.B1.1", + "VM.Standard.B1.16", + "VM.Standard.B1.2", + "VM.Standard.B1.4", + "VM.Standard.B1.8", + "VM.Standard.E2.1", + "VM.Standard.E2.1.Micro", + "VM.Standard.E2.2", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard.E3.Flex", + "VM.Standard1.1", + "VM.Standard1.16", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8", + "BM.Standard.E2.64", + "BM.Standard.E3.128", + "BM.Standard1.36", + "BM.HighIO1.36", + "BM.DenseIO1.36", + "x5-2.36.512.nvme-6.4-Internal", + "BM.Standard.B1.44", + "BM.GPU2.2", + "BM.HPC2.36", + "BM.Standard2.52", + "BM.GPU3.8", + "BM.DenseIO2.52" + ], + "size_in_mbs": 47694, + "sort_key": "Oracle Linux 8", + "time_created": "2020-12-20T20:30:36.361000+00:00" }, { "agent_features": null, @@ -4356,7 +4505,44 @@ "VM.GPU3.4", "BM.GPU4.8", "BM.GPU2.2", - "BM.GPU3.8" + "BM.GPU3.8", + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard.B1.1", + "VM.Standard.B1.16", + "VM.Standard.B1.2", + "VM.Standard.B1.4", + "VM.Standard.B1.8", + "VM.Standard.E2.1", + "VM.Standard.E2.1.Micro", + "VM.Standard.E2.2", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard.E3.Flex", + "VM.Standard1.1", + "VM.Standard1.16", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8", + "BM.Standard.E2.64", + "BM.Standard.E3.128", + "BM.Standard1.36", + "BM.HighIO1.36", + "BM.DenseIO1.36", + "x5-2.36.512.nvme-6.4-Internal", + "BM.Standard.B1.44", + "BM.GPU2.2", + "BM.HPC2.36", + "BM.Standard2.52", + "BM.GPU3.8", + "BM.DenseIO2.52" ], "size_in_mbs": 47694, "sort_key": "Oracle Linux 8", @@ -4390,7 +4576,44 @@ "VM.GPU3.4", "BM.GPU4.8", "BM.GPU2.2", - "BM.GPU3.8" + "BM.GPU3.8", + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard.B1.1", + "VM.Standard.B1.16", + "VM.Standard.B1.2", + "VM.Standard.B1.4", + "VM.Standard.B1.8", + "VM.Standard.E2.1", + "VM.Standard.E2.1.Micro", + "VM.Standard.E2.2", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard.E3.Flex", + "VM.Standard1.1", + "VM.Standard1.16", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8", + "BM.Standard.E2.64", + "BM.Standard.E3.128", + "BM.Standard1.36", + "BM.HighIO1.36", + "BM.DenseIO1.36", + "x5-2.36.512.nvme-6.4-Internal", + "BM.Standard.B1.44", + "BM.GPU2.2", + "BM.HPC2.36", + "BM.Standard2.52", + "BM.GPU3.8", + "BM.DenseIO2.52" ], "size_in_mbs": 47694, "sort_key": "Oracle Linux 8", @@ -4593,8 +4816,9 @@ "operating_system_version": "Server 2012 R2 Datacenter", "shapes": [ "BM.Standard.E2.64", - "BM.HPC2.36", + "BM.DenseIO2.52", "BM.Standard2.52", + "BM.GPU3.8", "BM.GPU3.8" ], "size_in_mbs": 262144, @@ -4624,9 +4848,8 @@ "operating_system_version": "Server 2012 R2 Datacenter", "shapes": [ "BM.DenseIO2.52", - "BM.HPC2.36", - "BM.Standard2.52", - "BM.GPU3.8", + "BM.HighIO1.36", + "BM.DenseIO1.36", "BM.GPU3.8" ], "size_in_mbs": 262144, @@ -4659,7 +4882,7 @@ "BM.DenseIO2.52", "BM.Standard2.52", "BM.GPU3.8", - "BM.GPU3.8" + "VM.Standard.E3.Flex" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Datacenter", @@ -4688,8 +4911,9 @@ "operating_system_version": "Server 2012 R2 Datacenter", "shapes": [ "BM.DenseIO2.52", - "BM.HighIO1.36", - "BM.DenseIO1.36", + "BM.GPU2.2", + "BM.HPC2.36", + "BM.Standard2.52", "BM.GPU3.8" ], "size_in_mbs": 262144, @@ -4754,7 +4978,15 @@ "BM.GPU2.2", "BM.HPC2.36", "BM.Standard2.52", - "BM.GPU3.8" + "BM.GPU3.8", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Datacenter", @@ -4786,7 +5018,16 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", - "VM.Standard.E3.Flex" + "VM.Standard.E3.Flex", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8", + "BM.GPU4.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Datacenter", @@ -4817,8 +5058,8 @@ "BM.Standard1.36", "BM.HighIO1.36", "BM.DenseIO1.36", - "VM.Standard.E2.8", - "VM.Standard.E3.Flex", + "VM.GPU2.1", + "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", "VM.Standard2.1", @@ -4898,16 +5139,17 @@ "BM.Standard1.36", "BM.HighIO1.36", "BM.DenseIO1.36", - "VM.GPU2.1", - "VM.GPU3.1", - "VM.GPU3.2", - "VM.GPU3.4", - "VM.Standard2.1", + "VM.Standard.E2.8", + "VM.Standard.E3.Flex", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", "VM.Standard2.16", "VM.Standard2.2", "VM.Standard2.24", "VM.Standard2.4", - "VM.Standard2.8" + "VM.Standard2.8", + "BM.GPU4.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Datacenter", @@ -4940,15 +5182,14 @@ "VM.Standard.E2.4", "VM.Standard.E2.8", "VM.Standard.E3.Flex", - "VM.GPU3.2", - "VM.GPU3.4", - "VM.Standard2.1", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", "VM.Standard2.16", "VM.Standard2.2", "VM.Standard2.24", "VM.Standard2.4", - "VM.Standard2.8", - "BM.GPU4.8" + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Standard", @@ -4981,15 +5222,14 @@ "VM.Standard.E2.4", "VM.Standard.E2.8", "VM.Standard.E3.Flex", - "VM.Standard1.2", - "VM.Standard1.4", - "VM.Standard1.8", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard2.1", "VM.Standard2.16", "VM.Standard2.2", "VM.Standard2.24", "VM.Standard2.4", - "VM.Standard2.8", - "BM.GPU4.8" + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Standard", @@ -5022,14 +5262,15 @@ "VM.Standard.E2.4", "VM.Standard.E2.8", "VM.Standard.E3.Flex", - "VM.Standard1.2", - "VM.Standard1.4", - "VM.Standard1.8", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard2.1", "VM.Standard2.16", "VM.Standard2.2", "VM.Standard2.24", "VM.Standard2.4", - "VM.Standard2.8" + "VM.Standard2.8", + "BM.GPU4.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Standard", @@ -5109,8 +5350,7 @@ "VM.Standard2.2", "VM.Standard2.24", "VM.Standard2.4", - "VM.Standard2.8", - "BM.GPU4.8" + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Standard", @@ -5145,12 +5385,7 @@ "VM.Standard1.16", "VM.Standard1.2", "VM.Standard1.4", - "VM.Standard1.8", - "VM.Standard2.16", - "VM.Standard2.2", - "VM.Standard2.24", - "VM.Standard2.4", - "VM.Standard2.8" + "VM.Standard1.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2012 R2 Standard", @@ -5250,14 +5485,9 @@ "operating_system_version": "Server 2016 Datacenter", "shapes": [ "BM.Standard.E2.64", - "VM.DenseIO1.4", - "VM.DenseIO1.8", - "VM.Standard1.1", - "VM.Standard1.16", - "VM.Standard1.2", - "VM.Standard1.4", - "VM.Standard1.8", - "BM.GPU4.8" + "BM.DenseIO2.52", + "BM.Standard2.52", + "BM.GPU3.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2016 Datacenter", @@ -5289,10 +5519,19 @@ "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", - "VM.Standard1.16", - "VM.Standard1.2", - "VM.Standard1.4", - "VM.Standard1.8" + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard.E2.1", + "VM.Standard.E2.2", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2016 Datacenter", @@ -5323,7 +5562,20 @@ "VM.Standard.A1.Flex", "BM.DenseIO2.52", "BM.Standard2.52", - "BM.GPU3.8" + "BM.GPU3.8", + "VM.GPU3.1", + "VM.GPU3.2", + "VM.GPU3.4", + "VM.Standard.E2.1", + "VM.Standard.E2.2", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2016 Datacenter", @@ -5352,10 +5604,10 @@ "operating_system_version": "Server 2016 Datacenter", "shapes": [ "BM.DenseIO2.52", + "BM.GPU2.2", "BM.HPC2.36", "BM.Standard2.52", "BM.GPU3.8", - "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", "VM.Standard.E2.1", @@ -5490,6 +5742,7 @@ "VM.GPU3.1", "VM.GPU3.2", "VM.GPU3.4", + "VM.Standard.A1.Flex", "VM.Standard.E2.1", "VM.Standard.E2.2", "VM.Standard.E2.4", @@ -5702,7 +5955,16 @@ "VM.Standard1.16", "VM.Standard1.2", "VM.Standard1.4", - "VM.Standard1.8" + "VM.Standard1.8", + "VM.Standard.E2.2", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2016 Standard", @@ -5735,9 +5997,18 @@ "VM.Standard.B1.2", "VM.Standard.B1.4", "VM.Standard.B1.8", + "VM.Standard1.16", "VM.Standard1.2", "VM.Standard1.4", - "VM.Standard1.8" + "VM.Standard1.8", + "VM.Standard.E2.4", + "VM.Standard.E2.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", + "VM.Standard2.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2016 Standard", @@ -5781,6 +6052,16 @@ "VM.Standard2.2", "VM.Standard2.24", "VM.Standard2.4", + "VM.Standard2.8", + "VM.Standard1.16", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", + "VM.Standard2.1", + "VM.Standard2.16", + "VM.Standard2.2", + "VM.Standard2.24", + "VM.Standard2.4", "VM.Standard2.8" ], "size_in_mbs": 262144, @@ -5818,8 +6099,18 @@ "VM.Standard1.2", "VM.Standard1.4", "VM.Standard1.8", + "VM.Standard.B1.2", + "VM.Standard.B1.4", + "VM.Standard.B1.8", + "VM.Standard.E2.1", + "VM.Standard.E2.2", "VM.Standard.E2.4", "VM.Standard.E2.8", + "VM.Standard1.1", + "VM.Standard1.16", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8", "VM.Standard2.1", "VM.Standard2.16", "VM.Standard2.2", @@ -5861,15 +6152,15 @@ "VM.Standard1.2", "VM.Standard1.4", "VM.Standard1.8", + "VM.Standard.B1.16", + "VM.Standard.B1.2", + "VM.Standard.B1.4", + "VM.Standard.B1.8", + "VM.Standard.E2.1", "VM.Standard.E2.2", "VM.Standard.E2.4", "VM.Standard.E2.8", - "VM.Standard2.1", - "VM.Standard2.16", - "VM.Standard2.2", - "VM.Standard2.24", - "VM.Standard2.4", - "VM.Standard2.8", + "VM.Standard1.1", "VM.Standard1.16", "VM.Standard1.2", "VM.Standard1.4", @@ -6178,10 +6469,13 @@ "operating_system_version": "Server 2019 Standard", "shapes": [ "VM.Standard.E3.Flex", - "VM.Standard.B1.16", - "VM.Standard.B1.2", - "VM.Standard.B1.4", - "VM.Standard.B1.8" + "VM.DenseIO1.4", + "VM.DenseIO1.8", + "VM.Standard1.1", + "VM.Standard1.16", + "VM.Standard1.2", + "VM.Standard1.4", + "VM.Standard1.8" ], "size_in_mbs": 262144, "sort_key": "Windows Server 2019 Standard", @@ -6257,76 +6551,6 @@ "sort_key": "Windows Server 2019 Standard", "time_created": "2020-10-26T16:59:30.290000+00:00" }, - { - "agent_features": null, - "base_image_id": null, - "compartment_id": null, - "create_image_allowed": true, - "defined_tags": {}, - "display_name": "Windows-Server-2016-Standard-Edition-VM-2020.08.26-0", - "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaaqcpoop4jtnfeg6xh4zenwrnznyokp3bl5kimyuvjjn3p6xx4iwoa", - "launch_mode": "NATIVE", - "launch_options": { - "boot_volume_type": "PARAVIRTUALIZED", - "firmware": "UEFI_64", - "is_consistent_volume_naming_enabled": false, - "is_pv_encryption_in_transit_enabled": true, - "network_type": "VFIO", - "remote_data_volume_type": "PARAVIRTUALIZED" - }, - "lifecycle_state": "AVAILABLE", - "operating_system": "Windows", - "operating_system_version": "Server 2016 Standard", - "shapes": [ - "VM.DenseIO1.16", - "VM.DenseIO1.4", - "VM.DenseIO1.8", - "VM.Standard1.1", - "VM.Standard1.16", - "VM.Standard1.2", - "VM.Standard1.4", - "VM.Standard1.8" - ], - "size_in_mbs": 262144, - "sort_key": "Windows Server 2016 Standard", - "time_created": "2020-08-27T05:46:33.456000+00:00" - }, - { - "agent_features": null, - "base_image_id": null, - "compartment_id": null, - "create_image_allowed": true, - "defined_tags": {}, - "display_name": "Windows-Server-2016-Standard-Edition-VM-2020.07.17-0", - "freeform_tags": {}, - "id": "ocid1.image.oc1.phx.aaaaaaaa5zmw4bsqelqnloagnhf7waqfdzhb2knh5dfor57srt2xapj7e4sq", - "launch_mode": "NATIVE", - "launch_options": { - "boot_volume_type": "PARAVIRTUALIZED", - "firmware": "UEFI_64", - "is_consistent_volume_naming_enabled": false, - "is_pv_encryption_in_transit_enabled": true, - "network_type": "VFIO", - "remote_data_volume_type": "PARAVIRTUALIZED" - }, - "lifecycle_state": "AVAILABLE", - "operating_system": "Windows", - "operating_system_version": "Server 2016 Standard", - "shapes": [ - "VM.DenseIO1.16", - "VM.DenseIO1.4", - "VM.DenseIO1.8", - "VM.Standard1.1", - "VM.Standard1.16", - "VM.Standard1.2", - "VM.Standard1.4", - "VM.Standard1.8" - ], - "size_in_mbs": 262144, - "sort_key": "Windows Server 2016 Standard", - "time_created": "2020-07-22T21:47:14.316000+00:00" - }, { "agent_features": null, "base_image_id": null, @@ -6986,6 +7210,11 @@ } ], "mysql_shapes": [ + { + "cpu_core_count": 16, + "memory_size_in_gbs": 512, + "name": "MySQL.HeatWave.VM.Standard.E3" + }, { "cpu_core_count": 1, "memory_size_in_gbs": 16, @@ -7372,6 +7601,11 @@ "display_name": "integration", "name": "integration" }, + { + "description": "Java Management", + "display_name": "java-management", + "name": "java-management" + }, { "description": "Key Management", "display_name": "kms", @@ -7437,6 +7671,11 @@ "display_name": "ocvp", "name": "ocvp" }, + { + "description": "Operations Insights", + "display_name": "operations-insights", + "name": "operations-insights" + }, { "description": "Optimizer", "display_name": "optimizer", @@ -7497,6 +7736,11 @@ "display_name": "vpn", "name": "vpn" }, + { + "description": "Vulnerability Scanning", + "display_name": "vulnerability-scanning", + "name": "vulnerability-scanning" + }, { "description": "WaaS", "display_name": "waas", diff --git a/okitweb/static/okit/json/release.json b/okitweb/static/okit/json/release.json index bcb4fea39..365ddb65f 100644 --- a/okitweb/static/okit/json/release.json +++ b/okitweb/static/okit/json/release.json @@ -1,4 +1,4 @@ { - "release": "0.16.0", - "tag": "v0.16.0" + "release": "0.17.0", + "tag": "v0.17.0" } \ No newline at end of file diff --git a/okitweb/static/okit/model/js/artefacts/autonomous_database.js b/okitweb/static/okit/model/js/artefacts/autonomous_database.js index a76124d19..421233b0f 100644 --- a/okitweb/static/okit/model/js/artefacts/autonomous_database.js +++ b/okitweb/static/okit/model/js/artefacts/autonomous_database.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Autonomous Database Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/block_storage_volume.js b/okitweb/static/okit/model/js/artefacts/block_storage_volume.js index ad60e60a3..4fd018fa8 100644 --- a/okitweb/static/okit/model/js/artefacts/block_storage_volume.js +++ b/okitweb/static/okit/model/js/artefacts/block_storage_volume.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Block Storage Volume Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/compartment.js b/okitweb/static/okit/model/js/artefacts/compartment.js index 4618bf76d..4b82e38a7 100644 --- a/okitweb/static/okit/model/js/artefacts/compartment.js +++ b/okitweb/static/okit/model/js/artefacts/compartment.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Compartment Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/customer_premise_equipment.js b/okitweb/static/okit/model/js/artefacts/customer_premise_equipment.js index 0f3e8bb7c..bfa2c1516 100644 --- a/okitweb/static/okit/model/js/artefacts/customer_premise_equipment.js +++ b/okitweb/static/okit/model/js/artefacts/customer_premise_equipment.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded CustomerPremiseEquipment Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/database_system.js b/okitweb/static/okit/model/js/artefacts/database_system.js index 165938e52..66e617610 100644 --- a/okitweb/static/okit/model/js/artefacts/database_system.js +++ b/okitweb/static/okit/model/js/artefacts/database_system.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Database System Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/dynamic_routing_gateway.js b/okitweb/static/okit/model/js/artefacts/dynamic_routing_gateway.js index 54d41dbd5..36e2058c8 100644 --- a/okitweb/static/okit/model/js/artefacts/dynamic_routing_gateway.js +++ b/okitweb/static/okit/model/js/artefacts/dynamic_routing_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Dynamic Routing Gateway Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/fast_connect.js b/okitweb/static/okit/model/js/artefacts/fast_connect.js index 2a2bc1e52..6906b5d09 100644 --- a/okitweb/static/okit/model/js/artefacts/fast_connect.js +++ b/okitweb/static/okit/model/js/artefacts/fast_connect.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded FastConnect Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/file_storage_system.js b/okitweb/static/okit/model/js/artefacts/file_storage_system.js index 5af591f07..ae02a3cd9 100644 --- a/okitweb/static/okit/model/js/artefacts/file_storage_system.js +++ b/okitweb/static/okit/model/js/artefacts/file_storage_system.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded File Storage System Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/fragment.js b/okitweb/static/okit/model/js/artefacts/fragment.js index 971c39a41..282d62221 100644 --- a/okitweb/static/okit/model/js/artefacts/fragment.js +++ b/okitweb/static/okit/model/js/artefacts/fragment.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT Model Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/instance.js b/okitweb/static/okit/model/js/artefacts/instance.js index 01ae45424..68f010e49 100644 --- a/okitweb/static/okit/model/js/artefacts/instance.js +++ b/okitweb/static/okit/model/js/artefacts/instance.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Instance Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/instance_pool.js b/okitweb/static/okit/model/js/artefacts/instance_pool.js index 47f26f605..e88635e65 100644 --- a/okitweb/static/okit/model/js/artefacts/instance_pool.js +++ b/okitweb/static/okit/model/js/artefacts/instance_pool.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Instance Pool Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/internet_gateway.js b/okitweb/static/okit/model/js/artefacts/internet_gateway.js index a5fb8a856..33c80f2e0 100644 --- a/okitweb/static/okit/model/js/artefacts/internet_gateway.js +++ b/okitweb/static/okit/model/js/artefacts/internet_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Internet Gateway Javascript'); @@ -18,8 +18,6 @@ class InternetGateway extends OkitArtifact { this.compartment_id = data.compartment_id; this.vcn_id = data.parent_id; this.enabled = true; - this.freeform_tags = {}; - this.defined_tags = {}; // Update with any passed data this.merge(data); this.convert(); diff --git a/okitweb/static/okit/model/js/artefacts/ipsec_connection.js b/okitweb/static/okit/model/js/artefacts/ipsec_connection.js index 9d7f5181c..a1c73ee89 100644 --- a/okitweb/static/okit/model/js/artefacts/ipsec_connection.js +++ b/okitweb/static/okit/model/js/artefacts/ipsec_connection.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded IPSecConnection Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/load_balancer.js b/okitweb/static/okit/model/js/artefacts/load_balancer.js index 09f64c25d..1486bcd8f 100644 --- a/okitweb/static/okit/model/js/artefacts/load_balancer.js +++ b/okitweb/static/okit/model/js/artefacts/load_balancer.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Load Balancer Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/local_peering_gateway.js b/okitweb/static/okit/model/js/artefacts/local_peering_gateway.js index d2061e94b..ab36681bd 100644 --- a/okitweb/static/okit/model/js/artefacts/local_peering_gateway.js +++ b/okitweb/static/okit/model/js/artefacts/local_peering_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Local Peering Gateway Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/mysql_database_system.js b/okitweb/static/okit/model/js/artefacts/mysql_database_system.js index c0e6c566e..23e74666c 100644 --- a/okitweb/static/okit/model/js/artefacts/mysql_database_system.js +++ b/okitweb/static/okit/model/js/artefacts/mysql_database_system.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Database System Javascript'); @@ -25,7 +25,7 @@ class MySQLDatabaseSystem extends OkitArtifact { this.admin_password = ''; this.description =''; this.mysql_version = ''; - this.port = ''; + this.v = ''; this.port_x = ''; this.data_storage_size_in_gb = 256; this.fault_domain = ''; diff --git a/okitweb/static/okit/model/js/artefacts/nat_gateway.js b/okitweb/static/okit/model/js/artefacts/nat_gateway.js index aeaf8190f..88e5c6832 100644 --- a/okitweb/static/okit/model/js/artefacts/nat_gateway.js +++ b/okitweb/static/okit/model/js/artefacts/nat_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded NAT Gateway Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/network_security_group.js b/okitweb/static/okit/model/js/artefacts/network_security_group.js index 8a4ce33e5..a8fe9d3ce 100644 --- a/okitweb/static/okit/model/js/artefacts/network_security_group.js +++ b/okitweb/static/okit/model/js/artefacts/network_security_group.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Network Security Group Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/object_storage_bucket.js b/okitweb/static/okit/model/js/artefacts/object_storage_bucket.js index 2a081abee..ee2499001 100644 --- a/okitweb/static/okit/model/js/artefacts/object_storage_bucket.js +++ b/okitweb/static/okit/model/js/artefacts/object_storage_bucket.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Object Storage Bucket Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/oke_cluster.js b/okitweb/static/okit/model/js/artefacts/oke_cluster.js index bc948e020..907181646 100644 --- a/okitweb/static/okit/model/js/artefacts/oke_cluster.js +++ b/okitweb/static/okit/model/js/artefacts/oke_cluster.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKE Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/remote_peering_connection.js b/okitweb/static/okit/model/js/artefacts/remote_peering_connection.js index ac450b321..a3df5ffd9 100644 --- a/okitweb/static/okit/model/js/artefacts/remote_peering_connection.js +++ b/okitweb/static/okit/model/js/artefacts/remote_peering_connection.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded RemotePeeringConnection Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/route_table.js b/okitweb/static/okit/model/js/artefacts/route_table.js index 76bcfccb1..9f8b77adf 100644 --- a/okitweb/static/okit/model/js/artefacts/route_table.js +++ b/okitweb/static/okit/model/js/artefacts/route_table.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Route Table Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/security_list.js b/okitweb/static/okit/model/js/artefacts/security_list.js index bd904c5d8..804cef92b 100644 --- a/okitweb/static/okit/model/js/artefacts/security_list.js +++ b/okitweb/static/okit/model/js/artefacts/security_list.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Security List Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/service_gateway.js b/okitweb/static/okit/model/js/artefacts/service_gateway.js index faaee45ba..6365ae94f 100644 --- a/okitweb/static/okit/model/js/artefacts/service_gateway.js +++ b/okitweb/static/okit/model/js/artefacts/service_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Service Gateway Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/subnet.js b/okitweb/static/okit/model/js/artefacts/subnet.js index 086f6314d..52ec74bff 100644 --- a/okitweb/static/okit/model/js/artefacts/subnet.js +++ b/okitweb/static/okit/model/js/artefacts/subnet.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Subnet Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/virtual_cloud_network.js b/okitweb/static/okit/model/js/artefacts/virtual_cloud_network.js index c5e62929c..6bef02a05 100644 --- a/okitweb/static/okit/model/js/artefacts/virtual_cloud_network.js +++ b/okitweb/static/okit/model/js/artefacts/virtual_cloud_network.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Virtual Cloud Network Javascript'); diff --git a/okitweb/static/okit/model/js/artefacts/virtual_network_interface.js b/okitweb/static/okit/model/js/artefacts/virtual_network_interface.js index a8be4e1ba..f6bdf2217 100644 --- a/okitweb/static/okit/model/js/artefacts/virtual_network_interface.js +++ b/okitweb/static/okit/model/js/artefacts/virtual_network_interface.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Virtual Network Interface Javascript'); diff --git a/okitweb/static/okit/model/js/okit_model.js b/okitweb/static/okit/model/js/okit_model.js index 184256303..53199fe26 100644 --- a/okitweb/static/okit/model/js/okit_model.js +++ b/okitweb/static/okit/model/js/okit_model.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT Model Javascript'); @@ -977,7 +977,6 @@ class OkitArtifact { // All Artefacts will have compartment id, display name & description this.compartment_id = ''; this.display_name = ''; - this.name = ''; this.definition = ''; // Add default for common Tag variables this.freeform_tags = {}; @@ -987,6 +986,14 @@ class OkitArtifact { return okitjson; } }); + Object.defineProperty(this, 'name', { + get: function () { + return this.display_name; + }, + set: function (name) { + return this.display_name = name; + } + }); } get okit_id() {return 'okit.' + this.constructor.name.toLowerCase() + '.' + uuidv4();} @@ -1138,3 +1145,4 @@ class OkitRegions { } } +let okitJsonModel diff --git a/okitweb/static/okit/query/oci/js/okit_query.js b/okitweb/static/okit/query/oci/js/okit_query.js index 482a5a532..e671858b4 100644 --- a/okitweb/static/okit/query/oci/js/okit_query.js +++ b/okitweb/static/okit/query/oci/js/okit_query.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT OCI Query Javascript'); diff --git a/okitweb/static/okit/templates/reference_architecture/cockroachdb_cluster.json b/okitweb/static/okit/templates/reference_architecture/cockroachdb_cluster.json index 4c2449dba..eb3aebc23 100644 --- a/okitweb/static/okit/templates/reference_architecture/cockroachdb_cluster.json +++ b/okitweb/static/okit/templates/reference_architecture/cockroachdb_cluster.json @@ -9,7 +9,6 @@ "id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "compartment_id": "canvas", "display_name": "cockroachdb-ref-arch", - "name": "cockroachdb-ref-arch", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -28,7 +27,6 @@ "id": "okit.instance.09d61992-634d-4f93-9830-ee7d56cf0a74", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "cockroachdb1", - "name": "cockroachdb1", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -77,7 +75,6 @@ "id": "okit.instance.0cab33c7-65f5-48bb-a7c5-5ea01b561ea4", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "cockroachdb2", - "name": "cockroachdb2", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -126,7 +123,6 @@ "id": "okit.instance.a7f1ca69-1fc7-40a4-bf11-fff80d6ce913", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "cockroachdb3", - "name": "cockroachdb3", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -175,7 +171,6 @@ "id": "okit.instance.f46d75d0-185d-487d-b42d-697a8226504c", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "bastion", - "name": "bastion", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -227,7 +222,6 @@ "id": "okit.internetgateway.a09a99ee-ac4b-49ed-978a-6a6c18dfd2fd", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "okit-ig001", - "name": "", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -242,7 +236,6 @@ "id": "okit.loadbalancer.2785fb86-0028-4ba3-8158-68ce55e6a204", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "cockroachdb-lb001", - "name": "cockroachdb-lb001", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -275,7 +268,6 @@ "id": "okit.natgateway.784af6f7-e4fa-4702-a409-c7f13ba0ccfa", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "okit-ng001", - "name": "", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -293,7 +285,6 @@ "id": "okit.routetable.b0dec644-9c56-402e-adb9-c8149b890b61", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "okit-rt001", - "name": "", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -312,7 +303,6 @@ "id": "okit.routetable.1cbfeeef-2905-45c9-9778-631e48396309", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "okit-rt002", - "name": "", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -334,7 +324,6 @@ "id": "okit.securitylist.d0e6987b-59e8-4e61-be2f-36b346b37a31", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "okit-sl001", - "name": "", "definition": "", "freeform_tags": {}, "defined_tags": {}, @@ -533,7 +522,6 @@ "id": "okit.securitylist.d6c25389-1c49-43de-bc87-aaf475656ec4", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "okit-sl002", - "name": "", "definition": "Restrict Ingress access to the resources on the public subnet. Although all Egress is allowed.", "freeform_tags": {}, "defined_tags": {}, @@ -644,7 +632,6 @@ "id": "okit.subnet.e218ba2c-8723-4332-b870-4c1b2dae0cf0", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "cockroachdb-public-sn", - "name": "cockroachdb-public-sn", "definition": "Public subnet restricted to the Loadbalancer and the Bastion Host. All access to the VMs running the cluster will be through either Loadbalancer or Bastion.", "freeform_tags": {}, "defined_tags": {}, @@ -665,7 +652,6 @@ "id": "okit.subnet.b5f2e59c-49e5-4afb-86f0-7386054f911d", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "cockroachdb-private-sn", - "name": "cockroachdb-private-sn", "definition": "Private subnet used to protect VMs from direct, inbound, access. Only accessible from IPs on the public subnet.", "freeform_tags": {}, "defined_tags": {}, @@ -688,7 +674,6 @@ "id": "okit.virtualcloudnetwork.4fcbf02a-e290-4460-a7df-ee48b9767924", "compartment_id": "okit.compartment.31e0ffd2-2747-4508-b5ad-776b6f60f9c7", "display_name": "cockroachdb-vcn001", - "name": "cockroachdb-vcn001", "definition": "", "freeform_tags": {}, "defined_tags": {}, diff --git a/okitweb/static/okit/view/designer/js/artefacts/autonomous_database.js b/okitweb/static/okit/view/designer/js/artefacts/autonomous_database.js index 0facca831..c271fdd32 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/autonomous_database.js +++ b/okitweb/static/okit/view/designer/js/artefacts/autonomous_database.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer AutonomousDatabase View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/block_storage_volume.js b/okitweb/static/okit/view/designer/js/artefacts/block_storage_volume.js index 4d02ba226..35e1273f9 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/block_storage_volume.js +++ b/okitweb/static/okit/view/designer/js/artefacts/block_storage_volume.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer BlockStorageVolume View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/compartment.js b/okitweb/static/okit/view/designer/js/artefacts/compartment.js index 8511d56b9..5cab8cc3e 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/compartment.js +++ b/okitweb/static/okit/view/designer/js/artefacts/compartment.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer Compartment View Javascript'); @@ -75,7 +75,7 @@ class CompartmentView extends OkitContainerDesignerArtefactView { } getContainerArtifacts() { - return [Compartment.getArtifactReference(), VirtualCloudNetwork.getArtifactReference()]; + return [Compartment.getArtifactReference(), VirtualCloudNetwork.getArtifactReference(), Subnet.getArtifactReference()]; } getLeftArtifacts() { diff --git a/okitweb/static/okit/view/designer/js/artefacts/customer_premise_equipment.js b/okitweb/static/okit/view/designer/js/artefacts/customer_premise_equipment.js index de8d4bca2..5edd2d285 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/customer_premise_equipment.js +++ b/okitweb/static/okit/view/designer/js/artefacts/customer_premise_equipment.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer CustomerPremiseEquipment View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/database_system.js b/okitweb/static/okit/view/designer/js/artefacts/database_system.js index 0aecd9ad8..10b30df3c 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/database_system.js +++ b/okitweb/static/okit/view/designer/js/artefacts/database_system.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer DatabaseSystem View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/dynamic_routing_gateway.js b/okitweb/static/okit/view/designer/js/artefacts/dynamic_routing_gateway.js index 035021619..eafaeb6dc 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/dynamic_routing_gateway.js +++ b/okitweb/static/okit/view/designer/js/artefacts/dynamic_routing_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer DynamicRoutingGateway View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/fast_connect.js b/okitweb/static/okit/view/designer/js/artefacts/fast_connect.js index 88e5e5498..e9e0ea411 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/fast_connect.js +++ b/okitweb/static/okit/view/designer/js/artefacts/fast_connect.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer FastConnect View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/file_storage_system.js b/okitweb/static/okit/view/designer/js/artefacts/file_storage_system.js index 4c1f4cd39..13722a3f1 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/file_storage_system.js +++ b/okitweb/static/okit/view/designer/js/artefacts/file_storage_system.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer FileStorageSystem View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/fragment.js b/okitweb/static/okit/view/designer/js/artefacts/fragment.js index 7f9d830b0..24a833367 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/fragment.js +++ b/okitweb/static/okit/view/designer/js/artefacts/fragment.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer Fragment View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/instance.js b/okitweb/static/okit/view/designer/js/artefacts/instance.js index 0554aea3b..6bf71305d 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/instance.js +++ b/okitweb/static/okit/view/designer/js/artefacts/instance.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer Instance View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/instance_pool.js b/okitweb/static/okit/view/designer/js/artefacts/instance_pool.js index 40017b852..3a8c79602 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/instance_pool.js +++ b/okitweb/static/okit/view/designer/js/artefacts/instance_pool.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer Instance Pool View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/internet_gateway.js b/okitweb/static/okit/view/designer/js/artefacts/internet_gateway.js index 789563ade..e1cf1c15e 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/internet_gateway.js +++ b/okitweb/static/okit/view/designer/js/artefacts/internet_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer InternetGateway View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/ipsec_connection.js b/okitweb/static/okit/view/designer/js/artefacts/ipsec_connection.js index b95e2da12..c75a99c36 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/ipsec_connection.js +++ b/okitweb/static/okit/view/designer/js/artefacts/ipsec_connection.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer IPSecConnection View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/load_balancer.js b/okitweb/static/okit/view/designer/js/artefacts/load_balancer.js index 7709f50b8..7fa6de8c7 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/load_balancer.js +++ b/okitweb/static/okit/view/designer/js/artefacts/load_balancer.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer LoadBalancer View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/local_peering_gateway.js b/okitweb/static/okit/view/designer/js/artefacts/local_peering_gateway.js index e16948c52..c0ab1239b 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/local_peering_gateway.js +++ b/okitweb/static/okit/view/designer/js/artefacts/local_peering_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer LocalPeeringGateway View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/mysql_database_system.js b/okitweb/static/okit/view/designer/js/artefacts/mysql_database_system.js index 932a8153c..7436d5895 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/mysql_database_system.js +++ b/okitweb/static/okit/view/designer/js/artefacts/mysql_database_system.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer MySQLDatabaseSystem View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/nat_gateway.js b/okitweb/static/okit/view/designer/js/artefacts/nat_gateway.js index 25c6644ff..b77189250 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/nat_gateway.js +++ b/okitweb/static/okit/view/designer/js/artefacts/nat_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer NATGateway View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/network_security_group.js b/okitweb/static/okit/view/designer/js/artefacts/network_security_group.js index 06d1ab73c..a2c0be4fd 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/network_security_group.js +++ b/okitweb/static/okit/view/designer/js/artefacts/network_security_group.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer NetworkSecurityGroup View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/object_storage_bucket.js b/okitweb/static/okit/view/designer/js/artefacts/object_storage_bucket.js index 787457c0d..c57223916 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/object_storage_bucket.js +++ b/okitweb/static/okit/view/designer/js/artefacts/object_storage_bucket.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer ObjectStorageBucket View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/oke_cluster.js b/okitweb/static/okit/view/designer/js/artefacts/oke_cluster.js index 4e3a5dd6c..5cbff6774 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/oke_cluster.js +++ b/okitweb/static/okit/view/designer/js/artefacts/oke_cluster.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer OKE View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/remote_peering_connection.js b/okitweb/static/okit/view/designer/js/artefacts/remote_peering_connection.js index 7b55ab231..0a76595fd 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/remote_peering_connection.js +++ b/okitweb/static/okit/view/designer/js/artefacts/remote_peering_connection.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer RemotePeeringConnection View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/route_table.js b/okitweb/static/okit/view/designer/js/artefacts/route_table.js index 2c6020217..848067ad9 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/route_table.js +++ b/okitweb/static/okit/view/designer/js/artefacts/route_table.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer RouteTable View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/security_list.js b/okitweb/static/okit/view/designer/js/artefacts/security_list.js index a65c83781..d1cd43027 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/security_list.js +++ b/okitweb/static/okit/view/designer/js/artefacts/security_list.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer SecurityList View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/service_gateway.js b/okitweb/static/okit/view/designer/js/artefacts/service_gateway.js index 60d0b506a..fe9814394 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/service_gateway.js +++ b/okitweb/static/okit/view/designer/js/artefacts/service_gateway.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer ServiceGateway View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/subnet.js b/okitweb/static/okit/view/designer/js/artefacts/subnet.js index 2b19007e3..578e60e37 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/subnet.js +++ b/okitweb/static/okit/view/designer/js/artefacts/subnet.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer Subnet View Javascript'); @@ -12,8 +12,17 @@ class SubnetView extends OkitContainerDesignerArtefactView { super(artefact, json_view); } - get parent_id() {return this.artefact.vcn_id;} - get parent() {return this.getJsonView().getVirtualCloudNetwork(this.parent_id);} + get parent_id_orig() {return this.artefact.vcn_id;} + get parent_orig() {return this.getJsonView().getVirtualCloudNetwork(this.parent_id);} + get parent_id() { + const vcn = this.getJsonView().getVirtualCloudNetwork(this.artefact.vcn_id); + if (vcn && vcn.compartment_id === this.artefact.compartment_id) { + return this.artefact.vcn_id; + } else { + return this.compartment_id; + } + } + get parent() {return this.getJsonView().getVirtualCloudNetwork(this.parent_id) ? this.getJsonView().getVirtualCloudNetwork(this.parent_id) : this.getJsonView().getCompartment(this.parent_id);} get children() {return [...this.json_view.getInstances(), ...this.json_view.getLoadBalancers(), ...this.json_view.getFileStorageSystems(), ...this.json_view.getAutonomousDatabases(), ...this.json_view.getDatabaseSystems(), ...this.json_view.getMySQLDatabaseSystems()].filter(child => child.parent_id === this.artefact.id);} @@ -71,6 +80,10 @@ class SubnetView extends OkitContainerDesignerArtefactView { let me = this; $(jqId(PROPERTIES_PANEL)).load("propertysheets/subnet.html", () => { // Load Referenced Ids + // Virtual Cloud Network + this.loadVirtualCloudNetworkSelect('vcn_id'); + $(jqId('vcn_id')).on('change', () => {if ($(jqId('vcn_id')).val() != '') me.artefact.generateCIDR();}); + // Route Table let route_table_select = $(jqId('route_table_id')); route_table_select.append($('').attr('value', '').text('')); for (let route_table of me.artefact.getOkitJson().route_tables) { @@ -147,7 +160,7 @@ class SubnetView extends OkitContainerDesignerArtefactView { } static getDropTargets() { - return [VirtualCloudNetwork.getArtifactReference()]; + return [VirtualCloudNetwork.getArtifactReference(), Compartment.getArtifactReference()]; } } \ No newline at end of file diff --git a/okitweb/static/okit/view/designer/js/artefacts/virtual_cloud_network.js b/okitweb/static/okit/view/designer/js/artefacts/virtual_cloud_network.js index ee4a832ff..424743723 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/virtual_cloud_network.js +++ b/okitweb/static/okit/view/designer/js/artefacts/virtual_cloud_network.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer VirtualCloudNetwork View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/artefacts/virtual_network_interface.js b/okitweb/static/okit/view/designer/js/artefacts/virtual_network_interface.js index cafa4ac33..afda97a35 100644 --- a/okitweb/static/okit/view/designer/js/artefacts/virtual_network_interface.js +++ b/okitweb/static/okit/view/designer/js/artefacts/virtual_network_interface.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded Designer VirtualNetworkInterface View Javascript'); diff --git a/okitweb/static/okit/view/designer/js/okit_designer_view.js b/okitweb/static/okit/view/designer/js/okit_designer_view.js index bd1c9897e..d01a64c96 100644 --- a/okitweb/static/okit/view/designer/js/okit_designer_view.js +++ b/okitweb/static/okit/view/designer/js/okit_designer_view.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT Designer View Javascript'); diff --git a/okitweb/static/okit/view/js/okit_view.js b/okitweb/static/okit/view/js/okit_view.js index 4f944638e..1d572384c 100644 --- a/okitweb/static/okit/view/js/okit_view.js +++ b/okitweb/static/okit/view/js/okit_view.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT View Javascript'); @@ -866,9 +866,13 @@ class OkitJsonView { // Subnet dropSubnetView(target) { let view_artefact = this.newSubnet(); - view_artefact.getArtefact().vcn_id = target.id; - view_artefact.getArtefact().compartment_id = target.compartment_id; - view_artefact.getArtefact().generateCIDR(); + if (target.type === VirtualCloudNetwork.getArtifactReference()) { + view_artefact.getArtefact().vcn_id = target.id; + view_artefact.getArtefact().compartment_id = target.compartment_id; + view_artefact.getArtefact().generateCIDR(); + } else if (target.type === Compartment.getArtifactReference()) { + view_artefact.getArtefact().compartment_id = target.id; + } view_artefact.recalculate_dimensions = true; return view_artefact; } @@ -2304,6 +2308,16 @@ class OkitArtefactView { drg_select.append($('').attr('value', drg.id).text(drg.display_name)); } } + + loadVirtualCloudNetworkSelect(id) { + // Build Virtual Cloud Network + let select = $(jqId(id)); + $(select).empty(); + select.append($('').attr('value', '').text('')); + for (const resource of this.getOkitJson().getVirtualCloudNetworks()) { + select.append($('').attr('value', resource.id).text(resource.display_name)); + } + } } /* diff --git a/okitweb/static/okit/view/tabular/js/okit_tabular_view.js b/okitweb/static/okit/view/tabular/js/okit_tabular_view.js new file mode 100644 index 000000000..f7959b9bd --- /dev/null +++ b/okitweb/static/okit/view/tabular/js/okit_tabular_view.js @@ -0,0 +1,284 @@ +/* +** Copyright (c) 2021, Oracle and/or its affiliates. +** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. +*/ +console.info('Loaded OKIT Designer View Javascript'); + +class OkitTabularJsonView extends OkitJsonView { + + constructor(okitjson=null, oci_data=null, parent_id = 'tabular-div') { + super(okitjson); + this.oci_data = oci_data; + this.parent_id = parent_id; + this.loadPropertyMap(); + } + get model() {return this.okitjson;} + get data() {return this.oci_data;} + + static newView(model, parent_id = 'tabular-div') { + return new OkitTabularJsonView((model, parent_id)) + } + + loadPropertyMap() { + this.resource_property_map = { + common: { + 'Name': {property: 'display_name'}, + 'Compartment': {property: 'compartment_id', lookup: 'model.getCompartment'} + }, + compartments: { + 'Description': {property: 'description'} + }, + autonomous_databases: { + 'Subnet': {property: 'subnet_id', lookup: 'model.getSubnet'}, + 'DB Name': {property: 'db_name'}, + 'Storage Size (Tbs)': {property: 'data_storage_size_in_tbs'}, + 'CPU Count': {property: 'cpu_core_count'}, + 'Workload': {property: 'db_workload'}, + 'Auto Scaling': {property: 'is_auto_scaling_enabled'}, + 'License Model': {property: 'license_model'}, + 'Security Groups': {property: 'nsg_ids', lookup: 'model.getNetworkSecurityGroup'}, + }, + block_storage_volumes: { + 'Availability Domain': {property: 'availability_domain'}, + 'Size in Gbs': {property: 'size_in_gbs'}, + 'Backup Policy': {property: 'backup_policy'}, + 'VPUS/Gb': {property: 'vpus_per_gb'}, + }, + customer_premise_equipments: { + 'IP Address': {property: 'ip_address'}, + 'Customer Device': {property: 'cpe_device_shape_id', lookup: 'data.getCpeDeviceShape'}, + }, + database_systems: { + 'Availability Domain': {property: 'availability_domain'}, + 'Database Edition': {property: 'database_edition'}, + 'DB Name': {property: 'db_home.database.db_name'}, + 'Workload': {property: 'db_home.database.db_workload'}, + 'Version': {property: 'db_home.db_version'}, + 'Hostname': {property: 'hostname'}, + 'Cluster': {property: 'cluster_name'}, + 'Shape': {property: 'shape'}, + 'Subnet': {property: 'subnet_id', lookup: 'model.getSubnet'}, + 'License Model': {property: 'license_model'}, + 'Security Groups': {property: 'nsg_ids', lookup: 'model.getNetworkSecurityGroup'}, + }, + dynamic_routing_gateways: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + }, + fast_connects: {}, + file_storage_systems: { + 'Availability Domain': {property: 'availability_domain'}, + }, + instances: { + 'Subnet': {property: 'subnet_id', lookup: 'model.getSubnet'} + }, + instance_pools: {}, + internet_gateways: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + 'Enable': {property: 'enabled'}, + }, + ipsec_connections: { + 'Customer Premise Equipment': {property: 'cpe_id', lookup: 'model.getCustomerPremiseEquipment'}, + 'Dynamic Routing Gateway': {property: 'drg_id', lookup: 'model.getDynamicRoutingGateway'}, + }, + load_balancers: { + 'Private': {property: 'is_private'}, + 'Shape': {property: 'shape'}, + 'Protocol': {property: 'protocol'}, + 'Port': {property: 'port'}, + 'Policy': {property: 'backend_policy'}, + 'Backends': {property: 'instance_ids', lookup: 'model.getInstance'}, + }, + local_peering_gateways: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + 'Route Table': {property: 'route_table_id', lookup: 'model.getRouteTable'}, + 'Peer': {property: 'peer_id', lookup: 'model.getLocalPeeringGateway'}, + }, + mysql_database_systems: { + 'Availability Domain': {property: 'availability_domain'}, + 'Hostname': {property: 'hostname_label'}, + 'Version': {property: 'mysql_version'}, + 'Configuration': {property: 'configuration_id', lookup: 'data.getMySQLConfiguration'}, + 'Shape': {property: 'shape_name'}, + 'Port': {property: 'port'}, + 'Port X': {property: 'port_x'}, + 'Subnet': {property: 'subnet_id', lookup: 'model.getSubnet'}, + 'Description': {property: 'description'}, + }, + nat_gateways: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + 'Block Traffic': {property: 'block_traffic'}, + }, + network_security_groups: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + }, + object_storage_buckets: { + 'Namespace': {property: 'namespace'}, + 'Storage Tier': {property: 'storage_tier'}, + 'Public Access': {property: 'public_access_type'}, + }, + oke_clusters: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + 'Dashboard': {property: 'options.add_ons.is_kubernetes_dashboard_enabled'}, + 'Tiller': {property: 'options.add_ons.is_tiller_enabled'}, + 'Security': {property: 'options.admission_controller_options.is_pod_security_policy_enabled'}, + 'Pod CIDR': {property: 'options.kubernetes_network_config.pods_cidr'}, + 'Service CIDR': {property: 'options.kubernetes_network_config.services_cidr'}, + }, + remote_peering_connections: { + 'Dynamic Routing Gateway': {property: 'drg_id', lookup: 'model.getDynamicRoutingGateway'}, + 'Peer': {property: 'peer_id', lookup: 'model.getRemotePeeringConnection'}, + 'Peer Region': {property: 'peer_region_name'}, + }, + route_tables: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + }, + security_lists: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + }, + service_gateways: { + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + 'Route Table': {property: 'route_table_id', lookup: 'model.getRouteTable'}, + }, + subnets: { + 'Availability Domain': {property: 'availability_domain'}, + 'Virtual Cloud Network': {property: 'vcn_id', lookup: 'model.getVirtualCloudNetwork'}, + 'CIDR Block': {property: 'cidr_block'}, + 'DNS Label': {property: 'dns_label'}, + 'Private': {property: 'prohibit_public_ip_on_vnic'}, + 'Route Table': {property: 'route_table_id', lookup: 'model.getRouteTable'}, + 'Security Lists': {property: 'security_list_ids', lookup: 'model.getSecurityList'}, + }, + virtual_cloud_networks: { + 'CIDR Block': {property: 'cidr_block'}, + 'DNS Label': {property: 'dns_label'}, + } + }; + } + + draw(for_export=false) { + this.newCanvas() + } + + newCanvas(width=100, height=100, for_export=false) { + let canvas_div = d3.select(d3Id(this.parent_id)); + // Empty existing Canvas + canvas_div.selectAll('*').remove(); + // Add Tab Bar + const tabbar = canvas_div.append('div') + .attr('class', 'okit-tab-bar') + .attr('id', 'tabular_view_tab_bar'); + // Add Tab Contents + const tab_content = canvas_div.append('div') + .attr('class', 'okit-tab-contents') + .attr('id', 'tabular_view_tab_contents') + // Loop through Model elements and create and create a tab for each + Object.entries(this.okitjson).forEach(([key, value]) => { + if (Array.isArray(value)) { + if (value.length) this.addTab(tabbar, key); + } + }) + } + + addTab(tabbar, resource_type) { + const self = this; + tabbar.append('button') + .attr('class', 'okit-tab') + .attr('id', this.generateTabId(resource_type)) + .attr('type', 'button') + .text(this.generateTabName(resource_type)) + .on('click', function () { + $('#tabular_view_tab_bar > button').removeClass("okit-tab-active"); + $(jqId(self.generateTabId(resource_type))).addClass("okit-tab-active"); + self.loadTabContent(resource_type); + }); + $('#tabular_view_tab_bar button:first-child').trigger("click"); + } + + generateTabId(name) { + return `${name}_tab`; + } + + generateTabName(name) { + return titleCase(name.replaceAll('_', ' ')); + } + + loadTabContent(resource_type) { + // Merge Property Maps + const property_map = {...this.resource_property_map['common'], ...this.resource_property_map[resource_type]} + const contents_div = d3.select(d3Id('tabular_view_tab_contents')); + // Empty existing Canvas + contents_div.selectAll('*').remove(); + // Build Table + const table = contents_div.append('div').attr('class', 'table okit-table'); + // Add Header + this.addTableHeader(table, property_map, resource_type); + // Add Body + this.addTableBody(table, property_map, resource_type); + } + + addTableHeader(table, property_map, resource_type) { + // Table Header + const thead = table.append('div').attr('class', 'thead'); + const tr = thead.append('div').attr('class', 'tr'); + Object.entries(property_map).forEach(([key, value]) => { + tr.append('div').attr('class', 'th').text(key); + }); + } + + addTableBody(table, property_map, resource_type) { + const self = this; + // Table Body + const tbody = table.append('div').attr('class', 'tbody okit-tbody-alternating-colours'); + let first = true; + for (let resource of this.okitjson[resource_type]) { + // Designer View Object + const view_resource = this.getViewResource(resource.getArtifactReference(), resource.id); + const tr = tbody.append('div').attr('class', 'tr').on('click', function() {view_resource.loadSlidePanels()}); + if (first) {first = false; view_resource.loadSlidePanels();} + Object.entries(property_map).forEach(([key, value]) => { + let cell_data = ''; + if (value.lookup) { + if (Array.isArray(resource[value.property])) { + const array_data = resource[value.property].map(id => self.getResource(value.lookup, id).display_name); + cell_data = array_data.join(', '); + } else { + const lookup = this.getResource(value.lookup, resource[value.property]); + if (lookup) { + cell_data = lookup.display_name; + } else { + cell_data = ''; + } + } + } else { + cell_data = this.getValue(resource, value.property); + } + tr.append('div').attr('class', 'td').text(cell_data); + }); + } + } + + getResource(lookup, id) { + const sections = lookup.split('.'); + const obj = sections[0]; + const getFunction = sections[1]; + return this[obj][getFunction](id); + } + + getViewResource(type, id) { + const getFunction = `get${type.split(' ').join('')}`; + return okitJsonView[getFunction](id); + } + + getValue(resource, key) { + const keys = key.split('.'); + if (keys.length > 1) { + return this.getValue(resource[keys[0]], keys.slice(1).join('.')); + } else { + return resource[key]; + } + } + + +} + +let okitTabularView = null; diff --git a/okitweb/static/okit/view/tree/css/okit_tree_view.css b/okitweb/static/okit/view/tree/css/okit_tree_view.css index aa4356784..e52b65b09 100644 --- a/okitweb/static/okit/view/tree/css/okit_tree_view.css +++ b/okitweb/static/okit/view/tree/css/okit_tree_view.css @@ -1,5 +1,5 @@ /* -# Copyright (c) 2020, Oracle and/or its affiliates. +# Copyright (c) 2021, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/okitweb/static/okit/view/tree/js/okit_tree_view.js b/okitweb/static/okit/view/tree/js/okit_tree_view.js index 32265323d..83f411de9 100644 --- a/okitweb/static/okit/view/tree/js/okit_tree_view.js +++ b/okitweb/static/okit/view/tree/js/okit_tree_view.js @@ -1,5 +1,5 @@ /* -** Copyright (c) 2020, Oracle and/or its affiliates. +** Copyright (c) 2021, Oracle and/or its affiliates. ** Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. */ console.info('Loaded OKIT Tree View Javascript'); diff --git a/okitweb/static/svg/refresh.svg b/okitweb/static/svg/refresh.svg new file mode 100644 index 000000000..ee53b22d0 --- /dev/null +++ b/okitweb/static/svg/refresh.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/okitweb/templates/okit/okit_console.html b/okitweb/templates/okit/okit_console.html index bd3d98a65..a17379eb8 100644 --- a/okitweb/templates/okit/okit_console.html +++ b/okitweb/templates/okit/okit_console.html @@ -1,5 +1,5 @@ @@ -10,10 +10,12 @@ - + {% if use_modules is defined %} + + {% endif %} {% block headscripts %}{% endblock %} {% block headcss %}{% endblock %} @@ -58,7 +60,7 @@ Version {% block footerblock %}{% endblock %} - Copyright (c) 2020, Oracle and/or its affiliates. + Copyright (c) 2021, Oracle and/or its affiliates. diff --git a/okitweb/templates/okit/okit_designer.html b/okitweb/templates/okit/okit_designer.html index 597e6559a..3f622b9c3 100644 --- a/okitweb/templates/okit/okit_designer.html +++ b/okitweb/templates/okit/okit_designer.html @@ -1,5 +1,5 @@ {% extends "okit/okit_console.html" %} @@ -36,9 +36,11 @@ + +