google-apis-networksecurity_v1beta1 0.16.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93803daad782509c7a44e226197bfb75287b6021fc8448f67178f9b979ad8359
4
- data.tar.gz: d80e948304130439cda4ad2373b800984b8c4f6888741d022f594b7465d39208
3
+ metadata.gz: 54471a1e38d1b8b73a65534f507c1534c79f688db818668e73577354c87772ac
4
+ data.tar.gz: 318869d34b7020e6f68f4328408a798d1b5affd563673b3e9da99670aea2451e
5
5
  SHA512:
6
- metadata.gz: 24a4b2acbf795acd9f346ecec0b75d002675679c9617fea9d3201695ec4c1c152edfa9fefa4ee1de1536004e2f963f35408989bb9264bdf8c88994296e339415
7
- data.tar.gz: b096d9f1dc337916fce23edf93141c88298c507005f32589059fd4200f9e7f5c3caaa33f8fb8c17d2d8850c89c49fc58f404c91e361a4fea6a183c4a4103b019
6
+ metadata.gz: d2835ca59716004e5e747c235bbe1d1e765e90137aedcab8ec10fad989fe5c8c457df8f8a57078edb25246440e58fdd47c9b7c3d1791d896de929fa72afda316
7
+ data.tar.gz: 0b88ad717e2452c8da85f3633af255d3da5be0daa43a9fbd7a0bd4d03e0d49b038f148ae465e7d36be20d035b04871b819e6fc5e6d5ae3734faa391d13682e52
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-networksecurity_v1beta1
2
2
 
3
+ ### v0.18.0 (2023-03-12)
4
+
5
+ * Regenerated from discovery document revision 20230306
6
+
7
+ ### v0.17.0 (2023-02-26)
8
+
9
+ * Regenerated from discovery document revision 20230208
10
+ * Regenerated using generator version 0.12.0
11
+
3
12
  ### v0.16.0 (2023-02-12)
4
13
 
5
14
  * Regenerated from discovery document revision 20230130
@@ -22,6 +22,109 @@ module Google
22
22
  module Apis
23
23
  module NetworksecurityV1beta1
24
24
 
25
+ # Request used by the AddAddressGroupItems method.
26
+ class AddAddressGroupItemsRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Required. List of items to add.
30
+ # Corresponds to the JSON property `items`
31
+ # @return [Array<String>]
32
+ attr_accessor :items
33
+
34
+ # Optional. An optional request ID to identify requests. Specify a unique
35
+ # request ID so that if you must retry your request, the server will know to
36
+ # ignore the request if it has already been completed. The server will guarantee
37
+ # that for at least 60 minutes since the first request. For example, consider a
38
+ # situation where you make an initial request and the request times out. If you
39
+ # make the request again with the same request ID, the server can check if
40
+ # original operation with the same request ID was received, and if so, will
41
+ # ignore the second request. This prevents clients from accidentally creating
42
+ # duplicate commitments. The request ID must be a valid UUID with the exception
43
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
44
+ # Corresponds to the JSON property `requestId`
45
+ # @return [String]
46
+ attr_accessor :request_id
47
+
48
+ def initialize(**args)
49
+ update!(**args)
50
+ end
51
+
52
+ # Update properties of this object
53
+ def update!(**args)
54
+ @items = args[:items] if args.key?(:items)
55
+ @request_id = args[:request_id] if args.key?(:request_id)
56
+ end
57
+ end
58
+
59
+ # AddressGroup is a resource that specifies how a collection of IP/DNS used in
60
+ # Firewall Policy.
61
+ class AddressGroup
62
+ include Google::Apis::Core::Hashable
63
+
64
+ # Required. Capacity of the Address Group
65
+ # Corresponds to the JSON property `capacity`
66
+ # @return [Fixnum]
67
+ attr_accessor :capacity
68
+
69
+ # Output only. The timestamp when the resource was created.
70
+ # Corresponds to the JSON property `createTime`
71
+ # @return [String]
72
+ attr_accessor :create_time
73
+
74
+ # Optional. Free-text description of the resource.
75
+ # Corresponds to the JSON property `description`
76
+ # @return [String]
77
+ attr_accessor :description
78
+
79
+ # Optional. List of items.
80
+ # Corresponds to the JSON property `items`
81
+ # @return [Array<String>]
82
+ attr_accessor :items
83
+
84
+ # Optional. Set of label tags associated with the AddressGroup resource.
85
+ # Corresponds to the JSON property `labels`
86
+ # @return [Hash<String,String>]
87
+ attr_accessor :labels
88
+
89
+ # Required. Name of the AddressGroup resource. It matches pattern `projects/*/
90
+ # locations/`location`/addressGroups/`.
91
+ # Corresponds to the JSON property `name`
92
+ # @return [String]
93
+ attr_accessor :name
94
+
95
+ # Output only. Server-defined fully-qualified URL for this resource.
96
+ # Corresponds to the JSON property `selfLink`
97
+ # @return [String]
98
+ attr_accessor :self_link
99
+
100
+ # Required. The type of the Address Group. Possible values are "IPv4" or "IPV6".
101
+ # Corresponds to the JSON property `type`
102
+ # @return [String]
103
+ attr_accessor :type
104
+
105
+ # Output only. The timestamp when the resource was updated.
106
+ # Corresponds to the JSON property `updateTime`
107
+ # @return [String]
108
+ attr_accessor :update_time
109
+
110
+ def initialize(**args)
111
+ update!(**args)
112
+ end
113
+
114
+ # Update properties of this object
115
+ def update!(**args)
116
+ @capacity = args[:capacity] if args.key?(:capacity)
117
+ @create_time = args[:create_time] if args.key?(:create_time)
118
+ @description = args[:description] if args.key?(:description)
119
+ @items = args[:items] if args.key?(:items)
120
+ @labels = args[:labels] if args.key?(:labels)
121
+ @name = args[:name] if args.key?(:name)
122
+ @self_link = args[:self_link] if args.key?(:self_link)
123
+ @type = args[:type] if args.key?(:type)
124
+ @update_time = args[:update_time] if args.key?(:update_time)
125
+ end
126
+ end
127
+
25
128
  # AuthorizationPolicy is a resource that specifies how a server should authorize
26
129
  # incoming connections. This resource in itself does not change the
27
130
  # configuration unless it's attached to a target https proxy or endpoint config
@@ -190,6 +293,40 @@ module Google
190
293
  end
191
294
  end
192
295
 
296
+ # Request used by the CloneAddressGroupItems method.
297
+ class CloneAddressGroupItemsRequest
298
+ include Google::Apis::Core::Hashable
299
+
300
+ # Optional. An optional request ID to identify requests. Specify a unique
301
+ # request ID so that if you must retry your request, the server will know to
302
+ # ignore the request if it has already been completed. The server will guarantee
303
+ # that for at least 60 minutes since the first request. For example, consider a
304
+ # situation where you make an initial request and the request times out. If you
305
+ # make the request again with the same request ID, the server can check if
306
+ # original operation with the same request ID was received, and if so, will
307
+ # ignore the second request. This prevents clients from accidentally creating
308
+ # duplicate commitments. The request ID must be a valid UUID with the exception
309
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
310
+ # Corresponds to the JSON property `requestId`
311
+ # @return [String]
312
+ attr_accessor :request_id
313
+
314
+ # Required. Source address group to clone items from.
315
+ # Corresponds to the JSON property `sourceAddressGroup`
316
+ # @return [String]
317
+ attr_accessor :source_address_group
318
+
319
+ def initialize(**args)
320
+ update!(**args)
321
+ end
322
+
323
+ # Update properties of this object
324
+ def update!(**args)
325
+ @request_id = args[:request_id] if args.key?(:request_id)
326
+ @source_address_group = args[:source_address_group] if args.key?(:source_address_group)
327
+ end
328
+ end
329
+
193
330
  # Specification of traffic destination attributes.
194
331
  class Destination
195
332
  include Google::Apis::Core::Hashable
@@ -716,6 +853,85 @@ module Google
716
853
  end
717
854
  end
718
855
 
856
+ # Response of the ListAddressGroupReferences method.
857
+ class ListAddressGroupReferencesResponse
858
+ include Google::Apis::Core::Hashable
859
+
860
+ # A list of references that matches the specified filter in the request.
861
+ # Corresponds to the JSON property `addressGroupReferences`
862
+ # @return [Array<Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponseAddressGroupReference>]
863
+ attr_accessor :address_group_references
864
+
865
+ # If there might be more results than those appearing in this response, then `
866
+ # next_page_token` is included. To get the next set of results, call this method
867
+ # again using the value of `next_page_token` as `page_token`.
868
+ # Corresponds to the JSON property `nextPageToken`
869
+ # @return [String]
870
+ attr_accessor :next_page_token
871
+
872
+ def initialize(**args)
873
+ update!(**args)
874
+ end
875
+
876
+ # Update properties of this object
877
+ def update!(**args)
878
+ @address_group_references = args[:address_group_references] if args.key?(:address_group_references)
879
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
880
+ end
881
+ end
882
+
883
+ # The Reference of AddressGroup.
884
+ class ListAddressGroupReferencesResponseAddressGroupReference
885
+ include Google::Apis::Core::Hashable
886
+
887
+ # FirewallPolicy that is using the Address Group.
888
+ # Corresponds to the JSON property `firewallPolicy`
889
+ # @return [String]
890
+ attr_accessor :firewall_policy
891
+
892
+ # Rule priority of the FirewallPolicy that is using the Address Group.
893
+ # Corresponds to the JSON property `rulePriority`
894
+ # @return [Fixnum]
895
+ attr_accessor :rule_priority
896
+
897
+ def initialize(**args)
898
+ update!(**args)
899
+ end
900
+
901
+ # Update properties of this object
902
+ def update!(**args)
903
+ @firewall_policy = args[:firewall_policy] if args.key?(:firewall_policy)
904
+ @rule_priority = args[:rule_priority] if args.key?(:rule_priority)
905
+ end
906
+ end
907
+
908
+ # Response returned by the ListAddressGroups method.
909
+ class ListAddressGroupsResponse
910
+ include Google::Apis::Core::Hashable
911
+
912
+ # List of AddressGroups resources.
913
+ # Corresponds to the JSON property `addressGroups`
914
+ # @return [Array<Google::Apis::NetworksecurityV1beta1::AddressGroup>]
915
+ attr_accessor :address_groups
916
+
917
+ # If there might be more results than those appearing in this response, then `
918
+ # next_page_token` is included. To get the next set of results, call this method
919
+ # again using the value of `next_page_token` as `page_token`.
920
+ # Corresponds to the JSON property `nextPageToken`
921
+ # @return [String]
922
+ attr_accessor :next_page_token
923
+
924
+ def initialize(**args)
925
+ update!(**args)
926
+ end
927
+
928
+ # Update properties of this object
929
+ def update!(**args)
930
+ @address_groups = args[:address_groups] if args.key?(:address_groups)
931
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
932
+ end
933
+ end
934
+
719
935
  # Response returned by the ListAuthorizationPolicies method.
720
936
  class ListAuthorizationPoliciesResponse
721
937
  include Google::Apis::Core::Hashable
@@ -1035,6 +1251,40 @@ module Google
1035
1251
  end
1036
1252
  end
1037
1253
 
1254
+ # Request used by the RemoveAddressGroupItems method.
1255
+ class RemoveAddressGroupItemsRequest
1256
+ include Google::Apis::Core::Hashable
1257
+
1258
+ # Required. List of items to remove.
1259
+ # Corresponds to the JSON property `items`
1260
+ # @return [Array<String>]
1261
+ attr_accessor :items
1262
+
1263
+ # Optional. An optional request ID to identify requests. Specify a unique
1264
+ # request ID so that if you must retry your request, the server will know to
1265
+ # ignore the request if it has already been completed. The server will guarantee
1266
+ # that for at least 60 minutes since the first request. For example, consider a
1267
+ # situation where you make an initial request and the request times out. If you
1268
+ # make the request again with the same request ID, the server can check if
1269
+ # original operation with the same request ID was received, and if so, will
1270
+ # ignore the second request. This prevents clients from accidentally creating
1271
+ # duplicate commitments. The request ID must be a valid UUID with the exception
1272
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
1273
+ # Corresponds to the JSON property `requestId`
1274
+ # @return [String]
1275
+ attr_accessor :request_id
1276
+
1277
+ def initialize(**args)
1278
+ update!(**args)
1279
+ end
1280
+
1281
+ # Update properties of this object
1282
+ def update!(**args)
1283
+ @items = args[:items] if args.key?(:items)
1284
+ @request_id = args[:request_id] if args.key?(:request_id)
1285
+ end
1286
+ end
1287
+
1038
1288
  # Specification of rules.
1039
1289
  class Rule
1040
1290
  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.16.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.1"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230130"
25
+ REVISION = "20230306"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module NetworksecurityV1beta1
24
24
 
25
+ class AddAddressGroupItemsRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AddressGroup
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class AuthorizationPolicy
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -46,6 +58,12 @@ module Google
46
58
  include Google::Apis::Core::JsonObjectSupport
47
59
  end
48
60
 
61
+ class CloneAddressGroupItemsRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
49
67
  class Destination
50
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
69
 
@@ -124,6 +142,24 @@ module Google
124
142
  include Google::Apis::Core::JsonObjectSupport
125
143
  end
126
144
 
145
+ class ListAddressGroupReferencesResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
151
+ class ListAddressGroupReferencesResponseAddressGroupReference
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
157
+ class ListAddressGroupsResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+
160
+ include Google::Apis::Core::JsonObjectSupport
161
+ end
162
+
127
163
  class ListAuthorizationPoliciesResponse
128
164
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
165
 
@@ -178,6 +214,12 @@ module Google
178
214
  include Google::Apis::Core::JsonObjectSupport
179
215
  end
180
216
 
217
+ class RemoveAddressGroupItemsRequest
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+
220
+ include Google::Apis::Core::JsonObjectSupport
221
+ end
222
+
181
223
  class Rule
182
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
183
225
 
@@ -208,6 +250,29 @@ module Google
208
250
  include Google::Apis::Core::JsonObjectSupport
209
251
  end
210
252
 
253
+ class AddAddressGroupItemsRequest
254
+ # @private
255
+ class Representation < Google::Apis::Core::JsonRepresentation
256
+ collection :items, as: 'items'
257
+ property :request_id, as: 'requestId'
258
+ end
259
+ end
260
+
261
+ class AddressGroup
262
+ # @private
263
+ class Representation < Google::Apis::Core::JsonRepresentation
264
+ property :capacity, as: 'capacity'
265
+ property :create_time, as: 'createTime'
266
+ property :description, as: 'description'
267
+ collection :items, as: 'items'
268
+ hash :labels, as: 'labels'
269
+ property :name, as: 'name'
270
+ property :self_link, as: 'selfLink'
271
+ property :type, as: 'type'
272
+ property :update_time, as: 'updateTime'
273
+ end
274
+ end
275
+
211
276
  class AuthorizationPolicy
212
277
  # @private
213
278
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -251,6 +316,14 @@ module Google
251
316
  end
252
317
  end
253
318
 
319
+ class CloneAddressGroupItemsRequest
320
+ # @private
321
+ class Representation < Google::Apis::Core::JsonRepresentation
322
+ property :request_id, as: 'requestId'
323
+ property :source_address_group, as: 'sourceAddressGroup'
324
+ end
325
+ end
326
+
254
327
  class Destination
255
328
  # @private
256
329
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -365,6 +438,32 @@ module Google
365
438
  end
366
439
  end
367
440
 
441
+ class ListAddressGroupReferencesResponse
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ collection :address_group_references, as: 'addressGroupReferences', class: Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponseAddressGroupReference, decorator: Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponseAddressGroupReference::Representation
445
+
446
+ property :next_page_token, as: 'nextPageToken'
447
+ end
448
+ end
449
+
450
+ class ListAddressGroupReferencesResponseAddressGroupReference
451
+ # @private
452
+ class Representation < Google::Apis::Core::JsonRepresentation
453
+ property :firewall_policy, as: 'firewallPolicy'
454
+ property :rule_priority, as: 'rulePriority'
455
+ end
456
+ end
457
+
458
+ class ListAddressGroupsResponse
459
+ # @private
460
+ class Representation < Google::Apis::Core::JsonRepresentation
461
+ collection :address_groups, as: 'addressGroups', class: Google::Apis::NetworksecurityV1beta1::AddressGroup, decorator: Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
462
+
463
+ property :next_page_token, as: 'nextPageToken'
464
+ end
465
+ end
466
+
368
467
  class ListAuthorizationPoliciesResponse
369
468
  # @private
370
469
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -454,6 +553,14 @@ module Google
454
553
  end
455
554
  end
456
555
 
556
+ class RemoveAddressGroupItemsRequest
557
+ # @private
558
+ class Representation < Google::Apis::Core::JsonRepresentation
559
+ collection :items, as: 'items'
560
+ property :request_id, as: 'requestId'
561
+ end
562
+ end
563
+
457
564
  class Rule
458
565
  # @private
459
566
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -49,6 +49,365 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
+ # Adds items to an address group.
53
+ # @param [String] address_group
54
+ # Required. A name of the AddressGroup to add items to. Must be in the format `
55
+ # projects|organization/*/locations/`location`/addressGroups/*`.
56
+ # @param [Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest] add_address_group_items_request_object
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def add_organization_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:addItems', options)
76
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest::Representation
77
+ command.request_object = add_address_group_items_request_object
78
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
79
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
80
+ command.params['addressGroup'] = address_group unless address_group.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ execute_or_queue_command(command, &block)
84
+ end
85
+
86
+ # Clones items from one address group to another.
87
+ # @param [String] address_group
88
+ # Required. A name of the AddressGroup to clone items to. Must be in the format `
89
+ # projects|organization/*/locations/`location`/addressGroups/*`.
90
+ # @param [Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest] clone_address_group_items_request_object
91
+ # @param [String] fields
92
+ # Selector specifying which fields to include in a partial response.
93
+ # @param [String] quota_user
94
+ # Available to use for quota purposes for server-side applications. Can be any
95
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
96
+ # @param [Google::Apis::RequestOptions] options
97
+ # Request-specific options
98
+ #
99
+ # @yield [result, err] Result & error if block supplied
100
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
101
+ # @yieldparam err [StandardError] error object if request failed
102
+ #
103
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
104
+ #
105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
108
+ def clone_organization_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
109
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:cloneItems', options)
110
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest::Representation
111
+ command.request_object = clone_address_group_items_request_object
112
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
113
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
114
+ command.params['addressGroup'] = address_group unless address_group.nil?
115
+ command.query['fields'] = fields unless fields.nil?
116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
117
+ execute_or_queue_command(command, &block)
118
+ end
119
+
120
+ # Creates a new address group in a given project and location.
121
+ # @param [String] parent
122
+ # Required. The parent resource of the AddressGroup. Must be in the format `
123
+ # projects/*/locations/`location``.
124
+ # @param [Google::Apis::NetworksecurityV1beta1::AddressGroup] address_group_object
125
+ # @param [String] address_group_id
126
+ # Required. Short name of the AddressGroup resource to be created. This value
127
+ # should be 1-63 characters long, containing only letters, numbers, hyphens, and
128
+ # underscores, and should not start with a number. E.g. "authz_policy".
129
+ # @param [String] request_id
130
+ # Optional. An optional request ID to identify requests. Specify a unique
131
+ # request ID so that if you must retry your request, the server will know to
132
+ # ignore the request if it has already been completed. The server will guarantee
133
+ # that for at least 60 minutes since the first request. For example, consider a
134
+ # situation where you make an initial request and the request times out. If you
135
+ # make the request again with the same request ID, the server can check if
136
+ # original operation with the same request ID was received, and if so, will
137
+ # ignore the second request. This prevents clients from accidentally creating
138
+ # duplicate commitments. The request ID must be a valid UUID with the exception
139
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
140
+ # @param [String] fields
141
+ # Selector specifying which fields to include in a partial response.
142
+ # @param [String] quota_user
143
+ # Available to use for quota purposes for server-side applications. Can be any
144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
145
+ # @param [Google::Apis::RequestOptions] options
146
+ # Request-specific options
147
+ #
148
+ # @yield [result, err] Result & error if block supplied
149
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
150
+ # @yieldparam err [StandardError] error object if request failed
151
+ #
152
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
153
+ #
154
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
157
+ def create_organization_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
158
+ command = make_simple_command(:post, 'v1beta1/{+parent}/addressGroups', options)
159
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
160
+ command.request_object = address_group_object
161
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
162
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
163
+ command.params['parent'] = parent unless parent.nil?
164
+ command.query['addressGroupId'] = address_group_id unless address_group_id.nil?
165
+ command.query['requestId'] = request_id unless request_id.nil?
166
+ command.query['fields'] = fields unless fields.nil?
167
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
168
+ execute_or_queue_command(command, &block)
169
+ end
170
+
171
+ # Deletes an address group.
172
+ # @param [String] name
173
+ # Required. A name of the AddressGroup to delete. Must be in the format `
174
+ # projects/*/locations/`location`/addressGroups/*`.
175
+ # @param [String] request_id
176
+ # Optional. An optional request ID to identify requests. Specify a unique
177
+ # request ID so that if you must retry your request, the server will know to
178
+ # ignore the request if it has already been completed. The server will guarantee
179
+ # that for at least 60 minutes since the first request. For example, consider a
180
+ # situation where you make an initial request and the request times out. If you
181
+ # make the request again with the same request ID, the server can check if
182
+ # original operation with the same request ID was received, and if so, will
183
+ # ignore the second request. This prevents clients from accidentally creating
184
+ # duplicate commitments. The request ID must be a valid UUID with the exception
185
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
186
+ # @param [String] fields
187
+ # Selector specifying which fields to include in a partial response.
188
+ # @param [String] quota_user
189
+ # Available to use for quota purposes for server-side applications. Can be any
190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [Google::Apis::RequestOptions] options
192
+ # Request-specific options
193
+ #
194
+ # @yield [result, err] Result & error if block supplied
195
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
196
+ # @yieldparam err [StandardError] error object if request failed
197
+ #
198
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
199
+ #
200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
203
+ def delete_organization_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
204
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
205
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
206
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
207
+ command.params['name'] = name unless name.nil?
208
+ command.query['requestId'] = request_id unless request_id.nil?
209
+ command.query['fields'] = fields unless fields.nil?
210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
211
+ execute_or_queue_command(command, &block)
212
+ end
213
+
214
+ # Gets details of a single address group.
215
+ # @param [String] name
216
+ # Required. A name of the AddressGroup to get. Must be in the format `projects/*/
217
+ # locations/`location`/addressGroups/*`.
218
+ # @param [String] fields
219
+ # Selector specifying which fields to include in a partial response.
220
+ # @param [String] quota_user
221
+ # Available to use for quota purposes for server-side applications. Can be any
222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
223
+ # @param [Google::Apis::RequestOptions] options
224
+ # Request-specific options
225
+ #
226
+ # @yield [result, err] Result & error if block supplied
227
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::AddressGroup] parsed result object
228
+ # @yieldparam err [StandardError] error object if request failed
229
+ #
230
+ # @return [Google::Apis::NetworksecurityV1beta1::AddressGroup]
231
+ #
232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
235
+ def get_organization_location_address_group(name, fields: nil, quota_user: nil, options: nil, &block)
236
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
237
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
238
+ command.response_class = Google::Apis::NetworksecurityV1beta1::AddressGroup
239
+ command.params['name'] = name unless name.nil?
240
+ command.query['fields'] = fields unless fields.nil?
241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
242
+ execute_or_queue_command(command, &block)
243
+ end
244
+
245
+ # Lists address groups in a given project and location.
246
+ # @param [String] parent
247
+ # Required. The project and location from which the AddressGroups should be
248
+ # listed, specified in the format `projects/*/locations/`location``.
249
+ # @param [Fixnum] page_size
250
+ # Maximum number of AddressGroups to return per call.
251
+ # @param [String] page_token
252
+ # The value returned by the last `ListAddressGroupsResponse` Indicates that this
253
+ # is a continuation of a prior `ListAddressGroups` call, and that the system
254
+ # should return the next page of data.
255
+ # @param [String] fields
256
+ # Selector specifying which fields to include in a partial response.
257
+ # @param [String] quota_user
258
+ # Available to use for quota purposes for server-side applications. Can be any
259
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
260
+ # @param [Google::Apis::RequestOptions] options
261
+ # Request-specific options
262
+ #
263
+ # @yield [result, err] Result & error if block supplied
264
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse] parsed result object
265
+ # @yieldparam err [StandardError] error object if request failed
266
+ #
267
+ # @return [Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse]
268
+ #
269
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
270
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
271
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
272
+ def list_organization_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
273
+ command = make_simple_command(:get, 'v1beta1/{+parent}/addressGroups', options)
274
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse::Representation
275
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse
276
+ command.params['parent'] = parent unless parent.nil?
277
+ command.query['pageSize'] = page_size unless page_size.nil?
278
+ command.query['pageToken'] = page_token unless page_token.nil?
279
+ command.query['fields'] = fields unless fields.nil?
280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
281
+ execute_or_queue_command(command, &block)
282
+ end
283
+
284
+ # Lists references of an address group.
285
+ # @param [String] address_group
286
+ # Required. A name of the AddressGroup to clone items to. Must be in the format `
287
+ # projects|organization/*/locations/`location`/addressGroups/*`.
288
+ # @param [Fixnum] page_size
289
+ # The maximum number of references to return. If unspecified, server will pick
290
+ # an appropriate default. Server may return fewer items than requested. A caller
291
+ # should only rely on response's next_page_token to determine if there are more
292
+ # AddressGroupUsers left to be queried.
293
+ # @param [String] page_token
294
+ # The next_page_token value returned from a previous List request, if any.
295
+ # @param [String] fields
296
+ # Selector specifying which fields to include in a partial response.
297
+ # @param [String] quota_user
298
+ # Available to use for quota purposes for server-side applications. Can be any
299
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
300
+ # @param [Google::Apis::RequestOptions] options
301
+ # Request-specific options
302
+ #
303
+ # @yield [result, err] Result & error if block supplied
304
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse] parsed result object
305
+ # @yieldparam err [StandardError] error object if request failed
306
+ #
307
+ # @return [Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse]
308
+ #
309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
312
+ def list_organization_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
313
+ command = make_simple_command(:get, 'v1beta1/{+addressGroup}:listReferences', options)
314
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse::Representation
315
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse
316
+ command.params['addressGroup'] = address_group unless address_group.nil?
317
+ command.query['pageSize'] = page_size unless page_size.nil?
318
+ command.query['pageToken'] = page_token unless page_token.nil?
319
+ command.query['fields'] = fields unless fields.nil?
320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
321
+ execute_or_queue_command(command, &block)
322
+ end
323
+
324
+ # Updates parameters of an address group.
325
+ # @param [String] name
326
+ # Required. Name of the AddressGroup resource. It matches pattern `projects/*/
327
+ # locations/`location`/addressGroups/`.
328
+ # @param [Google::Apis::NetworksecurityV1beta1::AddressGroup] address_group_object
329
+ # @param [String] request_id
330
+ # Optional. An optional request ID to identify requests. Specify a unique
331
+ # request ID so that if you must retry your request, the server will know to
332
+ # ignore the request if it has already been completed. The server will guarantee
333
+ # that for at least 60 minutes since the first request. For example, consider a
334
+ # situation where you make an initial request and the request times out. If you
335
+ # make the request again with the same request ID, the server can check if
336
+ # original operation with the same request ID was received, and if so, will
337
+ # ignore the second request. This prevents clients from accidentally creating
338
+ # duplicate commitments. The request ID must be a valid UUID with the exception
339
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
340
+ # @param [String] update_mask
341
+ # Optional. Field mask is used to specify the fields to be overwritten in the
342
+ # AddressGroup resource by the update. The fields specified in the update_mask
343
+ # are relative to the resource, not the full request. A field will be
344
+ # overwritten if it is in the mask. If the user does not provide a mask then all
345
+ # fields will be overwritten.
346
+ # @param [String] fields
347
+ # Selector specifying which fields to include in a partial response.
348
+ # @param [String] quota_user
349
+ # Available to use for quota purposes for server-side applications. Can be any
350
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
351
+ # @param [Google::Apis::RequestOptions] options
352
+ # Request-specific options
353
+ #
354
+ # @yield [result, err] Result & error if block supplied
355
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
356
+ # @yieldparam err [StandardError] error object if request failed
357
+ #
358
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
359
+ #
360
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
361
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
363
+ def patch_organization_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
364
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
365
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
366
+ command.request_object = address_group_object
367
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
368
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
369
+ command.params['name'] = name unless name.nil?
370
+ command.query['requestId'] = request_id unless request_id.nil?
371
+ command.query['updateMask'] = update_mask unless update_mask.nil?
372
+ command.query['fields'] = fields unless fields.nil?
373
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
374
+ execute_or_queue_command(command, &block)
375
+ end
376
+
377
+ # Removes items from an address group.
378
+ # @param [String] address_group
379
+ # Required. A name of the AddressGroup to remove items from. Must be in the
380
+ # format `projects|organization/*/locations/`location`/addressGroups/*`.
381
+ # @param [Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest] remove_address_group_items_request_object
382
+ # @param [String] fields
383
+ # Selector specifying which fields to include in a partial response.
384
+ # @param [String] quota_user
385
+ # Available to use for quota purposes for server-side applications. Can be any
386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
387
+ # @param [Google::Apis::RequestOptions] options
388
+ # Request-specific options
389
+ #
390
+ # @yield [result, err] Result & error if block supplied
391
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
392
+ # @yieldparam err [StandardError] error object if request failed
393
+ #
394
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
395
+ #
396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
399
+ def remove_organization_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:removeItems', options)
401
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest::Representation
402
+ command.request_object = remove_address_group_items_request_object
403
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
404
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
405
+ command.params['addressGroup'] = address_group unless address_group.nil?
406
+ command.query['fields'] = fields unless fields.nil?
407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
408
+ execute_or_queue_command(command, &block)
409
+ end
410
+
52
411
  # Starts asynchronous cancellation on a long-running operation. The server makes
53
412
  # a best effort to cancel the operation, but success is not guaranteed. If the
54
413
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -154,13 +513,7 @@ module Google
154
513
  end
155
514
 
156
515
  # Lists operations that match the specified filter in the request. If the server
157
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
158
- # binding allows API services to override the binding to use different resource
159
- # name schemes, such as `users/*/operations`. To override the binding, API
160
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
161
- # service configuration. For backwards compatibility, the default name includes
162
- # the operations collection id, however overriding users must ensure the name
163
- # binding is the parent resource, without the operations collection id.
516
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
164
517
  # @param [String] name
165
518
  # The name of the operation's parent resource.
166
519
  # @param [String] filter
@@ -272,6 +625,199 @@ module Google
272
625
  execute_or_queue_command(command, &block)
273
626
  end
274
627
 
628
+ # Adds items to an address group.
629
+ # @param [String] address_group
630
+ # Required. A name of the AddressGroup to add items to. Must be in the format `
631
+ # projects|organization/*/locations/`location`/addressGroups/*`.
632
+ # @param [Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest] add_address_group_items_request_object
633
+ # @param [String] fields
634
+ # Selector specifying which fields to include in a partial response.
635
+ # @param [String] quota_user
636
+ # Available to use for quota purposes for server-side applications. Can be any
637
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
638
+ # @param [Google::Apis::RequestOptions] options
639
+ # Request-specific options
640
+ #
641
+ # @yield [result, err] Result & error if block supplied
642
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
643
+ # @yieldparam err [StandardError] error object if request failed
644
+ #
645
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
646
+ #
647
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
650
+ def add_project_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
651
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:addItems', options)
652
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest::Representation
653
+ command.request_object = add_address_group_items_request_object
654
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
655
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
656
+ command.params['addressGroup'] = address_group unless address_group.nil?
657
+ command.query['fields'] = fields unless fields.nil?
658
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
659
+ execute_or_queue_command(command, &block)
660
+ end
661
+
662
+ # Clones items from one address group to another.
663
+ # @param [String] address_group
664
+ # Required. A name of the AddressGroup to clone items to. Must be in the format `
665
+ # projects|organization/*/locations/`location`/addressGroups/*`.
666
+ # @param [Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest] clone_address_group_items_request_object
667
+ # @param [String] fields
668
+ # Selector specifying which fields to include in a partial response.
669
+ # @param [String] quota_user
670
+ # Available to use for quota purposes for server-side applications. Can be any
671
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
672
+ # @param [Google::Apis::RequestOptions] options
673
+ # Request-specific options
674
+ #
675
+ # @yield [result, err] Result & error if block supplied
676
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
677
+ # @yieldparam err [StandardError] error object if request failed
678
+ #
679
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
680
+ #
681
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
682
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
683
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
684
+ def clone_project_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
685
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:cloneItems', options)
686
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest::Representation
687
+ command.request_object = clone_address_group_items_request_object
688
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
689
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
690
+ command.params['addressGroup'] = address_group unless address_group.nil?
691
+ command.query['fields'] = fields unless fields.nil?
692
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
693
+ execute_or_queue_command(command, &block)
694
+ end
695
+
696
+ # Creates a new address group in a given project and location.
697
+ # @param [String] parent
698
+ # Required. The parent resource of the AddressGroup. Must be in the format `
699
+ # projects/*/locations/`location``.
700
+ # @param [Google::Apis::NetworksecurityV1beta1::AddressGroup] address_group_object
701
+ # @param [String] address_group_id
702
+ # Required. Short name of the AddressGroup resource to be created. This value
703
+ # should be 1-63 characters long, containing only letters, numbers, hyphens, and
704
+ # underscores, and should not start with a number. E.g. "authz_policy".
705
+ # @param [String] request_id
706
+ # Optional. An optional request ID to identify requests. Specify a unique
707
+ # request ID so that if you must retry your request, the server will know to
708
+ # ignore the request if it has already been completed. The server will guarantee
709
+ # that for at least 60 minutes since the first request. For example, consider a
710
+ # situation where you make an initial request and the request times out. If you
711
+ # make the request again with the same request ID, the server can check if
712
+ # original operation with the same request ID was received, and if so, will
713
+ # ignore the second request. This prevents clients from accidentally creating
714
+ # duplicate commitments. The request ID must be a valid UUID with the exception
715
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
716
+ # @param [String] fields
717
+ # Selector specifying which fields to include in a partial response.
718
+ # @param [String] quota_user
719
+ # Available to use for quota purposes for server-side applications. Can be any
720
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
721
+ # @param [Google::Apis::RequestOptions] options
722
+ # Request-specific options
723
+ #
724
+ # @yield [result, err] Result & error if block supplied
725
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
726
+ # @yieldparam err [StandardError] error object if request failed
727
+ #
728
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
729
+ #
730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
733
+ def create_project_location_address_group(parent, address_group_object = nil, address_group_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
734
+ command = make_simple_command(:post, 'v1beta1/{+parent}/addressGroups', options)
735
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
736
+ command.request_object = address_group_object
737
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
738
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
739
+ command.params['parent'] = parent unless parent.nil?
740
+ command.query['addressGroupId'] = address_group_id unless address_group_id.nil?
741
+ command.query['requestId'] = request_id unless request_id.nil?
742
+ command.query['fields'] = fields unless fields.nil?
743
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
744
+ execute_or_queue_command(command, &block)
745
+ end
746
+
747
+ # Deletes a single address group.
748
+ # @param [String] name
749
+ # Required. A name of the AddressGroup to delete. Must be in the format `
750
+ # projects/*/locations/`location`/addressGroups/*`.
751
+ # @param [String] request_id
752
+ # Optional. An optional request ID to identify requests. Specify a unique
753
+ # request ID so that if you must retry your request, the server will know to
754
+ # ignore the request if it has already been completed. The server will guarantee
755
+ # that for at least 60 minutes since the first request. For example, consider a
756
+ # situation where you make an initial request and the request times out. If you
757
+ # make the request again with the same request ID, the server can check if
758
+ # original operation with the same request ID was received, and if so, will
759
+ # ignore the second request. This prevents clients from accidentally creating
760
+ # duplicate commitments. The request ID must be a valid UUID with the exception
761
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
762
+ # @param [String] fields
763
+ # Selector specifying which fields to include in a partial response.
764
+ # @param [String] quota_user
765
+ # Available to use for quota purposes for server-side applications. Can be any
766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
767
+ # @param [Google::Apis::RequestOptions] options
768
+ # Request-specific options
769
+ #
770
+ # @yield [result, err] Result & error if block supplied
771
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
772
+ # @yieldparam err [StandardError] error object if request failed
773
+ #
774
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
775
+ #
776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779
+ def delete_project_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
780
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
781
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
782
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
783
+ command.params['name'] = name unless name.nil?
784
+ command.query['requestId'] = request_id unless request_id.nil?
785
+ command.query['fields'] = fields unless fields.nil?
786
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
787
+ execute_or_queue_command(command, &block)
788
+ end
789
+
790
+ # Gets details of a single address group.
791
+ # @param [String] name
792
+ # Required. A name of the AddressGroup to get. Must be in the format `projects/*/
793
+ # locations/`location`/addressGroups/*`.
794
+ # @param [String] fields
795
+ # Selector specifying which fields to include in a partial response.
796
+ # @param [String] quota_user
797
+ # Available to use for quota purposes for server-side applications. Can be any
798
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
799
+ # @param [Google::Apis::RequestOptions] options
800
+ # Request-specific options
801
+ #
802
+ # @yield [result, err] Result & error if block supplied
803
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::AddressGroup] parsed result object
804
+ # @yieldparam err [StandardError] error object if request failed
805
+ #
806
+ # @return [Google::Apis::NetworksecurityV1beta1::AddressGroup]
807
+ #
808
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
809
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
810
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
811
+ def get_project_location_address_group(name, fields: nil, quota_user: nil, options: nil, &block)
812
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
813
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
814
+ command.response_class = Google::Apis::NetworksecurityV1beta1::AddressGroup
815
+ command.params['name'] = name unless name.nil?
816
+ command.query['fields'] = fields unless fields.nil?
817
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
818
+ execute_or_queue_command(command, &block)
819
+ end
820
+
275
821
  # Gets the access control policy for a resource. Returns an empty policy if the
276
822
  # resource exists and does not have a policy set.
277
823
  # @param [String] resource
@@ -317,6 +863,172 @@ module Google
317
863
  execute_or_queue_command(command, &block)
318
864
  end
319
865
 
866
+ # Lists address groups in a given project and location.
867
+ # @param [String] parent
868
+ # Required. The project and location from which the AddressGroups should be
869
+ # listed, specified in the format `projects/*/locations/`location``.
870
+ # @param [Fixnum] page_size
871
+ # Maximum number of AddressGroups to return per call.
872
+ # @param [String] page_token
873
+ # The value returned by the last `ListAddressGroupsResponse` Indicates that this
874
+ # is a continuation of a prior `ListAddressGroups` call, and that the system
875
+ # should return the next page of data.
876
+ # @param [String] fields
877
+ # Selector specifying which fields to include in a partial response.
878
+ # @param [String] quota_user
879
+ # Available to use for quota purposes for server-side applications. Can be any
880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
881
+ # @param [Google::Apis::RequestOptions] options
882
+ # Request-specific options
883
+ #
884
+ # @yield [result, err] Result & error if block supplied
885
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse] parsed result object
886
+ # @yieldparam err [StandardError] error object if request failed
887
+ #
888
+ # @return [Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse]
889
+ #
890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
893
+ def list_project_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:get, 'v1beta1/{+parent}/addressGroups', options)
895
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse::Representation
896
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse
897
+ command.params['parent'] = parent unless parent.nil?
898
+ command.query['pageSize'] = page_size unless page_size.nil?
899
+ command.query['pageToken'] = page_token unless page_token.nil?
900
+ command.query['fields'] = fields unless fields.nil?
901
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
902
+ execute_or_queue_command(command, &block)
903
+ end
904
+
905
+ # Lists references of an address group.
906
+ # @param [String] address_group
907
+ # Required. A name of the AddressGroup to clone items to. Must be in the format `
908
+ # projects|organization/*/locations/`location`/addressGroups/*`.
909
+ # @param [Fixnum] page_size
910
+ # The maximum number of references to return. If unspecified, server will pick
911
+ # an appropriate default. Server may return fewer items than requested. A caller
912
+ # should only rely on response's next_page_token to determine if there are more
913
+ # AddressGroupUsers left to be queried.
914
+ # @param [String] page_token
915
+ # The next_page_token value returned from a previous List request, if any.
916
+ # @param [String] fields
917
+ # Selector specifying which fields to include in a partial response.
918
+ # @param [String] quota_user
919
+ # Available to use for quota purposes for server-side applications. Can be any
920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
921
+ # @param [Google::Apis::RequestOptions] options
922
+ # Request-specific options
923
+ #
924
+ # @yield [result, err] Result & error if block supplied
925
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse] parsed result object
926
+ # @yieldparam err [StandardError] error object if request failed
927
+ #
928
+ # @return [Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse]
929
+ #
930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
933
+ def list_project_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
934
+ command = make_simple_command(:get, 'v1beta1/{+addressGroup}:listReferences', options)
935
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse::Representation
936
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse
937
+ command.params['addressGroup'] = address_group unless address_group.nil?
938
+ command.query['pageSize'] = page_size unless page_size.nil?
939
+ command.query['pageToken'] = page_token unless page_token.nil?
940
+ command.query['fields'] = fields unless fields.nil?
941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
942
+ execute_or_queue_command(command, &block)
943
+ end
944
+
945
+ # Updates the parameters of a single address group.
946
+ # @param [String] name
947
+ # Required. Name of the AddressGroup resource. It matches pattern `projects/*/
948
+ # locations/`location`/addressGroups/`.
949
+ # @param [Google::Apis::NetworksecurityV1beta1::AddressGroup] address_group_object
950
+ # @param [String] request_id
951
+ # Optional. An optional request ID to identify requests. Specify a unique
952
+ # request ID so that if you must retry your request, the server will know to
953
+ # ignore the request if it has already been completed. The server will guarantee
954
+ # that for at least 60 minutes since the first request. For example, consider a
955
+ # situation where you make an initial request and the request times out. If you
956
+ # make the request again with the same request ID, the server can check if
957
+ # original operation with the same request ID was received, and if so, will
958
+ # ignore the second request. This prevents clients from accidentally creating
959
+ # duplicate commitments. The request ID must be a valid UUID with the exception
960
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
961
+ # @param [String] update_mask
962
+ # Optional. Field mask is used to specify the fields to be overwritten in the
963
+ # AddressGroup resource by the update. The fields specified in the update_mask
964
+ # are relative to the resource, not the full request. A field will be
965
+ # overwritten if it is in the mask. If the user does not provide a mask then all
966
+ # fields will be overwritten.
967
+ # @param [String] fields
968
+ # Selector specifying which fields to include in a partial response.
969
+ # @param [String] quota_user
970
+ # Available to use for quota purposes for server-side applications. Can be any
971
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
972
+ # @param [Google::Apis::RequestOptions] options
973
+ # Request-specific options
974
+ #
975
+ # @yield [result, err] Result & error if block supplied
976
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
977
+ # @yieldparam err [StandardError] error object if request failed
978
+ #
979
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
980
+ #
981
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
982
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
983
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
984
+ def patch_project_location_address_group(name, address_group_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
985
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
986
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
987
+ command.request_object = address_group_object
988
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
989
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
990
+ command.params['name'] = name unless name.nil?
991
+ command.query['requestId'] = request_id unless request_id.nil?
992
+ command.query['updateMask'] = update_mask unless update_mask.nil?
993
+ command.query['fields'] = fields unless fields.nil?
994
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
995
+ execute_or_queue_command(command, &block)
996
+ end
997
+
998
+ # Removes items from an address group.
999
+ # @param [String] address_group
1000
+ # Required. A name of the AddressGroup to remove items from. Must be in the
1001
+ # format `projects|organization/*/locations/`location`/addressGroups/*`.
1002
+ # @param [Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest] remove_address_group_items_request_object
1003
+ # @param [String] fields
1004
+ # Selector specifying which fields to include in a partial response.
1005
+ # @param [String] quota_user
1006
+ # Available to use for quota purposes for server-side applications. Can be any
1007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1008
+ # @param [Google::Apis::RequestOptions] options
1009
+ # Request-specific options
1010
+ #
1011
+ # @yield [result, err] Result & error if block supplied
1012
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
1013
+ # @yieldparam err [StandardError] error object if request failed
1014
+ #
1015
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
1016
+ #
1017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1020
+ def remove_project_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1021
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:removeItems', options)
1022
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest::Representation
1023
+ command.request_object = remove_address_group_items_request_object
1024
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1025
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1026
+ command.params['addressGroup'] = address_group unless address_group.nil?
1027
+ command.query['fields'] = fields unless fields.nil?
1028
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1029
+ execute_or_queue_command(command, &block)
1030
+ end
1031
+
320
1032
  # Sets the access control policy on the specified resource. Replaces any
321
1033
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
322
1034
  # PERMISSION_DENIED` errors.
@@ -1103,13 +1815,7 @@ module Google
1103
1815
  end
1104
1816
 
1105
1817
  # Lists operations that match the specified filter in the request. If the server
1106
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
1107
- # binding allows API services to override the binding to use different resource
1108
- # name schemes, such as `users/*/operations`. To override the binding, API
1109
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
1110
- # service configuration. For backwards compatibility, the default name includes
1111
- # the operations collection id, however overriding users must ensure the name
1112
- # binding is the parent resource, without the operations collection id.
1818
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
1113
1819
  # @param [String] name
1114
1820
  # The name of the operation's parent resource.
1115
1821
  # @param [String] filter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networksecurity_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-12 00:00:00.000000000 Z
11
+ date: 2023-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1beta1/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1beta1/v0.18.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []