Ruby Client for the App Engine Admin V1 API
Provisions and manages developers' App Engine applications.
The App Engine Admin API provisions and manages your App Engine applications.
https://github.com/googleapis/google-cloud-ruby
This gem is a versioned client. It provides basic client classes for a specific version of the App Engine Admin V1 API. Most users should consider using the main client gem, google-cloud-app_engine. See the section below titled Which client should I use? for more information.
Installation
$ gem install google-cloud-app_engine-v1
Before You Begin
In order to use this library, you first need to go through the following steps:
- Select or create a Cloud Platform project.
- Enable billing for your project.
- Enable the API.
- Set up authentication.
Quick Start
require "google/cloud/app_engine/v1" client = ::Google::Cloud::AppEngine::V1::Applications::Client.new request = ::Google::Cloud::AppEngine::V1::GetApplicationRequest.new # (request fields as keyword arguments...) response = client.get_application request
View the Client Library Documentation for class and method documentation.
See also the Product Documentation for general usage information.
Enabling Logging
To enable logging for this library, set the logger for the underlying gRPC library.
The logger that you set may be a Ruby stdlib Logger
as shown below,
or a Google::Cloud::Logging::Logger
that will write logs to Cloud Logging. See grpc/logconfig.rb
and the gRPC spec_helper.rb for additional information.
Configuring a Ruby stdlib logger:
require "logger" module MyLogger LOGGER = Logger.new $stderr, level: Logger::WARN def logger LOGGER end end # Define a gRPC module-level logger method before grpc/logconfig.rb loads. module GRPC extend MyLogger end
Google Cloud Samples
To browse ready to use code samples check Google Cloud Samples.