Sha256: 122716dbc57d7ceb830c877c8a775226fd11a3cfd352873acc74497e405d7d7b

Contents?: true

Size: 1.95 KB

Versions: 10

Compression:

Stored size: 1.95 KB

Contents

=begin
#CMS Audit Logs

#Use this endpoint to query audit logs of CMS changes that occurred on your HubSpot account.

The version of the OpenAPI document: v3

Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1

=end

require 'spec_helper'
require 'json'

# Unit tests for Hubspot::Cms::AuditLogs::DefaultApi
# Automatically generated by openapi-generator (https://openapi-generator.tech)
# Please update as you see appropriate
describe 'DefaultApi' do
  before do
    # run before each test
    @api_instance = Hubspot::Cms::AuditLogs::DefaultApi.new
  end

  after do
    # run after each test
  end

  describe 'test an instance of DefaultApi' do
    it 'should create an instance of DefaultApi' do
      expect(@api_instance).to be_instance_of(Hubspot::Cms::AuditLogs::DefaultApi)
    end
  end

  # unit tests for get_page
  # Query audit logs
  # Returns audit logs based on filters.
  # @param [Hash] opts the optional parameters
  # @option opts [Array<String>] :object_id Comma separated list of object ids to filter by.
  # @option opts [Array<String>] :user_id Comma separated list of user ids to filter by.
  # @option opts [String] :after Timestamp after which audit logs will be returned
  # @option opts [String] :before Timestamp before which audit logs will be returned
  # @option opts [Array<String>] :sort The sort direction for the audit logs. (Can only sort by timestamp).
  # @option opts [Array<String>] :event_type Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED).
  # @option opts [Integer] :limit The number of logs to return.
  # @option opts [Array<String>] :object_type Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.)
  # @return [CollectionResponsePublicAuditLog]
  describe 'get_page test' do
    it 'should work' do
      # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
hubspot-api-client-10.1.1 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-10.1.0 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-10.0.1 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-10.0.0 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-9.6.0 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-9.5.1 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-9.5.0 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-9.4.0 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-9.3.0 spec/codegen/cms/audit-logs/api/default_api_spec.rb
hubspot-api-client-9.2.1 spec/cms/audit-logs/api/default_api_spec.rb