Class: HubSpotSDK::Resources::Cms::AuditLogs
- Inherits:
-
Object
- Object
- HubSpotSDK::Resources::Cms::AuditLogs
- Defined in:
- lib/hubspot_sdk/resources/cms/audit_logs.rb
Instance Method Summary collapse
- #export(email:, format_:, portal_id:, recipient_user_ids:, should_mark_export_file_as_sensitive:, type:, filters: nil, partition: nil, user_id: nil, user_time_zone: nil, request_options: {}) ⇒ nil
-
#initialize(client:) ⇒ AuditLogs
constructor
private
A new instance of AuditLogs.
-
#list(after: nil, before: nil, event_type: nil, limit: nil, object_id_: nil, object_type: nil, sort: nil, user_id: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Cms::PublicAuditLog>
Some parameter documentations has been truncated, see Models::Cms::AuditLogListParams for more details.
Constructor Details
#initialize(client:) ⇒ AuditLogs
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AuditLogs.
82 83 84 |
# File 'lib/hubspot_sdk/resources/cms/audit_logs.rb', line 82 def initialize(client:) @client = client end |
Instance Method Details
#export(email:, format_:, portal_id:, recipient_user_ids:, should_mark_export_file_as_sensitive:, type:, filters: nil, partition: nil, user_id: nil, user_time_zone: nil, request_options: {}) ⇒ nil
68 69 70 71 72 73 74 75 76 77 |
# File 'lib/hubspot_sdk/resources/cms/audit_logs.rb', line 68 def export(params) parsed, = HubSpotSDK::Cms::AuditLogExportParams.dump_request(params) @client.request( method: :post, path: "cms/audit-logs/2026-03/export", body: parsed, model: NilClass, options: ) end |
#list(after: nil, before: nil, event_type: nil, limit: nil, object_id_: nil, object_type: nil, sort: nil, user_id: nil, request_options: {}) ⇒ HubSpotSDK::Internal::Page<HubSpotSDK::Models::Cms::PublicAuditLog>
Some parameter documentations has been truncated, see Models::Cms::AuditLogListParams for more details.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/hubspot_sdk/resources/cms/audit_logs.rb', line 33 def list(params = {}) parsed, = HubSpotSDK::Cms::AuditLogListParams.dump_request(params) query = HubSpotSDK::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "cms/audit-logs/2026-03", query: query.transform_keys( event_type: "eventType", object_id_: "objectId", object_type: "objectType", user_id: "userId" ), page: HubSpotSDK::Internal::Page, model: HubSpotSDK::Cms::PublicAuditLog, options: ) end |