google-apis-apigee_v1 0.64.0 → 0.65.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: d6f56cc2b51393f8dd86cdda8be439bc66fa10dabac0330c1c79508d6f01e24a
4
- data.tar.gz: 1b4560895cd30392cfeee83004c9f3f8416ce8efaf411f564f73ffc5c6b59634
3
+ metadata.gz: 6c0d20de68833018cfbeaf57b1c5880d6d3392e8ba3c1e9ea9e0fe7d2fdb6cc2
4
+ data.tar.gz: 9391f33719f49dff55f0099f426d0cc36e5f65e13121b2e56dd0df6ca015f6b7
5
5
  SHA512:
6
- metadata.gz: 2f21e7c0d424c563932ed6441ea942bb901cff568efa22933d52c41a67a9221be74e2feadf11936cbf4638e238b47a46af9e6a3e9e1a0c0d31f6a5b9f4c43153
7
- data.tar.gz: f27149d6b040082998153eb7313da2a913b5ccddcd09d4bfb47947e08ad8042382fa7cc5644685c015293fcb8980e6cbc93734ef2ffe5cf1ff1c138e6fe05b13
6
+ metadata.gz: 7381cc9a4dad9564355246056d21b7e1ea7accad3f89ff6258535b0c087be6051c21929e02c849639ffe83112cc40ab6b0f56a192b186b7c7d7ccecfc4c2fc29
7
+ data.tar.gz: 01f49e50edceed0f1a1f4e70e7b4025c045802841a638a6aba7c18e45d2b6781c5dbd4d81416973991be305bdc95748a48580140b8c2ffd0a59b5d61b9f1d01f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-apigee_v1
2
2
 
3
+ ### v0.65.0 (2023-03-12)
4
+
5
+ * Regenerated from discovery document revision 20230303
6
+
3
7
  ### v0.64.0 (2023-02-26)
4
8
 
5
9
  * Regenerated using generator version 0.12.0
@@ -5205,6 +5205,32 @@ module Google
5205
5205
  end
5206
5206
  end
5207
5207
 
5208
+ # Response for ListSecurityIncidents.
5209
+ class GoogleCloudApigeeV1ListSecurityIncidentsResponse
5210
+ include Google::Apis::Core::Hashable
5211
+
5212
+ # A token that can be sent as `page_token` to retrieve the next page. If this
5213
+ # field is omitted, there are no subsequent pages.
5214
+ # Corresponds to the JSON property `nextPageToken`
5215
+ # @return [String]
5216
+ attr_accessor :next_page_token
5217
+
5218
+ # List of security incidents in the organization
5219
+ # Corresponds to the JSON property `securityIncidents`
5220
+ # @return [Array<Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityIncident>]
5221
+ attr_accessor :security_incidents
5222
+
5223
+ def initialize(**args)
5224
+ update!(**args)
5225
+ end
5226
+
5227
+ # Update properties of this object
5228
+ def update!(**args)
5229
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5230
+ @security_incidents = args[:security_incidents] if args.key?(:security_incidents)
5231
+ end
5232
+ end
5233
+
5208
5234
  # Response for ListSecurityProfileRevisions.
5209
5235
  class GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse
5210
5236
  include Google::Apis::Core::Hashable
@@ -7758,6 +7784,66 @@ module Google
7758
7784
  end
7759
7785
  end
7760
7786
 
7787
+ # Represents an SecurityIncident resource.
7788
+ class GoogleCloudApigeeV1SecurityIncident
7789
+ include Google::Apis::Core::Hashable
7790
+
7791
+ # Output only. Detection types which are part of the incident. Examples: Flooder,
7792
+ # OAuth Abuser, Static Content Scraper, Anomaly Detection.
7793
+ # Corresponds to the JSON property `detectionTypes`
7794
+ # @return [Array<String>]
7795
+ attr_accessor :detection_types
7796
+
7797
+ # Display name of the security incident.
7798
+ # Corresponds to the JSON property `displayName`
7799
+ # @return [String]
7800
+ attr_accessor :display_name
7801
+
7802
+ # Output only. The time when events associated with the incident were first
7803
+ # detected.
7804
+ # Corresponds to the JSON property `firstDetectedTime`
7805
+ # @return [String]
7806
+ attr_accessor :first_detected_time
7807
+
7808
+ # Output only. The time when events associated with the incident were last
7809
+ # detected.
7810
+ # Corresponds to the JSON property `lastDetectedTime`
7811
+ # @return [String]
7812
+ attr_accessor :last_detected_time
7813
+
7814
+ # Immutable. Name of the security incident resource. Format: organizations/`org`/
7815
+ # environments/`environment`/securityIncidents/`incident` Example: organizations/
7816
+ # apigee-org/environments/dev/securityIncidents/1234-5678-9101-1111
7817
+ # Corresponds to the JSON property `name`
7818
+ # @return [String]
7819
+ attr_accessor :name
7820
+
7821
+ # Output only. Risk level of the incident.
7822
+ # Corresponds to the JSON property `riskLevel`
7823
+ # @return [String]
7824
+ attr_accessor :risk_level
7825
+
7826
+ # Total traffic detected as part of the incident.
7827
+ # Corresponds to the JSON property `trafficCount`
7828
+ # @return [Fixnum]
7829
+ attr_accessor :traffic_count
7830
+
7831
+ def initialize(**args)
7832
+ update!(**args)
7833
+ end
7834
+
7835
+ # Update properties of this object
7836
+ def update!(**args)
7837
+ @detection_types = args[:detection_types] if args.key?(:detection_types)
7838
+ @display_name = args[:display_name] if args.key?(:display_name)
7839
+ @first_detected_time = args[:first_detected_time] if args.key?(:first_detected_time)
7840
+ @last_detected_time = args[:last_detected_time] if args.key?(:last_detected_time)
7841
+ @name = args[:name] if args.key?(:name)
7842
+ @risk_level = args[:risk_level] if args.key?(:risk_level)
7843
+ @traffic_count = args[:traffic_count] if args.key?(:traffic_count)
7844
+ end
7845
+ end
7846
+
7761
7847
  # Represents a SecurityProfile resource.
7762
7848
  class GoogleCloudApigeeV1SecurityProfile
7763
7849
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ApigeeV1
18
18
  # Version of the google-apis-apigee_v1 gem
19
- GEM_VERSION = "0.64.0"
19
+ GEM_VERSION = "0.65.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230207"
25
+ REVISION = "20230303"
26
26
  end
27
27
  end
28
28
  end
@@ -790,6 +790,12 @@ module Google
790
790
  include Google::Apis::Core::JsonObjectSupport
791
791
  end
792
792
 
793
+ class GoogleCloudApigeeV1ListSecurityIncidentsResponse
794
+ class Representation < Google::Apis::Core::JsonRepresentation; end
795
+
796
+ include Google::Apis::Core::JsonObjectSupport
797
+ end
798
+
793
799
  class GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse
794
800
  class Representation < Google::Apis::Core::JsonRepresentation; end
795
801
 
@@ -1162,6 +1168,12 @@ module Google
1162
1168
  include Google::Apis::Core::JsonObjectSupport
1163
1169
  end
1164
1170
 
1171
+ class GoogleCloudApigeeV1SecurityIncident
1172
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1173
+
1174
+ include Google::Apis::Core::JsonObjectSupport
1175
+ end
1176
+
1165
1177
  class GoogleCloudApigeeV1SecurityProfile
1166
1178
  class Representation < Google::Apis::Core::JsonRepresentation; end
1167
1179
 
@@ -2828,6 +2840,15 @@ module Google
2828
2840
  end
2829
2841
  end
2830
2842
 
2843
+ class GoogleCloudApigeeV1ListSecurityIncidentsResponse
2844
+ # @private
2845
+ class Representation < Google::Apis::Core::JsonRepresentation
2846
+ property :next_page_token, as: 'nextPageToken'
2847
+ collection :security_incidents, as: 'securityIncidents', class: Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityIncident, decorator: Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityIncident::Representation
2848
+
2849
+ end
2850
+ end
2851
+
2831
2852
  class GoogleCloudApigeeV1ListSecurityProfileRevisionsResponse
2832
2853
  # @private
2833
2854
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3502,6 +3523,19 @@ module Google
3502
3523
  end
3503
3524
  end
3504
3525
 
3526
+ class GoogleCloudApigeeV1SecurityIncident
3527
+ # @private
3528
+ class Representation < Google::Apis::Core::JsonRepresentation
3529
+ collection :detection_types, as: 'detectionTypes'
3530
+ property :display_name, as: 'displayName'
3531
+ property :first_detected_time, as: 'firstDetectedTime'
3532
+ property :last_detected_time, as: 'lastDetectedTime'
3533
+ property :name, as: 'name'
3534
+ property :risk_level, as: 'riskLevel'
3535
+ property :traffic_count, :numeric_string => true, as: 'trafficCount'
3536
+ end
3537
+ end
3538
+
3505
3539
  class GoogleCloudApigeeV1SecurityProfile
3506
3540
  # @private
3507
3541
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6993,6 +6993,85 @@ module Google
6993
6993
  execute_or_queue_command(command, &block)
6994
6994
  end
6995
6995
 
6996
+ # GetSecurityIncident gets the specified security incident. Returns NOT_FOUND if
6997
+ # security incident is not present for the specified organization and
6998
+ # environment.
6999
+ # @param [String] name
7000
+ # Required. Security incident in the following format: `organizations/`org`/
7001
+ # environments/`environment`/securityIncidents/`incident`'. Example:
7002
+ # organizations/testOrg/environments/testEnv/securityIncidents/1234-4567-890-111
7003
+ # @param [String] fields
7004
+ # Selector specifying which fields to include in a partial response.
7005
+ # @param [String] quota_user
7006
+ # Available to use for quota purposes for server-side applications. Can be any
7007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7008
+ # @param [Google::Apis::RequestOptions] options
7009
+ # Request-specific options
7010
+ #
7011
+ # @yield [result, err] Result & error if block supplied
7012
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityIncident] parsed result object
7013
+ # @yieldparam err [StandardError] error object if request failed
7014
+ #
7015
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityIncident]
7016
+ #
7017
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7018
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7019
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7020
+ def get_organization_environment_security_incident(name, fields: nil, quota_user: nil, options: nil, &block)
7021
+ command = make_simple_command(:get, 'v1/{+name}', options)
7022
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityIncident::Representation
7023
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityIncident
7024
+ command.params['name'] = name unless name.nil?
7025
+ command.query['fields'] = fields unless fields.nil?
7026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7027
+ execute_or_queue_command(command, &block)
7028
+ end
7029
+
7030
+ # ListSecurityIncidents lists all the security incident associated with the
7031
+ # environment.
7032
+ # @param [String] parent
7033
+ # Required. For a specific organization, list of all the security incidents.
7034
+ # Format: `organizations/`org`/environments/`environment``
7035
+ # @param [String] filter
7036
+ # The filter expression to be used to get the list of security incidents, where
7037
+ # filtering can be done on API Proxies. Example: filter = "api_proxy = /", "
7038
+ # first_detected_time >", "last_detected_time <"
7039
+ # @param [Fixnum] page_size
7040
+ # The maximum number of incidents to return. The service may return fewer than
7041
+ # this value. If unspecified, at most 50 incidents will be returned.
7042
+ # @param [String] page_token
7043
+ # A page token, received from a previous `ListSecurityIncident` call. Provide
7044
+ # this to retrieve the subsequent page.
7045
+ # @param [String] fields
7046
+ # Selector specifying which fields to include in a partial response.
7047
+ # @param [String] quota_user
7048
+ # Available to use for quota purposes for server-side applications. Can be any
7049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
7050
+ # @param [Google::Apis::RequestOptions] options
7051
+ # Request-specific options
7052
+ #
7053
+ # @yield [result, err] Result & error if block supplied
7054
+ # @yieldparam result [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityIncidentsResponse] parsed result object
7055
+ # @yieldparam err [StandardError] error object if request failed
7056
+ #
7057
+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityIncidentsResponse]
7058
+ #
7059
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7060
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7061
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
7062
+ def list_organization_environment_security_incidents(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
7063
+ command = make_simple_command(:get, 'v1/{+parent}/securityIncidents', options)
7064
+ command.response_representation = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityIncidentsResponse::Representation
7065
+ command.response_class = Google::Apis::ApigeeV1::GoogleCloudApigeeV1ListSecurityIncidentsResponse
7066
+ command.params['parent'] = parent unless parent.nil?
7067
+ command.query['filter'] = filter unless filter.nil?
7068
+ command.query['pageSize'] = page_size unless page_size.nil?
7069
+ command.query['pageToken'] = page_token unless page_token.nil?
7070
+ command.query['fields'] = fields unless fields.nil?
7071
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
7072
+ execute_or_queue_command(command, &block)
7073
+ end
7074
+
6996
7075
  # Submit a report request to be processed in the background. If the submission
6997
7076
  # succeeds, the API returns a 200 status and an ID that refer to the report
6998
7077
  # request. In addition to the HTTP status 200, the `state` of "enqueued" means
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-apigee_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.64.0
4
+ version: 0.65.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-26 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
@@ -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-apigee_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.64.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-apigee_v1/v0.65.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-apigee_v1
63
63
  post_install_message:
64
64
  rdoc_options: []