Skip to main content

A command called google and foo for the cloudmesh shell

Project description

Cloudmesh Google Providers

image

image

image

image

see cloudmesh.cmd5

Introduction

Cloudmesh-google provider offers various cloud engineering operations via command line. cloudmesh-google storage module provides following options via command line using cms storage :

  • create dir
  • put
  • get
  • list
  • delete

Also following options are available via command line using cms google :

  • json_to_yaml (adds json file information to yaml)
  • yaml_to_json (creates a json file from yaml entry)
  • list_bucket
  • create_bucket
  • blob_metadata
  • rename_blob
  • copy_blob_btw_buckets

Installation

Refer installation of cloudmesh-google:

References

Specifications

google-cloud-storage

json


    {
      "type": "service_account",
      "project_id": "imposing-coast-257700",
      "private_key_id": "xxxxxxxx....",
      "private_key": "-----BEGIN PRIVATE KEY-----\nxxxxxxxxxx\n-----END PRIVATE KEY-----\n",
      "client_email": "user@imposing-coast-257700.iam.gserviceaccount.com",
      "client_id": "12345678...",
      "auth_uri": "https://accounts.google.com/o/oauth2/auth",
      "token_uri": "https://oauth2.googleapis.com/token",
      "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
      "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/" \
                              "user%40imposing-coast-257700.iam.gserviceaccount.com"
    }

API Reference

Using API through Google API Python Client:

from googleapiclient.discovery import build

compute = build('compute', 'v1', developerKey=apiToken) #Multiple API versions, I assume v1 is the one we want to use

instances = compute.instances() #Holds operations for working with specific instances
instances.list() #List available instances
instances.delete(project, zone, instance) # Delete specific instance
#Etc.

API reference: http://googleapis.github.io/google-api-python-client/docs/dyn/compute_v1.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudmesh-google-4.1.9.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

cloudmesh_google-4.1.9-py2.py3-none-any.whl (15.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file cloudmesh-google-4.1.9.tar.gz.

File metadata

  • Download URL: cloudmesh-google-4.1.9.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for cloudmesh-google-4.1.9.tar.gz
Algorithm Hash digest
SHA256 4c859dc85c4d677f887935fe3312316e2177d0f0a85928240ecddd10fd09a473
MD5 acccd22bd00d9ac08ccd872456dae1e4
BLAKE2b-256 b772589d1447dacf81ccce990409864e43348bfcfde6ca2a5bb617482ad1ddec

See more details on using hashes here.

File details

Details for the file cloudmesh_google-4.1.9-py2.py3-none-any.whl.

File metadata

  • Download URL: cloudmesh_google-4.1.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for cloudmesh_google-4.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fc5dc26ed962806022d9b63656682af5700aa4d23e9180a81c43a0d1ef0e8319
MD5 841ed91a6b92cc4690b86ca1a7d23e74
BLAKE2b-256 d056e1ecfdbe8fc618c81bdd2ba9efb69d4683bcd92877d1bdc2df77084b1b1c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page