@@ -2068,6 +2068,16 @@ def update!(**args)
20682068 class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest
20692069 include Google::Apis::Core::Hashable
20702070
2071+ # Message for the array of API Hub APIs.
2072+ # Corresponds to the JSON property `apiHubApis`
2073+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestApiHubApiArray]
2074+ attr_accessor :api_hub_apis
2075+
2076+ # Message for the array of API Hub Gateways.
2077+ # Corresponds to the JSON property `apiHubGateways`
2078+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestApiHubGatewayArray]
2079+ attr_accessor :api_hub_gateways
2080+
20712081 # Message for the array of resources. For Apigee, the proxies are resources.
20722082 # Corresponds to the JSON property `include`
20732083 # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArray]
@@ -2096,8 +2106,10 @@ class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequest
20962106 # @return [String]
20972107 attr_accessor :profile
20982108
2099- # Optional. Scope of the resources for the computation. For Apigee, the
2100- # environment is the scope of the resources.
2109+ # Optional. Scope of the resources for the computation. When computing scores
2110+ # for Apigee proxies, the scope should be set to the environment of the
2111+ # resources. When computing scores for API Hub deployments, api_hub_scope should
2112+ # be set instead.
21012113 # Corresponds to the JSON property `scope`
21022114 # @return [String]
21032115 attr_accessor :scope
@@ -2108,6 +2120,8 @@ def initialize(**args)
21082120
21092121 # Update properties of this object
21102122 def update!(**args)
2123+ @api_hub_apis = args[:api_hub_apis] if args.key?(:api_hub_apis)
2124+ @api_hub_gateways = args[:api_hub_gateways] if args.key?(:api_hub_gateways)
21112125 @include = args[:include] if args.key?(:include)
21122126 @include_all_resources = args[:include_all_resources] if args.key?(:include_all_resources)
21132127 @page_size = args[:page_size] if args.key?(:page_size)
@@ -2117,6 +2131,46 @@ def update!(**args)
21172131 end
21182132 end
21192133
2134+ # Message for the array of API Hub APIs.
2135+ class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestApiHubApiArray
2136+ include Google::Apis::Core::Hashable
2137+
2138+ # Required. The array of API Hub API IDs. Format: `projects/`project`/locations/`
2139+ # location`/apis/`api``
2140+ # Corresponds to the JSON property `apis`
2141+ # @return [Array<String>]
2142+ attr_accessor :apis
2143+
2144+ def initialize(**args)
2145+ update!(**args)
2146+ end
2147+
2148+ # Update properties of this object
2149+ def update!(**args)
2150+ @apis = args[:apis] if args.key?(:apis)
2151+ end
2152+ end
2153+
2154+ # Message for the array of API Hub Gateways.
2155+ class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestApiHubGatewayArray
2156+ include Google::Apis::Core::Hashable
2157+
2158+ # Required. The array of API Hub Gateway IDs. Format: `projects/`project`/
2159+ # locations/`location`/plugins/`plugin`/instances/`instance``
2160+ # Corresponds to the JSON property `gateways`
2161+ # @return [Array<String>]
2162+ attr_accessor :gateways
2163+
2164+ def initialize(**args)
2165+ update!(**args)
2166+ end
2167+
2168+ # Update properties of this object
2169+ def update!(**args)
2170+ @gateways = args[:gateways] if args.key?(:gateways)
2171+ end
2172+ end
2173+
21202174 # Message for include_all_resources option.
21212175 class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestIncludeAll
21222176 include Google::Apis::Core::Hashable
@@ -2153,7 +2207,9 @@ def update!(**args)
21532207 class GoogleCloudApigeeV1BatchComputeSecurityAssessmentResultsRequestResourceArrayResource
21542208 include Google::Apis::Core::Hashable
21552209
2156- # Required. Name of this resource.
2210+ # Required. Name of this resource. For an Apigee API Proxy, this should be the
2211+ # id of the API proxy. For an API Hub Deployment, this should be the id of the
2212+ # deployment.
21572213 # Corresponds to the JSON property `name`
21582214 # @return [String]
21592215 attr_accessor :name
@@ -10330,7 +10386,14 @@ def update!(**args)
1033010386 class GoogleCloudApigeeV1SecurityAssessmentResultResource
1033110387 include Google::Apis::Core::Hashable
1033210388
10333- # Required. Name of this resource.
10389+ # Additional details if the resource is an API Hub deployment.
10390+ # Corresponds to the JSON property `apiHubDeploymentDetails`
10391+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityAssessmentResultResourceApiHubDeploymentDetails]
10392+ attr_accessor :api_hub_deployment_details
10393+
10394+ # Required. Name of this resource. For an Apigee API Proxy, this should be the
10395+ # id of the API proxy. For an API Hub Deployment, this should be the id of the
10396+ # deployment.
1033410397 # Corresponds to the JSON property `name`
1033510398 # @return [String]
1033610399 attr_accessor :name
@@ -10351,12 +10414,57 @@ def initialize(**args)
1035110414
1035210415 # Update properties of this object
1035310416 def update!(**args)
10417+ @api_hub_deployment_details = args[:api_hub_deployment_details] if args.key?(:api_hub_deployment_details)
1035410418 @name = args[:name] if args.key?(:name)
1035510419 @resource_revision_id = args[:resource_revision_id] if args.key?(:resource_revision_id)
1035610420 @type = args[:type] if args.key?(:type)
1035710421 end
1035810422 end
1035910423
10424+ # Additional details if the resource is an API Hub deployment.
10425+ class GoogleCloudApigeeV1SecurityAssessmentResultResourceApiHubDeploymentDetails
10426+ include Google::Apis::Core::Hashable
10427+
10428+ # The display name of the API Hub deployment.
10429+ # Corresponds to the JSON property `displayName`
10430+ # @return [String]
10431+ attr_accessor :display_name
10432+
10433+ # The gateway for the API Hub deployment. Format: `projects/`project`/locations/`
10434+ # location`/plugins/`plugin`/instances/`instance``
10435+ # Corresponds to the JSON property `gateway`
10436+ # @return [String]
10437+ attr_accessor :gateway
10438+
10439+ # The gateway type for the API Hub deployment.
10440+ # Corresponds to the JSON property `gatewayType`
10441+ # @return [String]
10442+ attr_accessor :gateway_type
10443+
10444+ # The resource uri for the API Hub deployment.
10445+ # Corresponds to the JSON property `resourceUri`
10446+ # @return [String]
10447+ attr_accessor :resource_uri
10448+
10449+ # The source project for the API Hub deployment.
10450+ # Corresponds to the JSON property `sourceProject`
10451+ # @return [String]
10452+ attr_accessor :source_project
10453+
10454+ def initialize(**args)
10455+ update!(**args)
10456+ end
10457+
10458+ # Update properties of this object
10459+ def update!(**args)
10460+ @display_name = args[:display_name] if args.key?(:display_name)
10461+ @gateway = args[:gateway] if args.key?(:gateway)
10462+ @gateway_type = args[:gateway_type] if args.key?(:gateway_type)
10463+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
10464+ @source_project = args[:source_project] if args.key?(:source_project)
10465+ end
10466+ end
10467+
1036010468 # The result of the assessment.
1036110469 class GoogleCloudApigeeV1SecurityAssessmentResultScoringResult
1036210470 include Google::Apis::Core::Hashable
@@ -10937,6 +11045,12 @@ class GoogleCloudApigeeV1SecurityProfileV2
1093711045 # @return [Hash<String,Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig>]
1093811046 attr_accessor :profile_assessment_configs
1093911047
11048+ # Optional. The risk assessment type of the security profile. Defaults to
11049+ # ADVANCED_API_SECURITY.
11050+ # Corresponds to the JSON property `riskAssessmentType`
11051+ # @return [String]
11052+ attr_accessor :risk_assessment_type
11053+
1094011054 # Output only. The time of the security profile update.
1094111055 # Corresponds to the JSON property `updateTime`
1094211056 # @return [String]
@@ -10953,6 +11067,7 @@ def update!(**args)
1095311067 @google_defined = args[:google_defined] if args.key?(:google_defined)
1095411068 @name = args[:name] if args.key?(:name)
1095511069 @profile_assessment_configs = args[:profile_assessment_configs] if args.key?(:profile_assessment_configs)
11070+ @risk_assessment_type = args[:risk_assessment_type] if args.key?(:risk_assessment_type)
1095611071 @update_time = args[:update_time] if args.key?(:update_time)
1095711072 end
1095811073 end
@@ -10961,6 +11076,11 @@ def update!(**args)
1096111076 class GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfig
1096211077 include Google::Apis::Core::Hashable
1096311078
11079+ # Message for the array of API Hub Gateway Types.
11080+ # Corresponds to the JSON property `include`
11081+ # @return [Google::Apis::ApigeeV1::GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfigApiHubGatewayTypeArray]
11082+ attr_accessor :include
11083+
1096411084 # The weight of the assessment.
1096511085 # Corresponds to the JSON property `weight`
1096611086 # @return [String]
@@ -10972,10 +11092,30 @@ def initialize(**args)
1097211092
1097311093 # Update properties of this object
1097411094 def update!(**args)
11095+ @include = args[:include] if args.key?(:include)
1097511096 @weight = args[:weight] if args.key?(:weight)
1097611097 end
1097711098 end
1097811099
11100+ # Message for the array of API Hub Gateway Types.
11101+ class GoogleCloudApigeeV1SecurityProfileV2ProfileAssessmentConfigApiHubGatewayTypeArray
11102+ include Google::Apis::Core::Hashable
11103+
11104+ # Required. The array of API Hub Gateway Types.
11105+ # Corresponds to the JSON property `gatewayTypes`
11106+ # @return [Array<String>]
11107+ attr_accessor :gateway_types
11108+
11109+ def initialize(**args)
11110+ update!(**args)
11111+ end
11112+
11113+ # Update properties of this object
11114+ def update!(**args)
11115+ @gateway_types = args[:gateway_types] if args.key?(:gateway_types)
11116+ end
11117+ end
11118+
1097911119 # SecurityReport saves all the information about the created security report.
1098011120 class GoogleCloudApigeeV1SecurityReport
1098111121 include Google::Apis::Core::Hashable
0 commit comments