google-apis-networksecurity_v1 0.28.0 → 0.30.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: 5e5cad729899413ebfc939385bae8e3002b3121eed25897cb4a93e2d0d5b9caa
4
- data.tar.gz: 4a25de0166726746ac782ae70bd23d9ccc810a4c512836abfb1247849440d8ec
3
+ metadata.gz: 53c0b355f4d855b6c7e376f024b4292ace07dc48a692ab0eed4b3ec22d0104be
4
+ data.tar.gz: 7d70530fe72d6bbee2a1cb2dcd635d57fb40860bef4b4392003cae55e050546d
5
5
  SHA512:
6
- metadata.gz: 86d959be0657789a426388d1c992f630fd7cbed2045997d2c9afc909fa2a5b5c85891e4c60ef12b2912ff4196a026a039b2d17913e10d0443438383a91606650
7
- data.tar.gz: b9b8cc181af2f78ad1493ebdc245660faf1672e62ec4d1501c66a86951e1f0fc84456814c2f77054a5306deb2342de4ea3b2aae2f620ecdce6183bffc89be1d6
6
+ metadata.gz: 652a2a00c9e691da2c2c593440a02456ac1ef017a917a872583ae4f8b6024bcc72e0390ff785ce19a87fed757294f63a097bb57e414c1b84aec7ac7773b9e87d
7
+ data.tar.gz: bc0e8e86b9995362cb0d8d74ee73c140f36d1b8c1b6440066c1bb1533655c3a4a6a48801c33c10e634c945f82e75276869b86a4bbb9d71f65b1afe590e5cd7e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-networksecurity_v1
2
2
 
3
+ ### v0.30.0 (2024-09-29)
4
+
5
+ * Regenerated from discovery document revision 20240919
6
+
7
+ ### v0.29.0 (2024-08-11)
8
+
9
+ * Regenerated from discovery document revision 20240803
10
+ * Regenerated using generator version 0.15.1
11
+
3
12
  ### v0.28.0 (2024-07-25)
4
13
 
5
14
  * Regenerated from discovery document revision 20240626
@@ -92,6 +92,11 @@ module Google
92
92
  # @return [String]
93
93
  attr_accessor :name
94
94
 
95
+ # Optional. List of supported purposes of the Address Group.
96
+ # Corresponds to the JSON property `purpose`
97
+ # @return [Array<String>]
98
+ attr_accessor :purpose
99
+
95
100
  # Output only. Server-defined fully-qualified URL for this resource.
96
101
  # Corresponds to the JSON property `selfLink`
97
102
  # @return [String]
@@ -119,6 +124,7 @@ module Google
119
124
  @items = args[:items] if args.key?(:items)
120
125
  @labels = args[:labels] if args.key?(:labels)
121
126
  @name = args[:name] if args.key?(:name)
127
+ @purpose = args[:purpose] if args.key?(:purpose)
122
128
  @self_link = args[:self_link] if args.key?(:self_link)
123
129
  @type = args[:type] if args.key?(:type)
124
130
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -327,6 +333,27 @@ module Google
327
333
  end
328
334
  end
329
335
 
336
+ # CustomMirroringProfile defines an action for mirroring traffic to a collector'
337
+ # s EndpointGroup
338
+ class CustomMirroringProfile
339
+ include Google::Apis::Core::Hashable
340
+
341
+ # Required. The MirroringEndpointGroup to which traffic associated with the SP
342
+ # should be mirrored.
343
+ # Corresponds to the JSON property `mirroringEndpointGroup`
344
+ # @return [String]
345
+ attr_accessor :mirroring_endpoint_group
346
+
347
+ def initialize(**args)
348
+ update!(**args)
349
+ end
350
+
351
+ # Update properties of this object
352
+ def update!(**args)
353
+ @mirroring_endpoint_group = args[:mirroring_endpoint_group] if args.key?(:mirroring_endpoint_group)
354
+ end
355
+ end
356
+
330
357
  # Specification of traffic destination attributes.
331
358
  class Destination
332
359
  include Google::Apis::Core::Hashable
@@ -1930,7 +1957,7 @@ module Google
1930
1957
  end
1931
1958
 
1932
1959
  # SecurityProfile is a resource that defines the behavior for one of many
1933
- # ProfileTypes. Next ID: 11
1960
+ # ProfileTypes. Next ID: 12
1934
1961
  class SecurityProfile
1935
1962
  include Google::Apis::Core::Hashable
1936
1963
 
@@ -1939,6 +1966,12 @@ module Google
1939
1966
  # @return [String]
1940
1967
  attr_accessor :create_time
1941
1968
 
1969
+ # CustomMirroringProfile defines an action for mirroring traffic to a collector'
1970
+ # s EndpointGroup
1971
+ # Corresponds to the JSON property `customMirroringProfile`
1972
+ # @return [Google::Apis::NetworksecurityV1::CustomMirroringProfile]
1973
+ attr_accessor :custom_mirroring_profile
1974
+
1942
1975
  # Optional. An optional description of the profile. Max length 512 characters.
1943
1976
  # Corresponds to the JSON property `description`
1944
1977
  # @return [String]
@@ -1986,6 +2019,7 @@ module Google
1986
2019
  # Update properties of this object
1987
2020
  def update!(**args)
1988
2021
  @create_time = args[:create_time] if args.key?(:create_time)
2022
+ @custom_mirroring_profile = args[:custom_mirroring_profile] if args.key?(:custom_mirroring_profile)
1989
2023
  @description = args[:description] if args.key?(:description)
1990
2024
  @etag = args[:etag] if args.key?(:etag)
1991
2025
  @labels = args[:labels] if args.key?(:labels)
@@ -1997,7 +2031,7 @@ module Google
1997
2031
  end
1998
2032
 
1999
2033
  # SecurityProfileGroup is a resource that defines the behavior for various
2000
- # ProfileTypes. Next ID: 10
2034
+ # ProfileTypes. Next ID: 11
2001
2035
  class SecurityProfileGroup
2002
2036
  include Google::Apis::Core::Hashable
2003
2037
 
@@ -2006,6 +2040,12 @@ module Google
2006
2040
  # @return [String]
2007
2041
  attr_accessor :create_time
2008
2042
 
2043
+ # Optional. Reference to a SecurityProfile with the CustomMirroring
2044
+ # configuration.
2045
+ # Corresponds to the JSON property `customMirroringProfile`
2046
+ # @return [String]
2047
+ attr_accessor :custom_mirroring_profile
2048
+
2009
2049
  # Optional. An optional description of the profile group. Max length 2048
2010
2050
  # characters.
2011
2051
  # Corresponds to the JSON property `description`
@@ -2031,8 +2071,8 @@ module Google
2031
2071
  # @return [String]
2032
2072
  attr_accessor :name
2033
2073
 
2034
- # Optional. Reference to a SecurityProfile with the threat prevention
2035
- # configuration for the SecurityProfileGroup.
2074
+ # Optional. Reference to a SecurityProfile with the ThreatPrevention
2075
+ # configuration.
2036
2076
  # Corresponds to the JSON property `threatPreventionProfile`
2037
2077
  # @return [String]
2038
2078
  attr_accessor :threat_prevention_profile
@@ -2049,6 +2089,7 @@ module Google
2049
2089
  # Update properties of this object
2050
2090
  def update!(**args)
2051
2091
  @create_time = args[:create_time] if args.key?(:create_time)
2092
+ @custom_mirroring_profile = args[:custom_mirroring_profile] if args.key?(:custom_mirroring_profile)
2052
2093
  @description = args[:description] if args.key?(:description)
2053
2094
  @etag = args[:etag] if args.key?(:etag)
2054
2095
  @labels = args[:labels] if args.key?(:labels)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworksecurityV1
18
18
  # Version of the google-apis-networksecurity_v1 gem
19
- GEM_VERSION = "0.28.0"
19
+ GEM_VERSION = "0.30.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240626"
25
+ REVISION = "20240919"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class CustomMirroringProfile
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class Destination
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -387,6 +393,7 @@ module Google
387
393
  collection :items, as: 'items'
388
394
  hash :labels, as: 'labels'
389
395
  property :name, as: 'name'
396
+ collection :purpose, as: 'purpose'
390
397
  property :self_link, as: 'selfLink'
391
398
  property :type, as: 'type'
392
399
  property :update_time, as: 'updateTime'
@@ -444,6 +451,13 @@ module Google
444
451
  end
445
452
  end
446
453
 
454
+ class CustomMirroringProfile
455
+ # @private
456
+ class Representation < Google::Apis::Core::JsonRepresentation
457
+ property :mirroring_endpoint_group, as: 'mirroringEndpointGroup'
458
+ end
459
+ end
460
+
447
461
  class Destination
448
462
  # @private
449
463
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -844,6 +858,8 @@ module Google
844
858
  # @private
845
859
  class Representation < Google::Apis::Core::JsonRepresentation
846
860
  property :create_time, as: 'createTime'
861
+ property :custom_mirroring_profile, as: 'customMirroringProfile', class: Google::Apis::NetworksecurityV1::CustomMirroringProfile, decorator: Google::Apis::NetworksecurityV1::CustomMirroringProfile::Representation
862
+
847
863
  property :description, as: 'description'
848
864
  property :etag, as: 'etag'
849
865
  hash :labels, as: 'labels'
@@ -859,6 +875,7 @@ module Google
859
875
  # @private
860
876
  class Representation < Google::Apis::Core::JsonRepresentation
861
877
  property :create_time, as: 'createTime'
878
+ property :custom_mirroring_profile, as: 'customMirroringProfile'
862
879
  property :description, as: 'description'
863
880
  property :etag, as: 'etag'
864
881
  hash :labels, as: 'labels'
@@ -2004,6 +2004,127 @@ module Google
2004
2004
  execute_or_queue_command(command, &block)
2005
2005
  end
2006
2006
 
2007
+ # Gets the access control policy for a resource. Returns an empty policy if the
2008
+ # resource exists and does not have a policy set.
2009
+ # @param [String] resource
2010
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
2011
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2012
+ # appropriate value for this field.
2013
+ # @param [Fixnum] options_requested_policy_version
2014
+ # Optional. The maximum policy version that will be used to format the policy.
2015
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2016
+ # rejected. Requests for policies with any conditional role bindings must
2017
+ # specify version 3. Policies with no conditional role bindings may specify any
2018
+ # valid value or leave the field unset. The policy in the response might use the
2019
+ # policy version that you specified, or it might use a lower policy version. For
2020
+ # example, if you specify version 3, but the policy has no conditional role
2021
+ # bindings, the response uses version 1. To learn which resources support
2022
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
2023
+ # google.com/iam/help/conditions/resource-policies).
2024
+ # @param [String] fields
2025
+ # Selector specifying which fields to include in a partial response.
2026
+ # @param [String] quota_user
2027
+ # Available to use for quota purposes for server-side applications. Can be any
2028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2029
+ # @param [Google::Apis::RequestOptions] options
2030
+ # Request-specific options
2031
+ #
2032
+ # @yield [result, err] Result & error if block supplied
2033
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
2034
+ # @yieldparam err [StandardError] error object if request failed
2035
+ #
2036
+ # @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
2037
+ #
2038
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2039
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2040
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2041
+ def get_project_location_authz_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
2042
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
2043
+ command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
2044
+ command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
2045
+ command.params['resource'] = resource unless resource.nil?
2046
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
2047
+ command.query['fields'] = fields unless fields.nil?
2048
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2049
+ execute_or_queue_command(command, &block)
2050
+ end
2051
+
2052
+ # Sets the access control policy on the specified resource. Replaces any
2053
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2054
+ # PERMISSION_DENIED` errors.
2055
+ # @param [String] resource
2056
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
2057
+ # names](https://cloud.google.com/apis/design/resource_names) for the
2058
+ # appropriate value for this field.
2059
+ # @param [Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
2060
+ # @param [String] fields
2061
+ # Selector specifying which fields to include in a partial response.
2062
+ # @param [String] quota_user
2063
+ # Available to use for quota purposes for server-side applications. Can be any
2064
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2065
+ # @param [Google::Apis::RequestOptions] options
2066
+ # Request-specific options
2067
+ #
2068
+ # @yield [result, err] Result & error if block supplied
2069
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1Policy] parsed result object
2070
+ # @yieldparam err [StandardError] error object if request failed
2071
+ #
2072
+ # @return [Google::Apis::NetworksecurityV1::GoogleIamV1Policy]
2073
+ #
2074
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2075
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2076
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2077
+ def set_project_location_authz_policy_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2078
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2079
+ command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1SetIamPolicyRequest::Representation
2080
+ command.request_object = google_iam_v1_set_iam_policy_request_object
2081
+ command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1Policy::Representation
2082
+ command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1Policy
2083
+ command.params['resource'] = resource unless resource.nil?
2084
+ command.query['fields'] = fields unless fields.nil?
2085
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2086
+ execute_or_queue_command(command, &block)
2087
+ end
2088
+
2089
+ # Returns permissions that a caller has on the specified resource. If the
2090
+ # resource does not exist, this will return an empty set of permissions, not a `
2091
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
2092
+ # permission-aware UIs and command-line tools, not for authorization checking.
2093
+ # This operation may "fail open" without warning.
2094
+ # @param [String] resource
2095
+ # REQUIRED: The resource for which the policy detail is being requested. See [
2096
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
2097
+ # appropriate value for this field.
2098
+ # @param [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
2099
+ # @param [String] fields
2100
+ # Selector specifying which fields to include in a partial response.
2101
+ # @param [String] quota_user
2102
+ # Available to use for quota purposes for server-side applications. Can be any
2103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2104
+ # @param [Google::Apis::RequestOptions] options
2105
+ # Request-specific options
2106
+ #
2107
+ # @yield [result, err] Result & error if block supplied
2108
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
2109
+ # @yieldparam err [StandardError] error object if request failed
2110
+ #
2111
+ # @return [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse]
2112
+ #
2113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2116
+ def test_project_location_authz_policy_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2117
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2118
+ command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest::Representation
2119
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
2120
+ command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse::Representation
2121
+ command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse
2122
+ command.params['resource'] = resource unless resource.nil?
2123
+ command.query['fields'] = fields unless fields.nil?
2124
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2125
+ execute_or_queue_command(command, &block)
2126
+ end
2127
+
2007
2128
  # Creates a new ClientTlsPolicy in a given project and location.
2008
2129
  # @param [String] parent
2009
2130
  # Required. The parent resource of the ClientTlsPolicy. Must be in the format `
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networksecurity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.30.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: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2024-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1
63
63
  post_install_message:
64
64
  rdoc_options: []