google-apis-networkservices_v1 0.31.0 → 0.32.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: 1370f5aedf31f75e2c744501891f071040f50ec9e1af65386a1dd2769c74df22
4
- data.tar.gz: 4a8f7f9f79d0a616043ff7f71d98b6667318afa094b8f74b50b9ba548d0a529c
3
+ metadata.gz: 4e80fc83954f8a30fb99ec08793976d842e1285291b8e534929d8d3ea7cd49b3
4
+ data.tar.gz: 16008c1ccede392d8f0b023b2b3cc18f69de2d89775a4d8845bd043993a66be5
5
5
  SHA512:
6
- metadata.gz: 212d6a1cb0df7c0d0342f2b8a6a349754931028054cb356ab1d44f08ca370d943cd9874900ca250be6e984ab85e4f0c9119ab4cf5897e3c0e355f7ee11557a99
7
- data.tar.gz: 9888bc4ba4607700cad5291715e2c4ad6e03bb3b609186ae27ceef8b924f513f1e5d1ae554d3ac4b57e4c3d77bf49158ad3549043caddc5c3e35894f3f4a68f5
6
+ metadata.gz: e2c50a4de43bc34115c4e17710968aa322604c5620009fee4778d4a1e1981644dba17cc92778b7bc166b0d2d444bbed4ee161549173e166cc8d51c3c829918f9
7
+ data.tar.gz: 1fee6a978697a45e72c972c6bdce38f60d1ec28e00ccabcd1a3a21e051a153805f46eb2b1f7a64b8d48c5645a40fa4583462dd3ba3251b46fab6c6e39b4197dd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-networkservices_v1
2
2
 
3
+ ### v0.32.0 (2023-12-17)
4
+
5
+ * Regenerated from discovery document revision 20231211
6
+
3
7
  ### v0.31.0 (2023-12-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20231129
@@ -466,6 +466,13 @@ module Google
466
466
  # @return [String]
467
467
  attr_accessor :description
468
468
 
469
+ # Optional. Determines if envoy will insert internal debug headers into upstream
470
+ # requests. Other Envoy headers may still be injected. By default, envoy will
471
+ # not insert any debug headers.
472
+ # Corresponds to the JSON property `envoyHeaders`
473
+ # @return [String]
474
+ attr_accessor :envoy_headers
475
+
469
476
  # Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines how a
470
477
  # server should apply security policy to inbound (VM to Proxy) initiated
471
478
  # connections. For example: `projects/*/locations/*/gatewaySecurityPolicies/swg-
@@ -555,6 +562,7 @@ module Google
555
562
  @certificate_urls = args[:certificate_urls] if args.key?(:certificate_urls)
556
563
  @create_time = args[:create_time] if args.key?(:create_time)
557
564
  @description = args[:description] if args.key?(:description)
565
+ @envoy_headers = args[:envoy_headers] if args.key?(:envoy_headers)
558
566
  @gateway_security_policy = args[:gateway_security_policy] if args.key?(:gateway_security_policy)
559
567
  @ip_version = args[:ip_version] if args.key?(:ip_version)
560
568
  @labels = args[:labels] if args.key?(:labels)
@@ -921,6 +929,14 @@ module Google
921
929
  # @return [Google::Apis::NetworkservicesV1::GrpcRouteFaultInjectionPolicy]
922
930
  attr_accessor :fault_injection_policy
923
931
 
932
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
933
+ # is defined as the period in which there are no bytes sent or received on
934
+ # either the upstream or downstream connection. If not set, the default idle
935
+ # timeout is 1 hour. If set to 0s, the timeout will be disabled.
936
+ # Corresponds to the JSON property `idleTimeout`
937
+ # @return [String]
938
+ attr_accessor :idle_timeout
939
+
924
940
  # The specifications for retries.
925
941
  # Corresponds to the JSON property `retryPolicy`
926
942
  # @return [Google::Apis::NetworkservicesV1::GrpcRouteRetryPolicy]
@@ -952,6 +968,7 @@ module Google
952
968
  def update!(**args)
953
969
  @destinations = args[:destinations] if args.key?(:destinations)
954
970
  @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy)
971
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
955
972
  @retry_policy = args[:retry_policy] if args.key?(:retry_policy)
956
973
  @stateful_session_affinity = args[:stateful_session_affinity] if args.key?(:stateful_session_affinity)
957
974
  @timeout = args[:timeout] if args.key?(:timeout)
@@ -1212,6 +1229,16 @@ module Google
1212
1229
  class HttpRouteDestination
1213
1230
  include Google::Apis::Core::Hashable
1214
1231
 
1232
+ # The specification for modifying HTTP header in HTTP request and HTTP response.
1233
+ # Corresponds to the JSON property `requestHeaderModifier`
1234
+ # @return [Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier]
1235
+ attr_accessor :request_header_modifier
1236
+
1237
+ # The specification for modifying HTTP header in HTTP request and HTTP response.
1238
+ # Corresponds to the JSON property `responseHeaderModifier`
1239
+ # @return [Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier]
1240
+ attr_accessor :response_header_modifier
1241
+
1215
1242
  # The URL of a BackendService to route traffic to.
1216
1243
  # Corresponds to the JSON property `serviceName`
1217
1244
  # @return [String]
@@ -1236,6 +1263,8 @@ module Google
1236
1263
 
1237
1264
  # Update properties of this object
1238
1265
  def update!(**args)
1266
+ @request_header_modifier = args[:request_header_modifier] if args.key?(:request_header_modifier)
1267
+ @response_header_modifier = args[:response_header_modifier] if args.key?(:response_header_modifier)
1239
1268
  @service_name = args[:service_name] if args.key?(:service_name)
1240
1269
  @weight = args[:weight] if args.key?(:weight)
1241
1270
  end
@@ -1453,6 +1482,39 @@ module Google
1453
1482
  end
1454
1483
  end
1455
1484
 
1485
+ # Static HTTP response object to be returned.
1486
+ class HttpRouteHttpDirectResponse
1487
+ include Google::Apis::Core::Hashable
1488
+
1489
+ # Optional. Response body as bytes. Maximum body size is 4096B.
1490
+ # Corresponds to the JSON property `bytesBody`
1491
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1492
+ # @return [String]
1493
+ attr_accessor :bytes_body
1494
+
1495
+ # Required. Status to return as part of HTTP Response. Must be a positive
1496
+ # integer.
1497
+ # Corresponds to the JSON property `status`
1498
+ # @return [Fixnum]
1499
+ attr_accessor :status
1500
+
1501
+ # Optional. Response body as a string. Maximum body length is 1024 characters.
1502
+ # Corresponds to the JSON property `stringBody`
1503
+ # @return [String]
1504
+ attr_accessor :string_body
1505
+
1506
+ def initialize(**args)
1507
+ update!(**args)
1508
+ end
1509
+
1510
+ # Update properties of this object
1511
+ def update!(**args)
1512
+ @bytes_body = args[:bytes_body] if args.key?(:bytes_body)
1513
+ @status = args[:status] if args.key?(:status)
1514
+ @string_body = args[:string_body] if args.key?(:string_body)
1515
+ end
1516
+ end
1517
+
1456
1518
  # Specifications to match a query parameter in the request.
1457
1519
  class HttpRouteQueryParameterMatch
1458
1520
  include Google::Apis::Core::Hashable
@@ -1578,6 +1640,12 @@ module Google
1578
1640
  # @return [Google::Apis::NetworkservicesV1::HttpRouteDestination]
1579
1641
  attr_accessor :destination
1580
1642
 
1643
+ # Optional. The percentage of requests to get mirrored to the desired
1644
+ # destination.
1645
+ # Corresponds to the JSON property `mirrorPercent`
1646
+ # @return [Float]
1647
+ attr_accessor :mirror_percent
1648
+
1581
1649
  def initialize(**args)
1582
1650
  update!(**args)
1583
1651
  end
@@ -1585,6 +1653,7 @@ module Google
1585
1653
  # Update properties of this object
1586
1654
  def update!(**args)
1587
1655
  @destination = args[:destination] if args.key?(:destination)
1656
+ @mirror_percent = args[:mirror_percent] if args.key?(:mirror_percent)
1588
1657
  end
1589
1658
  end
1590
1659
 
@@ -1645,6 +1714,11 @@ module Google
1645
1714
  # @return [Array<Google::Apis::NetworkservicesV1::HttpRouteDestination>]
1646
1715
  attr_accessor :destinations
1647
1716
 
1717
+ # Static HTTP response object to be returned.
1718
+ # Corresponds to the JSON property `directResponse`
1719
+ # @return [Google::Apis::NetworkservicesV1::HttpRouteHttpDirectResponse]
1720
+ attr_accessor :direct_response
1721
+
1648
1722
  # The specification for fault injection introduced into traffic to test the
1649
1723
  # resiliency of clients to destination service failure. As part of fault
1650
1724
  # injection, when clients send requests to a destination, delays can be
@@ -1655,6 +1729,14 @@ module Google
1655
1729
  # @return [Google::Apis::NetworkservicesV1::HttpRouteFaultInjectionPolicy]
1656
1730
  attr_accessor :fault_injection_policy
1657
1731
 
1732
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
1733
+ # is defined as the period in which there are no bytes sent or received on
1734
+ # either the upstream or downstream connection. If not set, the default idle
1735
+ # timeout is 1 hour. If set to 0s, the timeout will be disabled.
1736
+ # Corresponds to the JSON property `idleTimeout`
1737
+ # @return [String]
1738
+ attr_accessor :idle_timeout
1739
+
1658
1740
  # The specification for redirecting traffic.
1659
1741
  # Corresponds to the JSON property `redirect`
1660
1742
  # @return [Google::Apis::NetworkservicesV1::HttpRouteRedirect]
@@ -1715,7 +1797,9 @@ module Google
1715
1797
  def update!(**args)
1716
1798
  @cors_policy = args[:cors_policy] if args.key?(:cors_policy)
1717
1799
  @destinations = args[:destinations] if args.key?(:destinations)
1800
+ @direct_response = args[:direct_response] if args.key?(:direct_response)
1718
1801
  @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy)
1802
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
1719
1803
  @redirect = args[:redirect] if args.key?(:redirect)
1720
1804
  @request_header_modifier = args[:request_header_modifier] if args.key?(:request_header_modifier)
1721
1805
  @request_mirror_policy = args[:request_mirror_policy] if args.key?(:request_mirror_policy)
@@ -2209,6 +2293,13 @@ module Google
2209
2293
  # @return [String]
2210
2294
  attr_accessor :description
2211
2295
 
2296
+ # Optional. Determines if envoy will insert internal debug headers into upstream
2297
+ # requests. Other Envoy headers may still be injected. By default, envoy will
2298
+ # not insert any debug headers.
2299
+ # Corresponds to the JSON property `envoyHeaders`
2300
+ # @return [String]
2301
+ attr_accessor :envoy_headers
2302
+
2212
2303
  # Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to
2213
2304
  # listen on the specified port of localhost (127.0.0.1) address. The SIDECAR
2214
2305
  # proxy will expect all traffic to be redirected to this port regardless of its
@@ -2247,6 +2338,7 @@ module Google
2247
2338
  def update!(**args)
2248
2339
  @create_time = args[:create_time] if args.key?(:create_time)
2249
2340
  @description = args[:description] if args.key?(:description)
2341
+ @envoy_headers = args[:envoy_headers] if args.key?(:envoy_headers)
2250
2342
  @interception_port = args[:interception_port] if args.key?(:interception_port)
2251
2343
  @labels = args[:labels] if args.key?(:labels)
2252
2344
  @name = args[:name] if args.key?(:name)
@@ -2712,6 +2804,14 @@ module Google
2712
2804
  # @return [Array<Google::Apis::NetworkservicesV1::TcpRouteRouteDestination>]
2713
2805
  attr_accessor :destinations
2714
2806
 
2807
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
2808
+ # is defined as the period in which there are no bytes sent or received on
2809
+ # either the upstream or downstream connection. If not set, the default idle
2810
+ # timeout is 30 seconds. If set to 0s, the timeout will be disabled.
2811
+ # Corresponds to the JSON property `idleTimeout`
2812
+ # @return [String]
2813
+ attr_accessor :idle_timeout
2814
+
2715
2815
  # Optional. If true, Router will use the destination IP and port of the original
2716
2816
  # connection as the destination of the request. Default is false. Only one of
2717
2817
  # route destinations or original destination can be set.
@@ -2727,6 +2827,7 @@ module Google
2727
2827
  # Update properties of this object
2728
2828
  def update!(**args)
2729
2829
  @destinations = args[:destinations] if args.key?(:destinations)
2830
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
2730
2831
  @original_destination = args[:original_destination] if args.key?(:original_destination)
2731
2832
  end
2732
2833
  end
@@ -2951,6 +3052,14 @@ module Google
2951
3052
  # @return [Array<Google::Apis::NetworkservicesV1::TlsRouteRouteDestination>]
2952
3053
  attr_accessor :destinations
2953
3054
 
3055
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
3056
+ # is defined as the period in which there are no bytes sent or received on
3057
+ # either the upstream or downstream connection. If not set, the default idle
3058
+ # timeout is 1 hour. If set to 0s, the timeout will be disabled.
3059
+ # Corresponds to the JSON property `idleTimeout`
3060
+ # @return [String]
3061
+ attr_accessor :idle_timeout
3062
+
2954
3063
  def initialize(**args)
2955
3064
  update!(**args)
2956
3065
  end
@@ -2958,6 +3067,7 @@ module Google
2958
3067
  # Update properties of this object
2959
3068
  def update!(**args)
2960
3069
  @destinations = args[:destinations] if args.key?(:destinations)
3070
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
2961
3071
  end
2962
3072
  end
2963
3073
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkservicesV1
18
18
  # Version of the google-apis-networkservices_v1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.32.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20231129"
25
+ REVISION = "20231211"
26
26
  end
27
27
  end
28
28
  end
@@ -214,6 +214,12 @@ module Google
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
+ class HttpRouteHttpDirectResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
217
223
  class HttpRouteQueryParameterMatch
218
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
225
 
@@ -554,6 +560,7 @@ module Google
554
560
  collection :certificate_urls, as: 'certificateUrls'
555
561
  property :create_time, as: 'createTime'
556
562
  property :description, as: 'description'
563
+ property :envoy_headers, as: 'envoyHeaders'
557
564
  property :gateway_security_policy, as: 'gatewaySecurityPolicy'
558
565
  property :ip_version, as: 'ipVersion'
559
566
  hash :labels, as: 'labels'
@@ -654,6 +661,7 @@ module Google
654
661
 
655
662
  property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::NetworkservicesV1::GrpcRouteFaultInjectionPolicy, decorator: Google::Apis::NetworkservicesV1::GrpcRouteFaultInjectionPolicy::Representation
656
663
 
664
+ property :idle_timeout, as: 'idleTimeout'
657
665
  property :retry_policy, as: 'retryPolicy', class: Google::Apis::NetworkservicesV1::GrpcRouteRetryPolicy, decorator: Google::Apis::NetworkservicesV1::GrpcRouteRetryPolicy::Representation
658
666
 
659
667
  property :stateful_session_affinity, as: 'statefulSessionAffinity', class: Google::Apis::NetworkservicesV1::GrpcRouteStatefulSessionAffinityPolicy, decorator: Google::Apis::NetworkservicesV1::GrpcRouteStatefulSessionAffinityPolicy::Representation
@@ -723,6 +731,10 @@ module Google
723
731
  class HttpRouteDestination
724
732
  # @private
725
733
  class Representation < Google::Apis::Core::JsonRepresentation
734
+ property :request_header_modifier, as: 'requestHeaderModifier', class: Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier, decorator: Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier::Representation
735
+
736
+ property :response_header_modifier, as: 'responseHeaderModifier', class: Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier, decorator: Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier::Representation
737
+
726
738
  property :service_name, as: 'serviceName'
727
739
  property :weight, as: 'weight'
728
740
  end
@@ -786,6 +798,15 @@ module Google
786
798
  end
787
799
  end
788
800
 
801
+ class HttpRouteHttpDirectResponse
802
+ # @private
803
+ class Representation < Google::Apis::Core::JsonRepresentation
804
+ property :bytes_body, :base64 => true, as: 'bytesBody'
805
+ property :status, as: 'status'
806
+ property :string_body, as: 'stringBody'
807
+ end
808
+ end
809
+
789
810
  class HttpRouteQueryParameterMatch
790
811
  # @private
791
812
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -814,6 +835,7 @@ module Google
814
835
  class Representation < Google::Apis::Core::JsonRepresentation
815
836
  property :destination, as: 'destination', class: Google::Apis::NetworkservicesV1::HttpRouteDestination, decorator: Google::Apis::NetworkservicesV1::HttpRouteDestination::Representation
816
837
 
838
+ property :mirror_percent, as: 'mirrorPercent'
817
839
  end
818
840
  end
819
841
 
@@ -833,8 +855,11 @@ module Google
833
855
 
834
856
  collection :destinations, as: 'destinations', class: Google::Apis::NetworkservicesV1::HttpRouteDestination, decorator: Google::Apis::NetworkservicesV1::HttpRouteDestination::Representation
835
857
 
858
+ property :direct_response, as: 'directResponse', class: Google::Apis::NetworkservicesV1::HttpRouteHttpDirectResponse, decorator: Google::Apis::NetworkservicesV1::HttpRouteHttpDirectResponse::Representation
859
+
836
860
  property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::NetworkservicesV1::HttpRouteFaultInjectionPolicy, decorator: Google::Apis::NetworkservicesV1::HttpRouteFaultInjectionPolicy::Representation
837
861
 
862
+ property :idle_timeout, as: 'idleTimeout'
838
863
  property :redirect, as: 'redirect', class: Google::Apis::NetworkservicesV1::HttpRouteRedirect, decorator: Google::Apis::NetworkservicesV1::HttpRouteRedirect::Representation
839
864
 
840
865
  property :request_header_modifier, as: 'requestHeaderModifier', class: Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier, decorator: Google::Apis::NetworkservicesV1::HttpRouteHeaderModifier::Representation
@@ -999,6 +1024,7 @@ module Google
999
1024
  class Representation < Google::Apis::Core::JsonRepresentation
1000
1025
  property :create_time, as: 'createTime'
1001
1026
  property :description, as: 'description'
1027
+ property :envoy_headers, as: 'envoyHeaders'
1002
1028
  property :interception_port, as: 'interceptionPort'
1003
1029
  hash :labels, as: 'labels'
1004
1030
  property :name, as: 'name'
@@ -1096,6 +1122,7 @@ module Google
1096
1122
  class Representation < Google::Apis::Core::JsonRepresentation
1097
1123
  collection :destinations, as: 'destinations', class: Google::Apis::NetworkservicesV1::TcpRouteRouteDestination, decorator: Google::Apis::NetworkservicesV1::TcpRouteRouteDestination::Representation
1098
1124
 
1125
+ property :idle_timeout, as: 'idleTimeout'
1099
1126
  property :original_destination, as: 'originalDestination'
1100
1127
  end
1101
1128
  end
@@ -1161,6 +1188,7 @@ module Google
1161
1188
  class Representation < Google::Apis::Core::JsonRepresentation
1162
1189
  collection :destinations, as: 'destinations', class: Google::Apis::NetworkservicesV1::TlsRouteRouteDestination, decorator: Google::Apis::NetworkservicesV1::TlsRouteRouteDestination::Representation
1163
1190
 
1191
+ property :idle_timeout, as: 'idleTimeout'
1164
1192
  end
1165
1193
  end
1166
1194
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkservices_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.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: 2023-12-10 00:00:00.000000000 Z
11
+ date: 2023-12-17 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-networkservices_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1
63
63
  post_install_message:
64
64
  rdoc_options: []