lib/google/apis/securitycenter_v1beta2/service.rb in google-apis-securitycenter_v1beta2-0.21.0 vs lib/google/apis/securitycenter_v1beta2/service.rb in google-apis-securitycenter_v1beta2-0.22.0

- old
+ new

@@ -146,10 +146,42 @@ command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + # Get the SecurityCenterSettings resource. + # @param [String] name + # Required. The name of the SecurityCenterSettings to retrieve. Format: + # organizations/`organization`/securityCenterSettings Format: folders/`folder`/ + # securityCenterSettings Format: projects/`project`/securityCenterSettings + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_folder_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Get the SecurityHealthAnalyticsSettings resource. # @param [String] name # Required. The name of the SecurityHealthAnalyticsSettings to retrieve. Formats: # * organizations/`organization`/securityHealthAnalyticsSettings * folders/` # folder`/securityHealthAnalyticsSettings * projects/`project`/ @@ -708,11 +740,12 @@ end # Get the SecurityCenterSettings resource. # @param [String] name # Required. The name of the SecurityCenterSettings to retrieve. Format: - # organizations/`organization`/securityCenterSettings + # organizations/`organization`/securityCenterSettings Format: folders/`folder`/ + # securityCenterSettings Format: projects/`project`/securityCenterSettings # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user # Available to use for quota purposes for server-side applications. Can be any # arbitrary string assigned to a user, but should not exceed 40 characters. @@ -1320,9 +1353,41 @@ # @raise [Google::Apis::AuthorizationError] Authorization is required def get_project_onboarding_state(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v1beta2/{+name}', options) command.response_representation = Google::Apis::SecuritycenterV1beta2::OnboardingState::Representation command.response_class = Google::Apis::SecuritycenterV1beta2::OnboardingState + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Get the SecurityCenterSettings resource. + # @param [String] name + # Required. The name of the SecurityCenterSettings to retrieve. Format: + # organizations/`organization`/securityCenterSettings Format: folders/`folder`/ + # securityCenterSettings Format: projects/`project`/securityCenterSettings + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_security_center_settings(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta2/{+name}', options) + command.response_representation = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings::Representation + command.response_class = Google::Apis::SecuritycenterV1beta2::SecurityCenterSettings command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end