google-apis-networksecurity_v1beta1 0.50.0 → 0.52.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: c106267f674e7426489d0f92fbde6b51ec0dce1f094e16676c088cd4fe1b32be
4
- data.tar.gz: 350f4794b71a9e2072309a60c012b5787f63f9db9b20ed0b87b696fda57f7299
3
+ metadata.gz: 4cba2514565aa9f9930cc2794a9c8c1a5e08f294d483737105ab7279ce916454
4
+ data.tar.gz: 61d25f0e05903a45673f59dd551dfa878de887c6c7c375dc11bbadcab1dd89f6
5
5
  SHA512:
6
- metadata.gz: 69b13416264abb646539a345e6a082592e6887037e24cf5ba520f998ecd64d84d3dff42aadc06d3df6d42c41933f6c8bf16fb93939534c31fe697ff7fac16a14
7
- data.tar.gz: be287e7a883660e1036a7cfe89bdaa44462d9d19b570f4adcc8412e1cfd00a79dce5391461e43702d3068d5be03623f9697a0dd907b7ec57ce275bfb8bc8484f
6
+ metadata.gz: 94ba8452650ea10b486dd548fcc359850a07499d77e47327d3b2479019311eb42d8774f9e1455d96e956e7f63c58199fae873c30b3589a07da7bfc08fc485aab
7
+ data.tar.gz: e184360019e24a051d19cf4a102428d91f4d7df846fc641ef7dea7e49b487cacd5c15a05e5b1fd4650dee296c16a3e07735b51ad8c00739ae708a2a68f290199
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-networksecurity_v1beta1
2
2
 
3
+ ### v0.52.0 (2025-08-03)
4
+
5
+ * Regenerated from discovery document revision 20250721
6
+
7
+ ### v0.51.0 (2025-07-27)
8
+
9
+ * Regenerated from discovery document revision 20250714
10
+
3
11
  ### v0.50.0 (2025-07-06)
4
12
 
5
13
  * Regenerated from discovery document revision 20250608
@@ -375,12 +375,23 @@ module Google
375
375
  class AuthzPolicyAuthzRuleFromRequestSource
376
376
  include Google::Apis::Core::Hashable
377
377
 
378
- # Optional. A list of IPs or CIDRs to match against the source IP of a request.
379
- # Limited to 5 ip_blocks.
378
+ # Optional. A list of IP addresses or IP address ranges to match against the
379
+ # source IP address of the request. Limited to 5 ip_blocks.
380
380
  # Corresponds to the JSON property `ipBlocks`
381
381
  # @return [Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock>]
382
382
  attr_accessor :ip_blocks
383
383
 
384
+ # Optional. A list of identities derived from the client's certificate. This
385
+ # field will not match on a request unless frontend mutual TLS is enabled for
386
+ # the forwarding rule or Gateway and the client certificate has been
387
+ # successfully validated by mTLS. Each identity is a string whose value is
388
+ # matched against a list of URI SANs, DNS Name SANs, or the common name in the
389
+ # client's certificate. A match happens when any principal matches with the rule.
390
+ # Limited to 5 principals.
391
+ # Corresponds to the JSON property `principals`
392
+ # @return [Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRulePrincipal>]
393
+ attr_accessor :principals
394
+
384
395
  # Optional. A list of resources to match against the resource of the source VM
385
396
  # of a request. Limited to 5 resources.
386
397
  # Corresponds to the JSON property `resources`
@@ -394,6 +405,7 @@ module Google
394
405
  # Update properties of this object
395
406
  def update!(**args)
396
407
  @ip_blocks = args[:ip_blocks] if args.key?(:ip_blocks)
408
+ @principals = args[:principals] if args.key?(:principals)
397
409
  @resources = args[:resources] if args.key?(:resources)
398
410
  end
399
411
  end
@@ -448,6 +460,32 @@ module Google
448
460
  end
449
461
  end
450
462
 
463
+ # Describes the properties of a principal to be matched against.
464
+ class AuthzPolicyAuthzRulePrincipal
465
+ include Google::Apis::Core::Hashable
466
+
467
+ # Determines how a string value should be matched.
468
+ # Corresponds to the JSON property `principal`
469
+ # @return [Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch]
470
+ attr_accessor :principal
471
+
472
+ # Optional. An enum to decide what principal value the principal rule will match
473
+ # against. If not specified, the PrincipalSelector is CLIENT_CERT_URI_SAN.
474
+ # Corresponds to the JSON property `principalSelector`
475
+ # @return [String]
476
+ attr_accessor :principal_selector
477
+
478
+ def initialize(**args)
479
+ update!(**args)
480
+ end
481
+
482
+ # Update properties of this object
483
+ def update!(**args)
484
+ @principal = args[:principal] if args.key?(:principal)
485
+ @principal_selector = args[:principal_selector] if args.key?(:principal_selector)
486
+ end
487
+ end
488
+
451
489
  # Describes the properties of a client VM resource accessing the internal
452
490
  # application load balancers.
453
491
  class AuthzPolicyAuthzRuleRequestResource
@@ -757,7 +795,7 @@ module Google
757
795
  # certificates trusted by the TrustConfig. * `clientCertificate` is a client
758
796
  # certificate that the load balancer uses to express its identity to the backend,
759
797
  # if the connection to the backend uses mTLS. You can attach the
760
- # BackendAuthenticationConfig to the load balancers BackendService directly
798
+ # BackendAuthenticationConfig to the load balancer's BackendService directly
761
799
  # determining how that BackendService negotiates TLS.
762
800
  class BackendAuthenticationConfig
763
801
  include Google::Apis::Core::Hashable
@@ -901,7 +939,7 @@ module Google
901
939
  attr_accessor :labels
902
940
 
903
941
  # Required. Name of the ClientTlsPolicy resource. It matches the pattern `
904
- # projects/*/locations/`location`/clientTlsPolicies/`client_tls_policy``
942
+ # projects/`project`/locations/`location`/clientTlsPolicies/`client_tls_policy``
905
943
  # Corresponds to the JSON property `name`
906
944
  # @return [String]
907
945
  attr_accessor :name
@@ -1060,6 +1098,57 @@ module Google
1060
1098
  end
1061
1099
  end
1062
1100
 
1101
+ # Message describing DnsThreatDetector object
1102
+ class DnsThreatDetector
1103
+ include Google::Apis::Core::Hashable
1104
+
1105
+ # Output only. [Output only] Create time stamp
1106
+ # Corresponds to the JSON property `createTime`
1107
+ # @return [String]
1108
+ attr_accessor :create_time
1109
+
1110
+ # Optional. A list of Network resource names which are exempt from the
1111
+ # configuration in this DnsThreatDetector. Example: `projects/PROJECT_ID/global/
1112
+ # networks/NETWORK_NAME`.
1113
+ # Corresponds to the JSON property `excludedNetworks`
1114
+ # @return [Array<String>]
1115
+ attr_accessor :excluded_networks
1116
+
1117
+ # Optional. Labels as key value pairs
1118
+ # Corresponds to the JSON property `labels`
1119
+ # @return [Hash<String,String>]
1120
+ attr_accessor :labels
1121
+
1122
+ # Immutable. Identifier. Name of the DnsThreatDetector resource.
1123
+ # Corresponds to the JSON property `name`
1124
+ # @return [String]
1125
+ attr_accessor :name
1126
+
1127
+ # Required. The provider used for DNS threat analysis.
1128
+ # Corresponds to the JSON property `provider`
1129
+ # @return [String]
1130
+ attr_accessor :provider
1131
+
1132
+ # Output only. [Output only] Update time stamp
1133
+ # Corresponds to the JSON property `updateTime`
1134
+ # @return [String]
1135
+ attr_accessor :update_time
1136
+
1137
+ def initialize(**args)
1138
+ update!(**args)
1139
+ end
1140
+
1141
+ # Update properties of this object
1142
+ def update!(**args)
1143
+ @create_time = args[:create_time] if args.key?(:create_time)
1144
+ @excluded_networks = args[:excluded_networks] if args.key?(:excluded_networks)
1145
+ @labels = args[:labels] if args.key?(:labels)
1146
+ @name = args[:name] if args.key?(:name)
1147
+ @provider = args[:provider] if args.key?(:provider)
1148
+ @update_time = args[:update_time] if args.key?(:update_time)
1149
+ end
1150
+ end
1151
+
1063
1152
  # A generic empty message that you can re-use to avoid defining duplicated empty
1064
1153
  # messages in your APIs. A typical example is to use it as the request or the
1065
1154
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -2629,6 +2718,37 @@ module Google
2629
2718
  end
2630
2719
  end
2631
2720
 
2721
+ # Message for response to listing DnsThreatDetectors
2722
+ class ListDnsThreatDetectorsResponse
2723
+ include Google::Apis::Core::Hashable
2724
+
2725
+ # The list of DnsThreatDetector resources.
2726
+ # Corresponds to the JSON property `dnsThreatDetectors`
2727
+ # @return [Array<Google::Apis::NetworksecurityV1beta1::DnsThreatDetector>]
2728
+ attr_accessor :dns_threat_detectors
2729
+
2730
+ # A token, which can be sent as `page_token` to retrieve the next page.
2731
+ # Corresponds to the JSON property `nextPageToken`
2732
+ # @return [String]
2733
+ attr_accessor :next_page_token
2734
+
2735
+ # Unordered list. Unreachable `DnsThreatDetector` resources.
2736
+ # Corresponds to the JSON property `unreachable`
2737
+ # @return [Array<String>]
2738
+ attr_accessor :unreachable
2739
+
2740
+ def initialize(**args)
2741
+ update!(**args)
2742
+ end
2743
+
2744
+ # Update properties of this object
2745
+ def update!(**args)
2746
+ @dns_threat_detectors = args[:dns_threat_detectors] if args.key?(:dns_threat_detectors)
2747
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2748
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2749
+ end
2750
+ end
2751
+
2632
2752
  # Message for response to listing Associations
2633
2753
  class ListFirewallEndpointAssociationsResponse
2634
2754
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworksecurityV1beta1
18
18
  # Version of the google-apis-networksecurity_v1beta1 gem
19
- GEM_VERSION = "0.50.0"
19
+ GEM_VERSION = "0.52.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250608"
25
+ REVISION = "20250721"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class AuthzPolicyAuthzRulePrincipal
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class AuthzPolicyAuthzRuleRequestResource
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -190,6 +196,12 @@ module Google
190
196
  include Google::Apis::Core::JsonObjectSupport
191
197
  end
192
198
 
199
+ class DnsThreatDetector
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
193
205
  class Empty
194
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
207
 
@@ -394,6 +406,12 @@ module Google
394
406
  include Google::Apis::Core::JsonObjectSupport
395
407
  end
396
408
 
409
+ class ListDnsThreatDetectorsResponse
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
397
415
  class ListFirewallEndpointAssociationsResponse
398
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
399
417
 
@@ -802,6 +820,8 @@ module Google
802
820
  class Representation < Google::Apis::Core::JsonRepresentation
803
821
  collection :ip_blocks, as: 'ipBlocks', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleIpBlock::Representation
804
822
 
823
+ collection :principals, as: 'principals', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRulePrincipal, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRulePrincipal::Representation
824
+
805
825
  collection :resources, as: 'resources', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleRequestResource, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleRequestResource::Representation
806
826
 
807
827
  end
@@ -824,6 +844,15 @@ module Google
824
844
  end
825
845
  end
826
846
 
847
+ class AuthzPolicyAuthzRulePrincipal
848
+ # @private
849
+ class Representation < Google::Apis::Core::JsonRepresentation
850
+ property :principal, as: 'principal', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch::Representation
851
+
852
+ property :principal_selector, as: 'principalSelector'
853
+ end
854
+ end
855
+
827
856
  class AuthzPolicyAuthzRuleRequestResource
828
857
  # @private
829
858
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -991,6 +1020,18 @@ module Google
991
1020
  end
992
1021
  end
993
1022
 
1023
+ class DnsThreatDetector
1024
+ # @private
1025
+ class Representation < Google::Apis::Core::JsonRepresentation
1026
+ property :create_time, as: 'createTime'
1027
+ collection :excluded_networks, as: 'excludedNetworks'
1028
+ hash :labels, as: 'labels'
1029
+ property :name, as: 'name'
1030
+ property :provider, as: 'provider'
1031
+ property :update_time, as: 'updateTime'
1032
+ end
1033
+ end
1034
+
994
1035
  class Empty
995
1036
  # @private
996
1037
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1350,6 +1391,16 @@ module Google
1350
1391
  end
1351
1392
  end
1352
1393
 
1394
+ class ListDnsThreatDetectorsResponse
1395
+ # @private
1396
+ class Representation < Google::Apis::Core::JsonRepresentation
1397
+ collection :dns_threat_detectors, as: 'dnsThreatDetectors', class: Google::Apis::NetworksecurityV1beta1::DnsThreatDetector, decorator: Google::Apis::NetworksecurityV1beta1::DnsThreatDetector::Representation
1398
+
1399
+ property :next_page_token, as: 'nextPageToken'
1400
+ collection :unreachable, as: 'unreachable'
1401
+ end
1402
+ end
1403
+
1353
1404
  class ListFirewallEndpointAssociationsResponse
1354
1405
  # @private
1355
1406
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2735,7 +2735,7 @@ module Google
2735
2735
  # Updates the parameters of a single ClientTlsPolicy.
2736
2736
  # @param [String] name
2737
2737
  # Required. Name of the ClientTlsPolicy resource. It matches the pattern `
2738
- # projects/*/locations/`location`/clientTlsPolicies/`client_tls_policy``
2738
+ # projects/`project`/locations/`location`/clientTlsPolicies/`client_tls_policy``
2739
2739
  # @param [Google::Apis::NetworksecurityV1beta1::ClientTlsPolicy] client_tls_policy_object
2740
2740
  # @param [String] update_mask
2741
2741
  # Optional. Field mask is used to specify the fields to be overwritten in the
@@ -2849,6 +2849,182 @@ module Google
2849
2849
  execute_or_queue_command(command, &block)
2850
2850
  end
2851
2851
 
2852
+ # Creates a new DnsThreatDetector in a given project and location.
2853
+ # @param [String] parent
2854
+ # Required. Value for parent of the DnsThreatDetector resource.
2855
+ # @param [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector] dns_threat_detector_object
2856
+ # @param [String] dns_threat_detector_id
2857
+ # Optional. Id of the requesting DnsThreatDetector object. If this field is not
2858
+ # supplied, the service will generate an identifier.
2859
+ # @param [String] fields
2860
+ # Selector specifying which fields to include in a partial response.
2861
+ # @param [String] quota_user
2862
+ # Available to use for quota purposes for server-side applications. Can be any
2863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2864
+ # @param [Google::Apis::RequestOptions] options
2865
+ # Request-specific options
2866
+ #
2867
+ # @yield [result, err] Result & error if block supplied
2868
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector] parsed result object
2869
+ # @yieldparam err [StandardError] error object if request failed
2870
+ #
2871
+ # @return [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector]
2872
+ #
2873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2876
+ def create_project_location_dns_threat_detector(parent, dns_threat_detector_object = nil, dns_threat_detector_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2877
+ command = make_simple_command(:post, 'v1beta1/{+parent}/dnsThreatDetectors', options)
2878
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector::Representation
2879
+ command.request_object = dns_threat_detector_object
2880
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector::Representation
2881
+ command.response_class = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector
2882
+ command.params['parent'] = parent unless parent.nil?
2883
+ command.query['dnsThreatDetectorId'] = dns_threat_detector_id unless dns_threat_detector_id.nil?
2884
+ command.query['fields'] = fields unless fields.nil?
2885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2886
+ execute_or_queue_command(command, &block)
2887
+ end
2888
+
2889
+ # Deletes a single DnsThreatDetector.
2890
+ # @param [String] name
2891
+ # Required. Name of the DnsThreatDetector resource.
2892
+ # @param [String] fields
2893
+ # Selector specifying which fields to include in a partial response.
2894
+ # @param [String] quota_user
2895
+ # Available to use for quota purposes for server-side applications. Can be any
2896
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2897
+ # @param [Google::Apis::RequestOptions] options
2898
+ # Request-specific options
2899
+ #
2900
+ # @yield [result, err] Result & error if block supplied
2901
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Empty] parsed result object
2902
+ # @yieldparam err [StandardError] error object if request failed
2903
+ #
2904
+ # @return [Google::Apis::NetworksecurityV1beta1::Empty]
2905
+ #
2906
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2907
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2908
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2909
+ def delete_project_location_dns_threat_detector(name, fields: nil, quota_user: nil, options: nil, &block)
2910
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
2911
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Empty::Representation
2912
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Empty
2913
+ command.params['name'] = name unless name.nil?
2914
+ command.query['fields'] = fields unless fields.nil?
2915
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2916
+ execute_or_queue_command(command, &block)
2917
+ end
2918
+
2919
+ # Gets details of a single DnsThreatDetector.
2920
+ # @param [String] name
2921
+ # Required. Name of the DnsThreatDetector resource
2922
+ # @param [String] fields
2923
+ # Selector specifying which fields to include in a partial response.
2924
+ # @param [String] quota_user
2925
+ # Available to use for quota purposes for server-side applications. Can be any
2926
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2927
+ # @param [Google::Apis::RequestOptions] options
2928
+ # Request-specific options
2929
+ #
2930
+ # @yield [result, err] Result & error if block supplied
2931
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector] parsed result object
2932
+ # @yieldparam err [StandardError] error object if request failed
2933
+ #
2934
+ # @return [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector]
2935
+ #
2936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2939
+ def get_project_location_dns_threat_detector(name, fields: nil, quota_user: nil, options: nil, &block)
2940
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
2941
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector::Representation
2942
+ command.response_class = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector
2943
+ command.params['name'] = name unless name.nil?
2944
+ command.query['fields'] = fields unless fields.nil?
2945
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2946
+ execute_or_queue_command(command, &block)
2947
+ end
2948
+
2949
+ # Lists DnsThreatDetectors in a given project and location.
2950
+ # @param [String] parent
2951
+ # Required. Parent value for ListDnsThreatDetectorsRequest
2952
+ # @param [Fixnum] page_size
2953
+ # Optional. Requested page size. Server may return fewer items than requested.
2954
+ # If unspecified, server will pick an appropriate default.
2955
+ # @param [String] page_token
2956
+ # Optional. A page token, received from a previous `
2957
+ # ListDnsThreatDetectorsRequest` call. Provide this to retrieve the subsequent
2958
+ # page.
2959
+ # @param [String] fields
2960
+ # Selector specifying which fields to include in a partial response.
2961
+ # @param [String] quota_user
2962
+ # Available to use for quota purposes for server-side applications. Can be any
2963
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2964
+ # @param [Google::Apis::RequestOptions] options
2965
+ # Request-specific options
2966
+ #
2967
+ # @yield [result, err] Result & error if block supplied
2968
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListDnsThreatDetectorsResponse] parsed result object
2969
+ # @yieldparam err [StandardError] error object if request failed
2970
+ #
2971
+ # @return [Google::Apis::NetworksecurityV1beta1::ListDnsThreatDetectorsResponse]
2972
+ #
2973
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2974
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2975
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2976
+ def list_project_location_dns_threat_detectors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2977
+ command = make_simple_command(:get, 'v1beta1/{+parent}/dnsThreatDetectors', options)
2978
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListDnsThreatDetectorsResponse::Representation
2979
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListDnsThreatDetectorsResponse
2980
+ command.params['parent'] = parent unless parent.nil?
2981
+ command.query['pageSize'] = page_size unless page_size.nil?
2982
+ command.query['pageToken'] = page_token unless page_token.nil?
2983
+ command.query['fields'] = fields unless fields.nil?
2984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2985
+ execute_or_queue_command(command, &block)
2986
+ end
2987
+
2988
+ # Updates the parameters of a single DnsThreatDetector.
2989
+ # @param [String] name
2990
+ # Immutable. Identifier. Name of the DnsThreatDetector resource.
2991
+ # @param [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector] dns_threat_detector_object
2992
+ # @param [String] update_mask
2993
+ # Optional. Field mask is used to specify the fields to be overwritten in the
2994
+ # DnsThreatDetector resource by the update. The fields specified in the
2995
+ # update_mask are relative to the resource, not the full request. A field will
2996
+ # be overwritten if it is in the mask. If the mask is not provided then all
2997
+ # fields present in the request will be overwritten.
2998
+ # @param [String] fields
2999
+ # Selector specifying which fields to include in a partial response.
3000
+ # @param [String] quota_user
3001
+ # Available to use for quota purposes for server-side applications. Can be any
3002
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3003
+ # @param [Google::Apis::RequestOptions] options
3004
+ # Request-specific options
3005
+ #
3006
+ # @yield [result, err] Result & error if block supplied
3007
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector] parsed result object
3008
+ # @yieldparam err [StandardError] error object if request failed
3009
+ #
3010
+ # @return [Google::Apis::NetworksecurityV1beta1::DnsThreatDetector]
3011
+ #
3012
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3013
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3014
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3015
+ def patch_project_location_dns_threat_detector(name, dns_threat_detector_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3016
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
3017
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector::Representation
3018
+ command.request_object = dns_threat_detector_object
3019
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector::Representation
3020
+ command.response_class = Google::Apis::NetworksecurityV1beta1::DnsThreatDetector
3021
+ command.params['name'] = name unless name.nil?
3022
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3023
+ command.query['fields'] = fields unless fields.nil?
3024
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3025
+ execute_or_queue_command(command, &block)
3026
+ end
3027
+
2852
3028
  # Creates a new FirewallEndpointAssociation in a given project and location.
2853
3029
  # @param [String] parent
2854
3030
  # Required. Value for parent.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networksecurity_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.50.0
4
+ version: 0.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1beta1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1beta1/v0.50.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1beta1/v0.52.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1beta1
62
62
  rdoc_options: []
63
63
  require_paths: