google-apis-servicecontrol_v1 0.16.0 → 0.19.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9299d4bc2df0126d14bd655ffbb279f500093671203534a2928a8d941f9cbe3
|
4
|
+
data.tar.gz: f6d0ae3a6478acd08014a05cdb20444af9fca1430e6097675fb1af2a7022d566
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f13bdb6ef28668c771ff5918fcb07f66c920e0ec50442f18bd3c983ac95c721ef72f3b7ca30c68e893862e4a7ea721051495b551d918815e2a86a942f2bf09bf
|
7
|
+
data.tar.gz: ab5ed357f564d687b35978c1ad664fc3f50409121ef94768bb1df524edbeb64b6c993f8cb9baebe9746d6bfa683b9c02b8036009aec1f0fd6bb0169ae1d1ee0d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-servicecontrol_v1
|
2
2
|
|
3
|
+
### v0.19.0 (2022-03-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220315
|
6
|
+
|
7
|
+
### v0.18.0 (2022-02-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220218
|
10
|
+
|
11
|
+
### v0.17.0 (2022-01-18)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220114
|
14
|
+
* Regenerated using generator version 0.4.1
|
15
|
+
|
3
16
|
### v0.16.0 (2021-12-16)
|
4
17
|
|
5
18
|
* Unspecified changes
|
@@ -217,6 +217,11 @@ module Google
|
|
217
217
|
# @return [Fixnum]
|
218
218
|
attr_accessor :num_response_items
|
219
219
|
|
220
|
+
# Information related to policy violations for this request.
|
221
|
+
# Corresponds to the JSON property `policyViolationInfo`
|
222
|
+
# @return [Google::Apis::ServicecontrolV1::PolicyViolationInfo]
|
223
|
+
attr_accessor :policy_violation_info
|
224
|
+
|
220
225
|
# The operation request. This may not include all request parameters, such as
|
221
226
|
# those that are too large, privacy-sensitive, or duplicated elsewhere in the
|
222
227
|
# log record. It should never include user-generated data, such as file contents.
|
@@ -296,6 +301,7 @@ module Google
|
|
296
301
|
@metadata = args[:metadata] if args.key?(:metadata)
|
297
302
|
@method_name = args[:method_name] if args.key?(:method_name)
|
298
303
|
@num_response_items = args[:num_response_items] if args.key?(:num_response_items)
|
304
|
+
@policy_violation_info = args[:policy_violation_info] if args.key?(:policy_violation_info)
|
299
305
|
@request = args[:request] if args.key?(:request)
|
300
306
|
@request_metadata = args[:request_metadata] if args.key?(:request_metadata)
|
301
307
|
@resource_location = args[:resource_location] if args.key?(:resource_location)
|
@@ -1508,6 +1514,50 @@ module Google
|
|
1508
1514
|
end
|
1509
1515
|
end
|
1510
1516
|
|
1517
|
+
# Represents OrgPolicy Violation information.
|
1518
|
+
class OrgPolicyViolationInfo
|
1519
|
+
include Google::Apis::Core::Hashable
|
1520
|
+
|
1521
|
+
# Optional. Resource payload that is currently in scope and is subjected to
|
1522
|
+
# orgpolicy conditions. This payload may be the subset of the actual Resource
|
1523
|
+
# that may come in the request. This payload should not contain any core content.
|
1524
|
+
# Corresponds to the JSON property `payload`
|
1525
|
+
# @return [Hash<String,Object>]
|
1526
|
+
attr_accessor :payload
|
1527
|
+
|
1528
|
+
# Optional. Tags referenced on the resource at the time of evaluation. These
|
1529
|
+
# also include the federated tags, if they are supplied in the CheckOrgPolicy or
|
1530
|
+
# CheckCustomConstraints Requests. Optional field as of now. These tags are the
|
1531
|
+
# Cloud tags that are available on the resource during the policy evaluation and
|
1532
|
+
# will be available as part of the OrgPolicy check response for logging purposes.
|
1533
|
+
# Corresponds to the JSON property `resourceTags`
|
1534
|
+
# @return [Hash<String,String>]
|
1535
|
+
attr_accessor :resource_tags
|
1536
|
+
|
1537
|
+
# Optional. Resource type that the orgpolicy is checked against. Example:
|
1538
|
+
# compute.googleapis.com/Instance, store.googleapis.com/bucket
|
1539
|
+
# Corresponds to the JSON property `resourceType`
|
1540
|
+
# @return [String]
|
1541
|
+
attr_accessor :resource_type
|
1542
|
+
|
1543
|
+
# Optional. Policy violations
|
1544
|
+
# Corresponds to the JSON property `violationInfo`
|
1545
|
+
# @return [Array<Google::Apis::ServicecontrolV1::ViolationInfo>]
|
1546
|
+
attr_accessor :violation_info
|
1547
|
+
|
1548
|
+
def initialize(**args)
|
1549
|
+
update!(**args)
|
1550
|
+
end
|
1551
|
+
|
1552
|
+
# Update properties of this object
|
1553
|
+
def update!(**args)
|
1554
|
+
@payload = args[:payload] if args.key?(:payload)
|
1555
|
+
@resource_tags = args[:resource_tags] if args.key?(:resource_tags)
|
1556
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
1557
|
+
@violation_info = args[:violation_info] if args.key?(:violation_info)
|
1558
|
+
end
|
1559
|
+
end
|
1560
|
+
|
1511
1561
|
# This message defines attributes for a node that handles a network request. The
|
1512
1562
|
# node can be either a service or an application that sends, forwards, or
|
1513
1563
|
# receives the request. Service peers should fill in `principal` and `labels` as
|
@@ -1558,6 +1608,25 @@ module Google
|
|
1558
1608
|
end
|
1559
1609
|
end
|
1560
1610
|
|
1611
|
+
# Information related to policy violations for this request.
|
1612
|
+
class PolicyViolationInfo
|
1613
|
+
include Google::Apis::Core::Hashable
|
1614
|
+
|
1615
|
+
# Represents OrgPolicy Violation information.
|
1616
|
+
# Corresponds to the JSON property `orgPolicyViolationInfo`
|
1617
|
+
# @return [Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo]
|
1618
|
+
attr_accessor :org_policy_violation_info
|
1619
|
+
|
1620
|
+
def initialize(**args)
|
1621
|
+
update!(**args)
|
1622
|
+
end
|
1623
|
+
|
1624
|
+
# Update properties of this object
|
1625
|
+
def update!(**args)
|
1626
|
+
@org_policy_violation_info = args[:org_policy_violation_info] if args.key?(:org_policy_violation_info)
|
1627
|
+
end
|
1628
|
+
end
|
1629
|
+
|
1561
1630
|
# Represents error information for QuotaOperation.
|
1562
1631
|
class QuotaError
|
1563
1632
|
include Google::Apis::Core::Hashable
|
@@ -1675,13 +1744,13 @@ module Google
|
|
1675
1744
|
# @return [String]
|
1676
1745
|
attr_accessor :method_name
|
1677
1746
|
|
1678
|
-
# Identity of the operation.
|
1679
|
-
# the service that generated the operation, and guarantees
|
1680
|
-
# of retries. In order to ensure best performance and
|
1681
|
-
# backends, operation_ids are optimally associated with
|
1682
|
-
# operations can be accessed fast in storage. For this
|
1683
|
-
# token for services that intend to operate at a high
|
1684
|
-
# UUID
|
1747
|
+
# Identity of the operation. For Allocation Quota, this is expected to be unique
|
1748
|
+
# within the scope of the service that generated the operation, and guarantees
|
1749
|
+
# idempotency in case of retries. In order to ensure best performance and
|
1750
|
+
# latency in the Quota backends, operation_ids are optimally associated with
|
1751
|
+
# time, so that related operations can be accessed fast in storage. For this
|
1752
|
+
# reason, the recommended token for services that intend to operate at a high
|
1753
|
+
# QPS is Unix time in nanos + UUID
|
1685
1754
|
# Corresponds to the JSON property `operationId`
|
1686
1755
|
# @return [String]
|
1687
1756
|
attr_accessor :operation_id
|
@@ -2435,6 +2504,350 @@ module Google
|
|
2435
2504
|
@value = args[:value] if args.key?(:value)
|
2436
2505
|
end
|
2437
2506
|
end
|
2507
|
+
|
2508
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
2509
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
2510
|
+
# in a separate message.
|
2511
|
+
class V1HttpRequest
|
2512
|
+
include Google::Apis::Core::Hashable
|
2513
|
+
|
2514
|
+
# The number of HTTP response bytes inserted into cache. Set only when a cache
|
2515
|
+
# fill was attempted.
|
2516
|
+
# Corresponds to the JSON property `cacheFillBytes`
|
2517
|
+
# @return [Fixnum]
|
2518
|
+
attr_accessor :cache_fill_bytes
|
2519
|
+
|
2520
|
+
# Whether or not an entity was served from cache (with or without validation).
|
2521
|
+
# Corresponds to the JSON property `cacheHit`
|
2522
|
+
# @return [Boolean]
|
2523
|
+
attr_accessor :cache_hit
|
2524
|
+
alias_method :cache_hit?, :cache_hit
|
2525
|
+
|
2526
|
+
# Whether or not a cache lookup was attempted.
|
2527
|
+
# Corresponds to the JSON property `cacheLookup`
|
2528
|
+
# @return [Boolean]
|
2529
|
+
attr_accessor :cache_lookup
|
2530
|
+
alias_method :cache_lookup?, :cache_lookup
|
2531
|
+
|
2532
|
+
# Whether or not the response was validated with the origin server before being
|
2533
|
+
# served from cache. This field is only meaningful if `cache_hit` is True.
|
2534
|
+
# Corresponds to the JSON property `cacheValidatedWithOriginServer`
|
2535
|
+
# @return [Boolean]
|
2536
|
+
attr_accessor :cache_validated_with_origin_server
|
2537
|
+
alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
|
2538
|
+
|
2539
|
+
# The request processing latency on the server, from the time the request was
|
2540
|
+
# received until the response was sent.
|
2541
|
+
# Corresponds to the JSON property `latency`
|
2542
|
+
# @return [String]
|
2543
|
+
attr_accessor :latency
|
2544
|
+
|
2545
|
+
# Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
|
2546
|
+
# Corresponds to the JSON property `protocol`
|
2547
|
+
# @return [String]
|
2548
|
+
attr_accessor :protocol
|
2549
|
+
|
2550
|
+
# The referer URL of the request, as defined in [HTTP/1.1 Header Field
|
2551
|
+
# Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
2552
|
+
# Corresponds to the JSON property `referer`
|
2553
|
+
# @return [String]
|
2554
|
+
attr_accessor :referer
|
2555
|
+
|
2556
|
+
# The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
2557
|
+
# Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
2558
|
+
# Corresponds to the JSON property `remoteIp`
|
2559
|
+
# @return [String]
|
2560
|
+
attr_accessor :remote_ip
|
2561
|
+
|
2562
|
+
# The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
|
2563
|
+
# Corresponds to the JSON property `requestMethod`
|
2564
|
+
# @return [String]
|
2565
|
+
attr_accessor :request_method
|
2566
|
+
|
2567
|
+
# The size of the HTTP request message in bytes, including the request headers
|
2568
|
+
# and the request body.
|
2569
|
+
# Corresponds to the JSON property `requestSize`
|
2570
|
+
# @return [Fixnum]
|
2571
|
+
attr_accessor :request_size
|
2572
|
+
|
2573
|
+
# The scheme (http, https), the host name, the path, and the query portion of
|
2574
|
+
# the URL that was requested. Example: `"http://example.com/some/info?color=red"`
|
2575
|
+
# .
|
2576
|
+
# Corresponds to the JSON property `requestUrl`
|
2577
|
+
# @return [String]
|
2578
|
+
attr_accessor :request_url
|
2579
|
+
|
2580
|
+
# The size of the HTTP response message sent back to the client, in bytes,
|
2581
|
+
# including the response headers and the response body.
|
2582
|
+
# Corresponds to the JSON property `responseSize`
|
2583
|
+
# @return [Fixnum]
|
2584
|
+
attr_accessor :response_size
|
2585
|
+
|
2586
|
+
# The IP address (IPv4 or IPv6) of the origin server that the request was sent
|
2587
|
+
# to.
|
2588
|
+
# Corresponds to the JSON property `serverIp`
|
2589
|
+
# @return [String]
|
2590
|
+
attr_accessor :server_ip
|
2591
|
+
|
2592
|
+
# The response code indicating the status of the response. Examples: 200, 404.
|
2593
|
+
# Corresponds to the JSON property `status`
|
2594
|
+
# @return [Fixnum]
|
2595
|
+
attr_accessor :status
|
2596
|
+
|
2597
|
+
# The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.
|
2598
|
+
# 0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
|
2599
|
+
# Corresponds to the JSON property `userAgent`
|
2600
|
+
# @return [String]
|
2601
|
+
attr_accessor :user_agent
|
2602
|
+
|
2603
|
+
def initialize(**args)
|
2604
|
+
update!(**args)
|
2605
|
+
end
|
2606
|
+
|
2607
|
+
# Update properties of this object
|
2608
|
+
def update!(**args)
|
2609
|
+
@cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
|
2610
|
+
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
|
2611
|
+
@cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
|
2612
|
+
@cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
|
2613
|
+
@latency = args[:latency] if args.key?(:latency)
|
2614
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
2615
|
+
@referer = args[:referer] if args.key?(:referer)
|
2616
|
+
@remote_ip = args[:remote_ip] if args.key?(:remote_ip)
|
2617
|
+
@request_method = args[:request_method] if args.key?(:request_method)
|
2618
|
+
@request_size = args[:request_size] if args.key?(:request_size)
|
2619
|
+
@request_url = args[:request_url] if args.key?(:request_url)
|
2620
|
+
@response_size = args[:response_size] if args.key?(:response_size)
|
2621
|
+
@server_ip = args[:server_ip] if args.key?(:server_ip)
|
2622
|
+
@status = args[:status] if args.key?(:status)
|
2623
|
+
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
2624
|
+
end
|
2625
|
+
end
|
2626
|
+
|
2627
|
+
# An individual log entry.
|
2628
|
+
class V1LogEntry
|
2629
|
+
include Google::Apis::Core::Hashable
|
2630
|
+
|
2631
|
+
# A common proto for logging HTTP requests. Only contains semantics defined by
|
2632
|
+
# the HTTP specification. Product-specific logging information MUST be defined
|
2633
|
+
# in a separate message.
|
2634
|
+
# Corresponds to the JSON property `httpRequest`
|
2635
|
+
# @return [Google::Apis::ServicecontrolV1::V1HttpRequest]
|
2636
|
+
attr_accessor :http_request
|
2637
|
+
|
2638
|
+
# A unique ID for the log entry used for deduplication. If omitted, the
|
2639
|
+
# implementation will generate one based on operation_id.
|
2640
|
+
# Corresponds to the JSON property `insertId`
|
2641
|
+
# @return [String]
|
2642
|
+
attr_accessor :insert_id
|
2643
|
+
|
2644
|
+
# A set of user-defined (key, value) data that provides additional information
|
2645
|
+
# about the log entry.
|
2646
|
+
# Corresponds to the JSON property `labels`
|
2647
|
+
# @return [Hash<String,String>]
|
2648
|
+
attr_accessor :labels
|
2649
|
+
|
2650
|
+
# A set of user-defined (key, value) data that provides additional information
|
2651
|
+
# about the moniotored resource that the log entry belongs to.
|
2652
|
+
# Corresponds to the JSON property `monitoredResourceLabels`
|
2653
|
+
# @return [Hash<String,String>]
|
2654
|
+
attr_accessor :monitored_resource_labels
|
2655
|
+
|
2656
|
+
# Required. The log to which this log entry belongs. Examples: `"syslog"`, `"
|
2657
|
+
# book_log"`.
|
2658
|
+
# Corresponds to the JSON property `name`
|
2659
|
+
# @return [String]
|
2660
|
+
attr_accessor :name
|
2661
|
+
|
2662
|
+
# Additional information about a potentially long-running operation with which a
|
2663
|
+
# log entry is associated.
|
2664
|
+
# Corresponds to the JSON property `operation`
|
2665
|
+
# @return [Google::Apis::ServicecontrolV1::V1LogEntryOperation]
|
2666
|
+
attr_accessor :operation
|
2667
|
+
|
2668
|
+
# The log entry payload, represented as a protocol buffer that is expressed as a
|
2669
|
+
# JSON object. The only accepted type currently is AuditLog.
|
2670
|
+
# Corresponds to the JSON property `protoPayload`
|
2671
|
+
# @return [Hash<String,Object>]
|
2672
|
+
attr_accessor :proto_payload
|
2673
|
+
|
2674
|
+
# The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
|
2675
|
+
# Corresponds to the JSON property `severity`
|
2676
|
+
# @return [String]
|
2677
|
+
attr_accessor :severity
|
2678
|
+
|
2679
|
+
# Additional information about the source code location that produced the log
|
2680
|
+
# entry.
|
2681
|
+
# Corresponds to the JSON property `sourceLocation`
|
2682
|
+
# @return [Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation]
|
2683
|
+
attr_accessor :source_location
|
2684
|
+
|
2685
|
+
# The log entry payload, represented as a structure that is expressed as a JSON
|
2686
|
+
# object.
|
2687
|
+
# Corresponds to the JSON property `structPayload`
|
2688
|
+
# @return [Hash<String,Object>]
|
2689
|
+
attr_accessor :struct_payload
|
2690
|
+
|
2691
|
+
# The log entry payload, represented as a Unicode string (UTF-8).
|
2692
|
+
# Corresponds to the JSON property `textPayload`
|
2693
|
+
# @return [String]
|
2694
|
+
attr_accessor :text_payload
|
2695
|
+
|
2696
|
+
# The time the event described by the log entry occurred. If omitted, defaults
|
2697
|
+
# to operation start time.
|
2698
|
+
# Corresponds to the JSON property `timestamp`
|
2699
|
+
# @return [String]
|
2700
|
+
attr_accessor :timestamp
|
2701
|
+
|
2702
|
+
# Optional. Resource name of the trace associated with the log entry, if any. If
|
2703
|
+
# this field contains a relative resource name, you can assume the name is
|
2704
|
+
# relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/
|
2705
|
+
# 06796866738c859f2f19b7cfb3214824`
|
2706
|
+
# Corresponds to the JSON property `trace`
|
2707
|
+
# @return [String]
|
2708
|
+
attr_accessor :trace
|
2709
|
+
|
2710
|
+
def initialize(**args)
|
2711
|
+
update!(**args)
|
2712
|
+
end
|
2713
|
+
|
2714
|
+
# Update properties of this object
|
2715
|
+
def update!(**args)
|
2716
|
+
@http_request = args[:http_request] if args.key?(:http_request)
|
2717
|
+
@insert_id = args[:insert_id] if args.key?(:insert_id)
|
2718
|
+
@labels = args[:labels] if args.key?(:labels)
|
2719
|
+
@monitored_resource_labels = args[:monitored_resource_labels] if args.key?(:monitored_resource_labels)
|
2720
|
+
@name = args[:name] if args.key?(:name)
|
2721
|
+
@operation = args[:operation] if args.key?(:operation)
|
2722
|
+
@proto_payload = args[:proto_payload] if args.key?(:proto_payload)
|
2723
|
+
@severity = args[:severity] if args.key?(:severity)
|
2724
|
+
@source_location = args[:source_location] if args.key?(:source_location)
|
2725
|
+
@struct_payload = args[:struct_payload] if args.key?(:struct_payload)
|
2726
|
+
@text_payload = args[:text_payload] if args.key?(:text_payload)
|
2727
|
+
@timestamp = args[:timestamp] if args.key?(:timestamp)
|
2728
|
+
@trace = args[:trace] if args.key?(:trace)
|
2729
|
+
end
|
2730
|
+
end
|
2731
|
+
|
2732
|
+
# Additional information about a potentially long-running operation with which a
|
2733
|
+
# log entry is associated.
|
2734
|
+
class V1LogEntryOperation
|
2735
|
+
include Google::Apis::Core::Hashable
|
2736
|
+
|
2737
|
+
# Optional. Set this to True if this is the first log entry in the operation.
|
2738
|
+
# Corresponds to the JSON property `first`
|
2739
|
+
# @return [Boolean]
|
2740
|
+
attr_accessor :first
|
2741
|
+
alias_method :first?, :first
|
2742
|
+
|
2743
|
+
# Optional. An arbitrary operation identifier. Log entries with the same
|
2744
|
+
# identifier are assumed to be part of the same operation.
|
2745
|
+
# Corresponds to the JSON property `id`
|
2746
|
+
# @return [String]
|
2747
|
+
attr_accessor :id
|
2748
|
+
|
2749
|
+
# Optional. Set this to True if this is the last log entry in the operation.
|
2750
|
+
# Corresponds to the JSON property `last`
|
2751
|
+
# @return [Boolean]
|
2752
|
+
attr_accessor :last
|
2753
|
+
alias_method :last?, :last
|
2754
|
+
|
2755
|
+
# Optional. An arbitrary producer identifier. The combination of `id` and `
|
2756
|
+
# producer` must be globally unique. Examples for `producer`: `"MyDivision.
|
2757
|
+
# MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
|
2758
|
+
# Corresponds to the JSON property `producer`
|
2759
|
+
# @return [String]
|
2760
|
+
attr_accessor :producer
|
2761
|
+
|
2762
|
+
def initialize(**args)
|
2763
|
+
update!(**args)
|
2764
|
+
end
|
2765
|
+
|
2766
|
+
# Update properties of this object
|
2767
|
+
def update!(**args)
|
2768
|
+
@first = args[:first] if args.key?(:first)
|
2769
|
+
@id = args[:id] if args.key?(:id)
|
2770
|
+
@last = args[:last] if args.key?(:last)
|
2771
|
+
@producer = args[:producer] if args.key?(:producer)
|
2772
|
+
end
|
2773
|
+
end
|
2774
|
+
|
2775
|
+
# Additional information about the source code location that produced the log
|
2776
|
+
# entry.
|
2777
|
+
class V1LogEntrySourceLocation
|
2778
|
+
include Google::Apis::Core::Hashable
|
2779
|
+
|
2780
|
+
# Optional. Source file name. Depending on the runtime environment, this might
|
2781
|
+
# be a simple name or a fully-qualified name.
|
2782
|
+
# Corresponds to the JSON property `file`
|
2783
|
+
# @return [String]
|
2784
|
+
attr_accessor :file
|
2785
|
+
|
2786
|
+
# Optional. Human-readable name of the function or method being invoked, with
|
2787
|
+
# optional context such as the class or package name. This information may be
|
2788
|
+
# used in contexts such as the logs viewer, where a file and line number are
|
2789
|
+
# less meaningful. The format can vary by language. For example: `qual.if.ied.
|
2790
|
+
# Class.method` (Java), `dir/package.func` (Go), `function` (Python).
|
2791
|
+
# Corresponds to the JSON property `function`
|
2792
|
+
# @return [String]
|
2793
|
+
attr_accessor :function
|
2794
|
+
|
2795
|
+
# Optional. Line within the source file. 1-based; 0 indicates no line number
|
2796
|
+
# available.
|
2797
|
+
# Corresponds to the JSON property `line`
|
2798
|
+
# @return [Fixnum]
|
2799
|
+
attr_accessor :line
|
2800
|
+
|
2801
|
+
def initialize(**args)
|
2802
|
+
update!(**args)
|
2803
|
+
end
|
2804
|
+
|
2805
|
+
# Update properties of this object
|
2806
|
+
def update!(**args)
|
2807
|
+
@file = args[:file] if args.key?(:file)
|
2808
|
+
@function = args[:function] if args.key?(:function)
|
2809
|
+
@line = args[:line] if args.key?(:line)
|
2810
|
+
end
|
2811
|
+
end
|
2812
|
+
|
2813
|
+
# Provides information about the Policy violation info for this request.
|
2814
|
+
class ViolationInfo
|
2815
|
+
include Google::Apis::Core::Hashable
|
2816
|
+
|
2817
|
+
# Optional. Value that is being checked for the policy. This could be in
|
2818
|
+
# encrypted form (if pii sensitive). This field will only be emitted in
|
2819
|
+
# LIST_POLICY types
|
2820
|
+
# Corresponds to the JSON property `checkedValue`
|
2821
|
+
# @return [String]
|
2822
|
+
attr_accessor :checked_value
|
2823
|
+
|
2824
|
+
# Optional. Constraint name
|
2825
|
+
# Corresponds to the JSON property `constraint`
|
2826
|
+
# @return [String]
|
2827
|
+
attr_accessor :constraint
|
2828
|
+
|
2829
|
+
# Optional. Error message that policy is indicating.
|
2830
|
+
# Corresponds to the JSON property `errorMessage`
|
2831
|
+
# @return [String]
|
2832
|
+
attr_accessor :error_message
|
2833
|
+
|
2834
|
+
# Optional. Indicates the type of the policy.
|
2835
|
+
# Corresponds to the JSON property `policyType`
|
2836
|
+
# @return [String]
|
2837
|
+
attr_accessor :policy_type
|
2838
|
+
|
2839
|
+
def initialize(**args)
|
2840
|
+
update!(**args)
|
2841
|
+
end
|
2842
|
+
|
2843
|
+
# Update properties of this object
|
2844
|
+
def update!(**args)
|
2845
|
+
@checked_value = args[:checked_value] if args.key?(:checked_value)
|
2846
|
+
@constraint = args[:constraint] if args.key?(:constraint)
|
2847
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
2848
|
+
@policy_type = args[:policy_type] if args.key?(:policy_type)
|
2849
|
+
end
|
2850
|
+
end
|
2438
2851
|
end
|
2439
2852
|
end
|
2440
2853
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ServicecontrolV1
|
18
18
|
# Version of the google-apis-servicecontrol_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.19.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220315"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -190,12 +190,24 @@ module Google
|
|
190
190
|
include Google::Apis::Core::JsonObjectSupport
|
191
191
|
end
|
192
192
|
|
193
|
+
class OrgPolicyViolationInfo
|
194
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
|
+
|
196
|
+
include Google::Apis::Core::JsonObjectSupport
|
197
|
+
end
|
198
|
+
|
193
199
|
class Peer
|
194
200
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
195
201
|
|
196
202
|
include Google::Apis::Core::JsonObjectSupport
|
197
203
|
end
|
198
204
|
|
205
|
+
class PolicyViolationInfo
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
199
211
|
class QuotaError
|
200
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
201
213
|
|
@@ -304,6 +316,36 @@ module Google
|
|
304
316
|
include Google::Apis::Core::JsonObjectSupport
|
305
317
|
end
|
306
318
|
|
319
|
+
class V1HttpRequest
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
325
|
+
class V1LogEntry
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
331
|
+
class V1LogEntryOperation
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
337
|
+
class V1LogEntrySourceLocation
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
343
|
+
class ViolationInfo
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
307
349
|
class AllocateInfo
|
308
350
|
# @private
|
309
351
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -363,6 +405,8 @@ module Google
|
|
363
405
|
hash :metadata, as: 'metadata'
|
364
406
|
property :method_name, as: 'methodName'
|
365
407
|
property :num_response_items, :numeric_string => true, as: 'numResponseItems'
|
408
|
+
property :policy_violation_info, as: 'policyViolationInfo', class: Google::Apis::ServicecontrolV1::PolicyViolationInfo, decorator: Google::Apis::ServicecontrolV1::PolicyViolationInfo::Representation
|
409
|
+
|
366
410
|
hash :request, as: 'request'
|
367
411
|
property :request_metadata, as: 'requestMetadata', class: Google::Apis::ServicecontrolV1::RequestMetadata, decorator: Google::Apis::ServicecontrolV1::RequestMetadata::Representation
|
368
412
|
|
@@ -651,6 +695,17 @@ module Google
|
|
651
695
|
end
|
652
696
|
end
|
653
697
|
|
698
|
+
class OrgPolicyViolationInfo
|
699
|
+
# @private
|
700
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
701
|
+
hash :payload, as: 'payload'
|
702
|
+
hash :resource_tags, as: 'resourceTags'
|
703
|
+
property :resource_type, as: 'resourceType'
|
704
|
+
collection :violation_info, as: 'violationInfo', class: Google::Apis::ServicecontrolV1::ViolationInfo, decorator: Google::Apis::ServicecontrolV1::ViolationInfo::Representation
|
705
|
+
|
706
|
+
end
|
707
|
+
end
|
708
|
+
|
654
709
|
class Peer
|
655
710
|
# @private
|
656
711
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -662,6 +717,14 @@ module Google
|
|
662
717
|
end
|
663
718
|
end
|
664
719
|
|
720
|
+
class PolicyViolationInfo
|
721
|
+
# @private
|
722
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
723
|
+
property :org_policy_violation_info, as: 'orgPolicyViolationInfo', class: Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo, decorator: Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo::Representation
|
724
|
+
|
725
|
+
end
|
726
|
+
end
|
727
|
+
|
665
728
|
class QuotaError
|
666
729
|
# @private
|
667
730
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -859,6 +922,78 @@ module Google
|
|
859
922
|
property :value, as: 'value'
|
860
923
|
end
|
861
924
|
end
|
925
|
+
|
926
|
+
class V1HttpRequest
|
927
|
+
# @private
|
928
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
929
|
+
property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
|
930
|
+
property :cache_hit, as: 'cacheHit'
|
931
|
+
property :cache_lookup, as: 'cacheLookup'
|
932
|
+
property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
|
933
|
+
property :latency, as: 'latency'
|
934
|
+
property :protocol, as: 'protocol'
|
935
|
+
property :referer, as: 'referer'
|
936
|
+
property :remote_ip, as: 'remoteIp'
|
937
|
+
property :request_method, as: 'requestMethod'
|
938
|
+
property :request_size, :numeric_string => true, as: 'requestSize'
|
939
|
+
property :request_url, as: 'requestUrl'
|
940
|
+
property :response_size, :numeric_string => true, as: 'responseSize'
|
941
|
+
property :server_ip, as: 'serverIp'
|
942
|
+
property :status, as: 'status'
|
943
|
+
property :user_agent, as: 'userAgent'
|
944
|
+
end
|
945
|
+
end
|
946
|
+
|
947
|
+
class V1LogEntry
|
948
|
+
# @private
|
949
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
950
|
+
property :http_request, as: 'httpRequest', class: Google::Apis::ServicecontrolV1::V1HttpRequest, decorator: Google::Apis::ServicecontrolV1::V1HttpRequest::Representation
|
951
|
+
|
952
|
+
property :insert_id, as: 'insertId'
|
953
|
+
hash :labels, as: 'labels'
|
954
|
+
hash :monitored_resource_labels, as: 'monitoredResourceLabels'
|
955
|
+
property :name, as: 'name'
|
956
|
+
property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::V1LogEntryOperation, decorator: Google::Apis::ServicecontrolV1::V1LogEntryOperation::Representation
|
957
|
+
|
958
|
+
hash :proto_payload, as: 'protoPayload'
|
959
|
+
property :severity, as: 'severity'
|
960
|
+
property :source_location, as: 'sourceLocation', class: Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation, decorator: Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation::Representation
|
961
|
+
|
962
|
+
hash :struct_payload, as: 'structPayload'
|
963
|
+
property :text_payload, as: 'textPayload'
|
964
|
+
property :timestamp, as: 'timestamp'
|
965
|
+
property :trace, as: 'trace'
|
966
|
+
end
|
967
|
+
end
|
968
|
+
|
969
|
+
class V1LogEntryOperation
|
970
|
+
# @private
|
971
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
972
|
+
property :first, as: 'first'
|
973
|
+
property :id, as: 'id'
|
974
|
+
property :last, as: 'last'
|
975
|
+
property :producer, as: 'producer'
|
976
|
+
end
|
977
|
+
end
|
978
|
+
|
979
|
+
class V1LogEntrySourceLocation
|
980
|
+
# @private
|
981
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
982
|
+
property :file, as: 'file'
|
983
|
+
property :function, as: 'function'
|
984
|
+
property :line, :numeric_string => true, as: 'line'
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
988
|
+
class ViolationInfo
|
989
|
+
# @private
|
990
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
991
|
+
property :checked_value, as: 'checkedValue'
|
992
|
+
property :constraint, as: 'constraint'
|
993
|
+
property :error_message, as: 'errorMessage'
|
994
|
+
property :policy_type, as: 'policyType'
|
995
|
+
end
|
996
|
+
end
|
862
997
|
end
|
863
998
|
end
|
864
999
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-servicecontrol_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.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-
|
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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v1/v0.19.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicecontrol_v1
|
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.
|
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 V1
|