crimson-falcon 0.4.0 → 0.4.1

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: 04633c3be305b5165ec2b3b0a364218e9b8575e669c295fbb82d8974fa2d7b79
4
- data.tar.gz: 1e5befb53fd87c4a57d48c2cf9ded4fc3b725939f79ec608a6cbbb43eb12875b
3
+ metadata.gz: c6afe316bf6322ec5158a931338cba4f1736eaad52cb237226067a98bd536de4
4
+ data.tar.gz: 3d76c872bfe0c79b6e043c0e6d70f768fe004c6aa4283c6d54a44ed8f6383773
5
5
  SHA512:
6
- metadata.gz: 3c5e928591359792a3d903ae33c922e34b1635b85528abfd8684672cd0408073d4f88e9620d40c9d00f910df5a4a0b0c9813283cdb02804309726fa1c2a4a278
7
- data.tar.gz: 2711c10a88274c94b1b0d2807661c903aaa60c1b06c5f2d3932004dbd7eee366578aeb33b0de49963bcd468661123da7488fdb2e3cd2140f0d3d0bdc00d5e56b
6
+ metadata.gz: dd4c21cdf347f38f93d13ba29b160ef47dda59d3a216f6e69c938483651cb4129db5177d6ea8009dedabd9864482a244aa8225c37badc0e9c26216337b3a28a2
7
+ data.tar.gz: 1e7bbcb9ff9447561f4cc9fc62ac992623bbc465a5c20333f8d9dba360f71bce7a3e8f5e8cde263ac9d39357fe4e3e8367eaa661cbaf7255e5c3c7b45be462ff
data/README.md CHANGED
@@ -30,7 +30,7 @@ gem install crimson-falcon
30
30
  Add this to the Gemfile:
31
31
  <!-- x-release-please-start-version -->
32
32
  ```ruby
33
- gem 'crimson-falcon', '~> 0.4.0'
33
+ gem 'crimson-falcon', '~> 0.4.1'
34
34
  ```
35
35
  <!-- x-release-please-end -->
36
36
  ### From Source to Gem: Building the Ruby Code
@@ -44,13 +44,13 @@ gem build crimson-falcon.gemspec
44
44
  Then install the gem locally:
45
45
  <!-- x-release-please-start-version -->
46
46
  ```shell
47
- gem install ./crimson-falcon-0.4.0.gem
47
+ gem install ./crimson-falcon-0.4.1.gem
48
48
  ```
49
49
  <!-- x-release-please-end -->
50
50
  Finally, add this to the Gemfile:
51
51
  <!-- x-release-please-start-version -->
52
52
  ```ruby
53
- gem 'crimson-falcon', '~> 0.4.0'
53
+ gem 'crimson-falcon', '~> 0.4.1'
54
54
  ```
55
55
  <!-- x-release-please-end -->
56
56
  ### Install from Git
@@ -64,6 +64,13 @@ If the Ruby gem is hosted at a git repository: <https://github.com/GIT_USER_ID/G
64
64
 
65
65
  ## Getting Started
66
66
 
67
+ ### Samples
68
+
69
+ We have a collection of sample code that demonstrates how to use the Crimson Falcon SDK.
70
+ These samples are a great way to get started with the SDK. You can find the samples in the [samples](./samples) directory.
71
+
72
+ ### Take Flight
73
+
67
74
  Eager to take flight? Follow the [installation](#installation) process, and then launch into the following code:
68
75
 
69
76
  ```ruby
@@ -72,36 +79,20 @@ require 'crimson-falcon'
72
79
 
73
80
  # Setup authorization
74
81
  Falcon.configure do |config|
75
- config.client_id = "Your_Client_ID"
76
- config.client_secret = "Your_Client_Secret"
77
- config.cloud = "us-1" # or "us-2", "eu-1", "us-gov1"
82
+ config.client_id = ENV["FALCON_CLIENT_ID"]
83
+ config.client_secret = ENV["FALCON_CLIENT_SECRET"]
84
+ config.cloud = "us-2" # or "us-2", "eu-1", "us-gov1"
78
85
  end
79
86
 
80
87
  # Create a new API instance
81
- api_instance = Falcon::AlertsApi.new
82
- opts = {
83
- # Integer | The starting point for the return, `0` implies the latest detection.
84
- # The `offset` parameter assists in paginating results.
85
- offset: 0,
86
- # Integer | The maximum count of detections in this response (default: 100; max: 10000).
87
- # Works in tandem with the `offset` for pagination.
88
- limit: 25,
89
- # String | Sort detections in `asc` (ascending) or `desc` (descending) order.
90
- # Example: `status|asc` or `status|desc`.
91
- sort: 'Sort_Criteria',
92
- # String | Filter detections using a query in Falcon Query Language (FQL).
93
- # An asterisk wildcard `*` includes all results. See API docs for more details.
94
- filter: 'Filter_Criteria',
95
- # String | Search all detection metadata for the provided string
96
- q: 'Query_String'
97
- }
88
+ api_instance = Falcon::SensorDownloadApi.new
98
89
 
99
90
  begin
100
- # Retrieves all Alerts ids that match a given query
101
- result = api_instance.get_queries_alerts_v1(opts)
102
- p result
91
+ # Get CCID to use with sensor installers
92
+ result = api_instance.get_sensor_installers_ccidby_query
93
+ p result.resources
103
94
  rescue Falcon::ApiError => e
104
- puts "Exception when calling AlertsApi->get_queries_alerts_v1: #{e}"
95
+ puts "Error when calling SensorDownloadApi->get_sensor_installers_ccidby_query: #{e}"
105
96
  end
106
97
  ```
107
98
 
@@ -122,7 +122,7 @@ module Falcon
122
122
  @cert_file = nil
123
123
  @key_file = nil
124
124
  @timeout = 0
125
- @params_encoding = nil
125
+ @params_encoding = :multi
126
126
  @debugging = false
127
127
  @inject_format = false
128
128
  @force_ending_format = false
@@ -29,5 +29,5 @@ CrowdStrike Swagger API Version: 2024-01-26T00:00:01Z
29
29
  =end
30
30
 
31
31
  module Falcon
32
- VERSION = '0.4.0'.freeze
32
+ VERSION = '0.4.1'.freeze
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crimson-falcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CRWD Solution Architects
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-16 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -2626,7 +2626,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2626
2626
  - !ruby/object:Gem::Version
2627
2627
  version: '0'
2628
2628
  requirements: []
2629
- rubygems_version: 3.4.6
2629
+ rubygems_version: 3.4.19
2630
2630
  signing_key:
2631
2631
  specification_version: 4
2632
2632
  summary: CrowdStrike Falcon