google-apis-servicecontrol_v2 0.15.0 → 0.16.0

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: 9fd89746ffbbe8e48724f61a9392e656cb07341aa308654b009fbc9213c4223c
4
- data.tar.gz: 56deae45602e7c1dd7495e3d247c481e818d590050750f33a99dcd1614a1d69d
3
+ metadata.gz: f550fe524c6f5bc7454ca33a4bdacd4dc7e4a0b06d3a7e61d7cca81b03452f1d
4
+ data.tar.gz: 8adeb262a183ff41772d8ccf7cb94e801914270755d503b9f6b85044b2037831
5
5
  SHA512:
6
- metadata.gz: 7e9b89371b32bc138da17e87f5cea49b59829bcbc50bc257e8dd206b728395470f1c6d88d6ef1e313b3da91d1ac7b6ce5da60f50187377229a4a87410cc31bb8
7
- data.tar.gz: 1a67eee848dccda213e6828db2e3d8e1062629fa2b3712fa2532000c970796d1abd22609049a5bc1a4910228b93899cf1771bc38fcdb6f9f29132615f22f9e03
6
+ metadata.gz: 2b2982bcf572e94b768bb116ab995856448e6db24cd98002785ce1ea532d7b2dccdeb683912d6cce7f351fd4536a5aaf89e9b9483a3b39271da2d659faeda8ec
7
+ data.tar.gz: 9a6fe05615c5a9a17d24cf427b960c81d4941e9097d32f1050c92413ff81871e8bc9e9f7f6059d72c189f693f74a8e31f6a9da854a334526521a3c80a96c3f91
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-servicecontrol_v2
2
2
 
3
+ ### v0.16.0 (2022-02-19)
4
+
5
+ * Regenerated from discovery document revision 20220218
6
+ * Regenerated using generator version 0.4.1
7
+
3
8
  ### v0.15.0 (2021-12-16)
4
9
 
5
10
  * Unspecified changes
@@ -1181,6 +1181,311 @@ module Google
1181
1181
  @third_party_claims = args[:third_party_claims] if args.key?(:third_party_claims)
1182
1182
  end
1183
1183
  end
1184
+
1185
+ # A common proto for logging HTTP requests. Only contains semantics defined by
1186
+ # the HTTP specification. Product-specific logging information MUST be defined
1187
+ # in a separate message.
1188
+ class V2HttpRequest
1189
+ include Google::Apis::Core::Hashable
1190
+
1191
+ # The number of HTTP response bytes inserted into cache. Set only when a cache
1192
+ # fill was attempted.
1193
+ # Corresponds to the JSON property `cacheFillBytes`
1194
+ # @return [Fixnum]
1195
+ attr_accessor :cache_fill_bytes
1196
+
1197
+ # Whether or not an entity was served from cache (with or without validation).
1198
+ # Corresponds to the JSON property `cacheHit`
1199
+ # @return [Boolean]
1200
+ attr_accessor :cache_hit
1201
+ alias_method :cache_hit?, :cache_hit
1202
+
1203
+ # Whether or not a cache lookup was attempted.
1204
+ # Corresponds to the JSON property `cacheLookup`
1205
+ # @return [Boolean]
1206
+ attr_accessor :cache_lookup
1207
+ alias_method :cache_lookup?, :cache_lookup
1208
+
1209
+ # Whether or not the response was validated with the origin server before being
1210
+ # served from cache. This field is only meaningful if `cache_hit` is True.
1211
+ # Corresponds to the JSON property `cacheValidatedWithOriginServer`
1212
+ # @return [Boolean]
1213
+ attr_accessor :cache_validated_with_origin_server
1214
+ alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
1215
+
1216
+ # The request processing latency on the server, from the time the request was
1217
+ # received until the response was sent.
1218
+ # Corresponds to the JSON property `latency`
1219
+ # @return [String]
1220
+ attr_accessor :latency
1221
+
1222
+ # Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
1223
+ # Corresponds to the JSON property `protocol`
1224
+ # @return [String]
1225
+ attr_accessor :protocol
1226
+
1227
+ # The referer URL of the request, as defined in [HTTP/1.1 Header Field
1228
+ # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
1229
+ # Corresponds to the JSON property `referer`
1230
+ # @return [String]
1231
+ attr_accessor :referer
1232
+
1233
+ # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
1234
+ # Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
1235
+ # Corresponds to the JSON property `remoteIp`
1236
+ # @return [String]
1237
+ attr_accessor :remote_ip
1238
+
1239
+ # The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1240
+ # Corresponds to the JSON property `requestMethod`
1241
+ # @return [String]
1242
+ attr_accessor :request_method
1243
+
1244
+ # The size of the HTTP request message in bytes, including the request headers
1245
+ # and the request body.
1246
+ # Corresponds to the JSON property `requestSize`
1247
+ # @return [Fixnum]
1248
+ attr_accessor :request_size
1249
+
1250
+ # The scheme (http, https), the host name, the path, and the query portion of
1251
+ # the URL that was requested. Example: `"http://example.com/some/info?color=red"`
1252
+ # .
1253
+ # Corresponds to the JSON property `requestUrl`
1254
+ # @return [String]
1255
+ attr_accessor :request_url
1256
+
1257
+ # The size of the HTTP response message sent back to the client, in bytes,
1258
+ # including the response headers and the response body.
1259
+ # Corresponds to the JSON property `responseSize`
1260
+ # @return [Fixnum]
1261
+ attr_accessor :response_size
1262
+
1263
+ # The IP address (IPv4 or IPv6) of the origin server that the request was sent
1264
+ # to.
1265
+ # Corresponds to the JSON property `serverIp`
1266
+ # @return [String]
1267
+ attr_accessor :server_ip
1268
+
1269
+ # The response code indicating the status of the response. Examples: 200, 404.
1270
+ # Corresponds to the JSON property `status`
1271
+ # @return [Fixnum]
1272
+ attr_accessor :status
1273
+
1274
+ # The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.
1275
+ # 0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
1276
+ # Corresponds to the JSON property `userAgent`
1277
+ # @return [String]
1278
+ attr_accessor :user_agent
1279
+
1280
+ def initialize(**args)
1281
+ update!(**args)
1282
+ end
1283
+
1284
+ # Update properties of this object
1285
+ def update!(**args)
1286
+ @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
1287
+ @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
1288
+ @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
1289
+ @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
1290
+ @latency = args[:latency] if args.key?(:latency)
1291
+ @protocol = args[:protocol] if args.key?(:protocol)
1292
+ @referer = args[:referer] if args.key?(:referer)
1293
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
1294
+ @request_method = args[:request_method] if args.key?(:request_method)
1295
+ @request_size = args[:request_size] if args.key?(:request_size)
1296
+ @request_url = args[:request_url] if args.key?(:request_url)
1297
+ @response_size = args[:response_size] if args.key?(:response_size)
1298
+ @server_ip = args[:server_ip] if args.key?(:server_ip)
1299
+ @status = args[:status] if args.key?(:status)
1300
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
1301
+ end
1302
+ end
1303
+
1304
+ # An individual log entry.
1305
+ class V2LogEntry
1306
+ include Google::Apis::Core::Hashable
1307
+
1308
+ # A common proto for logging HTTP requests. Only contains semantics defined by
1309
+ # the HTTP specification. Product-specific logging information MUST be defined
1310
+ # in a separate message.
1311
+ # Corresponds to the JSON property `httpRequest`
1312
+ # @return [Google::Apis::ServicecontrolV2::V2HttpRequest]
1313
+ attr_accessor :http_request
1314
+
1315
+ # A unique ID for the log entry used for deduplication. If omitted, the
1316
+ # implementation will generate one based on operation_id.
1317
+ # Corresponds to the JSON property `insertId`
1318
+ # @return [String]
1319
+ attr_accessor :insert_id
1320
+
1321
+ # A set of user-defined (key, value) data that provides additional information
1322
+ # about the log entry.
1323
+ # Corresponds to the JSON property `labels`
1324
+ # @return [Hash<String,String>]
1325
+ attr_accessor :labels
1326
+
1327
+ # A set of user-defined (key, value) data that provides additional information
1328
+ # about the moniotored resource that the log entry belongs to.
1329
+ # Corresponds to the JSON property `monitoredResourceLabels`
1330
+ # @return [Hash<String,String>]
1331
+ attr_accessor :monitored_resource_labels
1332
+
1333
+ # Required. The log to which this log entry belongs. Examples: `"syslog"`, `"
1334
+ # book_log"`.
1335
+ # Corresponds to the JSON property `name`
1336
+ # @return [String]
1337
+ attr_accessor :name
1338
+
1339
+ # Additional information about a potentially long-running operation with which a
1340
+ # log entry is associated.
1341
+ # Corresponds to the JSON property `operation`
1342
+ # @return [Google::Apis::ServicecontrolV2::V2LogEntryOperation]
1343
+ attr_accessor :operation
1344
+
1345
+ # The log entry payload, represented as a protocol buffer that is expressed as a
1346
+ # JSON object. The only accepted type currently is AuditLog.
1347
+ # Corresponds to the JSON property `protoPayload`
1348
+ # @return [Hash<String,Object>]
1349
+ attr_accessor :proto_payload
1350
+
1351
+ # The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
1352
+ # Corresponds to the JSON property `severity`
1353
+ # @return [String]
1354
+ attr_accessor :severity
1355
+
1356
+ # Additional information about the source code location that produced the log
1357
+ # entry.
1358
+ # Corresponds to the JSON property `sourceLocation`
1359
+ # @return [Google::Apis::ServicecontrolV2::V2LogEntrySourceLocation]
1360
+ attr_accessor :source_location
1361
+
1362
+ # The log entry payload, represented as a structure that is expressed as a JSON
1363
+ # object.
1364
+ # Corresponds to the JSON property `structPayload`
1365
+ # @return [Hash<String,Object>]
1366
+ attr_accessor :struct_payload
1367
+
1368
+ # The log entry payload, represented as a Unicode string (UTF-8).
1369
+ # Corresponds to the JSON property `textPayload`
1370
+ # @return [String]
1371
+ attr_accessor :text_payload
1372
+
1373
+ # The time the event described by the log entry occurred. If omitted, defaults
1374
+ # to operation start time.
1375
+ # Corresponds to the JSON property `timestamp`
1376
+ # @return [String]
1377
+ attr_accessor :timestamp
1378
+
1379
+ # Optional. Resource name of the trace associated with the log entry, if any. If
1380
+ # this field contains a relative resource name, you can assume the name is
1381
+ # relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/
1382
+ # 06796866738c859f2f19b7cfb3214824`
1383
+ # Corresponds to the JSON property `trace`
1384
+ # @return [String]
1385
+ attr_accessor :trace
1386
+
1387
+ def initialize(**args)
1388
+ update!(**args)
1389
+ end
1390
+
1391
+ # Update properties of this object
1392
+ def update!(**args)
1393
+ @http_request = args[:http_request] if args.key?(:http_request)
1394
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
1395
+ @labels = args[:labels] if args.key?(:labels)
1396
+ @monitored_resource_labels = args[:monitored_resource_labels] if args.key?(:monitored_resource_labels)
1397
+ @name = args[:name] if args.key?(:name)
1398
+ @operation = args[:operation] if args.key?(:operation)
1399
+ @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
1400
+ @severity = args[:severity] if args.key?(:severity)
1401
+ @source_location = args[:source_location] if args.key?(:source_location)
1402
+ @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
1403
+ @text_payload = args[:text_payload] if args.key?(:text_payload)
1404
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
1405
+ @trace = args[:trace] if args.key?(:trace)
1406
+ end
1407
+ end
1408
+
1409
+ # Additional information about a potentially long-running operation with which a
1410
+ # log entry is associated.
1411
+ class V2LogEntryOperation
1412
+ include Google::Apis::Core::Hashable
1413
+
1414
+ # Optional. Set this to True if this is the first log entry in the operation.
1415
+ # Corresponds to the JSON property `first`
1416
+ # @return [Boolean]
1417
+ attr_accessor :first
1418
+ alias_method :first?, :first
1419
+
1420
+ # Optional. An arbitrary operation identifier. Log entries with the same
1421
+ # identifier are assumed to be part of the same operation.
1422
+ # Corresponds to the JSON property `id`
1423
+ # @return [String]
1424
+ attr_accessor :id
1425
+
1426
+ # Optional. Set this to True if this is the last log entry in the operation.
1427
+ # Corresponds to the JSON property `last`
1428
+ # @return [Boolean]
1429
+ attr_accessor :last
1430
+ alias_method :last?, :last
1431
+
1432
+ # Optional. An arbitrary producer identifier. The combination of `id` and `
1433
+ # producer` must be globally unique. Examples for `producer`: `"MyDivision.
1434
+ # MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
1435
+ # Corresponds to the JSON property `producer`
1436
+ # @return [String]
1437
+ attr_accessor :producer
1438
+
1439
+ def initialize(**args)
1440
+ update!(**args)
1441
+ end
1442
+
1443
+ # Update properties of this object
1444
+ def update!(**args)
1445
+ @first = args[:first] if args.key?(:first)
1446
+ @id = args[:id] if args.key?(:id)
1447
+ @last = args[:last] if args.key?(:last)
1448
+ @producer = args[:producer] if args.key?(:producer)
1449
+ end
1450
+ end
1451
+
1452
+ # Additional information about the source code location that produced the log
1453
+ # entry.
1454
+ class V2LogEntrySourceLocation
1455
+ include Google::Apis::Core::Hashable
1456
+
1457
+ # Optional. Source file name. Depending on the runtime environment, this might
1458
+ # be a simple name or a fully-qualified name.
1459
+ # Corresponds to the JSON property `file`
1460
+ # @return [String]
1461
+ attr_accessor :file
1462
+
1463
+ # Optional. Human-readable name of the function or method being invoked, with
1464
+ # optional context such as the class or package name. This information may be
1465
+ # used in contexts such as the logs viewer, where a file and line number are
1466
+ # less meaningful. The format can vary by language. For example: `qual.if.ied.
1467
+ # Class.method` (Java), `dir/package.func` (Go), `function` (Python).
1468
+ # Corresponds to the JSON property `function`
1469
+ # @return [String]
1470
+ attr_accessor :function
1471
+
1472
+ # Optional. Line within the source file. 1-based; 0 indicates no line number
1473
+ # available.
1474
+ # Corresponds to the JSON property `line`
1475
+ # @return [Fixnum]
1476
+ attr_accessor :line
1477
+
1478
+ def initialize(**args)
1479
+ update!(**args)
1480
+ end
1481
+
1482
+ # Update properties of this object
1483
+ def update!(**args)
1484
+ @file = args[:file] if args.key?(:file)
1485
+ @function = args[:function] if args.key?(:function)
1486
+ @line = args[:line] if args.key?(:line)
1487
+ end
1488
+ end
1184
1489
  end
1185
1490
  end
1186
1491
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServicecontrolV2
18
18
  # Version of the google-apis-servicecontrol_v2 gem
19
- GEM_VERSION = "0.15.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210924"
25
+ REVISION = "20220218"
26
26
  end
27
27
  end
28
28
  end
@@ -154,6 +154,30 @@ module Google
154
154
  include Google::Apis::Core::JsonObjectSupport
155
155
  end
156
156
 
157
+ class V2HttpRequest
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
163
+ class V2LogEntry
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class V2LogEntryOperation
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class V2LogEntrySourceLocation
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
157
181
  class Api
158
182
  # @private
159
183
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -413,6 +437,68 @@ module Google
413
437
  hash :third_party_claims, as: 'thirdPartyClaims'
414
438
  end
415
439
  end
440
+
441
+ class V2HttpRequest
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
445
+ property :cache_hit, as: 'cacheHit'
446
+ property :cache_lookup, as: 'cacheLookup'
447
+ property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
448
+ property :latency, as: 'latency'
449
+ property :protocol, as: 'protocol'
450
+ property :referer, as: 'referer'
451
+ property :remote_ip, as: 'remoteIp'
452
+ property :request_method, as: 'requestMethod'
453
+ property :request_size, :numeric_string => true, as: 'requestSize'
454
+ property :request_url, as: 'requestUrl'
455
+ property :response_size, :numeric_string => true, as: 'responseSize'
456
+ property :server_ip, as: 'serverIp'
457
+ property :status, as: 'status'
458
+ property :user_agent, as: 'userAgent'
459
+ end
460
+ end
461
+
462
+ class V2LogEntry
463
+ # @private
464
+ class Representation < Google::Apis::Core::JsonRepresentation
465
+ property :http_request, as: 'httpRequest', class: Google::Apis::ServicecontrolV2::V2HttpRequest, decorator: Google::Apis::ServicecontrolV2::V2HttpRequest::Representation
466
+
467
+ property :insert_id, as: 'insertId'
468
+ hash :labels, as: 'labels'
469
+ hash :monitored_resource_labels, as: 'monitoredResourceLabels'
470
+ property :name, as: 'name'
471
+ property :operation, as: 'operation', class: Google::Apis::ServicecontrolV2::V2LogEntryOperation, decorator: Google::Apis::ServicecontrolV2::V2LogEntryOperation::Representation
472
+
473
+ hash :proto_payload, as: 'protoPayload'
474
+ property :severity, as: 'severity'
475
+ property :source_location, as: 'sourceLocation', class: Google::Apis::ServicecontrolV2::V2LogEntrySourceLocation, decorator: Google::Apis::ServicecontrolV2::V2LogEntrySourceLocation::Representation
476
+
477
+ hash :struct_payload, as: 'structPayload'
478
+ property :text_payload, as: 'textPayload'
479
+ property :timestamp, as: 'timestamp'
480
+ property :trace, as: 'trace'
481
+ end
482
+ end
483
+
484
+ class V2LogEntryOperation
485
+ # @private
486
+ class Representation < Google::Apis::Core::JsonRepresentation
487
+ property :first, as: 'first'
488
+ property :id, as: 'id'
489
+ property :last, as: 'last'
490
+ property :producer, as: 'producer'
491
+ end
492
+ end
493
+
494
+ class V2LogEntrySourceLocation
495
+ # @private
496
+ class Representation < Google::Apis::Core::JsonRepresentation
497
+ property :file, as: 'file'
498
+ property :function, as: 'function'
499
+ property :line, :numeric_string => true, as: 'line'
500
+ end
501
+ end
416
502
  end
417
503
  end
418
504
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-servicecontrol_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicecontrol_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v2/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v2/v0.16.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicecontrol_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Service Control API V2