google-apis-networksecurity_v1 0.16.0 → 0.17.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: f4a11b9ec5e60be6a04e6732843a1c3e58ec98fb2c04a3c37354091d38e9b229
4
- data.tar.gz: a134b4ea3b4dab0ec825f6fff59f7231d91ed5c2fd292428894155b2dea86bec
3
+ metadata.gz: 2296d1968997aa841efa69079a592db4f810611a5605d221b0bc4ae95b389f28
4
+ data.tar.gz: ebac54bee530e4a844daa9f2c487fb65aab5f7e51fbc3fbd93ba4bc84950c7ef
5
5
  SHA512:
6
- metadata.gz: a1baac0fa17f09f83b8c22b1931f30456f86ba7a89ef64c60dbfb7c85d00d30b19c0d17d7ae2f3214691c95a5a77d07d331025d937ebf011dec56df3aa0083b9
7
- data.tar.gz: eed0af13f08ddf6b36d59c91eeab43120b2557124efa682fb193712335270b10deffe5e1bd5061d530edb2d260fe4c04129776e853d3f9981637ddd226dee00e
6
+ metadata.gz: 1ba1bd0d364ebadee72dce9dfb3e0e3f4c48c1a070fae1027136b1a14340fb85996a15c95ed45420a58f91f2fffcbbc2d4b4f3c186c174bdcd517c7086a5e346
7
+ data.tar.gz: 564780fb418abea61bdfa2a430a6609ddd9099b2990f8337e4841bc249e712ff6892b08de5eb64d2be7355cab5e462fd865aa3cdcdd116799a9ed8ad9ab5791d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-networksecurity_v1
2
2
 
3
+ ### v0.17.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230406
6
+
3
7
  ### v0.16.0 (2023-03-26)
4
8
 
5
9
  * Regenerated from discovery document revision 20230306
@@ -301,6 +301,135 @@ module Google
301
301
  end
302
302
  end
303
303
 
304
+ # The GatewaySecurityPolicy resource contains a collection of
305
+ # GatewaySecurityPolicyRules and associated metadata.
306
+ class GatewaySecurityPolicy
307
+ include Google::Apis::Core::Hashable
308
+
309
+ # Output only. The timestamp when the resource was created.
310
+ # Corresponds to the JSON property `createTime`
311
+ # @return [String]
312
+ attr_accessor :create_time
313
+
314
+ # Optional. Free-text description of the resource.
315
+ # Corresponds to the JSON property `description`
316
+ # @return [String]
317
+ attr_accessor :description
318
+
319
+ # Required. Name of the resource. Name is of the form projects/`project`/
320
+ # locations/`location`/gatewaySecurityPolicies/`gateway_security_policy`
321
+ # gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-
322
+ # 9])?$).
323
+ # Corresponds to the JSON property `name`
324
+ # @return [String]
325
+ attr_accessor :name
326
+
327
+ # Optional. Name of a TLS Inspection Policy resource that defines how TLS
328
+ # inspection will be performed for any rule(s) which enables it.
329
+ # Corresponds to the JSON property `tlsInspectionPolicy`
330
+ # @return [String]
331
+ attr_accessor :tls_inspection_policy
332
+
333
+ # Output only. The timestamp when the resource was updated.
334
+ # Corresponds to the JSON property `updateTime`
335
+ # @return [String]
336
+ attr_accessor :update_time
337
+
338
+ def initialize(**args)
339
+ update!(**args)
340
+ end
341
+
342
+ # Update properties of this object
343
+ def update!(**args)
344
+ @create_time = args[:create_time] if args.key?(:create_time)
345
+ @description = args[:description] if args.key?(:description)
346
+ @name = args[:name] if args.key?(:name)
347
+ @tls_inspection_policy = args[:tls_inspection_policy] if args.key?(:tls_inspection_policy)
348
+ @update_time = args[:update_time] if args.key?(:update_time)
349
+ end
350
+ end
351
+
352
+ # The GatewaySecurityPolicyRule resource is in a nested collection within a
353
+ # GatewaySecurityPolicy and represents a traffic matching condition and
354
+ # associated action to perform.
355
+ class GatewaySecurityPolicyRule
356
+ include Google::Apis::Core::Hashable
357
+
358
+ # Optional. CEL expression for matching on L7/application level criteria.
359
+ # Corresponds to the JSON property `applicationMatcher`
360
+ # @return [String]
361
+ attr_accessor :application_matcher
362
+
363
+ # Required. Profile which tells what the primitive action should be.
364
+ # Corresponds to the JSON property `basicProfile`
365
+ # @return [String]
366
+ attr_accessor :basic_profile
367
+
368
+ # Output only. Time when the rule was created.
369
+ # Corresponds to the JSON property `createTime`
370
+ # @return [String]
371
+ attr_accessor :create_time
372
+
373
+ # Optional. Free-text description of the resource.
374
+ # Corresponds to the JSON property `description`
375
+ # @return [String]
376
+ attr_accessor :description
377
+
378
+ # Required. Whether the rule is enforced.
379
+ # Corresponds to the JSON property `enabled`
380
+ # @return [Boolean]
381
+ attr_accessor :enabled
382
+ alias_method :enabled?, :enabled
383
+
384
+ # Required. Immutable. Name of the resource. ame is the full resource name so
385
+ # projects/`project`/locations/`location`/gatewaySecurityPolicies/`
386
+ # gateway_security_policy`/rules/`rule` rule should match the pattern: (^[a-z]([
387
+ # a-z0-9-]`0,61`[a-z0-9])?$).
388
+ # Corresponds to the JSON property `name`
389
+ # @return [String]
390
+ attr_accessor :name
391
+
392
+ # Required. Priority of the rule. Lower number corresponds to higher precedence.
393
+ # Corresponds to the JSON property `priority`
394
+ # @return [Fixnum]
395
+ attr_accessor :priority
396
+
397
+ # Required. CEL expression for matching on session criteria.
398
+ # Corresponds to the JSON property `sessionMatcher`
399
+ # @return [String]
400
+ attr_accessor :session_matcher
401
+
402
+ # Optional. Flag to enable TLS inspection of traffic matching on , can only be
403
+ # true if the parent GatewaySecurityPolicy references a TLSInspectionConfig.
404
+ # Corresponds to the JSON property `tlsInspectionEnabled`
405
+ # @return [Boolean]
406
+ attr_accessor :tls_inspection_enabled
407
+ alias_method :tls_inspection_enabled?, :tls_inspection_enabled
408
+
409
+ # Output only. Time when the rule was updated.
410
+ # Corresponds to the JSON property `updateTime`
411
+ # @return [String]
412
+ attr_accessor :update_time
413
+
414
+ def initialize(**args)
415
+ update!(**args)
416
+ end
417
+
418
+ # Update properties of this object
419
+ def update!(**args)
420
+ @application_matcher = args[:application_matcher] if args.key?(:application_matcher)
421
+ @basic_profile = args[:basic_profile] if args.key?(:basic_profile)
422
+ @create_time = args[:create_time] if args.key?(:create_time)
423
+ @description = args[:description] if args.key?(:description)
424
+ @enabled = args[:enabled] if args.key?(:enabled)
425
+ @name = args[:name] if args.key?(:name)
426
+ @priority = args[:priority] if args.key?(:priority)
427
+ @session_matcher = args[:session_matcher] if args.key?(:session_matcher)
428
+ @tls_inspection_enabled = args[:tls_inspection_enabled] if args.key?(:tls_inspection_enabled)
429
+ @update_time = args[:update_time] if args.key?(:update_time)
430
+ end
431
+ end
432
+
304
433
  # Specification of certificate provider. Defines the mechanism to obtain the
305
434
  # certificate and private key for peer to peer authentication.
306
435
  class GoogleCloudNetworksecurityV1CertificateProvider
@@ -770,6 +899,72 @@ module Google
770
899
  end
771
900
  end
772
901
 
902
+ # Response returned by the ListGatewaySecurityPolicies method.
903
+ class ListGatewaySecurityPoliciesResponse
904
+ include Google::Apis::Core::Hashable
905
+
906
+ # List of GatewaySecurityPolicies resources.
907
+ # Corresponds to the JSON property `gatewaySecurityPolicies`
908
+ # @return [Array<Google::Apis::NetworksecurityV1::GatewaySecurityPolicy>]
909
+ attr_accessor :gateway_security_policies
910
+
911
+ # If there might be more results than those appearing in this response, then '
912
+ # next_page_token' is included. To get the next set of results, call this method
913
+ # again using the value of 'next_page_token' as 'page_token'.
914
+ # Corresponds to the JSON property `nextPageToken`
915
+ # @return [String]
916
+ attr_accessor :next_page_token
917
+
918
+ # Locations that could not be reached.
919
+ # Corresponds to the JSON property `unreachable`
920
+ # @return [Array<String>]
921
+ attr_accessor :unreachable
922
+
923
+ def initialize(**args)
924
+ update!(**args)
925
+ end
926
+
927
+ # Update properties of this object
928
+ def update!(**args)
929
+ @gateway_security_policies = args[:gateway_security_policies] if args.key?(:gateway_security_policies)
930
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
931
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
932
+ end
933
+ end
934
+
935
+ # Response returned by the ListGatewaySecurityPolicyRules method.
936
+ class ListGatewaySecurityPolicyRulesResponse
937
+ include Google::Apis::Core::Hashable
938
+
939
+ # List of GatewaySecurityPolicyRule resources.
940
+ # Corresponds to the JSON property `gatewaySecurityPolicyRules`
941
+ # @return [Array<Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule>]
942
+ attr_accessor :gateway_security_policy_rules
943
+
944
+ # If there might be more results than those appearing in this response, then '
945
+ # next_page_token' is included. To get the next set of results, call this method
946
+ # again using the value of 'next_page_token' as 'page_token'.
947
+ # Corresponds to the JSON property `nextPageToken`
948
+ # @return [String]
949
+ attr_accessor :next_page_token
950
+
951
+ # Locations that could not be reached.
952
+ # Corresponds to the JSON property `unreachable`
953
+ # @return [Array<String>]
954
+ attr_accessor :unreachable
955
+
956
+ def initialize(**args)
957
+ update!(**args)
958
+ end
959
+
960
+ # Update properties of this object
961
+ def update!(**args)
962
+ @gateway_security_policy_rules = args[:gateway_security_policy_rules] if args.key?(:gateway_security_policy_rules)
963
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
964
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
965
+ end
966
+ end
967
+
773
968
  # The response message for Locations.ListLocations.
774
969
  class ListLocationsResponse
775
970
  include Google::Apis::Core::Hashable
@@ -847,6 +1042,72 @@ module Google
847
1042
  end
848
1043
  end
849
1044
 
1045
+ # Response returned by the ListTlsInspectionPolicies method.
1046
+ class ListTlsInspectionPoliciesResponse
1047
+ include Google::Apis::Core::Hashable
1048
+
1049
+ # If there might be more results than those appearing in this response, then '
1050
+ # next_page_token' is included. To get the next set of results, call this method
1051
+ # again using the value of 'next_page_token' as 'page_token'.
1052
+ # Corresponds to the JSON property `nextPageToken`
1053
+ # @return [String]
1054
+ attr_accessor :next_page_token
1055
+
1056
+ # List of TlsInspectionPolicies resources.
1057
+ # Corresponds to the JSON property `tlsInspectionPolicies`
1058
+ # @return [Array<Google::Apis::NetworksecurityV1::TlsInspectionPolicy>]
1059
+ attr_accessor :tls_inspection_policies
1060
+
1061
+ # Locations that could not be reached.
1062
+ # Corresponds to the JSON property `unreachable`
1063
+ # @return [Array<String>]
1064
+ attr_accessor :unreachable
1065
+
1066
+ def initialize(**args)
1067
+ update!(**args)
1068
+ end
1069
+
1070
+ # Update properties of this object
1071
+ def update!(**args)
1072
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1073
+ @tls_inspection_policies = args[:tls_inspection_policies] if args.key?(:tls_inspection_policies)
1074
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1075
+ end
1076
+ end
1077
+
1078
+ # Response returned by the ListUrlLists method.
1079
+ class ListUrlListsResponse
1080
+ include Google::Apis::Core::Hashable
1081
+
1082
+ # If there might be more results than those appearing in this response, then `
1083
+ # next_page_token` is included. To get the next set of results, call this method
1084
+ # again using the value of `next_page_token` as `page_token`.
1085
+ # Corresponds to the JSON property `nextPageToken`
1086
+ # @return [String]
1087
+ attr_accessor :next_page_token
1088
+
1089
+ # Locations that could not be reached.
1090
+ # Corresponds to the JSON property `unreachable`
1091
+ # @return [Array<String>]
1092
+ attr_accessor :unreachable
1093
+
1094
+ # List of UrlList resources.
1095
+ # Corresponds to the JSON property `urlLists`
1096
+ # @return [Array<Google::Apis::NetworksecurityV1::UrlList>]
1097
+ attr_accessor :url_lists
1098
+
1099
+ def initialize(**args)
1100
+ update!(**args)
1101
+ end
1102
+
1103
+ # Update properties of this object
1104
+ def update!(**args)
1105
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1106
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
1107
+ @url_lists = args[:url_lists] if args.key?(:url_lists)
1108
+ end
1109
+ end
1110
+
850
1111
  # A resource that represents Google Cloud Platform location.
851
1112
  class Location
852
1113
  include Google::Apis::Core::Hashable
@@ -898,12 +1159,28 @@ module Google
898
1159
  class MtlsPolicy
899
1160
  include Google::Apis::Core::Hashable
900
1161
 
901
- # Defines the mechanism to obtain the Certificate Authority certificate to
902
- # validate the client certificate.
1162
+ # Required if the policy is to be used with Traffic Director. For External HTTPS
1163
+ # LB it must be empty. Defines the mechanism to obtain the Certificate Authority
1164
+ # certificate to validate the client certificate.
903
1165
  # Corresponds to the JSON property `clientValidationCa`
904
1166
  # @return [Array<Google::Apis::NetworksecurityV1::ValidationCa>]
905
1167
  attr_accessor :client_validation_ca
906
1168
 
1169
+ # Specifies whether client connections proceed when a client presents an invalid
1170
+ # certificate or no certificate. Required if the policy is to be used with the
1171
+ # External HTTPS LB. For Traffic Director it must be empty.
1172
+ # Corresponds to the JSON property `clientValidationMode`
1173
+ # @return [String]
1174
+ attr_accessor :client_validation_mode
1175
+
1176
+ # Reference to the TrustConfig from certificatemanager.googleapis.com namespace.
1177
+ # If specified, the chain validation will be performed against certificates
1178
+ # configured in the given TrustConfig. Allowed only if the policy is to be used
1179
+ # with External HTTPS LB.
1180
+ # Corresponds to the JSON property `clientValidationTrustConfig`
1181
+ # @return [String]
1182
+ attr_accessor :client_validation_trust_config
1183
+
907
1184
  def initialize(**args)
908
1185
  update!(**args)
909
1186
  end
@@ -911,6 +1188,8 @@ module Google
911
1188
  # Update properties of this object
912
1189
  def update!(**args)
913
1190
  @client_validation_ca = args[:client_validation_ca] if args.key?(:client_validation_ca)
1191
+ @client_validation_mode = args[:client_validation_mode] if args.key?(:client_validation_mode)
1192
+ @client_validation_trust_config = args[:client_validation_trust_config] if args.key?(:client_validation_trust_config)
914
1193
  end
915
1194
  end
916
1195
 
@@ -1070,16 +1349,22 @@ module Google
1070
1349
  # ServerTlsPolicy is a resource that specifies how a server should authenticate
1071
1350
  # incoming requests. This resource itself does not affect configuration unless
1072
1351
  # it is attached to a target HTTPS proxy or endpoint config selector resource.
1352
+ # ServerTlsPolicy in the form accepted by External HTTPS Load Balancer can be
1353
+ # attached only to TargetHttpsProxy with an `EXTERNAL` or `EXTERNAL_MANAGED`
1354
+ # load balancing scheme. Traffic Director compatible ServerTlsPolicies can be
1355
+ # attached to EndpointPolicy and TargetHttpsProxy with Traffic Director `
1356
+ # INTERNAL_SELF_MANAGED` load balancing scheme.
1073
1357
  class ServerTlsPolicy
1074
1358
  include Google::Apis::Core::Hashable
1075
1359
 
1076
- # Determines if server allows plaintext connections. If set to true, server
1077
- # allows plain text connections. By default, it is set to false. This setting is
1078
- # not exclusive of other encryption modes. For example, if `allow_open` and `
1079
- # mtls_policy` are set, server allows both plain text and mTLS connections. See
1080
- # documentation of other encryption modes to confirm compatibility. Consider
1081
- # using it if you wish to upgrade in place your deployment to TLS while having
1082
- # mixed TLS and non-TLS traffic reaching port :80.
1360
+ # Can be enabled only for Traffic Director policies, must be false for External
1361
+ # HTTPS LB policies. Determines if server allows plaintext connections. If set
1362
+ # to true, server allows plain text connections. By default, it is set to false.
1363
+ # This setting is not exclusive of other encryption modes. For example, if `
1364
+ # allow_open` and `mtls_policy` are set, server allows both plain text and mTLS
1365
+ # connections. See documentation of other encryption modes to confirm
1366
+ # compatibility. Consider using it if you wish to upgrade in place your
1367
+ # deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.
1083
1368
  # Corresponds to the JSON property `allowOpen`
1084
1369
  # @return [Boolean]
1085
1370
  attr_accessor :allow_open
@@ -1212,6 +1497,101 @@ module Google
1212
1497
  end
1213
1498
  end
1214
1499
 
1500
+ # The TlsInspectionPolicy resource contains references to CA pools in
1501
+ # Certificate Authority Service and associated metadata.
1502
+ class TlsInspectionPolicy
1503
+ include Google::Apis::Core::Hashable
1504
+
1505
+ # Required. A CA pool resource used to issue interception certificates. The CA
1506
+ # pool string has a relative resource path following the form "projects/`project`
1507
+ # /locations/`location`/caPools/`ca_pool`".
1508
+ # Corresponds to the JSON property `caPool`
1509
+ # @return [String]
1510
+ attr_accessor :ca_pool
1511
+
1512
+ # Output only. The timestamp when the resource was created.
1513
+ # Corresponds to the JSON property `createTime`
1514
+ # @return [String]
1515
+ attr_accessor :create_time
1516
+
1517
+ # Optional. Free-text description of the resource.
1518
+ # Corresponds to the JSON property `description`
1519
+ # @return [String]
1520
+ attr_accessor :description
1521
+
1522
+ # Required. Name of the resource. Name is of the form projects/`project`/
1523
+ # locations/`location`/tlsInspectionPolicies/`tls_inspection_policy`
1524
+ # tls_inspection_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-9])
1525
+ # ?$).
1526
+ # Corresponds to the JSON property `name`
1527
+ # @return [String]
1528
+ attr_accessor :name
1529
+
1530
+ # Output only. The timestamp when the resource was updated.
1531
+ # Corresponds to the JSON property `updateTime`
1532
+ # @return [String]
1533
+ attr_accessor :update_time
1534
+
1535
+ def initialize(**args)
1536
+ update!(**args)
1537
+ end
1538
+
1539
+ # Update properties of this object
1540
+ def update!(**args)
1541
+ @ca_pool = args[:ca_pool] if args.key?(:ca_pool)
1542
+ @create_time = args[:create_time] if args.key?(:create_time)
1543
+ @description = args[:description] if args.key?(:description)
1544
+ @name = args[:name] if args.key?(:name)
1545
+ @update_time = args[:update_time] if args.key?(:update_time)
1546
+ end
1547
+ end
1548
+
1549
+ # UrlList proto helps users to set reusable, independently manageable lists of
1550
+ # hosts, host patterns, URLs, URL patterns.
1551
+ class UrlList
1552
+ include Google::Apis::Core::Hashable
1553
+
1554
+ # Output only. Time when the security policy was created.
1555
+ # Corresponds to the JSON property `createTime`
1556
+ # @return [String]
1557
+ attr_accessor :create_time
1558
+
1559
+ # Optional. Free-text description of the resource.
1560
+ # Corresponds to the JSON property `description`
1561
+ # @return [String]
1562
+ attr_accessor :description
1563
+
1564
+ # Required. Name of the resource provided by the user. Name is of the form
1565
+ # projects/`project`/locations/`location`/urlLists/`url_list` url_list should
1566
+ # match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$).
1567
+ # Corresponds to the JSON property `name`
1568
+ # @return [String]
1569
+ attr_accessor :name
1570
+
1571
+ # Output only. Time when the security policy was updated.
1572
+ # Corresponds to the JSON property `updateTime`
1573
+ # @return [String]
1574
+ attr_accessor :update_time
1575
+
1576
+ # Required. FQDNs and URLs.
1577
+ # Corresponds to the JSON property `values`
1578
+ # @return [Array<String>]
1579
+ attr_accessor :values
1580
+
1581
+ def initialize(**args)
1582
+ update!(**args)
1583
+ end
1584
+
1585
+ # Update properties of this object
1586
+ def update!(**args)
1587
+ @create_time = args[:create_time] if args.key?(:create_time)
1588
+ @description = args[:description] if args.key?(:description)
1589
+ @name = args[:name] if args.key?(:name)
1590
+ @update_time = args[:update_time] if args.key?(:update_time)
1591
+ @values = args[:values] if args.key?(:values)
1592
+ end
1593
+ end
1594
+
1215
1595
  # Specification of ValidationCA. Defines the mechanism to obtain the Certificate
1216
1596
  # Authority certificate to validate the peer certificate.
1217
1597
  class ValidationCa
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworksecurityV1
18
18
  # Version of the google-apis-networksecurity_v1 gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.17.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 = "20230306"
25
+ REVISION = "20230406"
26
26
  end
27
27
  end
28
28
  end