google-apis-networksecurity_v1beta1 0.51.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: 8a632ff06b209f402185adfdea96f424b9c75dc649b79979aedb9bc463997b77
4
- data.tar.gz: e7b9cba77035a10058d2c2a7cf7596519e58e8d13dbd7a300c11f0ad59e4b002
3
+ metadata.gz: 4cba2514565aa9f9930cc2794a9c8c1a5e08f294d483737105ab7279ce916454
4
+ data.tar.gz: 61d25f0e05903a45673f59dd551dfa878de887c6c7c375dc11bbadcab1dd89f6
5
5
  SHA512:
6
- metadata.gz: 8f4c9e407411267e4e70d2da82879e64f6a0b6558f4de02b9b4995904eccd6e903b13ae717429bd1e467a22b8e67332e0989f203f883bb1495d36e693d60b3cd
7
- data.tar.gz: 5ea133a595d9d59089aedec192bab1f1d8a9120e079cb3b53207ef044a44629e0d17550cd0d713f6d70234e6305d48914e1f3f471310ba18ea8fd0ff6f270b3b
6
+ metadata.gz: 94ba8452650ea10b486dd548fcc359850a07499d77e47327d3b2479019311eb42d8774f9e1455d96e956e7f63c58199fae873c30b3589a07da7bfc08fc485aab
7
+ data.tar.gz: e184360019e24a051d19cf4a102428d91f4d7df846fc641ef7dea7e49b487cacd5c15a05e5b1fd4650dee296c16a3e07735b51ad8c00739ae708a2a68f290199
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.51.0 (2025-07-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20250714
@@ -1098,6 +1098,57 @@ module Google
1098
1098
  end
1099
1099
  end
1100
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
+
1101
1152
  # A generic empty message that you can re-use to avoid defining duplicated empty
1102
1153
  # messages in your APIs. A typical example is to use it as the request or the
1103
1154
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -2667,6 +2718,37 @@ module Google
2667
2718
  end
2668
2719
  end
2669
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
+
2670
2752
  # Message for response to listing Associations
2671
2753
  class ListFirewallEndpointAssociationsResponse
2672
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.51.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 = "20250714"
25
+ REVISION = "20250721"
26
26
  end
27
27
  end
28
28
  end
@@ -196,6 +196,12 @@ module Google
196
196
  include Google::Apis::Core::JsonObjectSupport
197
197
  end
198
198
 
199
+ class DnsThreatDetector
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
199
205
  class Empty
200
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
207
 
@@ -400,6 +406,12 @@ module Google
400
406
  include Google::Apis::Core::JsonObjectSupport
401
407
  end
402
408
 
409
+ class ListDnsThreatDetectorsResponse
410
+ class Representation < Google::Apis::Core::JsonRepresentation; end
411
+
412
+ include Google::Apis::Core::JsonObjectSupport
413
+ end
414
+
403
415
  class ListFirewallEndpointAssociationsResponse
404
416
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
417
 
@@ -1008,6 +1020,18 @@ module Google
1008
1020
  end
1009
1021
  end
1010
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
+
1011
1035
  class Empty
1012
1036
  # @private
1013
1037
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1367,6 +1391,16 @@ module Google
1367
1391
  end
1368
1392
  end
1369
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
+
1370
1404
  class ListFirewallEndpointAssociationsResponse
1371
1405
  # @private
1372
1406
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -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.51.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.51.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: