Skip to content

Commit

Permalink
feat(provider): added diagrams for IBM Provider (mingrammer#525)
Browse files Browse the repository at this point in the history
* Added IBM Provider

* Added IBM Provider

* Added IBM Provider

* Added IBM Provider

* Add IBM Provider

* Add IBM Provider

* Add IBM Provider

* Add IBM Provider

* Add IBM Provider

* Add IBM Provider

* Modified image after review comments

* Deleted resources

* Modified after review comments

* Modified as per code review

* Modified as per code review

* Modified as per code review

* Modified as per code review

* Modified as per code review
  • Loading branch information
MalarvizhiK authored May 23, 2021
1 parent c414787 commit fafab5e
Show file tree
Hide file tree
Showing 199 changed files with 1,151 additions and 3 deletions.
4 changes: 2 additions & 2 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
app_root_dir="diagrams"

# NOTE: azure icon set is not latest version
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas" "elastic" "generic" "openstack" "outscale" )
providers=("onprem" "aws" "azure" "gcp" "ibm" "firebase" "k8s" "alibabacloud" "oci" "programming" "saas" "elastic" "generic" "openstack" "outscale" )

if ! [ -x "$(command -v round)" ]; then
echo 'round is not installed'
Expand Down Expand Up @@ -33,7 +33,7 @@ for pvd in "${providers[@]}"; do
echo "converting the svg to png using inkscape for provider '$pvd'"
python -m scripts.resource svg2png "$pvd"
fi
if [ "$pvd" == "oci" ]; then
if [ "$pvd" == "oci" ] || [ "$pvd" = "ibm" ]; then
echo "converting the svg to png using image magick for provider '$pvd'"
python -m scripts.resource svg2png2 "$pvd"
fi
Expand Down
8 changes: 7 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
DIR_TEMPLATE = "templates"

PROVIDERS = (
"base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "elastic",
"base", "onprem", "aws", "azure", "gcp", "ibm", "firebase", "k8s", "alibabacloud", "oci", "programming", "saas", "elastic",
"generic", "openstack", "outscale")

#########################
Expand All @@ -32,6 +32,7 @@
"azure": ("Azure-",),
"gcp": ("Cloud-",),
"firebase": ("Cloud-",),
"ibm": (),
"k8s": (),
"alibabacloud": (),
"oci": ("OCI-icon-",),
Expand Down Expand Up @@ -70,6 +71,7 @@
"outscale": ("osc",),
"openstack": ("rpm", "loci", "nfv", "ec2api"),
"pve": ("pve"),
"ibm": ("ibm"),
}

TITLE_WORDS = {
Expand All @@ -85,6 +87,9 @@
"openstack": {
"openstack": "OpenStack"
},
"ibm": {
"ibm": "IBMCloud"
},
}

# TODO: check if the classname exists
Expand Down Expand Up @@ -424,6 +429,7 @@
"outscale": {
"Osc": "OSC",
},
"ibm": {},
"generic": {},
"openstack": {
"user": {
Expand Down
12 changes: 12 additions & 0 deletions diagrams/ibm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
IBM provides a set of services for IBM Cloud provider.
"""

from diagrams import Node


class _IBM(Node):
_provider = "ibm"
_icon_dir = "resources/ibm"

fontcolor = "#ffffff"
31 changes: 31 additions & 0 deletions diagrams/ibm/analytics.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _IBM


class _Analytics(_IBM):
_type = "analytics"
_icon_dir = "resources/ibm/analytics"


class Analytics(_Analytics):
_icon = "analytics.png"


class DataIntegration(_Analytics):
_icon = "data-integration.png"


class DataRepositories(_Analytics):
_icon = "data-repositories.png"


class DeviceAnalytics(_Analytics):
_icon = "device-analytics.png"


class StreamingComputing(_Analytics):
_icon = "streaming-computing.png"


# Aliases
87 changes: 87 additions & 0 deletions diagrams/ibm/applications.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _IBM


class _Applications(_IBM):
_type = "applications"
_icon_dir = "resources/ibm/applications"


class ActionableInsight(_Applications):
_icon = "actionable-insight.png"


class Annotate(_Applications):
_icon = "annotate.png"


class ApiDeveloperPortal(_Applications):
_icon = "api-developer-portal.png"


class ApiPolyglotRuntimes(_Applications):
_icon = "api-polyglot-runtimes.png"


class AppServer(_Applications):
_icon = "app-server.png"


class ApplicationLogic(_Applications):
_icon = "application-logic.png"


class EnterpriseApplications(_Applications):
_icon = "enterprise-applications.png"


class Index(_Applications):
_icon = "index.png"


class IotApplication(_Applications):
_icon = "iot-application.png"


class Microservice(_Applications):
_icon = "microservice.png"


class MobileApp(_Applications):
_icon = "mobile-app.png"


class Ontology(_Applications):
_icon = "ontology.png"


class OpenSourceTools(_Applications):
_icon = "open-source-tools.png"


class RuntimeServices(_Applications):
_icon = "runtime-services.png"


class SaasApplications(_Applications):
_icon = "saas-applications.png"


class ServiceBroker(_Applications):
_icon = "service-broker.png"


class SpeechToText(_Applications):
_icon = "speech-to-text.png"


class VisualRecognition(_Applications):
_icon = "visual-recognition.png"


class Visualization(_Applications):
_icon = "visualization.png"


# Aliases
91 changes: 91 additions & 0 deletions diagrams/ibm/blockchain.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _IBM


class _Blockchain(_IBM):
_type = "blockchain"
_icon_dir = "resources/ibm/blockchain"


class BlockchainDeveloper(_Blockchain):
_icon = "blockchain-developer.png"


class Blockchain(_Blockchain):
_icon = "blockchain.png"


class CertificateAuthority(_Blockchain):
_icon = "certificate-authority.png"


class ClientApplication(_Blockchain):
_icon = "client-application.png"


class Communication(_Blockchain):
_icon = "communication.png"


class Consensus(_Blockchain):
_icon = "consensus.png"


class EventListener(_Blockchain):
_icon = "event-listener.png"


class Event(_Blockchain):
_icon = "event.png"


class ExistingEnterpriseSystems(_Blockchain):
_icon = "existing-enterprise-systems.png"


class HyperledgerFabric(_Blockchain):
_icon = "hyperledger-fabric.png"


class KeyManagement(_Blockchain):
_icon = "key-management.png"


class Ledger(_Blockchain):
_icon = "ledger.png"


class MembershipServicesProviderApi(_Blockchain):
_icon = "membership-services-provider-api.png"


class Membership(_Blockchain):
_icon = "membership.png"


class MessageBus(_Blockchain):
_icon = "message-bus.png"


class Node(_Blockchain):
_icon = "node.png"


class Services(_Blockchain):
_icon = "services.png"


class SmartContract(_Blockchain):
_icon = "smart-contract.png"


class TransactionManager(_Blockchain):
_icon = "transaction-manager.png"


class Wallet(_Blockchain):
_icon = "wallet.png"


# Aliases
31 changes: 31 additions & 0 deletions diagrams/ibm/compute.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _IBM


class _Compute(_IBM):
_type = "compute"
_icon_dir = "resources/ibm/compute"


class BareMetalServer(_Compute):
_icon = "bare-metal-server.png"


class ImageService(_Compute):
_icon = "image-service.png"


class Instance(_Compute):
_icon = "instance.png"


class Key(_Compute):
_icon = "key.png"


class PowerInstance(_Compute):
_icon = "power-instance.png"


# Aliases
63 changes: 63 additions & 0 deletions diagrams/ibm/data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _IBM


class _Data(_IBM):
_type = "data"
_icon_dir = "resources/ibm/data"


class Caches(_Data):
_icon = "caches.png"


class Cloud(_Data):
_icon = "cloud.png"


class ConversationTrainedDeployed(_Data):
_icon = "conversation-trained-deployed.png"


class DataServices(_Data):
_icon = "data-services.png"


class DataSources(_Data):
_icon = "data-sources.png"


class DeviceIdentityService(_Data):
_icon = "device-identity-service.png"


class DeviceRegistry(_Data):
_icon = "device-registry.png"


class EnterpriseData(_Data):
_icon = "enterprise-data.png"


class EnterpriseUserDirectory(_Data):
_icon = "enterprise-user-directory.png"


class FileRepository(_Data):
_icon = "file-repository.png"


class GroundTruth(_Data):
_icon = "ground-truth.png"


class Model(_Data):
_icon = "model.png"


class TmsDataInterface(_Data):
_icon = "tms-data-interface.png"


# Aliases
Loading

0 comments on commit fafab5e

Please sign in to comment.