Class: Google::Apis::BigqueryV2::ProjectList::Project

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb

Overview

Information about a single project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Project

Returns a new instance of Project.



8008
8009
8010
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8008

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#friendly_nameString

A descriptive name for this project. A wrapper is used here because friendlyName can be set to the empty string. Corresponds to the JSON property friendlyName

Returns:

  • (String)


7986
7987
7988
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7986

def friendly_name
  @friendly_name
end

#idString

An opaque ID of this project. Corresponds to the JSON property id

Returns:

  • (String)


7991
7992
7993
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7991

def id
  @id
end

#kindString

The resource type. Corresponds to the JSON property kind

Returns:

  • (String)


7996
7997
7998
# File 'lib/google/apis/bigquery_v2/classes.rb', line 7996

def kind
  @kind
end

#numeric_idFixnum

The numeric ID of this project. Corresponds to the JSON property numericId

Returns:

  • (Fixnum)


8001
8002
8003
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8001

def numeric_id
  @numeric_id
end

#project_referenceGoogle::Apis::BigqueryV2::ProjectReference

A unique reference to a project. Corresponds to the JSON property projectReference



8006
8007
8008
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8006

def project_reference
  @project_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8013
8014
8015
8016
8017
8018
8019
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8013

def update!(**args)
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @numeric_id = args[:numeric_id] if args.key?(:numeric_id)
  @project_reference = args[:project_reference] if args.key?(:project_reference)
end