Class: Google::Apis::ToolresultsV1beta3::ProjectSettings

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

Overview

Per-project settings for the Tool Results service.

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) ⇒ ProjectSettings

Returns a new instance of ProjectSettings



1098
1099
1100
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1098

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

Instance Attribute Details

#default_bucketString

The name of the Google Cloud Storage bucket to which results are written. By default, this is unset. In update request: optional In response: optional Corresponds to the JSON property defaultBucket

Returns:

  • (String)


1089
1090
1091
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1089

def default_bucket
  @default_bucket
end

#nameString

The name of the project's settings. Always of the form: projects/project-id/settings In update request: never set In response: always set Corresponds to the JSON property name

Returns:

  • (String)


1096
1097
1098
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1096

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1103
1104
1105
1106
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 1103

def update!(**args)
  @default_bucket = args[:default_bucket] if args.key?(:default_bucket)
  @name = args[:name] if args.key?(:name)
end