Class: GitlabQuality::TestTooling::TestMetricsExporter::Config::GCS
- Inherits:
-
Object
- Object
- GitlabQuality::TestTooling::TestMetricsExporter::Config::GCS
- 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
-
#bucket_name ⇒ Object
readonly
Returns the value of attribute bucket_name.
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#dry_run ⇒ Object
readonly
Returns the value of attribute dry_run.
-
#metrics_file_name ⇒ Object
readonly
Returns the value of attribute metrics_file_name.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(project_id:, credentials:, bucket_name:, metrics_file_name:, dry_run: false) ⇒ GCS
constructor
A new instance of GCS.
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_name ⇒ Object (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 |
#credentials ⇒ Object (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_run ⇒ Object (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_name ⇒ Object (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_id ⇒ Object (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 |