gcloud_apis

command module
v0.0.0-...-9b87225 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

README

gcloud_apis

gcloud_apis is an auto-generated command-line interface (CLI) to interact with any Google Cloud Platform REST API.

Dependencies

Installation & Setup

  1. Download and install gcloud_apis with the Go tool:

    $ go get github.com/skelterjohn/gcloud_apis
    
  2. Make sure you have an authenticated user account with gcloud:

    $ gcloud auth login
    

gcloud_apis automatically uses gcloud to authenticate requests.

Usage

List methods
$ gcloud_apis list
autoscaler
autoscaler:v1beta2
bigquery
bigquery:v2
compute
compute:v1
$ gcloud_apis list autoscaler
autoscaler.autoscalers
autoscaler.zoneOperations
autoscaler.zones
$ gcloud_apis list autoscaler.autoscalers
autoscaler.autoscalers.delete
autoscaler.autoscalers.get
autoscaler.autoscalers.insert
autoscaler.autoscalers.list
autoscaler.autoscalers.patch
autoscaler.autoscalers.update
Make requests
$ gcloud_apis compute.instances.list <YOUR PROJECT>/us-central1-a
{
 "id": "projects/<YOUR PROJECT>/zones/us-central1-a/instances",
 "kind": "compute#instanceList",
 "selfLink": "https://www.googleapis.com/compute/v1/projects/<YOUR PROJECT>/zones/us-central1-a/instances"
}
$ gcloud_apis compute.projects.setCommonInstanceMetadata <YOUR PROJECT> --items[0].key=foo --items[0].value=bar
{
  "id": "4687621082493875678",
  "insertTime": "2014-11-02T14:03:25.131-08:00",
  "kind": "compute#operation",
  "name": "operation-1418418066582-29739ad979c21-7e7dac48-b6146833",
  "operationType": "setMetadata",
  "selfLink": "https://www.googleapis.com/compute/v1/projects/<YOUR PROJECT>/global/operations/operation-1418418066582-29739ad979c21-7e7dac48-b6146833",
  "startTime": "2014-11-02T14:03:25.131-08:00",
  "status": "PENDING",
  "targetId": "14043977863849352249",
  "targetLink": "https://www.googleapis.com/compute/v1/projects/<YOUR PROJECT>",
  "user": "set
}
$ gcloud_apis compute.projects.get <YOUR PROJECT>
{
  "commonInstanceMetadata": {
    "fingerprint": "Vm9SEZQeWH0=",
    "kind": "compute#metadata"
  },
  "creationTimestamp": "2014-11-02T14:03:25.131-08:00",
  "id": "14043977863193752249",
  "kind": "compute#project",
  "name": "<YOUR PROJECT>",
  "quotas": [],
  "selfLink": "https://www.googleapis.com/compute/v1/projects/<YOUR PROJECT>"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
clients
apikeys/v1
Package apikeys provides access to the Google API Keys API.
Package apikeys provides access to the Google API Keys API.
appengine/v1
Package appengine provides access to the Google App Engine Admin API.
Package appengine provides access to the Google App Engine Admin API.
bigquery/v2
Package bigquery provides access to the BigQuery API.
Package bigquery provides access to the BigQuery API.
bigtableadmin/v2
Package bigtableadmin provides access to the Cloud Bigtable Admin API.
Package bigtableadmin provides access to the Cloud Bigtable Admin API.
bigtableclusteradmin/v1
Package bigtableclusteradmin provides access to the Google Cloud Bigtable Cluster Admin API.
Package bigtableclusteradmin provides access to the Google Cloud Bigtable Cluster Admin API.
bio/v1
Package bio provides access to the Bio API.
Package bio provides access to the Bio API.
cloudbilling/v1
Package cloudbilling provides access to the Google Cloud Billing API.
Package cloudbilling provides access to the Google Cloud Billing API.
cloudbuild/v1
Package cloudbuild provides access to the Google Cloud Container Builder API.
Package cloudbuild provides access to the Google Cloud Container Builder API.
clouddebugger/v2
Package clouddebugger provides access to the Stackdriver Debugger API.
Package clouddebugger provides access to the Stackdriver Debugger API.
clouderrorreporting/v1beta1
Package clouderrorreporting provides access to the Stackdriver Error Reporting API.
Package clouderrorreporting provides access to the Stackdriver Error Reporting API.
cloudfunctions/v1beta2
Package cloudfunctions provides access to the Google Cloud Functions API.
Package cloudfunctions provides access to the Google Cloud Functions API.
cloudkms/v1beta1
Package cloudkms provides access to the Google Cloud Key Management Service (KMS) API.
Package cloudkms provides access to the Google Cloud Key Management Service (KMS) API.
cloudresourcemanager/v1beta1
Package cloudresourcemanager provides access to the Google Cloud Resource Manager API.
Package cloudresourcemanager provides access to the Google Cloud Resource Manager API.
cloudresourcesearch/v1
Package cloudresourcesearch provides access to the Google Cloud Resource Search.
Package cloudresourcesearch provides access to the Google Cloud Resource Search.
clouduseraccounts/alpha
Package clouduseraccounts provides access to the Cloud User Accounts API.
Package clouduseraccounts provides access to the Cloud User Accounts API.
clouduseraccounts/beta
Package clouduseraccounts provides access to the Cloud User Accounts API.
Package clouduseraccounts provides access to the Cloud User Accounts API.
compute/alpha
Package compute provides access to the Compute Engine API.
Package compute provides access to the Compute Engine API.
compute/beta
Package compute provides access to the Compute Engine API.
Package compute provides access to the Compute Engine API.
compute/v1
Package compute provides access to the Compute Engine API.
Package compute provides access to the Compute Engine API.
container/v1
Package container provides access to the Google Container Engine API.
Package container provides access to the Google Container Engine API.
containeranalysis/v1alpha1
Package containeranalysis provides access to the Container Analysis API.
Package containeranalysis provides access to the Container Analysis API.
dataflow/v1b3
Package dataflow provides access to the Google Dataflow API.
Package dataflow provides access to the Google Dataflow API.
dataproc/v1
Package dataproc provides access to the Google Cloud Dataproc API.
Package dataproc provides access to the Google Cloud Dataproc API.
deploymentmanager/alpha
Package deploymentmanager provides access to the Google Cloud Deployment Manager Alpha API.
Package deploymentmanager provides access to the Google Cloud Deployment Manager Alpha API.
deploymentmanager/v2
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
Package deploymentmanager provides access to the Google Cloud Deployment Manager API.
deploymentmanager/v2beta
Package deploymentmanager provides access to the Google Cloud Deployment Manager API V2Beta Methods.
Package deploymentmanager provides access to the Google Cloud Deployment Manager API V2Beta Methods.
dns/v1
Package dns provides access to the Google Cloud DNS API.
Package dns provides access to the Google Cloud DNS API.
dns/v1beta1
Package dns provides access to the Google Cloud DNS API.
Package dns provides access to the Google Cloud DNS API.
genomics/v1
Package genomics provides access to the Genomics API.
Package genomics provides access to the Genomics API.
genomics/v1alpha2
Package genomics provides access to the Genomics API.
Package genomics provides access to the Genomics API.
iam/v1
Package iam provides access to the Google Identity and Access Management (IAM) API.
Package iam provides access to the Google Identity and Access Management (IAM) API.
logging/v1beta3
Package logging provides access to the Stackdriver Logging API.
Package logging provides access to the Stackdriver Logging API.
logging/v2
Package logging provides access to the Stackdriver Logging API.
Package logging provides access to the Stackdriver Logging API.
manager/v1beta2
Package manager provides access to the Google Cloud Deployment Manager API.
Package manager provides access to the Google Cloud Deployment Manager API.
ml/v1beta1
Package ml provides access to the Google Cloud Machine Learning Engine.
Package ml provides access to the Google Cloud Machine Learning Engine.
pubsub/v1
Package pubsub provides access to the Google Cloud Pub/Sub API.
Package pubsub provides access to the Google Cloud Pub/Sub API.
replicapoolupdater/v1beta1
Package replicapoolupdater provides access to the Google Compute Engine Instance Group Updater API.
Package replicapoolupdater provides access to the Google Compute Engine Instance Group Updater API.
runtimeconfig/v1beta1
Package runtimeconfig provides access to the Google Cloud RuntimeConfig API.
Package runtimeconfig provides access to the Google Cloud RuntimeConfig API.
servicemanagement/v1
Package servicemanagement provides access to the Google Service Management API.
Package servicemanagement provides access to the Google Service Management API.
serviceregistry/v1alpha
Package serviceregistry provides access to the Google Cloud Service Registry API.
Package serviceregistry provides access to the Google Cloud Service Registry API.
sourcerepo/v1
Package sourcerepo provides access to the Cloud Source Repositories API.
Package sourcerepo provides access to the Cloud Source Repositories API.
spanner/v1
Package spanner provides access to the Cloud Spanner API.
Package spanner provides access to the Cloud Spanner API.
sqladmin/v1beta3
Package sqladmin provides access to the Cloud SQL Administration API.
Package sqladmin provides access to the Cloud SQL Administration API.
sqladmin/v1beta4
Package sqladmin provides access to the Cloud SQL Administration API.
Package sqladmin provides access to the Cloud SQL Administration API.
storage/v1
Package storage provides access to the Cloud Storage JSON API.
Package storage provides access to the Cloud Storage JSON API.
testing/v1
Package testing provides access to the Google Cloud Testing API.
Package testing provides access to the Google Cloud Testing API.
toolresults/v1beta3
Package toolresults provides access to the Cloud Tool Results API.
Package toolresults provides access to the Cloud Tool Results API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL