cirro-ruby-client 2.6.3 → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f60b3aa8db76a0baf7c0ce89eed44b999ff6439afec256f9588df8b5c96b0ad
4
- data.tar.gz: e59888c01115556f222741b06e0f7b36a9a698c60f6f3d4089c266e7d3d360da
3
+ metadata.gz: 7d251b444388c5e2d6d554ac29fbb904304412661803964195a01bed6e693c95
4
+ data.tar.gz: f3676ac3e8b62ec4510e0adfd42e9e57a62dc2dfce626da89dd7f3c44a070b18
5
5
  SHA512:
6
- metadata.gz: 49bdf363a8a7ece722d79f1448a08ff71b0a9f8b6a79aa9c0570e671b405ef74a478422d89514667112efdfa6012a593991924eb6c9f76e792b48fd2d686e99b
7
- data.tar.gz: 5089c1c98d406d9f9a739317f485addf3978723d321e999bae68e70f80c291c7b7cb3414f4b87e862cb0e45f48d3c66951f85d9b0f07108d1c4a7d3cfa07657d
6
+ metadata.gz: 61f42a633e867fa8aee8c543cd42aec449366a5fe1b23f54d18cca067c111a7780293359853f1baece3a173ca567181ddb31b444d3b2eedd8817389c0c7d5564
7
+ data.tar.gz: 6b36051530472cd6325353b8ae055ae205e03020f56c081b54a5b233d28fb3ce3429e3d72ec036fafcb3cbdf835bb58436db89abc6f7a2313091fa44de2ce781
data/.circleci/config.yml CHANGED
@@ -1,13 +1,13 @@
1
1
  version: 2.1
2
2
  infra_container: &infra_container
3
- eu.gcr.io/cirro-io/swissknife@sha256:1dceb221bfc058c4ba22fe4dcbf4f30dfdc10951bc2293d5c53aebc4f87037f3
3
+ us.gcr.io/oi-tset/swissknife@sha256:e8b74aab06de688b29c600785782a614efdaf2c20df7ef9b53b2b0276815fb0c
4
4
 
5
5
  # Configure authentication in private registry
6
6
  infra_container_registry_auth:
7
7
  &infra_container_registry_auth
8
8
  auth:
9
9
  username: _json_key # default username when using a JSON key file to authenticate
10
- password: $GOOGLE_JSON_KEY
10
+ password: $GOOGLE_JSON_KEY_OI_TSET
11
11
 
12
12
  jobs:
13
13
  test:
@@ -76,10 +76,10 @@ jobs:
76
76
  - DEFECTDOJO_ENG_NAME: CircleCI Scan
77
77
  steps:
78
78
  - checkout
79
- - run:
79
+ - run:
80
80
  name: Setup access to GCP
81
81
  command: |
82
- echo $GOOGLE_JSON_KEY > ${HOME}/gcloud-service-key.json && \
82
+ echo $GOOGLE_JSON_KEY_OI_TSET > ${HOME}/gcloud-service-key.json && \
83
83
  gcloud auth activate-service-account --key-file=${HOME}/gcloud-service-key.json
84
84
  gcloud auth configure-docker
85
85
  - run:
@@ -92,7 +92,7 @@ jobs:
92
92
  command: |
93
93
  export DEFECTDOJO_TOKEN=$(gcloud secrets versions access latest \
94
94
  --secret="defectdojo_token" \
95
- --project=cirro-io \
95
+ --project=oi-tset \
96
96
  --quiet)
97
97
 
98
98
  # Send Trivy filesystem scan
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cirro-ruby-client (2.6.3)
4
+ cirro-ruby-client (2.6.5)
5
5
  activesupport
6
6
  faraday (< 1.2.0)
7
7
  faraday_middleware
@@ -1,7 +1,7 @@
1
1
  # rubocop:disable Style/MutableConstant
2
2
  module CirroIO
3
3
  module Client
4
- VERSION = '2.6.3'
4
+ VERSION = '2.6.5'
5
5
  end
6
6
  end
7
7
  # rubocop:enable Style/MutableConstant
@@ -9,6 +9,16 @@ module CirroIOV2
9
9
  response = client.request_client.request(:get, resource_root, params:)
10
10
  Responses::NotificationTopicPreferenceListResponse.new(response.body)
11
11
  end
12
+
13
+ def create(params)
14
+ response = client.request_client.request(:post, resource_root, body: params)
15
+ Responses::NotificationTopicPreferenceResponse.new(response.body)
16
+ end
17
+
18
+ def update(id, params)
19
+ response = client.request_client.request(:post, "#{resource_root}/#{id}", body: params)
20
+ Responses::NotificationTopicPreferenceResponse.new(response.body)
21
+ end
12
22
  end
13
23
  end
14
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cirro-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirro Dev Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-04 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport