Reference documentation and code samples for the google-cloud-debugger class Google::Cloud::Debugger::Project.
Project
Projects are top-level containers in Google Cloud Platform. They store information about billing and authorized users, and they control access to Stackdriver Debugger resources. Each project has a friendly name and a unique ID. Projects can be created only in the Google Developers Console.
See Google::Cloud#debugger
Inherits
- Object
Example
require "google/cloud/debugger" debugger = Google::Cloud::Debugger.new debugger.start
Methods
#agent
def agent()
The Stackdriver Debugger Agent object.
#attach
def attach()
require "google/cloud/debugger" debugger = Google::Cloud::Debugger.new debugger.start
#project
def project() -> String
The ID of the current project.
- (String) — the Google Cloud project ID
require "google/cloud/debugger" debugger = Google::Cloud::Debugger.new( project_id: "my-project", credentials: "/path/to/keyfile.json" ) debugger.project_id #=> "my-project"
#project_id
def project_id() -> String
The ID of the current project.
- (String) — the Google Cloud project ID
require "google/cloud/debugger" debugger = Google::Cloud::Debugger.new( project_id: "my-project", credentials: "/path/to/keyfile.json" ) debugger.project_id #=> "my-project"
#start
def start()
require "google/cloud/debugger" debugger = Google::Cloud::Debugger.new debugger.start
#stop
def stop()
require "google/cloud/debugger" debugger = Google::Cloud::Debugger.new debugger.start debugger.stop