77cb03ec98
Adds 8 cmdlets for Organization and Sub-Organization CRUD (Get/New/Update/Remove for each), targeting /api/v2/organizations and /api/v1/sub-organizations. Get cmdlets default to List parameter set and switch to Single when -OrganizationId or -SubOrganizationId is supplied. New/Update/Remove honor -WhatIf/-Confirm; Remove defaults to High ConfirmImpact and supports -PassThru. No project context required. Adds Get-InfisicalSANList: emits a deduplicated SAN candidate set containing the local device name, the device name suffixed with each non-empty DNS suffix found across operational adapters and the system primary domain, every IPv4 unicast address falling within RFC 1918 or CGNAT, and the IPv4/IPv6 loopback addresses. Supports optional case-insensitive -InclusionExpression and -ExclusionExpression regex filters applied in fetch -> include -> exclude -> output order. Output is a single strongly-typed System.String[] array emitted non-enumerated so List<string>.AddRange consumes it directly. Registers 10 new endpoints, adds InfisicalOrganization/InfisicalSubOrganization models with DTOs, mappers, and clients, full MAML help for all 9 new cmdlets, mapper unit tests, EndpointRegistry inline-data coverage, and docs/DesignSpec.md sections 16.7 and 16.8. build.ps1 CmdletsToExport and Test-ModuleImports expected list now contain 51 cmdlets. README updated with Organization/Sub-Organization tables, the new Get-InfisicalSANList entry, and an end-to-end certificate request example using splatted OrderedDictionary blocks.
22 lines
618 B
C#
22 lines
618 B
C#
using System;
|
|
|
|
namespace PSInfisicalAPI.Models
|
|
{
|
|
public sealed class InfisicalOrganization
|
|
{
|
|
public string Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Slug { get; set; }
|
|
public string CustomerId { get; set; }
|
|
public bool AuthEnforced { get; set; }
|
|
public bool ScimEnabled { get; set; }
|
|
public DateTimeOffset? CreatedAtUtc { get; set; }
|
|
public DateTimeOffset? UpdatedAtUtc { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return string.IsNullOrEmpty(Slug) ? (Name ?? Id) : Slug;
|
|
}
|
|
}
|
|
}
|