google-apis-servicecontrol_v1 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e969cff774c7a804b8ac972c3e74eb5b9a6c9bde60aaacb9a616276eacfd5457
4
- data.tar.gz: 9c6fa5c0d71b3b1e496b559f150685729e2b7592bd27f894111f28c611fc47f5
3
+ metadata.gz: 2db40d299ad93004ba2a7fff58c2e43d3cc32ea6998e95ab916cfb295ff3456f
4
+ data.tar.gz: c63e7807754476b65f8b3d974bce86d627de8106a5660a0b7a8ff20fa4701061
5
5
  SHA512:
6
- metadata.gz: ee32eaefd042ebdbfdd3ac30851e7018ef2fdff5c5166609ee3ca948e4e7d7c58b1a409bdb4929113ae9074249a3acfd75df001023f23f6f044e3480b470f067
7
- data.tar.gz: d27647bc1d579f8feceed6bfeae839b8c4e3e4fb2f1a57065e0545a37ee04d32525068126a57ce6ba20ec0524bce3c5e91999bd12d65fe50e05264f66e9af675
6
+ metadata.gz: 3ec0c51800c2aebd53755539d4dad4255a9ad65cbd01bf573399fc901bfa523bdeae89ad5203a21a4d79a7ee9fcfd49890d96db2af59afdaacc21f837a337956
7
+ data.tar.gz: f9026cb78556b41868b30a6320b5f7a39084e7fdd1ad0799ddc5a2f8291da4aa1795b4d67cfa7b0278101363f2e9fea7a6a5b65795efec7e092d3a283b214e04
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-servicecontrol_v1
2
2
 
3
+ ### v0.18.0 (2022-02-19)
4
+
5
+ * Regenerated from discovery document revision 20220218
6
+
3
7
  ### v0.17.0 (2022-01-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20220114
@@ -2435,6 +2435,311 @@ module Google
2435
2435
  @value = args[:value] if args.key?(:value)
2436
2436
  end
2437
2437
  end
2438
+
2439
+ # A common proto for logging HTTP requests. Only contains semantics defined by
2440
+ # the HTTP specification. Product-specific logging information MUST be defined
2441
+ # in a separate message.
2442
+ class V1HttpRequest
2443
+ include Google::Apis::Core::Hashable
2444
+
2445
+ # The number of HTTP response bytes inserted into cache. Set only when a cache
2446
+ # fill was attempted.
2447
+ # Corresponds to the JSON property `cacheFillBytes`
2448
+ # @return [Fixnum]
2449
+ attr_accessor :cache_fill_bytes
2450
+
2451
+ # Whether or not an entity was served from cache (with or without validation).
2452
+ # Corresponds to the JSON property `cacheHit`
2453
+ # @return [Boolean]
2454
+ attr_accessor :cache_hit
2455
+ alias_method :cache_hit?, :cache_hit
2456
+
2457
+ # Whether or not a cache lookup was attempted.
2458
+ # Corresponds to the JSON property `cacheLookup`
2459
+ # @return [Boolean]
2460
+ attr_accessor :cache_lookup
2461
+ alias_method :cache_lookup?, :cache_lookup
2462
+
2463
+ # Whether or not the response was validated with the origin server before being
2464
+ # served from cache. This field is only meaningful if `cache_hit` is True.
2465
+ # Corresponds to the JSON property `cacheValidatedWithOriginServer`
2466
+ # @return [Boolean]
2467
+ attr_accessor :cache_validated_with_origin_server
2468
+ alias_method :cache_validated_with_origin_server?, :cache_validated_with_origin_server
2469
+
2470
+ # The request processing latency on the server, from the time the request was
2471
+ # received until the response was sent.
2472
+ # Corresponds to the JSON property `latency`
2473
+ # @return [String]
2474
+ attr_accessor :latency
2475
+
2476
+ # Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
2477
+ # Corresponds to the JSON property `protocol`
2478
+ # @return [String]
2479
+ attr_accessor :protocol
2480
+
2481
+ # The referer URL of the request, as defined in [HTTP/1.1 Header Field
2482
+ # Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
2483
+ # Corresponds to the JSON property `referer`
2484
+ # @return [String]
2485
+ attr_accessor :referer
2486
+
2487
+ # The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
2488
+ # Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
2489
+ # Corresponds to the JSON property `remoteIp`
2490
+ # @return [String]
2491
+ attr_accessor :remote_ip
2492
+
2493
+ # The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
2494
+ # Corresponds to the JSON property `requestMethod`
2495
+ # @return [String]
2496
+ attr_accessor :request_method
2497
+
2498
+ # The size of the HTTP request message in bytes, including the request headers
2499
+ # and the request body.
2500
+ # Corresponds to the JSON property `requestSize`
2501
+ # @return [Fixnum]
2502
+ attr_accessor :request_size
2503
+
2504
+ # The scheme (http, https), the host name, the path, and the query portion of
2505
+ # the URL that was requested. Example: `"http://example.com/some/info?color=red"`
2506
+ # .
2507
+ # Corresponds to the JSON property `requestUrl`
2508
+ # @return [String]
2509
+ attr_accessor :request_url
2510
+
2511
+ # The size of the HTTP response message sent back to the client, in bytes,
2512
+ # including the response headers and the response body.
2513
+ # Corresponds to the JSON property `responseSize`
2514
+ # @return [Fixnum]
2515
+ attr_accessor :response_size
2516
+
2517
+ # The IP address (IPv4 or IPv6) of the origin server that the request was sent
2518
+ # to.
2519
+ # Corresponds to the JSON property `serverIp`
2520
+ # @return [String]
2521
+ attr_accessor :server_ip
2522
+
2523
+ # The response code indicating the status of the response. Examples: 200, 404.
2524
+ # Corresponds to the JSON property `status`
2525
+ # @return [Fixnum]
2526
+ attr_accessor :status
2527
+
2528
+ # The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.
2529
+ # 0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
2530
+ # Corresponds to the JSON property `userAgent`
2531
+ # @return [String]
2532
+ attr_accessor :user_agent
2533
+
2534
+ def initialize(**args)
2535
+ update!(**args)
2536
+ end
2537
+
2538
+ # Update properties of this object
2539
+ def update!(**args)
2540
+ @cache_fill_bytes = args[:cache_fill_bytes] if args.key?(:cache_fill_bytes)
2541
+ @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
2542
+ @cache_lookup = args[:cache_lookup] if args.key?(:cache_lookup)
2543
+ @cache_validated_with_origin_server = args[:cache_validated_with_origin_server] if args.key?(:cache_validated_with_origin_server)
2544
+ @latency = args[:latency] if args.key?(:latency)
2545
+ @protocol = args[:protocol] if args.key?(:protocol)
2546
+ @referer = args[:referer] if args.key?(:referer)
2547
+ @remote_ip = args[:remote_ip] if args.key?(:remote_ip)
2548
+ @request_method = args[:request_method] if args.key?(:request_method)
2549
+ @request_size = args[:request_size] if args.key?(:request_size)
2550
+ @request_url = args[:request_url] if args.key?(:request_url)
2551
+ @response_size = args[:response_size] if args.key?(:response_size)
2552
+ @server_ip = args[:server_ip] if args.key?(:server_ip)
2553
+ @status = args[:status] if args.key?(:status)
2554
+ @user_agent = args[:user_agent] if args.key?(:user_agent)
2555
+ end
2556
+ end
2557
+
2558
+ # An individual log entry.
2559
+ class V1LogEntry
2560
+ include Google::Apis::Core::Hashable
2561
+
2562
+ # A common proto for logging HTTP requests. Only contains semantics defined by
2563
+ # the HTTP specification. Product-specific logging information MUST be defined
2564
+ # in a separate message.
2565
+ # Corresponds to the JSON property `httpRequest`
2566
+ # @return [Google::Apis::ServicecontrolV1::V1HttpRequest]
2567
+ attr_accessor :http_request
2568
+
2569
+ # A unique ID for the log entry used for deduplication. If omitted, the
2570
+ # implementation will generate one based on operation_id.
2571
+ # Corresponds to the JSON property `insertId`
2572
+ # @return [String]
2573
+ attr_accessor :insert_id
2574
+
2575
+ # A set of user-defined (key, value) data that provides additional information
2576
+ # about the log entry.
2577
+ # Corresponds to the JSON property `labels`
2578
+ # @return [Hash<String,String>]
2579
+ attr_accessor :labels
2580
+
2581
+ # A set of user-defined (key, value) data that provides additional information
2582
+ # about the moniotored resource that the log entry belongs to.
2583
+ # Corresponds to the JSON property `monitoredResourceLabels`
2584
+ # @return [Hash<String,String>]
2585
+ attr_accessor :monitored_resource_labels
2586
+
2587
+ # Required. The log to which this log entry belongs. Examples: `"syslog"`, `"
2588
+ # book_log"`.
2589
+ # Corresponds to the JSON property `name`
2590
+ # @return [String]
2591
+ attr_accessor :name
2592
+
2593
+ # Additional information about a potentially long-running operation with which a
2594
+ # log entry is associated.
2595
+ # Corresponds to the JSON property `operation`
2596
+ # @return [Google::Apis::ServicecontrolV1::V1LogEntryOperation]
2597
+ attr_accessor :operation
2598
+
2599
+ # The log entry payload, represented as a protocol buffer that is expressed as a
2600
+ # JSON object. The only accepted type currently is AuditLog.
2601
+ # Corresponds to the JSON property `protoPayload`
2602
+ # @return [Hash<String,Object>]
2603
+ attr_accessor :proto_payload
2604
+
2605
+ # The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
2606
+ # Corresponds to the JSON property `severity`
2607
+ # @return [String]
2608
+ attr_accessor :severity
2609
+
2610
+ # Additional information about the source code location that produced the log
2611
+ # entry.
2612
+ # Corresponds to the JSON property `sourceLocation`
2613
+ # @return [Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation]
2614
+ attr_accessor :source_location
2615
+
2616
+ # The log entry payload, represented as a structure that is expressed as a JSON
2617
+ # object.
2618
+ # Corresponds to the JSON property `structPayload`
2619
+ # @return [Hash<String,Object>]
2620
+ attr_accessor :struct_payload
2621
+
2622
+ # The log entry payload, represented as a Unicode string (UTF-8).
2623
+ # Corresponds to the JSON property `textPayload`
2624
+ # @return [String]
2625
+ attr_accessor :text_payload
2626
+
2627
+ # The time the event described by the log entry occurred. If omitted, defaults
2628
+ # to operation start time.
2629
+ # Corresponds to the JSON property `timestamp`
2630
+ # @return [String]
2631
+ attr_accessor :timestamp
2632
+
2633
+ # Optional. Resource name of the trace associated with the log entry, if any. If
2634
+ # this field contains a relative resource name, you can assume the name is
2635
+ # relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/
2636
+ # 06796866738c859f2f19b7cfb3214824`
2637
+ # Corresponds to the JSON property `trace`
2638
+ # @return [String]
2639
+ attr_accessor :trace
2640
+
2641
+ def initialize(**args)
2642
+ update!(**args)
2643
+ end
2644
+
2645
+ # Update properties of this object
2646
+ def update!(**args)
2647
+ @http_request = args[:http_request] if args.key?(:http_request)
2648
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
2649
+ @labels = args[:labels] if args.key?(:labels)
2650
+ @monitored_resource_labels = args[:monitored_resource_labels] if args.key?(:monitored_resource_labels)
2651
+ @name = args[:name] if args.key?(:name)
2652
+ @operation = args[:operation] if args.key?(:operation)
2653
+ @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
2654
+ @severity = args[:severity] if args.key?(:severity)
2655
+ @source_location = args[:source_location] if args.key?(:source_location)
2656
+ @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
2657
+ @text_payload = args[:text_payload] if args.key?(:text_payload)
2658
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
2659
+ @trace = args[:trace] if args.key?(:trace)
2660
+ end
2661
+ end
2662
+
2663
+ # Additional information about a potentially long-running operation with which a
2664
+ # log entry is associated.
2665
+ class V1LogEntryOperation
2666
+ include Google::Apis::Core::Hashable
2667
+
2668
+ # Optional. Set this to True if this is the first log entry in the operation.
2669
+ # Corresponds to the JSON property `first`
2670
+ # @return [Boolean]
2671
+ attr_accessor :first
2672
+ alias_method :first?, :first
2673
+
2674
+ # Optional. An arbitrary operation identifier. Log entries with the same
2675
+ # identifier are assumed to be part of the same operation.
2676
+ # Corresponds to the JSON property `id`
2677
+ # @return [String]
2678
+ attr_accessor :id
2679
+
2680
+ # Optional. Set this to True if this is the last log entry in the operation.
2681
+ # Corresponds to the JSON property `last`
2682
+ # @return [Boolean]
2683
+ attr_accessor :last
2684
+ alias_method :last?, :last
2685
+
2686
+ # Optional. An arbitrary producer identifier. The combination of `id` and `
2687
+ # producer` must be globally unique. Examples for `producer`: `"MyDivision.
2688
+ # MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
2689
+ # Corresponds to the JSON property `producer`
2690
+ # @return [String]
2691
+ attr_accessor :producer
2692
+
2693
+ def initialize(**args)
2694
+ update!(**args)
2695
+ end
2696
+
2697
+ # Update properties of this object
2698
+ def update!(**args)
2699
+ @first = args[:first] if args.key?(:first)
2700
+ @id = args[:id] if args.key?(:id)
2701
+ @last = args[:last] if args.key?(:last)
2702
+ @producer = args[:producer] if args.key?(:producer)
2703
+ end
2704
+ end
2705
+
2706
+ # Additional information about the source code location that produced the log
2707
+ # entry.
2708
+ class V1LogEntrySourceLocation
2709
+ include Google::Apis::Core::Hashable
2710
+
2711
+ # Optional. Source file name. Depending on the runtime environment, this might
2712
+ # be a simple name or a fully-qualified name.
2713
+ # Corresponds to the JSON property `file`
2714
+ # @return [String]
2715
+ attr_accessor :file
2716
+
2717
+ # Optional. Human-readable name of the function or method being invoked, with
2718
+ # optional context such as the class or package name. This information may be
2719
+ # used in contexts such as the logs viewer, where a file and line number are
2720
+ # less meaningful. The format can vary by language. For example: `qual.if.ied.
2721
+ # Class.method` (Java), `dir/package.func` (Go), `function` (Python).
2722
+ # Corresponds to the JSON property `function`
2723
+ # @return [String]
2724
+ attr_accessor :function
2725
+
2726
+ # Optional. Line within the source file. 1-based; 0 indicates no line number
2727
+ # available.
2728
+ # Corresponds to the JSON property `line`
2729
+ # @return [Fixnum]
2730
+ attr_accessor :line
2731
+
2732
+ def initialize(**args)
2733
+ update!(**args)
2734
+ end
2735
+
2736
+ # Update properties of this object
2737
+ def update!(**args)
2738
+ @file = args[:file] if args.key?(:file)
2739
+ @function = args[:function] if args.key?(:function)
2740
+ @line = args[:line] if args.key?(:line)
2741
+ end
2742
+ end
2438
2743
  end
2439
2744
  end
2440
2745
  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.18.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 = "20220218"
26
26
  end
27
27
  end
28
28
  end
@@ -304,6 +304,30 @@ module Google
304
304
  include Google::Apis::Core::JsonObjectSupport
305
305
  end
306
306
 
307
+ class V1HttpRequest
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
313
+ class V1LogEntry
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+
316
+ include Google::Apis::Core::JsonObjectSupport
317
+ end
318
+
319
+ class V1LogEntryOperation
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class V1LogEntrySourceLocation
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
307
331
  class AllocateInfo
308
332
  # @private
309
333
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -859,6 +883,68 @@ module Google
859
883
  property :value, as: 'value'
860
884
  end
861
885
  end
886
+
887
+ class V1HttpRequest
888
+ # @private
889
+ class Representation < Google::Apis::Core::JsonRepresentation
890
+ property :cache_fill_bytes, :numeric_string => true, as: 'cacheFillBytes'
891
+ property :cache_hit, as: 'cacheHit'
892
+ property :cache_lookup, as: 'cacheLookup'
893
+ property :cache_validated_with_origin_server, as: 'cacheValidatedWithOriginServer'
894
+ property :latency, as: 'latency'
895
+ property :protocol, as: 'protocol'
896
+ property :referer, as: 'referer'
897
+ property :remote_ip, as: 'remoteIp'
898
+ property :request_method, as: 'requestMethod'
899
+ property :request_size, :numeric_string => true, as: 'requestSize'
900
+ property :request_url, as: 'requestUrl'
901
+ property :response_size, :numeric_string => true, as: 'responseSize'
902
+ property :server_ip, as: 'serverIp'
903
+ property :status, as: 'status'
904
+ property :user_agent, as: 'userAgent'
905
+ end
906
+ end
907
+
908
+ class V1LogEntry
909
+ # @private
910
+ class Representation < Google::Apis::Core::JsonRepresentation
911
+ property :http_request, as: 'httpRequest', class: Google::Apis::ServicecontrolV1::V1HttpRequest, decorator: Google::Apis::ServicecontrolV1::V1HttpRequest::Representation
912
+
913
+ property :insert_id, as: 'insertId'
914
+ hash :labels, as: 'labels'
915
+ hash :monitored_resource_labels, as: 'monitoredResourceLabels'
916
+ property :name, as: 'name'
917
+ property :operation, as: 'operation', class: Google::Apis::ServicecontrolV1::V1LogEntryOperation, decorator: Google::Apis::ServicecontrolV1::V1LogEntryOperation::Representation
918
+
919
+ hash :proto_payload, as: 'protoPayload'
920
+ property :severity, as: 'severity'
921
+ property :source_location, as: 'sourceLocation', class: Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation, decorator: Google::Apis::ServicecontrolV1::V1LogEntrySourceLocation::Representation
922
+
923
+ hash :struct_payload, as: 'structPayload'
924
+ property :text_payload, as: 'textPayload'
925
+ property :timestamp, as: 'timestamp'
926
+ property :trace, as: 'trace'
927
+ end
928
+ end
929
+
930
+ class V1LogEntryOperation
931
+ # @private
932
+ class Representation < Google::Apis::Core::JsonRepresentation
933
+ property :first, as: 'first'
934
+ property :id, as: 'id'
935
+ property :last, as: 'last'
936
+ property :producer, as: 'producer'
937
+ end
938
+ end
939
+
940
+ class V1LogEntrySourceLocation
941
+ # @private
942
+ class Representation < Google::Apis::Core::JsonRepresentation
943
+ property :file, as: 'file'
944
+ property :function, as: 'function'
945
+ property :line, :numeric_string => true, as: 'line'
946
+ end
947
+ end
862
948
  end
863
949
  end
864
950
  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.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-24 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicecontrol_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.18.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: []