google-cloud-debugger - Class Google::Cloud::Debugger::Project (v0.42.2)

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()
Alias Of: #start

Start the Stackdriver Debugger Agent.

See Agent#start for more details.

Example
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new
debugger.start

#project

def project() -> String
Alias Of: #project_id

The ID of the current project.

Returns
  • (String) — the Google Cloud project ID
Example
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
Aliases

The ID of the current project.

Returns
  • (String) — the Google Cloud project ID
Example
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()
Aliases

Start the Stackdriver Debugger Agent.

See Agent#start for more details.

Example
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new
debugger.start

#stop

def stop()

Stop the Stackdriver Debugger Agent.

See Agent#stop for more details.

Example
require "google/cloud/debugger"

debugger = Google::Cloud::Debugger.new
debugger.start
debugger.stop