google-cloud-web_security_scanner-v1beta 0.3.1 → 0.3.2

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: 8ed4b9404269719c6500c98895a3aaeb608dc8ca244dc10dadd4cbf20a485307
4
- data.tar.gz: e7cc49c85644df9ee6393d47e88d7cafc151a97c45abf7fccf4d3d7b3ac3063d
3
+ metadata.gz: 1c0c03f754a5a047dce865b1c803299e27fe057354c15ad0086e7d7152107072
4
+ data.tar.gz: 425fbad304217a0475c2f72947e919b02043e5a20390ee08b81c9f4c6cac30d9
5
5
  SHA512:
6
- metadata.gz: b5bd4424f278dd260233e008eda0ab78b5c38afaf3b61acbf4bfd045d98d7fe481174d3a418a6fee9f8953aff8ae3245dd88aab621f950c8e21559fb55b7649c
7
- data.tar.gz: 455b13a303909d8d0f7c1a4d9aba7b58fec9d8a51a928dab2cacfb111a00e0e8cdf7776f5bfea5ecb322eb3236c73e12ca572773c698da05bffce49c16915907
6
+ metadata.gz: 5c3dc786996f5759d6827ba891babde9424f50d2ced3d26f7f77c04d39c58426f5343ade57c6014e95bec9c6a5e1744ca4032698e51b0fdc253d6ee66da6b189
7
+ data.tar.gz: 311ea465a9132528860a61c085ed1f530527295e734547ca92876641e0949e2d94c28826ff0159dd36dc70b9ae2b3a42adc8096e79e0f916c914a9822afd061b
data/AUTHENTICATION.md CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-web_security_scanner-v1beta
66
66
  checks for credentials are configured on the service Credentials class (such as
67
67
  {::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Credentials}):
68
68
 
69
- 1. `WEB_SECURITY_SCANNER_CREDENTIALS` - Path to JSON file, or JSON contents
70
- 2. `WEB_SECURITY_SCANNER_KEYFILE` - Path to JSON file, or JSON contents
71
- 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
- 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
- 5. `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
69
+ * `WEB_SECURITY_SCANNER_CREDENTIALS` - Path to JSON file, or JSON contents
70
+ * `WEB_SECURITY_SCANNER_KEYFILE` - Path to JSON file, or JSON contents
71
+ * `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
72
+ * `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
73
+ * `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
74
74
 
75
75
  ```ruby
76
76
  require "google/cloud/web_security_scanner/v1beta"
@@ -82,8 +82,8 @@ client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client
82
82
 
83
83
  ### Configuration
84
84
 
85
- The **Credentials JSON** can be configured instead of placing them in
86
- environment variables. Either on an individual client initialization:
85
+ The path to the **Credentials JSON** file can be configured instead of storing
86
+ it in an environment variable. Either on an individual client initialization:
87
87
 
88
88
  ```ruby
89
89
  require "google/cloud/web_security_scanner/v1beta"
@@ -93,7 +93,7 @@ client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client
93
93
  end
94
94
  ```
95
95
 
96
- Or configured globally for all clients:
96
+ Or globally for all clients:
97
97
 
98
98
  ```ruby
99
99
  require "google/cloud/web_security_scanner/v1beta"
data/README.md CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
33
33
  require "google/cloud/web_security_scanner/v1beta"
34
34
 
35
35
  client = ::Google::Cloud::WebSecurityScanner::V1beta::WebSecurityScanner::Client.new
36
- request = my_create_request
36
+ request = ::Google::Cloud::WebSecurityScanner::V1beta::CreateScanConfigRequest.new # (request fields as keyword arguments...)
37
37
  response = client.create_scan_config request
38
38
  ```
39
39
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebSecurityScanner
23
23
  module V1beta
24
- VERSION = "0.3.1"
24
+ VERSION = "0.3.2"
25
25
  end
26
26
  end
27
27
  end
@@ -71,26 +71,17 @@ module Google
71
71
 
72
72
  default_config.rpcs.delete_scan_config.timeout = 600.0
73
73
  default_config.rpcs.delete_scan_config.retry_policy = {
74
- initial_delay: 0.1,
75
- max_delay: 60.0,
76
- multiplier: 1.3,
77
- retry_codes: [4, 14]
74
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
78
75
  }
79
76
 
80
77
  default_config.rpcs.get_scan_config.timeout = 600.0
81
78
  default_config.rpcs.get_scan_config.retry_policy = {
82
- initial_delay: 0.1,
83
- max_delay: 60.0,
84
- multiplier: 1.3,
85
- retry_codes: [4, 14]
79
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
86
80
  }
87
81
 
88
82
  default_config.rpcs.list_scan_configs.timeout = 600.0
89
83
  default_config.rpcs.list_scan_configs.retry_policy = {
90
- initial_delay: 0.1,
91
- max_delay: 60.0,
92
- multiplier: 1.3,
93
- retry_codes: [4, 14]
84
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
94
85
  }
95
86
 
96
87
  default_config.rpcs.update_scan_config.timeout = 600.0
@@ -99,52 +90,34 @@ module Google
99
90
 
100
91
  default_config.rpcs.get_scan_run.timeout = 600.0
101
92
  default_config.rpcs.get_scan_run.retry_policy = {
102
- initial_delay: 0.1,
103
- max_delay: 60.0,
104
- multiplier: 1.3,
105
- retry_codes: [4, 14]
93
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
106
94
  }
107
95
 
108
96
  default_config.rpcs.list_scan_runs.timeout = 600.0
109
97
  default_config.rpcs.list_scan_runs.retry_policy = {
110
- initial_delay: 0.1,
111
- max_delay: 60.0,
112
- multiplier: 1.3,
113
- retry_codes: [4, 14]
98
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
114
99
  }
115
100
 
116
101
  default_config.rpcs.stop_scan_run.timeout = 600.0
117
102
 
118
103
  default_config.rpcs.list_crawled_urls.timeout = 600.0
119
104
  default_config.rpcs.list_crawled_urls.retry_policy = {
120
- initial_delay: 0.1,
121
- max_delay: 60.0,
122
- multiplier: 1.3,
123
- retry_codes: [4, 14]
105
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
124
106
  }
125
107
 
126
108
  default_config.rpcs.get_finding.timeout = 600.0
127
109
  default_config.rpcs.get_finding.retry_policy = {
128
- initial_delay: 0.1,
129
- max_delay: 60.0,
130
- multiplier: 1.3,
131
- retry_codes: [4, 14]
110
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
132
111
  }
133
112
 
134
113
  default_config.rpcs.list_findings.timeout = 600.0
135
114
  default_config.rpcs.list_findings.retry_policy = {
136
- initial_delay: 0.1,
137
- max_delay: 60.0,
138
- multiplier: 1.3,
139
- retry_codes: [4, 14]
115
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
140
116
  }
141
117
 
142
118
  default_config.rpcs.list_finding_type_stats.timeout = 600.0
143
119
  default_config.rpcs.list_finding_type_stats.retry_policy = {
144
- initial_delay: 0.1,
145
- max_delay: 60.0,
146
- multiplier: 1.3,
147
- retry_codes: [4, 14]
120
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
148
121
  }
149
122
 
150
123
  default_config
@@ -215,7 +188,7 @@ module Google
215
188
  !@config.endpoint.split(".").first.include?("-")
216
189
  credentials ||= Credentials.default scope: @config.scope,
217
190
  enable_self_signed_jwt: enable_self_signed_jwt
218
- if credentials.is_a?(String) || credentials.is_a?(Hash)
191
+ if credentials.is_a?(::String) || credentials.is_a?(::Hash)
219
192
  credentials = Credentials.new credentials, scope: @config.scope
220
193
  end
221
194
  @quota_project_id = @config.quota_project
@@ -30,7 +30,7 @@ module Google
30
30
  # attempts to exercise as many user inputs and event handlers as possible.
31
31
  class Service
32
32
 
33
- include ::GRPC::GenericService
33
+ include GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode
@@ -57,9 +57,15 @@ module Google
57
57
 
58
58
  # Denotes that a (repeated) field is an unordered list.
59
59
  # This indicates that the service may provide the elements of the list
60
- # in any arbitrary order, rather than the order the user originally
60
+ # in any arbitrary order, rather than the order the user originally
61
61
  # provided. Additionally, the list's order may or may not be stable.
62
62
  UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
63
69
  end
64
70
  end
65
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-web_security_scanner-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-17 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common