google-apis-networksecurity_v1 0.45.0 → 0.46.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: 6099d0704fba4b5d80c757bc829c8eb41032fc39189cb849f649d96d392a364e
4
- data.tar.gz: 30133c46fe61e9981e88fffae1c4548a2b9893eb3770a5811b51169ab0e82080
3
+ metadata.gz: 7f570f62da344ebdca2b29030d9972129ef91daae056994c6c59c4a4ae402418
4
+ data.tar.gz: e99b0773a259af720c32e5e42649c286074576680c849798add174d4fb47da37
5
5
  SHA512:
6
- metadata.gz: e3747bb336a3181e01f5fa03c528223fa7f9102cb4fd86b58f2bfd5e7d9ef5558505475234b8adbb37a340c9921dcfd886822e1700a293d2a667f5854e449e54
7
- data.tar.gz: ae73e04ee1801324b162003cb47c385468d504582228f27426af1dec8fe95ac32ef9aff73e705001a3b05c39ede426e1c46472de8867314e01f1b27fcc8df8d5
6
+ metadata.gz: c173e703f4f22da9267f484deae07c90fe4adecb8df5672b7803bf78236b76c757b4a47cc292f7ba1d7a9e55a2f4672b72b6e0d30cbf3d238c3ea7fcce77e1ef
7
+ data.tar.gz: 934d1734a5bb742e8ad1362a9691ab92e92e0c7862c1941d985b7e6719e0e8b44fde5916274ae44653ca91ed95a00ca2643d40b1160de51b65adfc28ebc8ea4c
data/CHANGELOG.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Release history for google-apis-networksecurity_v1
2
2
 
3
- ### v0.45.0 (2025-10-05)
3
+ ### v0.46.0 (2025-12-14)
4
4
 
5
- * Regenerated from discovery document revision 20250925
5
+ * Regenerated from discovery document revision 20251203
6
+
7
+ ### v0.45.0 (2025-10-12)
8
+
9
+ * Regenerated from discovery document revision 20251001
6
10
 
7
11
  ### v0.44.0 (2025-09-28)
8
12
 
@@ -1048,9 +1048,9 @@ module Google
1048
1048
  class CustomMirroringProfile
1049
1049
  include Google::Apis::Core::Hashable
1050
1050
 
1051
- # Required. The target MirroringEndpointGroup. When a mirroring rule with this
1052
- # security profile attached matches a packet, a replica will be mirrored to the
1053
- # location-local target in this group.
1051
+ # Required. Immutable. The target MirroringEndpointGroup. When a mirroring rule
1052
+ # with this security profile attached matches a packet, a replica will be
1053
+ # mirrored to the location-local target in this group.
1054
1054
  # Corresponds to the JSON property `mirroringEndpointGroup`
1055
1055
  # @return [String]
1056
1056
  attr_accessor :mirroring_endpoint_group
@@ -1106,6 +1106,60 @@ module Google
1106
1106
  end
1107
1107
  end
1108
1108
 
1109
+ # A DNS threat detector sends DNS query logs to a _provider_ that then analyzes
1110
+ # the logs to identify threat events in the DNS queries. By default, all VPC
1111
+ # networks in your projects are included. You can exclude specific networks by
1112
+ # supplying `excluded_networks`.
1113
+ class DnsThreatDetector
1114
+ include Google::Apis::Core::Hashable
1115
+
1116
+ # Output only. Create time stamp.
1117
+ # Corresponds to the JSON property `createTime`
1118
+ # @return [String]
1119
+ attr_accessor :create_time
1120
+
1121
+ # Optional. A list of network resource names which aren't monitored by this
1122
+ # DnsThreatDetector. Example: `projects/PROJECT_ID/global/networks/NETWORK_NAME`.
1123
+ # Corresponds to the JSON property `excludedNetworks`
1124
+ # @return [Array<String>]
1125
+ attr_accessor :excluded_networks
1126
+
1127
+ # Optional. Any labels associated with the DnsThreatDetector, listed as key
1128
+ # value pairs.
1129
+ # Corresponds to the JSON property `labels`
1130
+ # @return [Hash<String,String>]
1131
+ attr_accessor :labels
1132
+
1133
+ # Immutable. Identifier. Name of the DnsThreatDetector resource.
1134
+ # Corresponds to the JSON property `name`
1135
+ # @return [String]
1136
+ attr_accessor :name
1137
+
1138
+ # Required. The provider used for DNS threat analysis.
1139
+ # Corresponds to the JSON property `provider`
1140
+ # @return [String]
1141
+ attr_accessor :provider
1142
+
1143
+ # Output only. Update time stamp.
1144
+ # Corresponds to the JSON property `updateTime`
1145
+ # @return [String]
1146
+ attr_accessor :update_time
1147
+
1148
+ def initialize(**args)
1149
+ update!(**args)
1150
+ end
1151
+
1152
+ # Update properties of this object
1153
+ def update!(**args)
1154
+ @create_time = args[:create_time] if args.key?(:create_time)
1155
+ @excluded_networks = args[:excluded_networks] if args.key?(:excluded_networks)
1156
+ @labels = args[:labels] if args.key?(:labels)
1157
+ @name = args[:name] if args.key?(:name)
1158
+ @provider = args[:provider] if args.key?(:provider)
1159
+ @update_time = args[:update_time] if args.key?(:update_time)
1160
+ end
1161
+ end
1162
+
1109
1163
  # A generic empty message that you can re-use to avoid defining duplicated empty
1110
1164
  # messages in your APIs. A typical example is to use it as the request or the
1111
1165
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1385,12 +1439,20 @@ module Google
1385
1439
  class FirewallEndpointEndpointSettings
1386
1440
  include Google::Apis::Core::Hashable
1387
1441
 
1442
+ # Optional. Immutable. Indicates whether Jumbo Frames are enabled. Default value
1443
+ # is false.
1444
+ # Corresponds to the JSON property `jumboFramesEnabled`
1445
+ # @return [Boolean]
1446
+ attr_accessor :jumbo_frames_enabled
1447
+ alias_method :jumbo_frames_enabled?, :jumbo_frames_enabled
1448
+
1388
1449
  def initialize(**args)
1389
1450
  update!(**args)
1390
1451
  end
1391
1452
 
1392
1453
  # Update properties of this object
1393
1454
  def update!(**args)
1455
+ @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled)
1394
1456
  end
1395
1457
  end
1396
1458
 
@@ -2694,6 +2756,37 @@ module Google
2694
2756
  end
2695
2757
  end
2696
2758
 
2759
+ # The response message to requesting a list of DnsThreatDetectors.
2760
+ class ListDnsThreatDetectorsResponse
2761
+ include Google::Apis::Core::Hashable
2762
+
2763
+ # The list of DnsThreatDetector resources.
2764
+ # Corresponds to the JSON property `dnsThreatDetectors`
2765
+ # @return [Array<Google::Apis::NetworksecurityV1::DnsThreatDetector>]
2766
+ attr_accessor :dns_threat_detectors
2767
+
2768
+ # A token, which can be sent as `page_token`, to retrieve the next page.
2769
+ # Corresponds to the JSON property `nextPageToken`
2770
+ # @return [String]
2771
+ attr_accessor :next_page_token
2772
+
2773
+ # Unordered list. Unreachable `DnsThreatDetector` resources.
2774
+ # Corresponds to the JSON property `unreachable`
2775
+ # @return [Array<String>]
2776
+ attr_accessor :unreachable
2777
+
2778
+ def initialize(**args)
2779
+ update!(**args)
2780
+ end
2781
+
2782
+ # Update properties of this object
2783
+ def update!(**args)
2784
+ @dns_threat_detectors = args[:dns_threat_detectors] if args.key?(:dns_threat_detectors)
2785
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2786
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2787
+ end
2788
+ end
2789
+
2697
2790
  # Message for response to listing Associations
2698
2791
  class ListFirewallEndpointAssociationsResponse
2699
2792
  include Google::Apis::Core::Hashable
@@ -3090,8 +3183,9 @@ module Google
3090
3183
  attr_accessor :operations
3091
3184
 
3092
3185
  # Unordered list. Unreachable resources. Populated when the request sets `
3093
- # ListOperationsRequest.return_partial_success` and reads across collections e.g.
3094
- # when attempting to list all resources across all supported locations.
3186
+ # ListOperationsRequest.return_partial_success` and reads across collections.
3187
+ # For example, when attempting to list all resources across all supported
3188
+ # locations.
3095
3189
  # Corresponds to the JSON property `unreachable`
3096
3190
  # @return [Array<String>]
3097
3191
  attr_accessor :unreachable
@@ -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.45.0"
19
+ GEM_VERSION = "0.46.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 = "20250925"
25
+ REVISION = "20251203"
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
 
@@ -406,6 +412,12 @@ module Google
406
412
  include Google::Apis::Core::JsonObjectSupport
407
413
  end
408
414
 
415
+ class ListDnsThreatDetectorsResponse
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
409
421
  class ListFirewallEndpointAssociationsResponse
410
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
411
423
 
@@ -972,6 +984,18 @@ module Google
972
984
  end
973
985
  end
974
986
 
987
+ class DnsThreatDetector
988
+ # @private
989
+ class Representation < Google::Apis::Core::JsonRepresentation
990
+ property :create_time, as: 'createTime'
991
+ collection :excluded_networks, as: 'excludedNetworks'
992
+ hash :labels, as: 'labels'
993
+ property :name, as: 'name'
994
+ property :provider, as: 'provider'
995
+ property :update_time, as: 'updateTime'
996
+ end
997
+ end
998
+
975
999
  class Empty
976
1000
  # @private
977
1001
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1036,6 +1060,7 @@ module Google
1036
1060
  class FirewallEndpointEndpointSettings
1037
1061
  # @private
1038
1062
  class Representation < Google::Apis::Core::JsonRepresentation
1063
+ property :jumbo_frames_enabled, as: 'jumboFramesEnabled'
1039
1064
  end
1040
1065
  end
1041
1066
 
@@ -1339,6 +1364,16 @@ module Google
1339
1364
  end
1340
1365
  end
1341
1366
 
1367
+ class ListDnsThreatDetectorsResponse
1368
+ # @private
1369
+ class Representation < Google::Apis::Core::JsonRepresentation
1370
+ collection :dns_threat_detectors, as: 'dnsThreatDetectors', class: Google::Apis::NetworksecurityV1::DnsThreatDetector, decorator: Google::Apis::NetworksecurityV1::DnsThreatDetector::Representation
1371
+
1372
+ property :next_page_token, as: 'nextPageToken'
1373
+ collection :unreachable, as: 'unreachable'
1374
+ end
1375
+ end
1376
+
1342
1377
  class ListFirewallEndpointAssociationsResponse
1343
1378
  # @private
1344
1379
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -747,11 +747,12 @@ module Google
747
747
  # The standard list page token.
748
748
  # @param [Boolean] return_partial_success
749
749
  # When set to `true`, operations that are reachable are returned as normal, and
750
- # those that are unreachable are returned in the [ListOperationsResponse.
751
- # unreachable] field. This can only be `true` when reading across collections e.
752
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
753
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
754
- # explicitly documented otherwise in service or product specific documentation.
750
+ # those that are unreachable are returned in the ListOperationsResponse.
751
+ # unreachable field. This can only be `true` when reading across collections.
752
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
753
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
754
+ # if set unless explicitly documented otherwise in service or product specific
755
+ # documentation.
755
756
  # @param [String] fields
756
757
  # Selector specifying which fields to include in a partial response.
757
758
  # @param [String] quota_user
@@ -1194,8 +1195,8 @@ module Google
1194
1195
  # @param [String] name
1195
1196
  # The resource that owns the locations collection, if applicable.
1196
1197
  # @param [Array<String>, String] extra_location_types
1197
- # Optional. Unless explicitly documented otherwise, don't use this unsupported
1198
- # field which is primarily intended for internal usage.
1198
+ # Optional. Do not use this field. It is unsupported and is ignored unless
1199
+ # explicitly documented otherwise. This is primarily for internal usage.
1199
1200
  # @param [String] filter
1200
1201
  # A filter to narrow down results to a preferred subset. The filtering language
1201
1202
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -2857,6 +2858,181 @@ module Google
2857
2858
  execute_or_queue_command(command, &block)
2858
2859
  end
2859
2860
 
2861
+ # Creates a new DnsThreatDetector in a given project and location.
2862
+ # @param [String] parent
2863
+ # Required. The value for the parent of the DnsThreatDetector resource.
2864
+ # @param [Google::Apis::NetworksecurityV1::DnsThreatDetector] dns_threat_detector_object
2865
+ # @param [String] dns_threat_detector_id
2866
+ # Optional. The ID of the requesting DnsThreatDetector object. If this field is
2867
+ # not supplied, the service generates an identifier.
2868
+ # @param [String] fields
2869
+ # Selector specifying which fields to include in a partial response.
2870
+ # @param [String] quota_user
2871
+ # Available to use for quota purposes for server-side applications. Can be any
2872
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2873
+ # @param [Google::Apis::RequestOptions] options
2874
+ # Request-specific options
2875
+ #
2876
+ # @yield [result, err] Result & error if block supplied
2877
+ # @yieldparam result [Google::Apis::NetworksecurityV1::DnsThreatDetector] parsed result object
2878
+ # @yieldparam err [StandardError] error object if request failed
2879
+ #
2880
+ # @return [Google::Apis::NetworksecurityV1::DnsThreatDetector]
2881
+ #
2882
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2883
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2884
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2885
+ 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)
2886
+ command = make_simple_command(:post, 'v1/{+parent}/dnsThreatDetectors', options)
2887
+ command.request_representation = Google::Apis::NetworksecurityV1::DnsThreatDetector::Representation
2888
+ command.request_object = dns_threat_detector_object
2889
+ command.response_representation = Google::Apis::NetworksecurityV1::DnsThreatDetector::Representation
2890
+ command.response_class = Google::Apis::NetworksecurityV1::DnsThreatDetector
2891
+ command.params['parent'] = parent unless parent.nil?
2892
+ command.query['dnsThreatDetectorId'] = dns_threat_detector_id unless dns_threat_detector_id.nil?
2893
+ command.query['fields'] = fields unless fields.nil?
2894
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2895
+ execute_or_queue_command(command, &block)
2896
+ end
2897
+
2898
+ # Deletes a single DnsThreatDetector.
2899
+ # @param [String] name
2900
+ # Required. Name of the DnsThreatDetector resource.
2901
+ # @param [String] fields
2902
+ # Selector specifying which fields to include in a partial response.
2903
+ # @param [String] quota_user
2904
+ # Available to use for quota purposes for server-side applications. Can be any
2905
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2906
+ # @param [Google::Apis::RequestOptions] options
2907
+ # Request-specific options
2908
+ #
2909
+ # @yield [result, err] Result & error if block supplied
2910
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Empty] parsed result object
2911
+ # @yieldparam err [StandardError] error object if request failed
2912
+ #
2913
+ # @return [Google::Apis::NetworksecurityV1::Empty]
2914
+ #
2915
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2916
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2917
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2918
+ def delete_project_location_dns_threat_detector(name, fields: nil, quota_user: nil, options: nil, &block)
2919
+ command = make_simple_command(:delete, 'v1/{+name}', options)
2920
+ command.response_representation = Google::Apis::NetworksecurityV1::Empty::Representation
2921
+ command.response_class = Google::Apis::NetworksecurityV1::Empty
2922
+ command.params['name'] = name unless name.nil?
2923
+ command.query['fields'] = fields unless fields.nil?
2924
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2925
+ execute_or_queue_command(command, &block)
2926
+ end
2927
+
2928
+ # Gets the details of a single DnsThreatDetector.
2929
+ # @param [String] name
2930
+ # Required. Name of the DnsThreatDetector resource.
2931
+ # @param [String] fields
2932
+ # Selector specifying which fields to include in a partial response.
2933
+ # @param [String] quota_user
2934
+ # Available to use for quota purposes for server-side applications. Can be any
2935
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2936
+ # @param [Google::Apis::RequestOptions] options
2937
+ # Request-specific options
2938
+ #
2939
+ # @yield [result, err] Result & error if block supplied
2940
+ # @yieldparam result [Google::Apis::NetworksecurityV1::DnsThreatDetector] parsed result object
2941
+ # @yieldparam err [StandardError] error object if request failed
2942
+ #
2943
+ # @return [Google::Apis::NetworksecurityV1::DnsThreatDetector]
2944
+ #
2945
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2946
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2947
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2948
+ def get_project_location_dns_threat_detector(name, fields: nil, quota_user: nil, options: nil, &block)
2949
+ command = make_simple_command(:get, 'v1/{+name}', options)
2950
+ command.response_representation = Google::Apis::NetworksecurityV1::DnsThreatDetector::Representation
2951
+ command.response_class = Google::Apis::NetworksecurityV1::DnsThreatDetector
2952
+ command.params['name'] = name unless name.nil?
2953
+ command.query['fields'] = fields unless fields.nil?
2954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2955
+ execute_or_queue_command(command, &block)
2956
+ end
2957
+
2958
+ # Lists DnsThreatDetectors in a given project and location.
2959
+ # @param [String] parent
2960
+ # Required. The parent value for `ListDnsThreatDetectorsRequest`.
2961
+ # @param [Fixnum] page_size
2962
+ # Optional. The requested page size. The server may return fewer items than
2963
+ # requested. If unspecified, the server picks an appropriate default.
2964
+ # @param [String] page_token
2965
+ # Optional. A page token received from a previous `ListDnsThreatDetectorsRequest`
2966
+ # call. Provide this to retrieve the subsequent page.
2967
+ # @param [String] fields
2968
+ # Selector specifying which fields to include in a partial response.
2969
+ # @param [String] quota_user
2970
+ # Available to use for quota purposes for server-side applications. Can be any
2971
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2972
+ # @param [Google::Apis::RequestOptions] options
2973
+ # Request-specific options
2974
+ #
2975
+ # @yield [result, err] Result & error if block supplied
2976
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListDnsThreatDetectorsResponse] parsed result object
2977
+ # @yieldparam err [StandardError] error object if request failed
2978
+ #
2979
+ # @return [Google::Apis::NetworksecurityV1::ListDnsThreatDetectorsResponse]
2980
+ #
2981
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2982
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2983
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2984
+ def list_project_location_dns_threat_detectors(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2985
+ command = make_simple_command(:get, 'v1/{+parent}/dnsThreatDetectors', options)
2986
+ command.response_representation = Google::Apis::NetworksecurityV1::ListDnsThreatDetectorsResponse::Representation
2987
+ command.response_class = Google::Apis::NetworksecurityV1::ListDnsThreatDetectorsResponse
2988
+ command.params['parent'] = parent unless parent.nil?
2989
+ command.query['pageSize'] = page_size unless page_size.nil?
2990
+ command.query['pageToken'] = page_token unless page_token.nil?
2991
+ command.query['fields'] = fields unless fields.nil?
2992
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2993
+ execute_or_queue_command(command, &block)
2994
+ end
2995
+
2996
+ # Updates a single DnsThreatDetector.
2997
+ # @param [String] name
2998
+ # Immutable. Identifier. Name of the DnsThreatDetector resource.
2999
+ # @param [Google::Apis::NetworksecurityV1::DnsThreatDetector] dns_threat_detector_object
3000
+ # @param [String] update_mask
3001
+ # Optional. The field mask is used to specify the fields to be overwritten in
3002
+ # the DnsThreatDetector resource by the update. The fields specified in the
3003
+ # update_mask are relative to the resource, not the full request. A field will
3004
+ # be overwritten if it is in the mask. If the mask is not provided then all
3005
+ # fields present in the request will be overwritten.
3006
+ # @param [String] fields
3007
+ # Selector specifying which fields to include in a partial response.
3008
+ # @param [String] quota_user
3009
+ # Available to use for quota purposes for server-side applications. Can be any
3010
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3011
+ # @param [Google::Apis::RequestOptions] options
3012
+ # Request-specific options
3013
+ #
3014
+ # @yield [result, err] Result & error if block supplied
3015
+ # @yieldparam result [Google::Apis::NetworksecurityV1::DnsThreatDetector] parsed result object
3016
+ # @yieldparam err [StandardError] error object if request failed
3017
+ #
3018
+ # @return [Google::Apis::NetworksecurityV1::DnsThreatDetector]
3019
+ #
3020
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3021
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3022
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3023
+ def patch_project_location_dns_threat_detector(name, dns_threat_detector_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3024
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3025
+ command.request_representation = Google::Apis::NetworksecurityV1::DnsThreatDetector::Representation
3026
+ command.request_object = dns_threat_detector_object
3027
+ command.response_representation = Google::Apis::NetworksecurityV1::DnsThreatDetector::Representation
3028
+ command.response_class = Google::Apis::NetworksecurityV1::DnsThreatDetector
3029
+ command.params['name'] = name unless name.nil?
3030
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3031
+ command.query['fields'] = fields unless fields.nil?
3032
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3033
+ execute_or_queue_command(command, &block)
3034
+ end
3035
+
2860
3036
  # Creates a new FirewallEndpointAssociation in a given project and location.
2861
3037
  # @param [String] parent
2862
3038
  # Required. Value for parent.
@@ -3074,6 +3250,223 @@ module Google
3074
3250
  execute_or_queue_command(command, &block)
3075
3251
  end
3076
3252
 
3253
+ # Creates a new FirewallEndpoint in a given project and location.
3254
+ # @param [String] parent
3255
+ # Required. Value for parent.
3256
+ # @param [Google::Apis::NetworksecurityV1::FirewallEndpoint] firewall_endpoint_object
3257
+ # @param [String] firewall_endpoint_id
3258
+ # Required. Id of the requesting object. If auto-generating Id server-side,
3259
+ # remove this field and firewall_endpoint_id from the method_signature of Create
3260
+ # RPC.
3261
+ # @param [String] request_id
3262
+ # Optional. An optional request ID to identify requests. Specify a unique
3263
+ # request ID so that if you must retry your request, the server will know to
3264
+ # ignore the request if it has already been completed. The server will guarantee
3265
+ # that for at least 60 minutes since the first request. For example, consider a
3266
+ # situation where you make an initial request and the request times out. If you
3267
+ # make the request again with the same request ID, the server can check if
3268
+ # original operation with the same request ID was received, and if so, will
3269
+ # ignore the second request. This prevents clients from accidentally creating
3270
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3271
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3272
+ # @param [String] fields
3273
+ # Selector specifying which fields to include in a partial response.
3274
+ # @param [String] quota_user
3275
+ # Available to use for quota purposes for server-side applications. Can be any
3276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3277
+ # @param [Google::Apis::RequestOptions] options
3278
+ # Request-specific options
3279
+ #
3280
+ # @yield [result, err] Result & error if block supplied
3281
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3282
+ # @yieldparam err [StandardError] error object if request failed
3283
+ #
3284
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3285
+ #
3286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3289
+ def create_project_location_firewall_endpoint(parent, firewall_endpoint_object = nil, firewall_endpoint_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3290
+ command = make_simple_command(:post, 'v1/{+parent}/firewallEndpoints', options)
3291
+ command.request_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3292
+ command.request_object = firewall_endpoint_object
3293
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3294
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3295
+ command.params['parent'] = parent unless parent.nil?
3296
+ command.query['firewallEndpointId'] = firewall_endpoint_id unless firewall_endpoint_id.nil?
3297
+ command.query['requestId'] = request_id unless request_id.nil?
3298
+ command.query['fields'] = fields unless fields.nil?
3299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3300
+ execute_or_queue_command(command, &block)
3301
+ end
3302
+
3303
+ # Deletes a single Endpoint.
3304
+ # @param [String] name
3305
+ # Required. Name of the resource
3306
+ # @param [String] request_id
3307
+ # Optional. An optional request ID to identify requests. Specify a unique
3308
+ # request ID so that if you must retry your request, the server will know to
3309
+ # ignore the request if it has already been completed. The server will guarantee
3310
+ # that for at least 60 minutes after the first request. For example, consider a
3311
+ # situation where you make an initial request and the request times out. If you
3312
+ # make the request again with the same request ID, the server can check if
3313
+ # original operation with the same request ID was received, and if so, will
3314
+ # ignore the second request. This prevents clients from accidentally creating
3315
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3316
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3317
+ # @param [String] fields
3318
+ # Selector specifying which fields to include in a partial response.
3319
+ # @param [String] quota_user
3320
+ # Available to use for quota purposes for server-side applications. Can be any
3321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3322
+ # @param [Google::Apis::RequestOptions] options
3323
+ # Request-specific options
3324
+ #
3325
+ # @yield [result, err] Result & error if block supplied
3326
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3327
+ # @yieldparam err [StandardError] error object if request failed
3328
+ #
3329
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3330
+ #
3331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3334
+ def delete_project_location_firewall_endpoint(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3335
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3336
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3337
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3338
+ command.params['name'] = name unless name.nil?
3339
+ command.query['requestId'] = request_id unless request_id.nil?
3340
+ command.query['fields'] = fields unless fields.nil?
3341
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3342
+ execute_or_queue_command(command, &block)
3343
+ end
3344
+
3345
+ # Gets details of a single Endpoint.
3346
+ # @param [String] name
3347
+ # Required. Name of the resource
3348
+ # @param [String] fields
3349
+ # Selector specifying which fields to include in a partial response.
3350
+ # @param [String] quota_user
3351
+ # Available to use for quota purposes for server-side applications. Can be any
3352
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3353
+ # @param [Google::Apis::RequestOptions] options
3354
+ # Request-specific options
3355
+ #
3356
+ # @yield [result, err] Result & error if block supplied
3357
+ # @yieldparam result [Google::Apis::NetworksecurityV1::FirewallEndpoint] parsed result object
3358
+ # @yieldparam err [StandardError] error object if request failed
3359
+ #
3360
+ # @return [Google::Apis::NetworksecurityV1::FirewallEndpoint]
3361
+ #
3362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3365
+ def get_project_location_firewall_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
3366
+ command = make_simple_command(:get, 'v1/{+name}', options)
3367
+ command.response_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3368
+ command.response_class = Google::Apis::NetworksecurityV1::FirewallEndpoint
3369
+ command.params['name'] = name unless name.nil?
3370
+ command.query['fields'] = fields unless fields.nil?
3371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3372
+ execute_or_queue_command(command, &block)
3373
+ end
3374
+
3375
+ # Lists FirewallEndpoints in a given project and location.
3376
+ # @param [String] parent
3377
+ # Required. Parent value for ListEndpointsRequest
3378
+ # @param [String] filter
3379
+ # Optional. Filtering results
3380
+ # @param [String] order_by
3381
+ # Hint for how to order the results
3382
+ # @param [Fixnum] page_size
3383
+ # Optional. Requested page size. Server may return fewer items than requested.
3384
+ # If unspecified, server will pick an appropriate default.
3385
+ # @param [String] page_token
3386
+ # A token identifying a page of results the server should return.
3387
+ # @param [String] fields
3388
+ # Selector specifying which fields to include in a partial response.
3389
+ # @param [String] quota_user
3390
+ # Available to use for quota purposes for server-side applications. Can be any
3391
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3392
+ # @param [Google::Apis::RequestOptions] options
3393
+ # Request-specific options
3394
+ #
3395
+ # @yield [result, err] Result & error if block supplied
3396
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse] parsed result object
3397
+ # @yieldparam err [StandardError] error object if request failed
3398
+ #
3399
+ # @return [Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse]
3400
+ #
3401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3404
+ def list_project_location_firewall_endpoints(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3405
+ command = make_simple_command(:get, 'v1/{+parent}/firewallEndpoints', options)
3406
+ command.response_representation = Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse::Representation
3407
+ command.response_class = Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse
3408
+ command.params['parent'] = parent unless parent.nil?
3409
+ command.query['filter'] = filter unless filter.nil?
3410
+ command.query['orderBy'] = order_by unless order_by.nil?
3411
+ command.query['pageSize'] = page_size unless page_size.nil?
3412
+ command.query['pageToken'] = page_token unless page_token.nil?
3413
+ command.query['fields'] = fields unless fields.nil?
3414
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3415
+ execute_or_queue_command(command, &block)
3416
+ end
3417
+
3418
+ # Update a single Endpoint.
3419
+ # @param [String] name
3420
+ # Immutable. Identifier. Name of resource.
3421
+ # @param [Google::Apis::NetworksecurityV1::FirewallEndpoint] firewall_endpoint_object
3422
+ # @param [String] request_id
3423
+ # Optional. An optional request ID to identify requests. Specify a unique
3424
+ # request ID so that if you must retry your request, the server will know to
3425
+ # ignore the request if it has already been completed. The server will guarantee
3426
+ # that for at least 60 minutes since the first request. For example, consider a
3427
+ # situation where you make an initial request and the request times out. If you
3428
+ # make the request again with the same request ID, the server can check if
3429
+ # original operation with the same request ID was received, and if so, will
3430
+ # ignore the second request. This prevents clients from accidentally creating
3431
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3432
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3433
+ # @param [String] update_mask
3434
+ # Required. Field mask is used to specify the fields to be overwritten in the
3435
+ # Endpoint resource by the update. The fields specified in the update_mask are
3436
+ # relative to the resource, not the full request. A field will be overwritten if
3437
+ # it is in the mask. If the user does not provide a mask then all fields will be
3438
+ # overwritten.
3439
+ # @param [String] fields
3440
+ # Selector specifying which fields to include in a partial response.
3441
+ # @param [String] quota_user
3442
+ # Available to use for quota purposes for server-side applications. Can be any
3443
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3444
+ # @param [Google::Apis::RequestOptions] options
3445
+ # Request-specific options
3446
+ #
3447
+ # @yield [result, err] Result & error if block supplied
3448
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3449
+ # @yieldparam err [StandardError] error object if request failed
3450
+ #
3451
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3452
+ #
3453
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3454
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3455
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3456
+ def patch_project_location_firewall_endpoint(name, firewall_endpoint_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3457
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3458
+ command.request_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3459
+ command.request_object = firewall_endpoint_object
3460
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3461
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3462
+ command.params['name'] = name unless name.nil?
3463
+ command.query['requestId'] = request_id unless request_id.nil?
3464
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3465
+ command.query['fields'] = fields unless fields.nil?
3466
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3467
+ execute_or_queue_command(command, &block)
3468
+ end
3469
+
3077
3470
  # Creates a new GatewaySecurityPolicy in a given project and location.
3078
3471
  # @param [String] parent
3079
3472
  # Required. The parent resource of the GatewaySecurityPolicy. Must be in the
@@ -5230,11 +5623,12 @@ module Google
5230
5623
  # The standard list page token.
5231
5624
  # @param [Boolean] return_partial_success
5232
5625
  # When set to `true`, operations that are reachable are returned as normal, and
5233
- # those that are unreachable are returned in the [ListOperationsResponse.
5234
- # unreachable] field. This can only be `true` when reading across collections e.
5235
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
5236
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
5237
- # explicitly documented otherwise in service or product specific documentation.
5626
+ # those that are unreachable are returned in the ListOperationsResponse.
5627
+ # unreachable field. This can only be `true` when reading across collections.
5628
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
5629
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
5630
+ # if set unless explicitly documented otherwise in service or product specific
5631
+ # documentation.
5238
5632
  # @param [String] fields
5239
5633
  # Selector specifying which fields to include in a partial response.
5240
5634
  # @param [String] quota_user
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networksecurity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.45.0
4
+ version: 0.46.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_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1/v0.45.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1/v0.46.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1
62
62
  rdoc_options: []
63
63
  require_paths: