google-apis-servicecontrol_v1 0.17.0 → 0.20.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: e969cff774c7a804b8ac972c3e74eb5b9a6c9bde60aaacb9a616276eacfd5457
4
- data.tar.gz: 9c6fa5c0d71b3b1e496b559f150685729e2b7592bd27f894111f28c611fc47f5
3
+ metadata.gz: 0cff986f26a4df00b655decd53fbb193f21d88d20f2e72a67a463a7fc12d8945
4
+ data.tar.gz: a4c7d4807b74ca6f3e104c25579d137e24f5f9f6779bef41f4b69aa6d38b19a9
5
5
  SHA512:
6
- metadata.gz: ee32eaefd042ebdbfdd3ac30851e7018ef2fdff5c5166609ee3ca948e4e7d7c58b1a409bdb4929113ae9074249a3acfd75df001023f23f6f044e3480b470f067
7
- data.tar.gz: d27647bc1d579f8feceed6bfeae839b8c4e3e4fb2f1a57065e0545a37ee04d32525068126a57ce6ba20ec0524bce3c5e91999bd12d65fe50e05264f66e9af675
6
+ metadata.gz: 197eab821d17a4873e471b06ca9e1d6736995648a436194aebdaffed596367cefca47652c01e08751dc143df945983bffb6a97803d757ea4089d1c3d8542586c
7
+ data.tar.gz: 7df33f1343fbad530504af9ef2326c740a41e6ab1d315f02f51a7a7f169019ed7598eff73ac9ac378a4b045078b197ba5b797d2f1c3aadf6e9b15020ffde97be
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-servicecontrol_v1
2
2
 
3
+ ### v0.20.0 (2022-05-03)
4
+
5
+ * Regenerated from discovery document revision 20220429
6
+
7
+ ### v0.19.0 (2022-03-16)
8
+
9
+ * Regenerated from discovery document revision 20220315
10
+
11
+ ### v0.18.0 (2022-02-19)
12
+
13
+ * Regenerated from discovery document revision 20220218
14
+
3
15
  ### v0.17.0 (2022-01-18)
4
16
 
5
17
  * Regenerated from discovery document revision 20220114
@@ -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)
@@ -1401,11 +1407,6 @@ module Google
1401
1407
  # @return [String]
1402
1408
  attr_accessor :end_time
1403
1409
 
1404
- # Unimplemented.
1405
- # Corresponds to the JSON property `extensions`
1406
- # @return [Array<Hash<String,Object>>]
1407
- attr_accessor :extensions
1408
-
1409
1410
  # DO NOT USE. This is an experimental field.
1410
1411
  # Corresponds to the JSON property `importance`
1411
1412
  # @return [String]
@@ -1493,7 +1494,6 @@ module Google
1493
1494
  def update!(**args)
1494
1495
  @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
1495
1496
  @end_time = args[:end_time] if args.key?(:end_time)
1496
- @extensions = args[:extensions] if args.key?(:extensions)
1497
1497
  @importance = args[:importance] if args.key?(:importance)
1498
1498
  @labels = args[:labels] if args.key?(:labels)
1499
1499
  @log_entries = args[:log_entries] if args.key?(:log_entries)
@@ -1508,6 +1508,50 @@ module Google
1508
1508
  end
1509
1509
  end
1510
1510
 
1511
+ # Represents OrgPolicy Violation information.
1512
+ class OrgPolicyViolationInfo
1513
+ include Google::Apis::Core::Hashable
1514
+
1515
+ # Optional. Resource payload that is currently in scope and is subjected to
1516
+ # orgpolicy conditions. This payload may be the subset of the actual Resource
1517
+ # that may come in the request. This payload should not contain any core content.
1518
+ # Corresponds to the JSON property `payload`
1519
+ # @return [Hash<String,Object>]
1520
+ attr_accessor :payload
1521
+
1522
+ # Optional. Tags referenced on the resource at the time of evaluation. These
1523
+ # also include the federated tags, if they are supplied in the CheckOrgPolicy or
1524
+ # CheckCustomConstraints Requests. Optional field as of now. These tags are the
1525
+ # Cloud tags that are available on the resource during the policy evaluation and
1526
+ # will be available as part of the OrgPolicy check response for logging purposes.
1527
+ # Corresponds to the JSON property `resourceTags`
1528
+ # @return [Hash<String,String>]
1529
+ attr_accessor :resource_tags
1530
+
1531
+ # Optional. Resource type that the orgpolicy is checked against. Example:
1532
+ # compute.googleapis.com/Instance, store.googleapis.com/bucket
1533
+ # Corresponds to the JSON property `resourceType`
1534
+ # @return [String]
1535
+ attr_accessor :resource_type
1536
+
1537
+ # Optional. Policy violations
1538
+ # Corresponds to the JSON property `violationInfo`
1539
+ # @return [Array<Google::Apis::ServicecontrolV1::ViolationInfo>]
1540
+ attr_accessor :violation_info
1541
+
1542
+ def initialize(**args)
1543
+ update!(**args)
1544
+ end
1545
+
1546
+ # Update properties of this object
1547
+ def update!(**args)
1548
+ @payload = args[:payload] if args.key?(:payload)
1549
+ @resource_tags = args[:resource_tags] if args.key?(:resource_tags)
1550
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
1551
+ @violation_info = args[:violation_info] if args.key?(:violation_info)
1552
+ end
1553
+ end
1554
+
1511
1555
  # This message defines attributes for a node that handles a network request. The
1512
1556
  # node can be either a service or an application that sends, forwards, or
1513
1557
  # receives the request. Service peers should fill in `principal` and `labels` as
@@ -1558,6 +1602,25 @@ module Google
1558
1602
  end
1559
1603
  end
1560
1604
 
1605
+ # Information related to policy violations for this request.
1606
+ class PolicyViolationInfo
1607
+ include Google::Apis::Core::Hashable
1608
+
1609
+ # Represents OrgPolicy Violation information.
1610
+ # Corresponds to the JSON property `orgPolicyViolationInfo`
1611
+ # @return [Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo]
1612
+ attr_accessor :org_policy_violation_info
1613
+
1614
+ def initialize(**args)
1615
+ update!(**args)
1616
+ end
1617
+
1618
+ # Update properties of this object
1619
+ def update!(**args)
1620
+ @org_policy_violation_info = args[:org_policy_violation_info] if args.key?(:org_policy_violation_info)
1621
+ end
1622
+ end
1623
+
1561
1624
  # Represents error information for QuotaOperation.
1562
1625
  class QuotaError
1563
1626
  include Google::Apis::Core::Hashable
@@ -2435,6 +2498,350 @@ module Google
2435
2498
  @value = args[:value] if args.key?(:value)
2436
2499
  end
2437
2500
  end
2501
+
2502
+ # A common proto for logging HTTP requests. Only contains semantics defined by
2503
+ # the HTTP specification. Product-specific logging information MUST be defined
2504
+ # in a separate message.
2505
+ class V1HttpRequest
2506
+ include Google::Apis::Core::Hashable
2507
+
2508
+ # The number of HTTP response bytes inserted into cache. Set only when a cache
2509
+ # fill was attempted.
2510
+ # Corresponds to the JSON property `cacheFillBytes`
2511
+ # @return [Fixnum]
2512
+ attr_accessor :cache_fill_bytes
2513
+
2514
+ # Whether or not an entity was served from cache (with or without validation).
2515
+ # Corresponds to the JSON property `cacheHit`
2516
+ # @return [Boolean]
2517
+ attr_accessor :cache_hit
2518
+ alias_method :cache_hit?, :cache_hit
2519
+
2520
+ # Whether or not a cache lookup was attempted.
2521
+ # Corresponds to the JSON property `cacheLookup`
2522
+ # @return [Boolean]
2523
+ attr_accessor :cache_lookup
2524
+ alias_method :cache_lookup?, :cache_lookup
2525
+
2526
+ # Whether or not the response was validated with the origin server before being
2527
+ # served from cache. This field is only meaningful if `cache_hit` is True.
2528
+ # Corresponds to the JSON property `cacheValidatedWithOriginServer`
2529
+ # @return [Boolean]
2530
+ attr_accessor :cache_validated_with_origin_server
2531
+ alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
2532
+
2533
+ # The request processing latency on the server, from the time the request was
2534
+ # received until the response was sent.
2535
+ # Corresponds to the JSON property `latency`
2536
+ # @return [String]
2537
+ attr_accessor :latency
2538
+
2539
+ # Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2540
+ # Corresponds to the JSON property `protocol`
2541
+ # @return [String]
2542
+ attr_accessor :protocol
2543
+
2544
+ # The referer URL of the request, as defined in [HTTP/1.1 Header Field
2545
+ # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
2546
+ # Corresponds to the JSON property `referer`
2547
+ # @return [String]
2548
+ attr_accessor :referer
2549
+
2550
+ # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
2551
+ # Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
2552
+ # Corresponds to the JSON property `remoteIp`
2553
+ # @return [String]
2554
+ attr_accessor :remote_ip
2555
+
2556
+ # The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
2557
+ # Corresponds to the JSON property `requestMethod`
2558
+ # @return [String]
2559
+ attr_accessor :request_method
2560
+
2561
+ # The size of the HTTP request message in bytes, including the request headers
2562
+ # and the request body.
2563
+ # Corresponds to the JSON property `requestSize`
2564
+ # @return [Fixnum]
2565
+ attr_accessor :request_size
2566
+
2567
+ # The scheme (http, https), the host name, the path, and the query portion of
2568
+ # the URL that was requested. Example: `"http://example.com/some/info?color=red"`
2569
+ # .
2570
+ # Corresponds to the JSON property `requestUrl`
2571
+ # @return [String]
2572
+ attr_accessor :request_url
2573
+
2574
+ # The size of the HTTP response message sent back to the client, in bytes,
2575
+ # including the response headers and the response body.
2576
+ # Corresponds to the JSON property `responseSize`
2577
+ # @return [Fixnum]
2578
+ attr_accessor :response_size
2579
+
2580
+ # The IP address (IPv4 or IPv6) of the origin server that the request was sent
2581
+ # to.
2582
+ # Corresponds to the JSON property `serverIp`
2583
+ # @return [String]
2584
+ attr_accessor :server_ip
2585
+
2586
+ # The response code indicating the status of the response. Examples: 200, 404.
2587
+ # Corresponds to the JSON property `status`
2588
+ # @return [Fixnum]
2589
+ attr_accessor :status
2590
+
2591
+ # The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.
2592
+ # 0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
2593
+ # Corresponds to the JSON property `userAgent`
2594
+ # @return [String]
2595
+ attr_accessor :user_agent
2596
+
2597
+ def initialize(**args)
2598
+ update!(**args)
2599
+ end
2600
+
2601
+ # Update properties of this object
2602
+ def update!(**args)
2603
+ @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
2604
+ @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
2605
+ @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
2606
+ @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
2607
+ @latency = args[:latency] if args.key?(:latency)
2608
+ @protocol = args[:protocol] if args.key?(:protocol)
2609
+ @referer = args[:referer] if args.key?(:referer)
2610
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
2611
+ @request_method = args[:request_method] if args.key?(:request_method)
2612
+ @request_size = args[:request_size] if args.key?(:request_size)
2613
+ @request_url = args[:request_url] if args.key?(:request_url)
2614
+ @response_size = args[:response_size] if args.key?(:response_size)
2615
+ @server_ip = args[:server_ip] if args.key?(:server_ip)
2616
+ @status = args[:status] if args.key?(:status)
2617
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
2618
+ end
2619
+ end
2620
+
2621
+ # An individual log entry.
2622
+ class V1LogEntry
2623
+ include Google::Apis::Core::Hashable
2624
+
2625
+ # A common proto for logging HTTP requests. Only contains semantics defined by
2626
+ # the HTTP specification. Product-specific logging information MUST be defined
2627
+ # in a separate message.
2628
+ # Corresponds to the JSON property `httpRequest`
2629
+ # @return [Google::Apis::ServicecontrolV1::V1HttpRequest]
2630
+ attr_accessor :http_request
2631
+
2632
+ # A unique ID for the log entry used for deduplication. If omitted, the
2633
+ # implementation will generate one based on operation_id.
2634
+ # Corresponds to the JSON property `insertId`
2635
+ # @return [String]
2636
+ attr_accessor :insert_id
2637
+
2638
+ # A set of user-defined (key, value) data that provides additional information
2639
+ # about the log entry.
2640
+ # Corresponds to the JSON property `labels`
2641
+ # @return [Hash<String,String>]
2642
+ attr_accessor :labels
2643
+
2644
+ # A set of user-defined (key, value) data that provides additional information
2645
+ # about the moniotored resource that the log entry belongs to.
2646
+ # Corresponds to the JSON property `monitoredResourceLabels`
2647
+ # @return [Hash<String,String>]
2648
+ attr_accessor :monitored_resource_labels
2649
+
2650
+ # Required. The log to which this log entry belongs. Examples: `"syslog"`, `"
2651
+ # book_log"`.
2652
+ # Corresponds to the JSON property `name`
2653
+ # @return [String]
2654
+ attr_accessor :name
2655
+
2656
+ # Additional information about a potentially long-running operation with which a
2657
+ # log entry is associated.
2658
+ # Corresponds to the JSON property `operation`
2659
+ # @return [Google::Apis::ServicecontrolV1::V1LogEntryOperation]
2660
+ attr_accessor :operation
2661
+
2662
+ # The log entry payload, represented as a protocol buffer that is expressed as a
2663
+ # JSON object. The only accepted type currently is AuditLog.
2664
+ # Corresponds to the JSON property `protoPayload`
2665
+ # @return [Hash<String,Object>]
2666
+ attr_accessor :proto_payload
2667
+
2668
+ # The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
2669
+ # Corresponds to the JSON property `severity`
2670
+ # @return [String]
2671
+ attr_accessor :severity
2672
+
2673
+ # Additional information about the source code location that produced the log
2674
+ # entry.
2675
+ # Corresponds to the JSON property `sourceLocation`
2676
+ # @return [Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation]
2677
+ attr_accessor :source_location
2678
+
2679
+ # The log entry payload, represented as a structure that is expressed as a JSON
2680
+ # object.
2681
+ # Corresponds to the JSON property `structPayload`
2682
+ # @return [Hash<String,Object>]
2683
+ attr_accessor :struct_payload
2684
+
2685
+ # The log entry payload, represented as a Unicode string (UTF-8).
2686
+ # Corresponds to the JSON property `textPayload`
2687
+ # @return [String]
2688
+ attr_accessor :text_payload
2689
+
2690
+ # The time the event described by the log entry occurred. If omitted, defaults
2691
+ # to operation start time.
2692
+ # Corresponds to the JSON property `timestamp`
2693
+ # @return [String]
2694
+ attr_accessor :timestamp
2695
+
2696
+ # Optional. Resource name of the trace associated with the log entry, if any. If
2697
+ # this field contains a relative resource name, you can assume the name is
2698
+ # relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/
2699
+ # 06796866738c859f2f19b7cfb3214824`
2700
+ # Corresponds to the JSON property `trace`
2701
+ # @return [String]
2702
+ attr_accessor :trace
2703
+
2704
+ def initialize(**args)
2705
+ update!(**args)
2706
+ end
2707
+
2708
+ # Update properties of this object
2709
+ def update!(**args)
2710
+ @http_request = args[:http_request] if args.key?(:http_request)
2711
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
2712
+ @labels = args[:labels] if args.key?(:labels)
2713
+ @monitored_resource_labels = args[:monitored_resource_labels] if args.key?(:monitored_resource_labels)
2714
+ @name = args[:name] if args.key?(:name)
2715
+ @operation = args[:operation] if args.key?(:operation)
2716
+ @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
2717
+ @severity = args[:severity] if args.key?(:severity)
2718
+ @source_location = args[:source_location] if args.key?(:source_location)
2719
+ @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
2720
+ @text_payload = args[:text_payload] if args.key?(:text_payload)
2721
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
2722
+ @trace = args[:trace] if args.key?(:trace)
2723
+ end
2724
+ end
2725
+
2726
+ # Additional information about a potentially long-running operation with which a
2727
+ # log entry is associated.
2728
+ class V1LogEntryOperation
2729
+ include Google::Apis::Core::Hashable
2730
+
2731
+ # Optional. Set this to True if this is the first log entry in the operation.
2732
+ # Corresponds to the JSON property `first`
2733
+ # @return [Boolean]
2734
+ attr_accessor :first
2735
+ alias_method :first?, :first
2736
+
2737
+ # Optional. An arbitrary operation identifier. Log entries with the same
2738
+ # identifier are assumed to be part of the same operation.
2739
+ # Corresponds to the JSON property `id`
2740
+ # @return [String]
2741
+ attr_accessor :id
2742
+
2743
+ # Optional. Set this to True if this is the last log entry in the operation.
2744
+ # Corresponds to the JSON property `last`
2745
+ # @return [Boolean]
2746
+ attr_accessor :last
2747
+ alias_method :last?, :last
2748
+
2749
+ # Optional. An arbitrary producer identifier. The combination of `id` and `
2750
+ # producer` must be globally unique. Examples for `producer`: `"MyDivision.
2751
+ # MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
2752
+ # Corresponds to the JSON property `producer`
2753
+ # @return [String]
2754
+ attr_accessor :producer
2755
+
2756
+ def initialize(**args)
2757
+ update!(**args)
2758
+ end
2759
+
2760
+ # Update properties of this object
2761
+ def update!(**args)
2762
+ @first = args[:first] if args.key?(:first)
2763
+ @id = args[:id] if args.key?(:id)
2764
+ @last = args[:last] if args.key?(:last)
2765
+ @producer = args[:producer] if args.key?(:producer)
2766
+ end
2767
+ end
2768
+
2769
+ # Additional information about the source code location that produced the log
2770
+ # entry.
2771
+ class V1LogEntrySourceLocation
2772
+ include Google::Apis::Core::Hashable
2773
+
2774
+ # Optional. Source file name. Depending on the runtime environment, this might
2775
+ # be a simple name or a fully-qualified name.
2776
+ # Corresponds to the JSON property `file`
2777
+ # @return [String]
2778
+ attr_accessor :file
2779
+
2780
+ # Optional. Human-readable name of the function or method being invoked, with
2781
+ # optional context such as the class or package name. This information may be
2782
+ # used in contexts such as the logs viewer, where a file and line number are
2783
+ # less meaningful. The format can vary by language. For example: `qual.if.ied.
2784
+ # Class.method` (Java), `dir/package.func` (Go), `function` (Python).
2785
+ # Corresponds to the JSON property `function`
2786
+ # @return [String]
2787
+ attr_accessor :function
2788
+
2789
+ # Optional. Line within the source file. 1-based; 0 indicates no line number
2790
+ # available.
2791
+ # Corresponds to the JSON property `line`
2792
+ # @return [Fixnum]
2793
+ attr_accessor :line
2794
+
2795
+ def initialize(**args)
2796
+ update!(**args)
2797
+ end
2798
+
2799
+ # Update properties of this object
2800
+ def update!(**args)
2801
+ @file = args[:file] if args.key?(:file)
2802
+ @function = args[:function] if args.key?(:function)
2803
+ @line = args[:line] if args.key?(:line)
2804
+ end
2805
+ end
2806
+
2807
+ # Provides information about the Policy violation info for this request.
2808
+ class ViolationInfo
2809
+ include Google::Apis::Core::Hashable
2810
+
2811
+ # Optional. Value that is being checked for the policy. This could be in
2812
+ # encrypted form (if pii sensitive). This field will only be emitted in
2813
+ # LIST_POLICY types
2814
+ # Corresponds to the JSON property `checkedValue`
2815
+ # @return [String]
2816
+ attr_accessor :checked_value
2817
+
2818
+ # Optional. Constraint name
2819
+ # Corresponds to the JSON property `constraint`
2820
+ # @return [String]
2821
+ attr_accessor :constraint
2822
+
2823
+ # Optional. Error message that policy is indicating.
2824
+ # Corresponds to the JSON property `errorMessage`
2825
+ # @return [String]
2826
+ attr_accessor :error_message
2827
+
2828
+ # Optional. Indicates the type of the policy.
2829
+ # Corresponds to the JSON property `policyType`
2830
+ # @return [String]
2831
+ attr_accessor :policy_type
2832
+
2833
+ def initialize(**args)
2834
+ update!(**args)
2835
+ end
2836
+
2837
+ # Update properties of this object
2838
+ def update!(**args)
2839
+ @checked_value = args[:checked_value] if args.key?(:checked_value)
2840
+ @constraint = args[:constraint] if args.key?(:constraint)
2841
+ @error_message = args[:error_message] if args.key?(:error_message)
2842
+ @policy_type = args[:policy_type] if args.key?(:policy_type)
2843
+ end
2844
+ end
2438
2845
  end
2439
2846
  end
2440
2847
  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.17.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220114"
25
+ REVISION = "20220429"
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
 
@@ -631,7 +675,6 @@ module Google
631
675
  class Representation < Google::Apis::Core::JsonRepresentation
632
676
  property :consumer_id, as: 'consumerId'
633
677
  property :end_time, as: 'endTime'
634
- collection :extensions, as: 'extensions'
635
678
  property :importance, as: 'importance'
636
679
  hash :labels, as: 'labels'
637
680
  collection :log_entries, as: 'logEntries', class: Google::Apis::ServicecontrolV1::LogEntry, decorator: Google::Apis::ServicecontrolV1::LogEntry::Representation
@@ -651,6 +694,17 @@ module Google
651
694
  end
652
695
  end
653
696
 
697
+ class OrgPolicyViolationInfo
698
+ # @private
699
+ class Representation < Google::Apis::Core::JsonRepresentation
700
+ hash :payload, as: 'payload'
701
+ hash :resource_tags, as: 'resourceTags'
702
+ property :resource_type, as: 'resourceType'
703
+ collection :violation_info, as: 'violationInfo', class: Google::Apis::ServicecontrolV1::ViolationInfo, decorator: Google::Apis::ServicecontrolV1::ViolationInfo::Representation
704
+
705
+ end
706
+ end
707
+
654
708
  class Peer
655
709
  # @private
656
710
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -662,6 +716,14 @@ module Google
662
716
  end
663
717
  end
664
718
 
719
+ class PolicyViolationInfo
720
+ # @private
721
+ class Representation < Google::Apis::Core::JsonRepresentation
722
+ property :org_policy_violation_info, as: 'orgPolicyViolationInfo', class: Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo, decorator: Google::Apis::ServicecontrolV1::OrgPolicyViolationInfo::Representation
723
+
724
+ end
725
+ end
726
+
665
727
  class QuotaError
666
728
  # @private
667
729
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -859,6 +921,78 @@ module Google
859
921
  property :value, as: 'value'
860
922
  end
861
923
  end
924
+
925
+ class V1HttpRequest
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
929
+ property :cache_hit, as: 'cacheHit'
930
+ property :cache_lookup, as: 'cacheLookup'
931
+ property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
932
+ property :latency, as: 'latency'
933
+ property :protocol, as: 'protocol'
934
+ property :referer, as: 'referer'
935
+ property :remote_ip, as: 'remoteIp'
936
+ property :request_method, as: 'requestMethod'
937
+ property :request_size, :numeric_string => true, as: 'requestSize'
938
+ property :request_url, as: 'requestUrl'
939
+ property :response_size, :numeric_string => true, as: 'responseSize'
940
+ property :server_ip, as: 'serverIp'
941
+ property :status, as: 'status'
942
+ property :user_agent, as: 'userAgent'
943
+ end
944
+ end
945
+
946
+ class V1LogEntry
947
+ # @private
948
+ class Representation < Google::Apis::Core::JsonRepresentation
949
+ property :http_request, as: 'httpRequest', class: Google::Apis::ServicecontrolV1::V1HttpRequest, decorator: Google::Apis::ServicecontrolV1::V1HttpRequest::Representation
950
+
951
+ property :insert_id, as: 'insertId'
952
+ hash :labels, as: 'labels'
953
+ hash :monitored_resource_labels, as: 'monitoredResourceLabels'
954
+ property :name, as: 'name'
955
+ property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::V1LogEntryOperation, decorator: Google::Apis::ServicecontrolV1::V1LogEntryOperation::Representation
956
+
957
+ hash :proto_payload, as: 'protoPayload'
958
+ property :severity, as: 'severity'
959
+ property :source_location, as: 'sourceLocation', class: Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation, decorator: Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation::Representation
960
+
961
+ hash :struct_payload, as: 'structPayload'
962
+ property :text_payload, as: 'textPayload'
963
+ property :timestamp, as: 'timestamp'
964
+ property :trace, as: 'trace'
965
+ end
966
+ end
967
+
968
+ class V1LogEntryOperation
969
+ # @private
970
+ class Representation < Google::Apis::Core::JsonRepresentation
971
+ property :first, as: 'first'
972
+ property :id, as: 'id'
973
+ property :last, as: 'last'
974
+ property :producer, as: 'producer'
975
+ end
976
+ end
977
+
978
+ class V1LogEntrySourceLocation
979
+ # @private
980
+ class Representation < Google::Apis::Core::JsonRepresentation
981
+ property :file, as: 'file'
982
+ property :function, as: 'function'
983
+ property :line, :numeric_string => true, as: 'line'
984
+ end
985
+ end
986
+
987
+ class ViolationInfo
988
+ # @private
989
+ class Representation < Google::Apis::Core::JsonRepresentation
990
+ property :checked_value, as: 'checkedValue'
991
+ property :constraint, as: 'constraint'
992
+ property :error_message, as: 'errorMessage'
993
+ property :policy_type, as: 'policyType'
994
+ end
995
+ end
862
996
  end
863
997
  end
864
998
  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.17.0
4
+ version: 0.20.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-24 00:00:00.000000000 Z
11
+ date: 2022-05-09 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.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicecontrol_v1/v0.20.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: []