google-apis-servicecontrol_v2 0.15.0 → 0.18.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: 935a80250c595e30278813e03958176b0659f7c0c1da6939136f8eb653b9e849
4
+ data.tar.gz: c17d511fdea9a9a12f8d042d6fcf7af7b00e70be510a0bf2f2de8e693966e9cd
5
5
  SHA512:
6
- metadata.gz: 7e9b89371b32bc138da17e87f5cea49b59829bcbc50bc257e8dd206b728395470f1c6d88d6ef1e313b3da91d1ac7b6ce5da60f50187377229a4a87410cc31bb8
7
- data.tar.gz: 1a67eee848dccda213e6828db2e3d8e1062629fa2b3712fa2532000c970796d1abd22609049a5bc1a4910228b93899cf1771bc38fcdb6f9f29132615f22f9e03
6
+ metadata.gz: d9e52288658f22fe7d134368860315fb1000c09d62c54fb5313669b48757990af9018f86e32e70d725f6927f96488a69f4fc1c18c5c4bcf7be24c3be4243dc61
7
+ data.tar.gz: 8d9b96193b9be39c49548851c6ee044a48af9a91c487f94d1f8fc958326e76e3698810700fe720660e0a4e6f793c4274ad1d352e55da811c2eb4368128173874
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-servicecontrol_v2
2
2
 
3
+ ### v0.18.0 (2022-03-17)
4
+
5
+ * Regenerated from discovery document revision 20220315
6
+
7
+ ### v0.17.0 (2022-02-23)
8
+
9
+ * Regenerated from discovery document revision 20220218
10
+
11
+ ### v0.16.0 (2022-02-19)
12
+
13
+ * Regenerated from discovery document revision 20220218
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.15.0 (2021-12-16)
4
17
 
5
18
  * Unspecified changes
@@ -188,6 +188,11 @@ module Google
188
188
  # @return [Fixnum]
189
189
  attr_accessor :num_response_items
190
190
 
191
+ # Information related to policy violations for this request.
192
+ # Corresponds to the JSON property `policyViolationInfo`
193
+ # @return [Google::Apis::ServicecontrolV2::PolicyViolationInfo]
194
+ attr_accessor :policy_violation_info
195
+
191
196
  # The operation request. This may not include all request parameters, such as
192
197
  # those that are too large, privacy-sensitive, or duplicated elsewhere in the
193
198
  # log record. It should never include user-generated data, such as file contents.
@@ -267,6 +272,7 @@ module Google
267
272
  @metadata = args[:metadata] if args.key?(:metadata)
268
273
  @method_name = args[:method_name] if args.key?(:method_name)
269
274
  @num_response_items = args[:num_response_items] if args.key?(:num_response_items)
275
+ @policy_violation_info = args[:policy_violation_info] if args.key?(:policy_violation_info)
270
276
  @request = args[:request] if args.key?(:request)
271
277
  @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
272
278
  @resource_location = args[:resource_location] if args.key?(:resource_location)
@@ -561,6 +567,50 @@ module Google
561
567
  end
562
568
  end
563
569
 
570
+ # Represents OrgPolicy Violation information.
571
+ class OrgPolicyViolationInfo
572
+ include Google::Apis::Core::Hashable
573
+
574
+ # Optional. Resource payload that is currently in scope and is subjected to
575
+ # orgpolicy conditions. This payload may be the subset of the actual Resource
576
+ # that may come in the request. This payload should not contain any core content.
577
+ # Corresponds to the JSON property `payload`
578
+ # @return [Hash<String,Object>]
579
+ attr_accessor :payload
580
+
581
+ # Optional. Tags referenced on the resource at the time of evaluation. These
582
+ # also include the federated tags, if they are supplied in the CheckOrgPolicy or
583
+ # CheckCustomConstraints Requests. Optional field as of now. These tags are the
584
+ # Cloud tags that are available on the resource during the policy evaluation and
585
+ # will be available as part of the OrgPolicy check response for logging purposes.
586
+ # Corresponds to the JSON property `resourceTags`
587
+ # @return [Hash<String,String>]
588
+ attr_accessor :resource_tags
589
+
590
+ # Optional. Resource type that the orgpolicy is checked against. Example:
591
+ # compute.googleapis.com/Instance, store.googleapis.com/bucket
592
+ # Corresponds to the JSON property `resourceType`
593
+ # @return [String]
594
+ attr_accessor :resource_type
595
+
596
+ # Optional. Policy violations
597
+ # Corresponds to the JSON property `violationInfo`
598
+ # @return [Array<Google::Apis::ServicecontrolV2::ViolationInfo>]
599
+ attr_accessor :violation_info
600
+
601
+ def initialize(**args)
602
+ update!(**args)
603
+ end
604
+
605
+ # Update properties of this object
606
+ def update!(**args)
607
+ @payload = args[:payload] if args.key?(:payload)
608
+ @resource_tags = args[:resource_tags] if args.key?(:resource_tags)
609
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
610
+ @violation_info = args[:violation_info] if args.key?(:violation_info)
611
+ end
612
+ end
613
+
564
614
  # This message defines attributes for a node that handles a network request. The
565
615
  # node can be either a service or an application that sends, forwards, or
566
616
  # receives the request. Service peers should fill in `principal` and `labels` as
@@ -611,6 +661,25 @@ module Google
611
661
  end
612
662
  end
613
663
 
664
+ # Information related to policy violations for this request.
665
+ class PolicyViolationInfo
666
+ include Google::Apis::Core::Hashable
667
+
668
+ # Represents OrgPolicy Violation information.
669
+ # Corresponds to the JSON property `orgPolicyViolationInfo`
670
+ # @return [Google::Apis::ServicecontrolV2::OrgPolicyViolationInfo]
671
+ attr_accessor :org_policy_violation_info
672
+
673
+ def initialize(**args)
674
+ update!(**args)
675
+ end
676
+
677
+ # Update properties of this object
678
+ def update!(**args)
679
+ @org_policy_violation_info = args[:org_policy_violation_info] if args.key?(:org_policy_violation_info)
680
+ end
681
+ end
682
+
614
683
  # Request message for the Report method.
615
684
  class ReportRequest
616
685
  include Google::Apis::Core::Hashable
@@ -1181,6 +1250,350 @@ module Google
1181
1250
  @third_party_claims = args[:third_party_claims] if args.key?(:third_party_claims)
1182
1251
  end
1183
1252
  end
1253
+
1254
+ # A common proto for logging HTTP requests. Only contains semantics defined by
1255
+ # the HTTP specification. Product-specific logging information MUST be defined
1256
+ # in a separate message.
1257
+ class V2HttpRequest
1258
+ include Google::Apis::Core::Hashable
1259
+
1260
+ # The number of HTTP response bytes inserted into cache. Set only when a cache
1261
+ # fill was attempted.
1262
+ # Corresponds to the JSON property `cacheFillBytes`
1263
+ # @return [Fixnum]
1264
+ attr_accessor :cache_fill_bytes
1265
+
1266
+ # Whether or not an entity was served from cache (with or without validation).
1267
+ # Corresponds to the JSON property `cacheHit`
1268
+ # @return [Boolean]
1269
+ attr_accessor :cache_hit
1270
+ alias_method :cache_hit?, :cache_hit
1271
+
1272
+ # Whether or not a cache lookup was attempted.
1273
+ # Corresponds to the JSON property `cacheLookup`
1274
+ # @return [Boolean]
1275
+ attr_accessor :cache_lookup
1276
+ alias_method :cache_lookup?, :cache_lookup
1277
+
1278
+ # Whether or not the response was validated with the origin server before being
1279
+ # served from cache. This field is only meaningful if `cache_hit` is True.
1280
+ # Corresponds to the JSON property `cacheValidatedWithOriginServer`
1281
+ # @return [Boolean]
1282
+ attr_accessor :cache_validated_with_origin_server
1283
+ alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
1284
+
1285
+ # The request processing latency on the server, from the time the request was
1286
+ # received until the response was sent.
1287
+ # Corresponds to the JSON property `latency`
1288
+ # @return [String]
1289
+ attr_accessor :latency
1290
+
1291
+ # Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
1292
+ # Corresponds to the JSON property `protocol`
1293
+ # @return [String]
1294
+ attr_accessor :protocol
1295
+
1296
+ # The referer URL of the request, as defined in [HTTP/1.1 Header Field
1297
+ # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
1298
+ # Corresponds to the JSON property `referer`
1299
+ # @return [String]
1300
+ attr_accessor :referer
1301
+
1302
+ # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
1303
+ # Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
1304
+ # Corresponds to the JSON property `remoteIp`
1305
+ # @return [String]
1306
+ attr_accessor :remote_ip
1307
+
1308
+ # The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
1309
+ # Corresponds to the JSON property `requestMethod`
1310
+ # @return [String]
1311
+ attr_accessor :request_method
1312
+
1313
+ # The size of the HTTP request message in bytes, including the request headers
1314
+ # and the request body.
1315
+ # Corresponds to the JSON property `requestSize`
1316
+ # @return [Fixnum]
1317
+ attr_accessor :request_size
1318
+
1319
+ # The scheme (http, https), the host name, the path, and the query portion of
1320
+ # the URL that was requested. Example: `"http://example.com/some/info?color=red"`
1321
+ # .
1322
+ # Corresponds to the JSON property `requestUrl`
1323
+ # @return [String]
1324
+ attr_accessor :request_url
1325
+
1326
+ # The size of the HTTP response message sent back to the client, in bytes,
1327
+ # including the response headers and the response body.
1328
+ # Corresponds to the JSON property `responseSize`
1329
+ # @return [Fixnum]
1330
+ attr_accessor :response_size
1331
+
1332
+ # The IP address (IPv4 or IPv6) of the origin server that the request was sent
1333
+ # to.
1334
+ # Corresponds to the JSON property `serverIp`
1335
+ # @return [String]
1336
+ attr_accessor :server_ip
1337
+
1338
+ # The response code indicating the status of the response. Examples: 200, 404.
1339
+ # Corresponds to the JSON property `status`
1340
+ # @return [Fixnum]
1341
+ attr_accessor :status
1342
+
1343
+ # The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.
1344
+ # 0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
1345
+ # Corresponds to the JSON property `userAgent`
1346
+ # @return [String]
1347
+ attr_accessor :user_agent
1348
+
1349
+ def initialize(**args)
1350
+ update!(**args)
1351
+ end
1352
+
1353
+ # Update properties of this object
1354
+ def update!(**args)
1355
+ @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
1356
+ @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
1357
+ @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
1358
+ @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
1359
+ @latency = args[:latency] if args.key?(:latency)
1360
+ @protocol = args[:protocol] if args.key?(:protocol)
1361
+ @referer = args[:referer] if args.key?(:referer)
1362
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
1363
+ @request_method = args[:request_method] if args.key?(:request_method)
1364
+ @request_size = args[:request_size] if args.key?(:request_size)
1365
+ @request_url = args[:request_url] if args.key?(:request_url)
1366
+ @response_size = args[:response_size] if args.key?(:response_size)
1367
+ @server_ip = args[:server_ip] if args.key?(:server_ip)
1368
+ @status = args[:status] if args.key?(:status)
1369
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
1370
+ end
1371
+ end
1372
+
1373
+ # An individual log entry.
1374
+ class V2LogEntry
1375
+ include Google::Apis::Core::Hashable
1376
+
1377
+ # A common proto for logging HTTP requests. Only contains semantics defined by
1378
+ # the HTTP specification. Product-specific logging information MUST be defined
1379
+ # in a separate message.
1380
+ # Corresponds to the JSON property `httpRequest`
1381
+ # @return [Google::Apis::ServicecontrolV2::V2HttpRequest]
1382
+ attr_accessor :http_request
1383
+
1384
+ # A unique ID for the log entry used for deduplication. If omitted, the
1385
+ # implementation will generate one based on operation_id.
1386
+ # Corresponds to the JSON property `insertId`
1387
+ # @return [String]
1388
+ attr_accessor :insert_id
1389
+
1390
+ # A set of user-defined (key, value) data that provides additional information
1391
+ # about the log entry.
1392
+ # Corresponds to the JSON property `labels`
1393
+ # @return [Hash<String,String>]
1394
+ attr_accessor :labels
1395
+
1396
+ # A set of user-defined (key, value) data that provides additional information
1397
+ # about the moniotored resource that the log entry belongs to.
1398
+ # Corresponds to the JSON property `monitoredResourceLabels`
1399
+ # @return [Hash<String,String>]
1400
+ attr_accessor :monitored_resource_labels
1401
+
1402
+ # Required. The log to which this log entry belongs. Examples: `"syslog"`, `"
1403
+ # book_log"`.
1404
+ # Corresponds to the JSON property `name`
1405
+ # @return [String]
1406
+ attr_accessor :name
1407
+
1408
+ # Additional information about a potentially long-running operation with which a
1409
+ # log entry is associated.
1410
+ # Corresponds to the JSON property `operation`
1411
+ # @return [Google::Apis::ServicecontrolV2::V2LogEntryOperation]
1412
+ attr_accessor :operation
1413
+
1414
+ # The log entry payload, represented as a protocol buffer that is expressed as a
1415
+ # JSON object. The only accepted type currently is AuditLog.
1416
+ # Corresponds to the JSON property `protoPayload`
1417
+ # @return [Hash<String,Object>]
1418
+ attr_accessor :proto_payload
1419
+
1420
+ # The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
1421
+ # Corresponds to the JSON property `severity`
1422
+ # @return [String]
1423
+ attr_accessor :severity
1424
+
1425
+ # Additional information about the source code location that produced the log
1426
+ # entry.
1427
+ # Corresponds to the JSON property `sourceLocation`
1428
+ # @return [Google::Apis::ServicecontrolV2::V2LogEntrySourceLocation]
1429
+ attr_accessor :source_location
1430
+
1431
+ # The log entry payload, represented as a structure that is expressed as a JSON
1432
+ # object.
1433
+ # Corresponds to the JSON property `structPayload`
1434
+ # @return [Hash<String,Object>]
1435
+ attr_accessor :struct_payload
1436
+
1437
+ # The log entry payload, represented as a Unicode string (UTF-8).
1438
+ # Corresponds to the JSON property `textPayload`
1439
+ # @return [String]
1440
+ attr_accessor :text_payload
1441
+
1442
+ # The time the event described by the log entry occurred. If omitted, defaults
1443
+ # to operation start time.
1444
+ # Corresponds to the JSON property `timestamp`
1445
+ # @return [String]
1446
+ attr_accessor :timestamp
1447
+
1448
+ # Optional. Resource name of the trace associated with the log entry, if any. If
1449
+ # this field contains a relative resource name, you can assume the name is
1450
+ # relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/
1451
+ # 06796866738c859f2f19b7cfb3214824`
1452
+ # Corresponds to the JSON property `trace`
1453
+ # @return [String]
1454
+ attr_accessor :trace
1455
+
1456
+ def initialize(**args)
1457
+ update!(**args)
1458
+ end
1459
+
1460
+ # Update properties of this object
1461
+ def update!(**args)
1462
+ @http_request = args[:http_request] if args.key?(:http_request)
1463
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
1464
+ @labels = args[:labels] if args.key?(:labels)
1465
+ @monitored_resource_labels = args[:monitored_resource_labels] if args.key?(:monitored_resource_labels)
1466
+ @name = args[:name] if args.key?(:name)
1467
+ @operation = args[:operation] if args.key?(:operation)
1468
+ @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
1469
+ @severity = args[:severity] if args.key?(:severity)
1470
+ @source_location = args[:source_location] if args.key?(:source_location)
1471
+ @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
1472
+ @text_payload = args[:text_payload] if args.key?(:text_payload)
1473
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
1474
+ @trace = args[:trace] if args.key?(:trace)
1475
+ end
1476
+ end
1477
+
1478
+ # Additional information about a potentially long-running operation with which a
1479
+ # log entry is associated.
1480
+ class V2LogEntryOperation
1481
+ include Google::Apis::Core::Hashable
1482
+
1483
+ # Optional. Set this to True if this is the first log entry in the operation.
1484
+ # Corresponds to the JSON property `first`
1485
+ # @return [Boolean]
1486
+ attr_accessor :first
1487
+ alias_method :first?, :first
1488
+
1489
+ # Optional. An arbitrary operation identifier. Log entries with the same
1490
+ # identifier are assumed to be part of the same operation.
1491
+ # Corresponds to the JSON property `id`
1492
+ # @return [String]
1493
+ attr_accessor :id
1494
+
1495
+ # Optional. Set this to True if this is the last log entry in the operation.
1496
+ # Corresponds to the JSON property `last`
1497
+ # @return [Boolean]
1498
+ attr_accessor :last
1499
+ alias_method :last?, :last
1500
+
1501
+ # Optional. An arbitrary producer identifier. The combination of `id` and `
1502
+ # producer` must be globally unique. Examples for `producer`: `"MyDivision.
1503
+ # MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
1504
+ # Corresponds to the JSON property `producer`
1505
+ # @return [String]
1506
+ attr_accessor :producer
1507
+
1508
+ def initialize(**args)
1509
+ update!(**args)
1510
+ end
1511
+
1512
+ # Update properties of this object
1513
+ def update!(**args)
1514
+ @first = args[:first] if args.key?(:first)
1515
+ @id = args[:id] if args.key?(:id)
1516
+ @last = args[:last] if args.key?(:last)
1517
+ @producer = args[:producer] if args.key?(:producer)
1518
+ end
1519
+ end
1520
+
1521
+ # Additional information about the source code location that produced the log
1522
+ # entry.
1523
+ class V2LogEntrySourceLocation
1524
+ include Google::Apis::Core::Hashable
1525
+
1526
+ # Optional. Source file name. Depending on the runtime environment, this might
1527
+ # be a simple name or a fully-qualified name.
1528
+ # Corresponds to the JSON property `file`
1529
+ # @return [String]
1530
+ attr_accessor :file
1531
+
1532
+ # Optional. Human-readable name of the function or method being invoked, with
1533
+ # optional context such as the class or package name. This information may be
1534
+ # used in contexts such as the logs viewer, where a file and line number are
1535
+ # less meaningful. The format can vary by language. For example: `qual.if.ied.
1536
+ # Class.method` (Java), `dir/package.func` (Go), `function` (Python).
1537
+ # Corresponds to the JSON property `function`
1538
+ # @return [String]
1539
+ attr_accessor :function
1540
+
1541
+ # Optional. Line within the source file. 1-based; 0 indicates no line number
1542
+ # available.
1543
+ # Corresponds to the JSON property `line`
1544
+ # @return [Fixnum]
1545
+ attr_accessor :line
1546
+
1547
+ def initialize(**args)
1548
+ update!(**args)
1549
+ end
1550
+
1551
+ # Update properties of this object
1552
+ def update!(**args)
1553
+ @file = args[:file] if args.key?(:file)
1554
+ @function = args[:function] if args.key?(:function)
1555
+ @line = args[:line] if args.key?(:line)
1556
+ end
1557
+ end
1558
+
1559
+ # Provides information about the Policy violation info for this request.
1560
+ class ViolationInfo
1561
+ include Google::Apis::Core::Hashable
1562
+
1563
+ # Optional. Value that is being checked for the policy. This could be in
1564
+ # encrypted form (if pii sensitive). This field will only be emitted in
1565
+ # LIST_POLICY types
1566
+ # Corresponds to the JSON property `checkedValue`
1567
+ # @return [String]
1568
+ attr_accessor :checked_value
1569
+
1570
+ # Optional. Constraint name
1571
+ # Corresponds to the JSON property `constraint`
1572
+ # @return [String]
1573
+ attr_accessor :constraint
1574
+
1575
+ # Optional. Error message that policy is indicating.
1576
+ # Corresponds to the JSON property `errorMessage`
1577
+ # @return [String]
1578
+ attr_accessor :error_message
1579
+
1580
+ # Optional. Indicates the type of the policy.
1581
+ # Corresponds to the JSON property `policyType`
1582
+ # @return [String]
1583
+ attr_accessor :policy_type
1584
+
1585
+ def initialize(**args)
1586
+ update!(**args)
1587
+ end
1588
+
1589
+ # Update properties of this object
1590
+ def update!(**args)
1591
+ @checked_value = args[:checked_value] if args.key?(:checked_value)
1592
+ @constraint = args[:constraint] if args.key?(:constraint)
1593
+ @error_message = args[:error_message] if args.key?(:error_message)
1594
+ @policy_type = args[:policy_type] if args.key?(:policy_type)
1595
+ end
1596
+ end
1184
1597
  end
1185
1598
  end
1186
1599
  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.18.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 = "20220315"
26
26
  end
27
27
  end
28
28
  end
@@ -76,12 +76,24 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class OrgPolicyViolationInfo
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class Peer
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
91
+ class PolicyViolationInfo
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class ReportRequest
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -154,6 +166,36 @@ module Google
154
166
  include Google::Apis::Core::JsonObjectSupport
155
167
  end
156
168
 
169
+ class V2HttpRequest
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
175
+ class V2LogEntry
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class V2LogEntryOperation
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class V2LogEntrySourceLocation
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
193
+ class ViolationInfo
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
157
199
  class Api
158
200
  # @private
159
201
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -195,6 +237,8 @@ module Google
195
237
  hash :metadata, as: 'metadata'
196
238
  property :method_name, as: 'methodName'
197
239
  property :num_response_items, :numeric_string => true, as: 'numResponseItems'
240
+ property :policy_violation_info, as: 'policyViolationInfo', class: Google::Apis::ServicecontrolV2::PolicyViolationInfo, decorator: Google::Apis::ServicecontrolV2::PolicyViolationInfo::Representation
241
+
198
242
  hash :request, as: 'request'
199
243
  property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV2::RequestMetadata, decorator: Google::Apis::ServicecontrolV2::RequestMetadata::Representation
200
244
 
@@ -274,6 +318,17 @@ module Google
274
318
  end
275
319
  end
276
320
 
321
+ class OrgPolicyViolationInfo
322
+ # @private
323
+ class Representation < Google::Apis::Core::JsonRepresentation
324
+ hash :payload, as: 'payload'
325
+ hash :resource_tags, as: 'resourceTags'
326
+ property :resource_type, as: 'resourceType'
327
+ collection :violation_info, as: 'violationInfo', class: Google::Apis::ServicecontrolV2::ViolationInfo, decorator: Google::Apis::ServicecontrolV2::ViolationInfo::Representation
328
+
329
+ end
330
+ end
331
+
277
332
  class Peer
278
333
  # @private
279
334
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -285,6 +340,14 @@ module Google
285
340
  end
286
341
  end
287
342
 
343
+ class PolicyViolationInfo
344
+ # @private
345
+ class Representation < Google::Apis::Core::JsonRepresentation
346
+ property :org_policy_violation_info, as: 'orgPolicyViolationInfo', class: Google::Apis::ServicecontrolV2::OrgPolicyViolationInfo, decorator: Google::Apis::ServicecontrolV2::OrgPolicyViolationInfo::Representation
347
+
348
+ end
349
+ end
350
+
288
351
  class ReportRequest
289
352
  # @private
290
353
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -413,6 +476,78 @@ module Google
413
476
  hash :third_party_claims, as: 'thirdPartyClaims'
414
477
  end
415
478
  end
479
+
480
+ class V2HttpRequest
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
484
+ property :cache_hit, as: 'cacheHit'
485
+ property :cache_lookup, as: 'cacheLookup'
486
+ property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
487
+ property :latency, as: 'latency'
488
+ property :protocol, as: 'protocol'
489
+ property :referer, as: 'referer'
490
+ property :remote_ip, as: 'remoteIp'
491
+ property :request_method, as: 'requestMethod'
492
+ property :request_size, :numeric_string => true, as: 'requestSize'
493
+ property :request_url, as: 'requestUrl'
494
+ property :response_size, :numeric_string => true, as: 'responseSize'
495
+ property :server_ip, as: 'serverIp'
496
+ property :status, as: 'status'
497
+ property :user_agent, as: 'userAgent'
498
+ end
499
+ end
500
+
501
+ class V2LogEntry
502
+ # @private
503
+ class Representation < Google::Apis::Core::JsonRepresentation
504
+ property :http_request, as: 'httpRequest', class: Google::Apis::ServicecontrolV2::V2HttpRequest, decorator: Google::Apis::ServicecontrolV2::V2HttpRequest::Representation
505
+
506
+ property :insert_id, as: 'insertId'
507
+ hash :labels, as: 'labels'
508
+ hash :monitored_resource_labels, as: 'monitoredResourceLabels'
509
+ property :name, as: 'name'
510
+ property :operation, as: 'operation', class: Google::Apis::ServicecontrolV2::V2LogEntryOperation, decorator: Google::Apis::ServicecontrolV2::V2LogEntryOperation::Representation
511
+
512
+ hash :proto_payload, as: 'protoPayload'
513
+ property :severity, as: 'severity'
514
+ property :source_location, as: 'sourceLocation', class: Google::Apis::ServicecontrolV2::V2LogEntrySourceLocation, decorator: Google::Apis::ServicecontrolV2::V2LogEntrySourceLocation::Representation
515
+
516
+ hash :struct_payload, as: 'structPayload'
517
+ property :text_payload, as: 'textPayload'
518
+ property :timestamp, as: 'timestamp'
519
+ property :trace, as: 'trace'
520
+ end
521
+ end
522
+
523
+ class V2LogEntryOperation
524
+ # @private
525
+ class Representation < Google::Apis::Core::JsonRepresentation
526
+ property :first, as: 'first'
527
+ property :id, as: 'id'
528
+ property :last, as: 'last'
529
+ property :producer, as: 'producer'
530
+ end
531
+ end
532
+
533
+ class V2LogEntrySourceLocation
534
+ # @private
535
+ class Representation < Google::Apis::Core::JsonRepresentation
536
+ property :file, as: 'file'
537
+ property :function, as: 'function'
538
+ property :line, :numeric_string => true, as: 'line'
539
+ end
540
+ end
541
+
542
+ class ViolationInfo
543
+ # @private
544
+ class Representation < Google::Apis::Core::JsonRepresentation
545
+ property :checked_value, as: 'checkedValue'
546
+ property :constraint, as: 'constraint'
547
+ property :error_message, as: 'errorMessage'
548
+ property :policy_type, as: 'policyType'
549
+ end
550
+ end
416
551
  end
417
552
  end
418
553
  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.18.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-03-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.18.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