Class: GitlabQuality::TestTooling::TestMetricsExporter::Config::GCS

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb

Overview

GCS client configuration object used to push metrics as json file to gcs bucket

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_id:, credentials:, bucket_name:, metrics_file_name:, dry_run: false) ⇒ GCS

Returns a new instance of GCS.



14
15
16
17
18
19
20
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 14

def initialize(project_id:, credentials:, bucket_name:, metrics_file_name:, dry_run: false)
  @project_id = project_id
  @credentials = credentials
  @bucket_name = bucket_name
  @metrics_file_name = metrics_file_name
  @dry_run = dry_run
end

Instance Attribute Details

#bucket_nameObject (readonly)

Returns the value of attribute bucket_name.



22
23
24
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 22

def bucket_name
  @bucket_name
end

#credentialsObject (readonly)

Returns the value of attribute credentials.



22
23
24
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 22

def credentials
  @credentials
end

#dry_runObject (readonly)

Returns the value of attribute dry_run.



22
23
24
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 22

def dry_run
  @dry_run
end

#metrics_file_nameObject (readonly)

Returns the value of attribute metrics_file_name.



22
23
24
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 22

def metrics_file_name
  @metrics_file_name
end

#project_idObject (readonly)

Returns the value of attribute project_id.



22
23
24
# File 'lib/gitlab_quality/test_tooling/test_metrics_exporter/config.rb', line 22

def project_id
  @project_id
end