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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Project

Returns a new instance of Project.



4490
4491
4492
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4490

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

Instance Attribute Details

#friendly_nameString

A descriptive name for this project. Corresponds to the JSON property friendlyName

Returns:

  • (String)


4468
4469
4470
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4468

def friendly_name
  @friendly_name
end

#idString

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

Returns:

  • (String)


4473
4474
4475
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4473

def id
  @id
end

#kindString

The resource type. Corresponds to the JSON property kind

Returns:

  • (String)


4478
4479
4480
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4478

def kind
  @kind
end

#numeric_idFixnum

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

Returns:

  • (Fixnum)


4483
4484
4485
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4483

def numeric_id
  @numeric_id
end

#project_referenceGoogle::Apis::BigqueryV2::ProjectReference

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



4488
4489
4490
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4488

def project_reference
  @project_reference
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4495
4496
4497
4498
4499
4500
4501
# File 'generated/google/apis/bigquery_v2/classes.rb', line 4495

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