google-apis-networksecurity_v1beta1 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93803daad782509c7a44e226197bfb75287b6021fc8448f67178f9b979ad8359
4
- data.tar.gz: d80e948304130439cda4ad2373b800984b8c4f6888741d022f594b7465d39208
3
+ metadata.gz: d5b5dd342ebf5fc307d0723277aaaa9c5263146cfc62b5381c1cdb4f2c4a50a7
4
+ data.tar.gz: 1f67f711b4a6933236ee90369ea55de0179b9c2be23f2654b941826b996ee0e5
5
5
  SHA512:
6
- metadata.gz: 24a4b2acbf795acd9f346ecec0b75d002675679c9617fea9d3201695ec4c1c152edfa9fefa4ee1de1536004e2f963f35408989bb9264bdf8c88994296e339415
7
- data.tar.gz: b096d9f1dc337916fce23edf93141c88298c507005f32589059fd4200f9e7f5c3caaa33f8fb8c17d2d8850c89c49fc58f404c91e361a4fea6a183c4a4103b019
6
+ metadata.gz: 73a4733026be8513cefbfef500be148c1f5a78cdccb3f87dc9584be6c284cb2548681b571546239c599d31e9bdeace40bdf82ee0732fe4929a8bbd0803481992
7
+ data.tar.gz: 199e76e31ebc5a9075b6c2c7647a6488e98ffe233ada6b45f283a40a8325bd6cd877af55d02e0b613777567dc4ed7ddcd971784f203f3509a6a22397c7d09b31
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-networksecurity_v1beta1
2
2
 
3
+ ### v0.17.0 (2023-02-26)
4
+
5
+ * Regenerated from discovery document revision 20230208
6
+ * Regenerated using generator version 0.12.0
7
+
3
8
  ### v0.16.0 (2023-02-12)
4
9
 
5
10
  * 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 t he 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 t he 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 t he 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.17.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 = "20230208"
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 t he 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 t he 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 t he 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`.
@@ -272,6 +631,199 @@ module Google
272
631
  execute_or_queue_command(command, &block)
273
632
  end
274
633
 
634
+ # Adds items to an address group.
635
+ # @param [String] address_group
636
+ # Required. A name of the AddressGroup to add items to. Must be in the format `
637
+ # projects|organization/*/locations/`location`/addressGroups/*`.
638
+ # @param [Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest] add_address_group_items_request_object
639
+ # @param [String] fields
640
+ # Selector specifying which fields to include in a partial response.
641
+ # @param [String] quota_user
642
+ # Available to use for quota purposes for server-side applications. Can be any
643
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
644
+ # @param [Google::Apis::RequestOptions] options
645
+ # Request-specific options
646
+ #
647
+ # @yield [result, err] Result & error if block supplied
648
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
649
+ # @yieldparam err [StandardError] error object if request failed
650
+ #
651
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
652
+ #
653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
656
+ def add_project_location_address_group_items(address_group, add_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
657
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:addItems', options)
658
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddAddressGroupItemsRequest::Representation
659
+ command.request_object = add_address_group_items_request_object
660
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
661
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
662
+ command.params['addressGroup'] = address_group unless address_group.nil?
663
+ command.query['fields'] = fields unless fields.nil?
664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
665
+ execute_or_queue_command(command, &block)
666
+ end
667
+
668
+ # Clones items from one address group to another.
669
+ # @param [String] address_group
670
+ # Required. A name of the AddressGroup to clone items to. Must be in the format `
671
+ # projects|organization/*/locations/`location`/addressGroups/*`.
672
+ # @param [Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest] clone_address_group_items_request_object
673
+ # @param [String] fields
674
+ # Selector specifying which fields to include in a partial response.
675
+ # @param [String] quota_user
676
+ # Available to use for quota purposes for server-side applications. Can be any
677
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
678
+ # @param [Google::Apis::RequestOptions] options
679
+ # Request-specific options
680
+ #
681
+ # @yield [result, err] Result & error if block supplied
682
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
683
+ # @yieldparam err [StandardError] error object if request failed
684
+ #
685
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
686
+ #
687
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
688
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
689
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
690
+ def clone_project_location_address_group_items(address_group, clone_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
691
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:cloneItems', options)
692
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::CloneAddressGroupItemsRequest::Representation
693
+ command.request_object = clone_address_group_items_request_object
694
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
695
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
696
+ command.params['addressGroup'] = address_group unless address_group.nil?
697
+ command.query['fields'] = fields unless fields.nil?
698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
699
+ execute_or_queue_command(command, &block)
700
+ end
701
+
702
+ # Creates a new address group in a given project and location.
703
+ # @param [String] parent
704
+ # Required. The parent resource of the AddressGroup. Must be in the format `
705
+ # projects/*/locations/`location``.
706
+ # @param [Google::Apis::NetworksecurityV1beta1::AddressGroup] address_group_object
707
+ # @param [String] address_group_id
708
+ # Required. Short name of the AddressGroup resource to be created. This value
709
+ # should be 1-63 characters long, containing only letters, numbers, hyphens, and
710
+ # underscores, and should not start with a number. E.g. "authz_policy".
711
+ # @param [String] request_id
712
+ # Optional. An optional request ID to identify requests. Specify a unique
713
+ # request ID so that if you must retry your request, the server will know to
714
+ # ignore the request if it has already been completed. The server will guarantee
715
+ # that for at least 60 minutes since the first request. For example, consider a
716
+ # situation where you make an initial request and t he request times out. If you
717
+ # make the request again with the same request ID, the server can check if
718
+ # original operation with the same request ID was received, and if so, will
719
+ # ignore the second request. This prevents clients from accidentally creating
720
+ # duplicate commitments. The request ID must be a valid UUID with the exception
721
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
722
+ # @param [String] fields
723
+ # Selector specifying which fields to include in a partial response.
724
+ # @param [String] quota_user
725
+ # Available to use for quota purposes for server-side applications. Can be any
726
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
727
+ # @param [Google::Apis::RequestOptions] options
728
+ # Request-specific options
729
+ #
730
+ # @yield [result, err] Result & error if block supplied
731
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
732
+ # @yieldparam err [StandardError] error object if request failed
733
+ #
734
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
735
+ #
736
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
737
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
738
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
739
+ 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)
740
+ command = make_simple_command(:post, 'v1beta1/{+parent}/addressGroups', options)
741
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
742
+ command.request_object = address_group_object
743
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
744
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
745
+ command.params['parent'] = parent unless parent.nil?
746
+ command.query['addressGroupId'] = address_group_id unless address_group_id.nil?
747
+ command.query['requestId'] = request_id unless request_id.nil?
748
+ command.query['fields'] = fields unless fields.nil?
749
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
750
+ execute_or_queue_command(command, &block)
751
+ end
752
+
753
+ # Deletes a single address group.
754
+ # @param [String] name
755
+ # Required. A name of the AddressGroup to delete. Must be in the format `
756
+ # projects/*/locations/`location`/addressGroups/*`.
757
+ # @param [String] request_id
758
+ # Optional. An optional request ID to identify requests. Specify a unique
759
+ # request ID so that if you must retry your request, the server will know to
760
+ # ignore the request if it has already been completed. The server will guarantee
761
+ # that for at least 60 minutes since the first request. For example, consider a
762
+ # situation where you make an initial request and t he request times out. If you
763
+ # make the request again with the same request ID, the server can check if
764
+ # original operation with the same request ID was received, and if so, will
765
+ # ignore the second request. This prevents clients from accidentally creating
766
+ # duplicate commitments. The request ID must be a valid UUID with the exception
767
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
768
+ # @param [String] fields
769
+ # Selector specifying which fields to include in a partial response.
770
+ # @param [String] quota_user
771
+ # Available to use for quota purposes for server-side applications. Can be any
772
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
773
+ # @param [Google::Apis::RequestOptions] options
774
+ # Request-specific options
775
+ #
776
+ # @yield [result, err] Result & error if block supplied
777
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
778
+ # @yieldparam err [StandardError] error object if request failed
779
+ #
780
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
781
+ #
782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
785
+ def delete_project_location_address_group(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
786
+ command = make_simple_command(:delete, 'v1beta1/{+name}', options)
787
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
788
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
789
+ command.params['name'] = name unless name.nil?
790
+ command.query['requestId'] = request_id unless request_id.nil?
791
+ command.query['fields'] = fields unless fields.nil?
792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
793
+ execute_or_queue_command(command, &block)
794
+ end
795
+
796
+ # Gets details of a single address group.
797
+ # @param [String] name
798
+ # Required. A name of the AddressGroup to get. Must be in the format `projects/*/
799
+ # locations/`location`/addressGroups/*`.
800
+ # @param [String] fields
801
+ # Selector specifying which fields to include in a partial response.
802
+ # @param [String] quota_user
803
+ # Available to use for quota purposes for server-side applications. Can be any
804
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
805
+ # @param [Google::Apis::RequestOptions] options
806
+ # Request-specific options
807
+ #
808
+ # @yield [result, err] Result & error if block supplied
809
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::AddressGroup] parsed result object
810
+ # @yieldparam err [StandardError] error object if request failed
811
+ #
812
+ # @return [Google::Apis::NetworksecurityV1beta1::AddressGroup]
813
+ #
814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
817
+ def get_project_location_address_group(name, fields: nil, quota_user: nil, options: nil, &block)
818
+ command = make_simple_command(:get, 'v1beta1/{+name}', options)
819
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
820
+ command.response_class = Google::Apis::NetworksecurityV1beta1::AddressGroup
821
+ command.params['name'] = name unless name.nil?
822
+ command.query['fields'] = fields unless fields.nil?
823
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
824
+ execute_or_queue_command(command, &block)
825
+ end
826
+
275
827
  # Gets the access control policy for a resource. Returns an empty policy if the
276
828
  # resource exists and does not have a policy set.
277
829
  # @param [String] resource
@@ -317,6 +869,172 @@ module Google
317
869
  execute_or_queue_command(command, &block)
318
870
  end
319
871
 
872
+ # Lists address groups in a given project and location.
873
+ # @param [String] parent
874
+ # Required. The project and location from which the AddressGroups should be
875
+ # listed, specified in the format `projects/*/locations/`location``.
876
+ # @param [Fixnum] page_size
877
+ # Maximum number of AddressGroups to return per call.
878
+ # @param [String] page_token
879
+ # The value returned by the last `ListAddressGroupsResponse` Indicates that this
880
+ # is a continuation of a prior `ListAddressGroups` call, and that the system
881
+ # should return the next page of data.
882
+ # @param [String] fields
883
+ # Selector specifying which fields to include in a partial response.
884
+ # @param [String] quota_user
885
+ # Available to use for quota purposes for server-side applications. Can be any
886
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
887
+ # @param [Google::Apis::RequestOptions] options
888
+ # Request-specific options
889
+ #
890
+ # @yield [result, err] Result & error if block supplied
891
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse] parsed result object
892
+ # @yieldparam err [StandardError] error object if request failed
893
+ #
894
+ # @return [Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse]
895
+ #
896
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
897
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
898
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
899
+ def list_project_location_address_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
900
+ command = make_simple_command(:get, 'v1beta1/{+parent}/addressGroups', options)
901
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse::Representation
902
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupsResponse
903
+ command.params['parent'] = parent unless parent.nil?
904
+ command.query['pageSize'] = page_size unless page_size.nil?
905
+ command.query['pageToken'] = page_token unless page_token.nil?
906
+ command.query['fields'] = fields unless fields.nil?
907
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
908
+ execute_or_queue_command(command, &block)
909
+ end
910
+
911
+ # Lists references of an address group.
912
+ # @param [String] address_group
913
+ # Required. A name of the AddressGroup to clone items to. Must be in the format `
914
+ # projects|organization/*/locations/`location`/addressGroups/*`.
915
+ # @param [Fixnum] page_size
916
+ # The maximum number of references to return. If unspecified, server will pick
917
+ # an appropriate default. Server may return fewer items than requested. A caller
918
+ # should only rely on response's next_page_token to determine if there are more
919
+ # AddressGroupUsers left to be queried.
920
+ # @param [String] page_token
921
+ # The next_page_token value returned from a previous List request, if any.
922
+ # @param [String] fields
923
+ # Selector specifying which fields to include in a partial response.
924
+ # @param [String] quota_user
925
+ # Available to use for quota purposes for server-side applications. Can be any
926
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
927
+ # @param [Google::Apis::RequestOptions] options
928
+ # Request-specific options
929
+ #
930
+ # @yield [result, err] Result & error if block supplied
931
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse] parsed result object
932
+ # @yieldparam err [StandardError] error object if request failed
933
+ #
934
+ # @return [Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse]
935
+ #
936
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
937
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
938
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
939
+ def list_project_location_address_group_references(address_group, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
940
+ command = make_simple_command(:get, 'v1beta1/{+addressGroup}:listReferences', options)
941
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse::Representation
942
+ command.response_class = Google::Apis::NetworksecurityV1beta1::ListAddressGroupReferencesResponse
943
+ command.params['addressGroup'] = address_group unless address_group.nil?
944
+ command.query['pageSize'] = page_size unless page_size.nil?
945
+ command.query['pageToken'] = page_token unless page_token.nil?
946
+ command.query['fields'] = fields unless fields.nil?
947
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
948
+ execute_or_queue_command(command, &block)
949
+ end
950
+
951
+ # Updates the parameters of a single address group.
952
+ # @param [String] name
953
+ # Required. Name of the AddressGroup resource. It matches pattern `projects/*/
954
+ # locations/`location`/addressGroups/`.
955
+ # @param [Google::Apis::NetworksecurityV1beta1::AddressGroup] address_group_object
956
+ # @param [String] request_id
957
+ # Optional. An optional request ID to identify requests. Specify a unique
958
+ # request ID so that if you must retry your request, the server will know to
959
+ # ignore the request if it has already been completed. The server will guarantee
960
+ # that for at least 60 minutes since the first request. For example, consider a
961
+ # situation where you make an initial request and t he request times out. If you
962
+ # make the request again with the same request ID, the server can check if
963
+ # original operation with the same request ID was received, and if so, will
964
+ # ignore the second request. This prevents clients from accidentally creating
965
+ # duplicate commitments. The request ID must be a valid UUID with the exception
966
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
967
+ # @param [String] update_mask
968
+ # Optional. Field mask is used to specify the fields to be overwritten in the
969
+ # AddressGroup resource by the update. The fields specified in the update_mask
970
+ # are relative to the resource, not the full request. A field will be
971
+ # overwritten if it is in the mask. If the user does not provide a mask then all
972
+ # fields will be overwritten.
973
+ # @param [String] fields
974
+ # Selector specifying which fields to include in a partial response.
975
+ # @param [String] quota_user
976
+ # Available to use for quota purposes for server-side applications. Can be any
977
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
978
+ # @param [Google::Apis::RequestOptions] options
979
+ # Request-specific options
980
+ #
981
+ # @yield [result, err] Result & error if block supplied
982
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
983
+ # @yieldparam err [StandardError] error object if request failed
984
+ #
985
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
986
+ #
987
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
988
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
989
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
990
+ 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)
991
+ command = make_simple_command(:patch, 'v1beta1/{+name}', options)
992
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::AddressGroup::Representation
993
+ command.request_object = address_group_object
994
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
995
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
996
+ command.params['name'] = name unless name.nil?
997
+ command.query['requestId'] = request_id unless request_id.nil?
998
+ command.query['updateMask'] = update_mask unless update_mask.nil?
999
+ command.query['fields'] = fields unless fields.nil?
1000
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1001
+ execute_or_queue_command(command, &block)
1002
+ end
1003
+
1004
+ # Removes items from an address group.
1005
+ # @param [String] address_group
1006
+ # Required. A name of the AddressGroup to remove items from. Must be in the
1007
+ # format `projects|organization/*/locations/`location`/addressGroups/*`.
1008
+ # @param [Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest] remove_address_group_items_request_object
1009
+ # @param [String] fields
1010
+ # Selector specifying which fields to include in a partial response.
1011
+ # @param [String] quota_user
1012
+ # Available to use for quota purposes for server-side applications. Can be any
1013
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1014
+ # @param [Google::Apis::RequestOptions] options
1015
+ # Request-specific options
1016
+ #
1017
+ # @yield [result, err] Result & error if block supplied
1018
+ # @yieldparam result [Google::Apis::NetworksecurityV1beta1::Operation] parsed result object
1019
+ # @yieldparam err [StandardError] error object if request failed
1020
+ #
1021
+ # @return [Google::Apis::NetworksecurityV1beta1::Operation]
1022
+ #
1023
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1024
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1025
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1026
+ def remove_project_location_address_group_items(address_group, remove_address_group_items_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1027
+ command = make_simple_command(:post, 'v1beta1/{+addressGroup}:removeItems', options)
1028
+ command.request_representation = Google::Apis::NetworksecurityV1beta1::RemoveAddressGroupItemsRequest::Representation
1029
+ command.request_object = remove_address_group_items_request_object
1030
+ command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
1031
+ command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
1032
+ command.params['addressGroup'] = address_group unless address_group.nil?
1033
+ command.query['fields'] = fields unless fields.nil?
1034
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1035
+ execute_or_queue_command(command, &block)
1036
+ end
1037
+
320
1038
  # Sets the access control policy on the specified resource. Replaces any
321
1039
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
322
1040
  # PERMISSION_DENIED` errors.
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.17.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-02-26 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.17.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: []