Skip to content

End User Documentation#17

Merged
zaben903 merged 14 commits into
mainfrom
docs/user_documentation
May 12, 2026
Merged

End User Documentation#17
zaben903 merged 14 commits into
mainfrom
docs/user_documentation

Conversation

@zaben903

@zaben903 zaben903 commented May 5, 2026

Copy link
Copy Markdown
Collaborator

Add additional documentation for reference with end users

Breaking Changes

  • PuppetV3#file_content now requires an environment parameter.
  • PuppetV3#static_file_content now requires the code_id and environment parameters.
  • ImportHierarchy#replace now accepts an Array of Hashes instead of a single Hash.

@zaben903 zaben903 self-assigned this May 5, 2026
@zaben903 zaben903 added the documentation Improvements or additions to documentation label May 5, 2026
@zaben903
zaben903 marked this pull request as ready for review May 12, 2026 04:26
@zaben903
zaben903 requested a review from Copilot May 12, 2026 04:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an end-user documentation set under docs/ and updates several client resources/specs/RBS to align with current Puppet Enterprise / Puppet Core API endpoint shapes (HTTP method/path, required params, and response types).

Changes:

  • Added a structured docs/ documentation set and linked it from the root README.md.
  • Updated multiple resources/specs to match current API endpoints (RBAC v1 SAML/LDAP/groups, Node Classifier rules/import-hierarchy/environments, Orchestrator plan events + scheduled job updates).
  • Tightened/updated several RBS signatures to reflect the updated public APIs (notably Puppet v3 file/static file content and Orchestrator scheduled jobs).

Reviewed changes

Copilot reviewed 50 out of 50 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
spec/pe_client/resources/rbac_v1/saml_spec.rb Updates SAML configure endpoint expectation to PUT /rbac-api/v1/saml.
spec/pe_client/resources/rbac_v1/ldap_spec.rb Updates LDAP update method expectation and adds coverage for deprecated ds/ds_test.
spec/pe_client/resources/rbac_v1/groups_spec.rb Updates groups create/deprecated-create endpoint expectations.
spec/pe_client/resources/puppet_v3_spec.rb Updates static/file content specs to include environment/code_id params and octet-stream headers.
spec/pe_client/resources/orchestrator_v1/scheduled_jobs_spec.rb Adds spec coverage for editing/disabling scheduled environment jobs.
spec/pe_client/resources/orchestrator_v1/plan_jobs_spec.rb Updates plan job event details endpoint path (/event/<id>).
spec/pe_client/resources/node_classifier_v1/rules_spec.rb Updates rules translate to POST + plaintext response expectations.
spec/pe_client/resources/node_classifier_v1/import_hierarchy_spec.rb Updates import-hierarchy replace to accept an array payload.
spec/pe_client/resources/node_classifier_v1/environments_spec.rb Updates environment creation to PUT /environments/<name> with no body expectation.
sig/pe_client/resource/puppet.v3.rbs Updates Puppet v3 file_content/static_file_content signatures to require env/code_id.
sig/pe_client/resource/orchestrator.v1/ScheduledJobs.rbs Adds update signature and adjusts create userdata typing.
sig/pe_client/resource/node_classifier.v1/rules.rbs Updates translate signature to accept rule: and changes return type.
sig/pe_client/resource/node_classifier.v1/import_hierarchy.rbs Updates replace signature to take an array payload.
README.md Links to docs and updates certificate-auth SSL example.
lib/pe_client/resources/rbac.v2/users.rb Updates RBAC v2 users YARD @see link.
lib/pe_client/resources/rbac.v1/saml.rb Updates SAML configure to PUT /saml (no /configure).
lib/pe_client/resources/rbac.v1/ldap.rb Updates LDAP update HTTP method and deprecated DS paths.
lib/pe_client/resources/rbac.v1/groups.rb Updates groups create endpoint and deprecated create to use POST /groups.
lib/pe_client/resources/puppet.v3.rb Requires env/code_id params for content endpoints; adds octet-stream headers.
lib/pe_client/resources/puppet_db/query.v4/nodes.rb Doc comment formatting adjustments.
lib/pe_client/resources/puppet_db/query.v4/catalogs.rb Doc comment formatting adjustments.
lib/pe_client/resources/puppet_ca.v1/certificate_status.rb Updates @see link and shortens doc comment.
lib/pe_client/resources/orchestrator.v1/scopes.rb Minor doc grammar fix.
lib/pe_client/resources/orchestrator.v1/scheduled_jobs.rb Adds update method for scheduled environment jobs.
lib/pe_client/resources/orchestrator.v1/plan_jobs.rb Updates event detail endpoint path (/event/<id>).
lib/pe_client/resources/node_classifier.v1/rules.rb Changes translate to POST with rule body + format param.
lib/pe_client/resources/node_classifier.v1/import_hierarchy.rb Changes replace to accept array payload.
lib/pe_client/resources/node_classifier.v1/groups.rb Doc wording fixes.
lib/pe_client/resources/node_classifier.v1/group_children.rb Doc punctuation fix.
lib/pe_client/resources/node_classifier.v1/environments.rb Changes create to PUT /environments/<name>.
lib/pe_client/resources/node_classifier.v1.rb Fixes module-level @see link to node classifier docs.
docs/status.md New end-user doc for Status API.
docs/README.md New docs index / TOC.
docs/rbac_service_v2.md New end-user doc for RBAC v2 API.
docs/rbac_service_v1.md New end-user doc for RBAC v1 API.
docs/puppetdb/metadata_v1.md New end-user doc for PuppetDB metadata API.
docs/puppetdb/admin_v1.md New end-user doc for PuppetDB admin API.
docs/puppetdb.md New end-user doc hub for PuppetDB APIs.
docs/puppet_server.md New end-user doc for Puppet Server APIs used by the gem.
docs/puppet_admin.md New end-user doc for Puppet Admin API.
docs/orchestrator.md New end-user doc for Orchestrator API.
docs/node_inventory.md New end-user doc for Node Inventory API.
docs/node_classifier_service.md New end-user doc for Node Classifier API.
docs/metrics.md New end-user doc for Metrics API.
docs/getting_started.md New getting-started guide (token + cert auth).
docs/code_manager.md New end-user doc for Code Manager API.
docs/ca.md New end-user doc for Certificate Authority API.
docs/activity_service.md New end-user doc for Activity Service API.
.ruby-version Updates developer Ruby version pin.

Comment thread lib/pe_client/resources/puppet.v3.rb
Comment thread lib/pe_client/resources/node_classifier.v1/rules.rb Outdated
Comment thread sig/pe_client/resource/node_classifier.v1/rules.rbs
Comment thread sig/pe_client/resource/orchestrator.v1/scheduled_jobs.rbs
Comment thread README.md Outdated
Comment thread docs/status.md Outdated
Comment thread docs/code_manager.md Outdated
Comment thread .ruby-version
Comment thread lib/pe_client/resources/node_classifier.v1/import_hierarchy.rb
docs: Update example client certificate authentication to use generic PKey
docs: clarify NodeClassifierV1::Rules#translate documentation
docs: OrchestratorV1::ScheduledJobs#create shouldn't accept nil for userdata

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 51 out of 51 changed files in this pull request and generated 5 comments.

Comment thread CHANGELOG.md
Comment thread docs/rbac_service_v1.md Outdated
Comment thread docs/status.md Outdated
Comment thread docs/rbac_service_v1.md Outdated
Comment thread lib/pe_client/resources/node_classifier.v1/import_hierarchy.rb Outdated
docs: don't use @option with an Array

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 51 out of 51 changed files in this pull request and generated 6 comments.

Comment thread lib/pe_client/resources/node_classifier.v1.rb Outdated
Comment thread sig/pe_client/resource/puppet.v3.rbs
Comment thread docs/orchestrator.md Outdated
Comment thread docs/orchestrator.md Outdated
Comment thread docs/rbac_service_v1.md Outdated
Comment thread docs/rbac_service_v1.md Outdated
docs: clarify CHANGELOG breaking changes
@zaben903
zaben903 merged commit 75450b2 into main May 12, 2026
10 checks passed
@zaben903
zaben903 deleted the docs/user_documentation branch May 12, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants