google-apis-networkservices_v1beta1 0.32.0 → 0.33.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: a483551127a99f66ec4823ec681e6f47b5a1a82cdf6e1624dfd78ffb83a4f031
4
- data.tar.gz: 696a9ea13afddf95991e2b3e7f3b9b229bb29df9ca7089566f6b5cc8e9a2850f
3
+ metadata.gz: 0cc8e953ed7400e209885a247195c8c206ae7e34a2ef44c180f599f594541ad2
4
+ data.tar.gz: 3f1145012be68b6559cf450812589d3a443641c15b623f848745aa0d7ebdb48d
5
5
  SHA512:
6
- metadata.gz: 7da3effe7414b728ae12b2b2b196f1d6512ca24f71f19c779f1db40169b3703a91d491dacf718532a86f8251141a0f110df0c36af6d82da46245ab5acc9c8a68
7
- data.tar.gz: ef98c75acf5b33f85e88d102527831023404cfe3b8a599429b324eb84b5d5b8b68c06c5ffd8f73234a1e076a5aefe31e41393c3a03fe24296a9f4cb464c14286
6
+ metadata.gz: 6df46e992fd422c847d7f58c8831cd363b9b343ec90e1906532499cd6c68504a4ab8b69e198d469f7b51fbac47580b2574a8bc093fa3fcbc075d43cdb569a1ab
7
+ data.tar.gz: ae39c6994ed07fec818f0a9d3753c753555dfeed607581f6de097f0f535d6997813c50a4f209a53e10c594aef63de4033e224905e23d8929784ce75c84a1e40f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-networkservices_v1beta1
2
2
 
3
+ ### v0.33.0 (2023-12-17)
4
+
5
+ * Regenerated from discovery document revision 20231211
6
+
3
7
  ### v0.32.0 (2023-12-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20231129
@@ -541,6 +541,13 @@ module Google
541
541
  # @return [String]
542
542
  attr_accessor :description
543
543
 
544
+ # Optional. Determines if envoy will insert internal debug headers into upstream
545
+ # requests. Other Envoy headers may still be injected. By default, envoy will
546
+ # not insert any debug headers.
547
+ # Corresponds to the JSON property `envoyHeaders`
548
+ # @return [String]
549
+ attr_accessor :envoy_headers
550
+
544
551
  # Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines how a
545
552
  # server should apply security policy to inbound (VM to Proxy) initiated
546
553
  # connections. For example: `projects/*/locations/*/gatewaySecurityPolicies/swg-
@@ -630,6 +637,7 @@ module Google
630
637
  @certificate_urls = args[:certificate_urls] if args.key?(:certificate_urls)
631
638
  @create_time = args[:create_time] if args.key?(:create_time)
632
639
  @description = args[:description] if args.key?(:description)
640
+ @envoy_headers = args[:envoy_headers] if args.key?(:envoy_headers)
633
641
  @gateway_security_policy = args[:gateway_security_policy] if args.key?(:gateway_security_policy)
634
642
  @ip_version = args[:ip_version] if args.key?(:ip_version)
635
643
  @labels = args[:labels] if args.key?(:labels)
@@ -996,6 +1004,14 @@ module Google
996
1004
  # @return [Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicy]
997
1005
  attr_accessor :fault_injection_policy
998
1006
 
1007
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
1008
+ # is defined as the period in which there are no bytes sent or received on
1009
+ # either the upstream or downstream connection. If not set, the default idle
1010
+ # timeout is 1 hour. If set to 0s, the timeout will be disabled.
1011
+ # Corresponds to the JSON property `idleTimeout`
1012
+ # @return [String]
1013
+ attr_accessor :idle_timeout
1014
+
999
1015
  # The specifications for retries.
1000
1016
  # Corresponds to the JSON property `retryPolicy`
1001
1017
  # @return [Google::Apis::NetworkservicesV1beta1::GrpcRouteRetryPolicy]
@@ -1027,6 +1043,7 @@ module Google
1027
1043
  def update!(**args)
1028
1044
  @destinations = args[:destinations] if args.key?(:destinations)
1029
1045
  @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy)
1046
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
1030
1047
  @retry_policy = args[:retry_policy] if args.key?(:retry_policy)
1031
1048
  @stateful_session_affinity = args[:stateful_session_affinity] if args.key?(:stateful_session_affinity)
1032
1049
  @timeout = args[:timeout] if args.key?(:timeout)
@@ -1287,6 +1304,16 @@ module Google
1287
1304
  class HttpRouteDestination
1288
1305
  include Google::Apis::Core::Hashable
1289
1306
 
1307
+ # The specification for modifying HTTP header in HTTP request and HTTP response.
1308
+ # Corresponds to the JSON property `requestHeaderModifier`
1309
+ # @return [Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier]
1310
+ attr_accessor :request_header_modifier
1311
+
1312
+ # The specification for modifying HTTP header in HTTP request and HTTP response.
1313
+ # Corresponds to the JSON property `responseHeaderModifier`
1314
+ # @return [Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier]
1315
+ attr_accessor :response_header_modifier
1316
+
1290
1317
  # The URL of a BackendService to route traffic to.
1291
1318
  # Corresponds to the JSON property `serviceName`
1292
1319
  # @return [String]
@@ -1311,6 +1338,8 @@ module Google
1311
1338
 
1312
1339
  # Update properties of this object
1313
1340
  def update!(**args)
1341
+ @request_header_modifier = args[:request_header_modifier] if args.key?(:request_header_modifier)
1342
+ @response_header_modifier = args[:response_header_modifier] if args.key?(:response_header_modifier)
1314
1343
  @service_name = args[:service_name] if args.key?(:service_name)
1315
1344
  @weight = args[:weight] if args.key?(:weight)
1316
1345
  end
@@ -1528,6 +1557,39 @@ module Google
1528
1557
  end
1529
1558
  end
1530
1559
 
1560
+ # Static HTTP response object to be returned.
1561
+ class HttpRouteHttpDirectResponse
1562
+ include Google::Apis::Core::Hashable
1563
+
1564
+ # Optional. Response body as bytes. Maximum body size is 4096B.
1565
+ # Corresponds to the JSON property `bytesBody`
1566
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1567
+ # @return [String]
1568
+ attr_accessor :bytes_body
1569
+
1570
+ # Required. Status to return as part of HTTP Response. Must be a positive
1571
+ # integer.
1572
+ # Corresponds to the JSON property `status`
1573
+ # @return [Fixnum]
1574
+ attr_accessor :status
1575
+
1576
+ # Optional. Response body as a string. Maximum body length is 1024 characters.
1577
+ # Corresponds to the JSON property `stringBody`
1578
+ # @return [String]
1579
+ attr_accessor :string_body
1580
+
1581
+ def initialize(**args)
1582
+ update!(**args)
1583
+ end
1584
+
1585
+ # Update properties of this object
1586
+ def update!(**args)
1587
+ @bytes_body = args[:bytes_body] if args.key?(:bytes_body)
1588
+ @status = args[:status] if args.key?(:status)
1589
+ @string_body = args[:string_body] if args.key?(:string_body)
1590
+ end
1591
+ end
1592
+
1531
1593
  # Specifications to match a query parameter in the request.
1532
1594
  class HttpRouteQueryParameterMatch
1533
1595
  include Google::Apis::Core::Hashable
@@ -1653,6 +1715,12 @@ module Google
1653
1715
  # @return [Google::Apis::NetworkservicesV1beta1::HttpRouteDestination]
1654
1716
  attr_accessor :destination
1655
1717
 
1718
+ # Optional. The percentage of requests to get mirrored to the desired
1719
+ # destination.
1720
+ # Corresponds to the JSON property `mirrorPercent`
1721
+ # @return [Float]
1722
+ attr_accessor :mirror_percent
1723
+
1656
1724
  def initialize(**args)
1657
1725
  update!(**args)
1658
1726
  end
@@ -1660,6 +1728,7 @@ module Google
1660
1728
  # Update properties of this object
1661
1729
  def update!(**args)
1662
1730
  @destination = args[:destination] if args.key?(:destination)
1731
+ @mirror_percent = args[:mirror_percent] if args.key?(:mirror_percent)
1663
1732
  end
1664
1733
  end
1665
1734
 
@@ -1720,6 +1789,11 @@ module Google
1720
1789
  # @return [Array<Google::Apis::NetworkservicesV1beta1::HttpRouteDestination>]
1721
1790
  attr_accessor :destinations
1722
1791
 
1792
+ # Static HTTP response object to be returned.
1793
+ # Corresponds to the JSON property `directResponse`
1794
+ # @return [Google::Apis::NetworkservicesV1beta1::HttpRouteHttpDirectResponse]
1795
+ attr_accessor :direct_response
1796
+
1723
1797
  # The specification for fault injection introduced into traffic to test the
1724
1798
  # resiliency of clients to destination service failure. As part of fault
1725
1799
  # injection, when clients send requests to a destination, delays can be
@@ -1730,6 +1804,14 @@ module Google
1730
1804
  # @return [Google::Apis::NetworkservicesV1beta1::HttpRouteFaultInjectionPolicy]
1731
1805
  attr_accessor :fault_injection_policy
1732
1806
 
1807
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
1808
+ # is defined as the period in which there are no bytes sent or received on
1809
+ # either the upstream or downstream connection. If not set, the default idle
1810
+ # timeout is 1 hour. If set to 0s, the timeout will be disabled.
1811
+ # Corresponds to the JSON property `idleTimeout`
1812
+ # @return [String]
1813
+ attr_accessor :idle_timeout
1814
+
1733
1815
  # The specification for redirecting traffic.
1734
1816
  # Corresponds to the JSON property `redirect`
1735
1817
  # @return [Google::Apis::NetworkservicesV1beta1::HttpRouteRedirect]
@@ -1790,7 +1872,9 @@ module Google
1790
1872
  def update!(**args)
1791
1873
  @cors_policy = args[:cors_policy] if args.key?(:cors_policy)
1792
1874
  @destinations = args[:destinations] if args.key?(:destinations)
1875
+ @direct_response = args[:direct_response] if args.key?(:direct_response)
1793
1876
  @fault_injection_policy = args[:fault_injection_policy] if args.key?(:fault_injection_policy)
1877
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
1794
1878
  @redirect = args[:redirect] if args.key?(:redirect)
1795
1879
  @request_header_modifier = args[:request_header_modifier] if args.key?(:request_header_modifier)
1796
1880
  @request_mirror_policy = args[:request_mirror_policy] if args.key?(:request_mirror_policy)
@@ -2527,6 +2611,13 @@ module Google
2527
2611
  # @return [String]
2528
2612
  attr_accessor :description
2529
2613
 
2614
+ # Optional. Determines if envoy will insert internal debug headers into upstream
2615
+ # requests. Other Envoy headers may still be injected. By default, envoy will
2616
+ # not insert any debug headers.
2617
+ # Corresponds to the JSON property `envoyHeaders`
2618
+ # @return [String]
2619
+ attr_accessor :envoy_headers
2620
+
2530
2621
  # Optional. If set to a valid TCP port (1-65535), instructs the SIDECAR proxy to
2531
2622
  # listen on the specified port of localhost (127.0.0.1) address. The SIDECAR
2532
2623
  # proxy will expect all traffic to be redirected to this port regardless of its
@@ -2565,6 +2656,7 @@ module Google
2565
2656
  def update!(**args)
2566
2657
  @create_time = args[:create_time] if args.key?(:create_time)
2567
2658
  @description = args[:description] if args.key?(:description)
2659
+ @envoy_headers = args[:envoy_headers] if args.key?(:envoy_headers)
2568
2660
  @interception_port = args[:interception_port] if args.key?(:interception_port)
2569
2661
  @labels = args[:labels] if args.key?(:labels)
2570
2662
  @name = args[:name] if args.key?(:name)
@@ -3210,6 +3302,14 @@ module Google
3210
3302
  # @return [Array<Google::Apis::NetworkservicesV1beta1::TcpRouteRouteDestination>]
3211
3303
  attr_accessor :destinations
3212
3304
 
3305
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
3306
+ # is defined as the period in which there are no bytes sent or received on
3307
+ # either the upstream or downstream connection. If not set, the default idle
3308
+ # timeout is 30 seconds. If set to 0s, the timeout will be disabled.
3309
+ # Corresponds to the JSON property `idleTimeout`
3310
+ # @return [String]
3311
+ attr_accessor :idle_timeout
3312
+
3213
3313
  # Optional. If true, Router will use the destination IP and port of the original
3214
3314
  # connection as the destination of the request. Default is false. Only one of
3215
3315
  # route destinations or original destination can be set.
@@ -3225,6 +3325,7 @@ module Google
3225
3325
  # Update properties of this object
3226
3326
  def update!(**args)
3227
3327
  @destinations = args[:destinations] if args.key?(:destinations)
3328
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
3228
3329
  @original_destination = args[:original_destination] if args.key?(:original_destination)
3229
3330
  end
3230
3331
  end
@@ -3449,6 +3550,14 @@ module Google
3449
3550
  # @return [Array<Google::Apis::NetworkservicesV1beta1::TlsRouteRouteDestination>]
3450
3551
  attr_accessor :destinations
3451
3552
 
3553
+ # Optional. Specifies the idle timeout for the selected route. The idle timeout
3554
+ # is defined as the period in which there are no bytes sent or received on
3555
+ # either the upstream or downstream connection. If not set, the default idle
3556
+ # timeout is 1 hour. If set to 0s, the timeout will be disabled.
3557
+ # Corresponds to the JSON property `idleTimeout`
3558
+ # @return [String]
3559
+ attr_accessor :idle_timeout
3560
+
3452
3561
  def initialize(**args)
3453
3562
  update!(**args)
3454
3563
  end
@@ -3456,6 +3565,7 @@ module Google
3456
3565
  # Update properties of this object
3457
3566
  def update!(**args)
3458
3567
  @destinations = args[:destinations] if args.key?(:destinations)
3568
+ @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout)
3459
3569
  end
3460
3570
  end
3461
3571
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkservicesV1beta1
18
18
  # Version of the google-apis-networkservices_v1beta1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.33.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
@@ -220,6 +220,12 @@ module Google
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
+ class HttpRouteHttpDirectResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
223
229
  class HttpRouteQueryParameterMatch
224
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
231
 
@@ -634,6 +640,7 @@ module Google
634
640
  collection :certificate_urls, as: 'certificateUrls'
635
641
  property :create_time, as: 'createTime'
636
642
  property :description, as: 'description'
643
+ property :envoy_headers, as: 'envoyHeaders'
637
644
  property :gateway_security_policy, as: 'gatewaySecurityPolicy'
638
645
  property :ip_version, as: 'ipVersion'
639
646
  hash :labels, as: 'labels'
@@ -734,6 +741,7 @@ module Google
734
741
 
735
742
  property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicy, decorator: Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicy::Representation
736
743
 
744
+ property :idle_timeout, as: 'idleTimeout'
737
745
  property :retry_policy, as: 'retryPolicy', class: Google::Apis::NetworkservicesV1beta1::GrpcRouteRetryPolicy, decorator: Google::Apis::NetworkservicesV1beta1::GrpcRouteRetryPolicy::Representation
738
746
 
739
747
  property :stateful_session_affinity, as: 'statefulSessionAffinity', class: Google::Apis::NetworkservicesV1beta1::GrpcRouteStatefulSessionAffinityPolicy, decorator: Google::Apis::NetworkservicesV1beta1::GrpcRouteStatefulSessionAffinityPolicy::Representation
@@ -803,6 +811,10 @@ module Google
803
811
  class HttpRouteDestination
804
812
  # @private
805
813
  class Representation < Google::Apis::Core::JsonRepresentation
814
+ property :request_header_modifier, as: 'requestHeaderModifier', class: Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier::Representation
815
+
816
+ property :response_header_modifier, as: 'responseHeaderModifier', class: Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier::Representation
817
+
806
818
  property :service_name, as: 'serviceName'
807
819
  property :weight, as: 'weight'
808
820
  end
@@ -866,6 +878,15 @@ module Google
866
878
  end
867
879
  end
868
880
 
881
+ class HttpRouteHttpDirectResponse
882
+ # @private
883
+ class Representation < Google::Apis::Core::JsonRepresentation
884
+ property :bytes_body, :base64 => true, as: 'bytesBody'
885
+ property :status, as: 'status'
886
+ property :string_body, as: 'stringBody'
887
+ end
888
+ end
889
+
869
890
  class HttpRouteQueryParameterMatch
870
891
  # @private
871
892
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -894,6 +915,7 @@ module Google
894
915
  class Representation < Google::Apis::Core::JsonRepresentation
895
916
  property :destination, as: 'destination', class: Google::Apis::NetworkservicesV1beta1::HttpRouteDestination, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteDestination::Representation
896
917
 
918
+ property :mirror_percent, as: 'mirrorPercent'
897
919
  end
898
920
  end
899
921
 
@@ -913,8 +935,11 @@ module Google
913
935
 
914
936
  collection :destinations, as: 'destinations', class: Google::Apis::NetworkservicesV1beta1::HttpRouteDestination, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteDestination::Representation
915
937
 
938
+ property :direct_response, as: 'directResponse', class: Google::Apis::NetworkservicesV1beta1::HttpRouteHttpDirectResponse, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteHttpDirectResponse::Representation
939
+
916
940
  property :fault_injection_policy, as: 'faultInjectionPolicy', class: Google::Apis::NetworkservicesV1beta1::HttpRouteFaultInjectionPolicy, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteFaultInjectionPolicy::Representation
917
941
 
942
+ property :idle_timeout, as: 'idleTimeout'
918
943
  property :redirect, as: 'redirect', class: Google::Apis::NetworkservicesV1beta1::HttpRouteRedirect, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteRedirect::Representation
919
944
 
920
945
  property :request_header_modifier, as: 'requestHeaderModifier', class: Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier, decorator: Google::Apis::NetworkservicesV1beta1::HttpRouteHeaderModifier::Representation
@@ -1138,6 +1163,7 @@ module Google
1138
1163
  class Representation < Google::Apis::Core::JsonRepresentation
1139
1164
  property :create_time, as: 'createTime'
1140
1165
  property :description, as: 'description'
1166
+ property :envoy_headers, as: 'envoyHeaders'
1141
1167
  property :interception_port, as: 'interceptionPort'
1142
1168
  hash :labels, as: 'labels'
1143
1169
  property :name, as: 'name'
@@ -1282,6 +1308,7 @@ module Google
1282
1308
  class Representation < Google::Apis::Core::JsonRepresentation
1283
1309
  collection :destinations, as: 'destinations', class: Google::Apis::NetworkservicesV1beta1::TcpRouteRouteDestination, decorator: Google::Apis::NetworkservicesV1beta1::TcpRouteRouteDestination::Representation
1284
1310
 
1311
+ property :idle_timeout, as: 'idleTimeout'
1285
1312
  property :original_destination, as: 'originalDestination'
1286
1313
  end
1287
1314
  end
@@ -1347,6 +1374,7 @@ module Google
1347
1374
  class Representation < Google::Apis::Core::JsonRepresentation
1348
1375
  collection :destinations, as: 'destinations', class: Google::Apis::NetworkservicesV1beta1::TlsRouteRouteDestination, decorator: Google::Apis::NetworkservicesV1beta1::TlsRouteRouteDestination::Representation
1349
1376
 
1377
+ property :idle_timeout, as: 'idleTimeout'
1350
1378
  end
1351
1379
  end
1352
1380
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkservices_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.33.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_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1beta1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkservices_v1beta1/v0.33.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkservices_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []