@@ -691,6 +691,103 @@ def patch_customer_connector_config(name, google_chrome_management_versions_v1_c
691691 execute_or_queue_command ( command , &block )
692692 end
693693
694+ # Gets the setting state of the insights feature for the customer.
695+ # @param [String] customer
696+ # Required. The customer to check the enablement status for. Format: customers/`
697+ # customer_id`
698+ # @param [String] fields
699+ # Selector specifying which fields to include in a partial response.
700+ # @param [String] quota_user
701+ # Available to use for quota purposes for server-side applications. Can be any
702+ # arbitrary string assigned to a user, but should not exceed 40 characters.
703+ # @param [Google::Apis::RequestOptions] options
704+ # Request-specific options
705+ #
706+ # @yield [result, err] Result & error if block supplied
707+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1CheckEnablementStatusResponse] parsed result object
708+ # @yieldparam err [StandardError] error object if request failed
709+ #
710+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1CheckEnablementStatusResponse]
711+ #
712+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
713+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
714+ # @raise [Google::Apis::AuthorizationError] Authorization is required
715+ def check_customer_enterprise_security_insight_enablement_status ( customer , fields : nil , quota_user : nil , options : nil , &block )
716+ command = make_simple_command ( :get , 'v1/{+customer}/enterprise/securityInsights:checkEnablementStatus' , options )
717+ command . response_representation = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1CheckEnablementStatusResponse ::Representation
718+ command . response_class = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1CheckEnablementStatusResponse
719+ command . params [ 'customer' ] = customer unless customer . nil?
720+ command . query [ 'fields' ] = fields unless fields . nil?
721+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
722+ execute_or_queue_command ( command , &block )
723+ end
724+
725+ # Disables insights for the customer.
726+ # @param [String] customer
727+ # Required. The customer to disable insights for. Format: customers/`customer`
728+ # @param [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1DisableInsightsRequest] google_chrome_management_versions_v1_disable_insights_request_object
729+ # @param [String] fields
730+ # Selector specifying which fields to include in a partial response.
731+ # @param [String] quota_user
732+ # Available to use for quota purposes for server-side applications. Can be any
733+ # arbitrary string assigned to a user, but should not exceed 40 characters.
734+ # @param [Google::Apis::RequestOptions] options
735+ # Request-specific options
736+ #
737+ # @yield [result, err] Result & error if block supplied
738+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1DisableInsightsResponse] parsed result object
739+ # @yieldparam err [StandardError] error object if request failed
740+ #
741+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1DisableInsightsResponse]
742+ #
743+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745+ # @raise [Google::Apis::AuthorizationError] Authorization is required
746+ def disable_customer_enterprise_security_insight ( customer , google_chrome_management_versions_v1_disable_insights_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
747+ command = make_simple_command ( :post , 'v1/{+customer}/enterprise/securityInsights:disable' , options )
748+ command . request_representation = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1DisableInsightsRequest ::Representation
749+ command . request_object = google_chrome_management_versions_v1_disable_insights_request_object
750+ command . response_representation = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1DisableInsightsResponse ::Representation
751+ command . response_class = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1DisableInsightsResponse
752+ command . params [ 'customer' ] = customer unless customer . nil?
753+ command . query [ 'fields' ] = fields unless fields . nil?
754+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
755+ execute_or_queue_command ( command , &block )
756+ end
757+
758+ # Enables insights for the customer and sets up required chrome connectors.
759+ # @param [String] customer
760+ # Required. The customer to enable insights for. Format: customers/`customer`
761+ # @param [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1EnableInsightsRequest] google_chrome_management_versions_v1_enable_insights_request_object
762+ # @param [String] fields
763+ # Selector specifying which fields to include in a partial response.
764+ # @param [String] quota_user
765+ # Available to use for quota purposes for server-side applications. Can be any
766+ # arbitrary string assigned to a user, but should not exceed 40 characters.
767+ # @param [Google::Apis::RequestOptions] options
768+ # Request-specific options
769+ #
770+ # @yield [result, err] Result & error if block supplied
771+ # @yieldparam result [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1EnableInsightsResponse] parsed result object
772+ # @yieldparam err [StandardError] error object if request failed
773+ #
774+ # @return [Google::Apis::ChromemanagementV1::GoogleChromeManagementVersionsV1EnableInsightsResponse]
775+ #
776+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779+ def enable_customer_enterprise_security_insight ( customer , google_chrome_management_versions_v1_enable_insights_request_object = nil , fields : nil , quota_user : nil , options : nil , &block )
780+ command = make_simple_command ( :post , 'v1/{+customer}/enterprise/securityInsights:enable' , options )
781+ command . request_representation = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1EnableInsightsRequest ::Representation
782+ command . request_object = google_chrome_management_versions_v1_enable_insights_request_object
783+ command . response_representation = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1EnableInsightsResponse ::Representation
784+ command . response_class = Google ::Apis ::ChromemanagementV1 ::GoogleChromeManagementVersionsV1EnableInsightsResponse
785+ command . params [ 'customer' ] = customer unless customer . nil?
786+ command . query [ 'fields' ] = fields unless fields . nil?
787+ command . query [ 'quotaUser' ] = quota_user unless quota_user . nil?
788+ execute_or_queue_command ( command , &block )
789+ end
790+
694791 # Deletes the data collected from a Chrome browser profile.
695792 # @param [String] name
696793 # Required. Format: customers/`customer_id`/profiles/`profile_permanent_id`
0 commit comments