browserup_mitmproxy_client 1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +68 -0
- data/README.md +119 -0
- data/Rakefile +10 -0
- data/browserup_mitmproxy_client.gemspec +38 -0
- data/docs/BrowserUpProxyApi.md +657 -0
- data/docs/Counter.md +20 -0
- data/docs/Entry.md +38 -0
- data/docs/EntryRequest.md +36 -0
- data/docs/EntryRequestCookies.md +32 -0
- data/docs/EntryRequestQueryString.md +22 -0
- data/docs/EntryResponse.md +36 -0
- data/docs/EntryResponseContent.md +28 -0
- data/docs/EntryTimings.md +32 -0
- data/docs/Error.md +20 -0
- data/docs/Har.md +18 -0
- data/docs/HarLog.md +28 -0
- data/docs/HarLogCreator.md +22 -0
- data/docs/Header.md +22 -0
- data/docs/MatchCriteria.md +44 -0
- data/docs/NameValuePair.md +20 -0
- data/docs/Page.md +32 -0
- data/docs/PagePageTimings.md +22 -0
- data/docs/VerifyResult.md +22 -0
- data/docs/WebSocketMessage.md +24 -0
- data/git_push.sh +58 -0
- data/lib/browserup_mitmproxy_client/api/browser_up_proxy_api.rb +689 -0
- data/lib/browserup_mitmproxy_client/api_client.rb +389 -0
- data/lib/browserup_mitmproxy_client/api_error.rb +57 -0
- data/lib/browserup_mitmproxy_client/configuration.rb +279 -0
- data/lib/browserup_mitmproxy_client/models/counter.rb +239 -0
- data/lib/browserup_mitmproxy_client/models/entry.rb +359 -0
- data/lib/browserup_mitmproxy_client/models/entry_request.rb +346 -0
- data/lib/browserup_mitmproxy_client/models/entry_request_cookies.rb +291 -0
- data/lib/browserup_mitmproxy_client/models/entry_request_query_string.rb +246 -0
- data/lib/browserup_mitmproxy_client/models/entry_response.rb +348 -0
- data/lib/browserup_mitmproxy_client/models/entry_response_content.rb +273 -0
- data/lib/browserup_mitmproxy_client/models/entry_timings.rb +463 -0
- data/lib/browserup_mitmproxy_client/models/error.rb +229 -0
- data/lib/browserup_mitmproxy_client/models/har.rb +223 -0
- data/lib/browserup_mitmproxy_client/models/har_log.rb +287 -0
- data/lib/browserup_mitmproxy_client/models/har_log_creator.rb +246 -0
- data/lib/browserup_mitmproxy_client/models/header.rb +246 -0
- data/lib/browserup_mitmproxy_client/models/match_criteria.rb +346 -0
- data/lib/browserup_mitmproxy_client/models/name_value_pair.rb +229 -0
- data/lib/browserup_mitmproxy_client/models/page.rb +312 -0
- data/lib/browserup_mitmproxy_client/models/page_page_timings.rb +288 -0
- data/lib/browserup_mitmproxy_client/models/verify_result.rb +254 -0
- data/lib/browserup_mitmproxy_client/models/web_socket_message.rb +265 -0
- data/lib/browserup_mitmproxy_client/version.rb +15 -0
- data/lib/browserup_mitmproxy_client.rb +59 -0
- data/spec/api/browser_up_proxy_api_spec.rb +148 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/counter_spec.rb +40 -0
- data/spec/models/entry_request_cookies_spec.rb +76 -0
- data/spec/models/entry_request_query_string_spec.rb +46 -0
- data/spec/models/entry_request_spec.rb +88 -0
- data/spec/models/entry_response_content_spec.rb +64 -0
- data/spec/models/entry_response_spec.rb +88 -0
- data/spec/models/entry_spec.rb +94 -0
- data/spec/models/entry_timings_spec.rb +76 -0
- data/spec/models/error_spec.rb +40 -0
- data/spec/models/har_log_creator_spec.rb +46 -0
- data/spec/models/har_log_spec.rb +64 -0
- data/spec/models/har_spec.rb +34 -0
- data/spec/models/header_spec.rb +46 -0
- data/spec/models/match_criteria_spec.rb +112 -0
- data/spec/models/name_value_pair_spec.rb +40 -0
- data/spec/models/page_page_timings_spec.rb +46 -0
- data/spec/models/page_spec.rb +76 -0
- data/spec/models/verify_result_spec.rb +46 -0
- data/spec/models/web_socket_message_spec.rb +52 -0
- data/spec/spec_helper.rb +111 -0
- metadata +181 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
# BrowserupMitmProxy::EntryRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **method** | **String** | | |
|
8
|
+
| **url** | **String** | | |
|
9
|
+
| **http_version** | **String** | | |
|
10
|
+
| **cookies** | [**Array<EntryRequestCookies>**](EntryRequestCookies.md) | | |
|
11
|
+
| **headers** | [**Array<Header>**](Header.md) | | |
|
12
|
+
| **query_string** | [**Array<EntryRequestQueryString>**](EntryRequestQueryString.md) | | |
|
13
|
+
| **post_data** | **Object** | Posted data info. | [optional] |
|
14
|
+
| **headers_size** | **Integer** | | |
|
15
|
+
| **body_size** | **Integer** | | |
|
16
|
+
| **comment** | **String** | | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'browserup_mitmproxy_client'
|
22
|
+
|
23
|
+
instance = BrowserupMitmProxy::EntryRequest.new(
|
24
|
+
method: null,
|
25
|
+
url: null,
|
26
|
+
http_version: null,
|
27
|
+
cookies: null,
|
28
|
+
headers: null,
|
29
|
+
query_string: null,
|
30
|
+
post_data: null,
|
31
|
+
headers_size: null,
|
32
|
+
body_size: null,
|
33
|
+
comment: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# BrowserupMitmProxy::EntryRequestCookies
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | |
|
8
|
+
| **value** | **String** | | |
|
9
|
+
| **path** | **String** | | [optional] |
|
10
|
+
| **domain** | **String** | | [optional] |
|
11
|
+
| **expires** | **String** | | [optional] |
|
12
|
+
| **http_only** | **Boolean** | | [optional] |
|
13
|
+
| **secure** | **Boolean** | | [optional] |
|
14
|
+
| **comment** | **String** | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'browserup_mitmproxy_client'
|
20
|
+
|
21
|
+
instance = BrowserupMitmProxy::EntryRequestCookies.new(
|
22
|
+
name: null,
|
23
|
+
value: null,
|
24
|
+
path: null,
|
25
|
+
domain: null,
|
26
|
+
expires: null,
|
27
|
+
http_only: null,
|
28
|
+
secure: null,
|
29
|
+
comment: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# BrowserupMitmProxy::EntryRequestQueryString
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | |
|
8
|
+
| **value** | **String** | | |
|
9
|
+
| **comment** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'browserup_mitmproxy_client'
|
15
|
+
|
16
|
+
instance = BrowserupMitmProxy::EntryRequestQueryString.new(
|
17
|
+
name: null,
|
18
|
+
value: null,
|
19
|
+
comment: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# BrowserupMitmProxy::EntryResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **status** | **Integer** | | |
|
8
|
+
| **status_text** | **String** | | |
|
9
|
+
| **http_version** | **String** | | |
|
10
|
+
| **cookies** | [**Array<EntryRequestCookies>**](EntryRequestCookies.md) | | |
|
11
|
+
| **headers** | [**Array<Header>**](Header.md) | | |
|
12
|
+
| **content** | [**EntryResponseContent**](EntryResponseContent.md) | | |
|
13
|
+
| **redirect_url** | **String** | | |
|
14
|
+
| **headers_size** | **Integer** | | |
|
15
|
+
| **body_size** | **Integer** | | |
|
16
|
+
| **comment** | **String** | | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'browserup_mitmproxy_client'
|
22
|
+
|
23
|
+
instance = BrowserupMitmProxy::EntryResponse.new(
|
24
|
+
status: null,
|
25
|
+
status_text: null,
|
26
|
+
http_version: null,
|
27
|
+
cookies: null,
|
28
|
+
headers: null,
|
29
|
+
content: null,
|
30
|
+
redirect_url: null,
|
31
|
+
headers_size: null,
|
32
|
+
body_size: null,
|
33
|
+
comment: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# BrowserupMitmProxy::EntryResponseContent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **size** | **Integer** | | |
|
8
|
+
| **compression** | **Integer** | | [optional] |
|
9
|
+
| **mime_type** | **String** | | |
|
10
|
+
| **text** | **String** | | [optional] |
|
11
|
+
| **encoding** | **String** | | [optional] |
|
12
|
+
| **comment** | **String** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'browserup_mitmproxy_client'
|
18
|
+
|
19
|
+
instance = BrowserupMitmProxy::EntryResponseContent.new(
|
20
|
+
size: null,
|
21
|
+
compression: null,
|
22
|
+
mime_type: null,
|
23
|
+
text: null,
|
24
|
+
encoding: null,
|
25
|
+
comment: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# BrowserupMitmProxy::EntryTimings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **dns** | **Integer** | | [default to -1] |
|
8
|
+
| **connect** | **Integer** | | [default to -1] |
|
9
|
+
| **blocked** | **Integer** | | [default to -1] |
|
10
|
+
| **_send** | **Integer** | | [default to -1] |
|
11
|
+
| **wait** | **Integer** | | [default to -1] |
|
12
|
+
| **receive** | **Integer** | | [default to -1] |
|
13
|
+
| **ssl** | **Integer** | | [default to -1] |
|
14
|
+
| **comment** | **String** | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'browserup_mitmproxy_client'
|
20
|
+
|
21
|
+
instance = BrowserupMitmProxy::EntryTimings.new(
|
22
|
+
dns: null,
|
23
|
+
connect: null,
|
24
|
+
blocked: null,
|
25
|
+
_send: null,
|
26
|
+
wait: null,
|
27
|
+
receive: null,
|
28
|
+
ssl: null,
|
29
|
+
comment: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
data/docs/Error.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# BrowserupMitmProxy::Error
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | Name of the Error to add. Stored in har under _errors | [optional] |
|
8
|
+
| **details** | **String** | Short details of the error | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'browserup_mitmproxy_client'
|
14
|
+
|
15
|
+
instance = BrowserupMitmProxy::Error.new(
|
16
|
+
name: null,
|
17
|
+
details: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Har.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# BrowserupMitmProxy::Har
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **log** | [**HarLog**](HarLog.md) | | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'browserup_mitmproxy_client'
|
13
|
+
|
14
|
+
instance = BrowserupMitmProxy::Har.new(
|
15
|
+
log: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/HarLog.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# BrowserupMitmProxy::HarLog
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **version** | **String** | | |
|
8
|
+
| **creator** | [**HarLogCreator**](HarLogCreator.md) | | |
|
9
|
+
| **browser** | [**HarLogCreator**](HarLogCreator.md) | | [optional] |
|
10
|
+
| **pages** | [**Array<Page>**](Page.md) | | |
|
11
|
+
| **entries** | [**Array<Entry>**](Entry.md) | | |
|
12
|
+
| **comment** | **String** | | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'browserup_mitmproxy_client'
|
18
|
+
|
19
|
+
instance = BrowserupMitmProxy::HarLog.new(
|
20
|
+
version: null,
|
21
|
+
creator: null,
|
22
|
+
browser: null,
|
23
|
+
pages: null,
|
24
|
+
entries: null,
|
25
|
+
comment: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# BrowserupMitmProxy::HarLogCreator
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | |
|
8
|
+
| **version** | **String** | | |
|
9
|
+
| **comment** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'browserup_mitmproxy_client'
|
15
|
+
|
16
|
+
instance = BrowserupMitmProxy::HarLogCreator.new(
|
17
|
+
name: null,
|
18
|
+
version: null,
|
19
|
+
comment: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/Header.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# BrowserupMitmProxy::Header
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | | |
|
8
|
+
| **value** | **String** | | |
|
9
|
+
| **comment** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'browserup_mitmproxy_client'
|
15
|
+
|
16
|
+
instance = BrowserupMitmProxy::Header.new(
|
17
|
+
name: null,
|
18
|
+
value: null,
|
19
|
+
comment: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# BrowserupMitmProxy::MatchCriteria
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **url** | **String** | Request URL regexp to match | [optional] |
|
8
|
+
| **page** | **String** | current|all | [optional] |
|
9
|
+
| **status** | **String** | HTTP Status code to match. | [optional] |
|
10
|
+
| **content** | **String** | Body content regexp content to match | [optional] |
|
11
|
+
| **content_type** | **String** | Content type | [optional] |
|
12
|
+
| **websocket_message** | **String** | Websocket message text to match | [optional] |
|
13
|
+
| **request_header** | [**NameValuePair**](NameValuePair.md) | | [optional] |
|
14
|
+
| **request_cookie** | [**NameValuePair**](NameValuePair.md) | | [optional] |
|
15
|
+
| **response_header** | [**NameValuePair**](NameValuePair.md) | | [optional] |
|
16
|
+
| **response_cookie** | [**NameValuePair**](NameValuePair.md) | | [optional] |
|
17
|
+
| **json_valid** | **Boolean** | Is valid JSON | [optional] |
|
18
|
+
| **json_path** | **String** | Has JSON path | [optional] |
|
19
|
+
| **json_schema** | **String** | Validates against passed JSON schema | [optional] |
|
20
|
+
| **error_if_no_traffic** | **Boolean** | If the proxy has NO traffic at all, return error | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'browserup_mitmproxy_client'
|
26
|
+
|
27
|
+
instance = BrowserupMitmProxy::MatchCriteria.new(
|
28
|
+
url: null,
|
29
|
+
page: null,
|
30
|
+
status: null,
|
31
|
+
content: null,
|
32
|
+
content_type: null,
|
33
|
+
websocket_message: null,
|
34
|
+
request_header: null,
|
35
|
+
request_cookie: null,
|
36
|
+
response_header: null,
|
37
|
+
response_cookie: null,
|
38
|
+
json_valid: null,
|
39
|
+
json_path: null,
|
40
|
+
json_schema: null,
|
41
|
+
error_if_no_traffic: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# BrowserupMitmProxy::NameValuePair
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **value** | **String** | Value to match | [optional] |
|
8
|
+
| **name** | **String** | Name to match | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'browserup_mitmproxy_client'
|
14
|
+
|
15
|
+
instance = BrowserupMitmProxy::NameValuePair.new(
|
16
|
+
value: null,
|
17
|
+
name: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Page.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# BrowserupMitmProxy::Page
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **started_date_time** | **Time** | | |
|
8
|
+
| **id** | **String** | | |
|
9
|
+
| **title** | **String** | | |
|
10
|
+
| **_verifications** | [**Array<VerifyResult>**](VerifyResult.md) | | |
|
11
|
+
| **_counters** | [**Array<Counter>**](Counter.md) | | [optional] |
|
12
|
+
| **_errors** | [**Array<Error>**](Error.md) | | [optional] |
|
13
|
+
| **page_timings** | [**PagePageTimings**](PagePageTimings.md) | | |
|
14
|
+
| **comment** | **String** | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'browserup_mitmproxy_client'
|
20
|
+
|
21
|
+
instance = BrowserupMitmProxy::Page.new(
|
22
|
+
started_date_time: null,
|
23
|
+
id: null,
|
24
|
+
title: null,
|
25
|
+
_verifications: null,
|
26
|
+
_counters: null,
|
27
|
+
_errors: null,
|
28
|
+
page_timings: null,
|
29
|
+
comment: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# BrowserupMitmProxy::PagePageTimings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **on_content_load** | **Integer** | | [default to -1] |
|
8
|
+
| **on_load** | **Integer** | | [default to -1] |
|
9
|
+
| **comment** | **String** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'browserup_mitmproxy_client'
|
15
|
+
|
16
|
+
instance = BrowserupMitmProxy::PagePageTimings.new(
|
17
|
+
on_content_load: null,
|
18
|
+
on_load: null,
|
19
|
+
comment: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# BrowserupMitmProxy::VerifyResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Type | |
|
8
|
+
| **name** | **String** | Name | |
|
9
|
+
| **result** | **Boolean** | Result True / False | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'browserup_mitmproxy_client'
|
15
|
+
|
16
|
+
instance = BrowserupMitmProxy::VerifyResult.new(
|
17
|
+
type: null,
|
18
|
+
name: null,
|
19
|
+
result: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# BrowserupMitmProxy::WebSocketMessage
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | | |
|
8
|
+
| **opcode** | **Float** | | |
|
9
|
+
| **data** | **String** | | |
|
10
|
+
| **time** | **Float** | | |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'browserup_mitmproxy_client'
|
16
|
+
|
17
|
+
instance = BrowserupMitmProxy::WebSocketMessage.new(
|
18
|
+
type: null,
|
19
|
+
opcode: null,
|
20
|
+
data: null,
|
21
|
+
time: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/git_push.sh
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
+
#
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
+
|
6
|
+
git_user_id=$1
|
7
|
+
git_repo_id=$2
|
8
|
+
release_note=$3
|
9
|
+
git_host=$4
|
10
|
+
|
11
|
+
if [ "$git_host" = "" ]; then
|
12
|
+
git_host="github.com"
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
+
fi
|
15
|
+
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
17
|
+
git_user_id="GIT_USER_ID"
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
+
fi
|
20
|
+
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
+
fi
|
25
|
+
|
26
|
+
if [ "$release_note" = "" ]; then
|
27
|
+
release_note="Minor update"
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
+
fi
|
30
|
+
|
31
|
+
# Initialize the local directory as a Git repository
|
32
|
+
git init
|
33
|
+
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
35
|
+
git add .
|
36
|
+
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
+
git commit -m "$release_note"
|
39
|
+
|
40
|
+
# Sets the new remote
|
41
|
+
git_remote=`git remote`
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
+
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
+
else
|
48
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
+
fi
|
50
|
+
|
51
|
+
fi
|
52
|
+
|
53
|
+
git pull origin master
|
54
|
+
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
58
|
+
|