Skip to content

Commit

Permalink
🌿 Fern Regeneration -- October 21, 2024 (#2)
Browse files Browse the repository at this point in the history
This PR regenerates code to match the latest API Definition.

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
fern-api[bot] authored Oct 21, 2024
1 parent a24271f commit f6eca36
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 126 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Client struct {
header http.Header

SAML *saml.Client
Scim *scim.Client
SCIM *scim.Client
Management *managementclient.Client
}

Expand All @@ -37,7 +37,7 @@ func NewClient(opts ...option.RequestOption) *Client {
),
header: options.ToHeader(),
SAML: saml.NewClient(opts...),
Scim: scim.NewClient(opts...),
SCIM: scim.NewClient(opts...),
Management: managementclient.NewClient(opts...),
}
}
4 changes: 2 additions & 2 deletions management/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type Client struct {

Organizations *organizations.Client
SAMLConnections *samlconnections.Client
ScimDirectories *scimdirectories.Client
SCIMDirectories *scimdirectories.Client
SetupURLs *setupurls.Client
}

Expand All @@ -40,7 +40,7 @@ func NewClient(opts ...option.RequestOption) *Client {
header: options.ToHeader(),
Organizations: organizations.NewClient(opts...),
SAMLConnections: samlconnections.NewClient(opts...),
ScimDirectories: scimdirectories.NewClient(opts...),
SCIMDirectories: scimdirectories.NewClient(opts...),
SetupURLs: setupurls.NewClient(opts...),
}
}
2 changes: 1 addition & 1 deletion management/scim_directories.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package management

type ScimDirectoriesListScimDirectoriesRequest struct {
type SCIMDirectoriesListSCIMDirectoriesRequest struct {
// The organization the SCIM directories belong to.
OrganizationID *string `json:"-" url:"organizationId,omitempty"`
// Pagination token. Leave empty to get the first page of results.
Expand Down
36 changes: 18 additions & 18 deletions management/scimdirectories/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ func NewClient(opts ...option.RequestOption) *Client {
}

// Gets a list of SCIM directories in an organization.
func (c *Client) ListScimDirectories(
func (c *Client) ListSCIMDirectories(
ctx context.Context,
request *management.ScimDirectoriesListScimDirectoriesRequest,
request *management.SCIMDirectoriesListSCIMDirectoriesRequest,
opts ...option.RequestOption,
) (*ssoreadygo.ListScimDirectoriesResponse, error) {
) (*ssoreadygo.ListSCIMDirectoriesResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -62,7 +62,7 @@ func (c *Client) ListScimDirectories(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *ssoreadygo.ListScimDirectoriesResponse
var response *ssoreadygo.ListSCIMDirectoriesResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -82,11 +82,11 @@ func (c *Client) ListScimDirectories(
}

// Creates a SCIM directory.
func (c *Client) CreateScimDirectory(
func (c *Client) CreateSCIMDirectory(
ctx context.Context,
request *ssoreadygo.ScimDirectory,
request *ssoreadygo.SCIMDirectory,
opts ...option.RequestOption,
) (*ssoreadygo.CreateScimDirectoryResponse, error) {
) (*ssoreadygo.CreateSCIMDirectoryResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -101,7 +101,7 @@ func (c *Client) CreateScimDirectory(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *ssoreadygo.CreateScimDirectoryResponse
var response *ssoreadygo.CreateSCIMDirectoryResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -122,12 +122,12 @@ func (c *Client) CreateScimDirectory(
}

// Gets a SCIM directory.
func (c *Client) GetScimDirectory(
func (c *Client) GetSCIMDirectory(
ctx context.Context,
// The ID of the SCIM directory.
id string,
opts ...option.RequestOption,
) (*ssoreadygo.GetScimDirectoryResponse, error) {
) (*ssoreadygo.GetSCIMDirectoryResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -141,7 +141,7 @@ func (c *Client) GetScimDirectory(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *ssoreadygo.GetScimDirectoryResponse
var response *ssoreadygo.GetSCIMDirectoryResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -161,13 +161,13 @@ func (c *Client) GetScimDirectory(
}

// Updates a SCIM directory.
func (c *Client) UpdateScimDirectory(
func (c *Client) UpdateSCIMDirectory(
ctx context.Context,
// The ID of the SCIM directory to update.
id string,
request *ssoreadygo.ScimDirectory,
request *ssoreadygo.SCIMDirectory,
opts ...option.RequestOption,
) (*ssoreadygo.UpdateScimDirectoryResponse, error) {
) (*ssoreadygo.UpdateSCIMDirectoryResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -182,7 +182,7 @@ func (c *Client) UpdateScimDirectory(
headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())
headers.Set("Content-Type", "application/json")

var response *ssoreadygo.UpdateScimDirectoryResponse
var response *ssoreadygo.UpdateSCIMDirectoryResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down Expand Up @@ -213,12 +213,12 @@ func (c *Client) UpdateScimDirectory(
//
// SSOReady only stores the hash of these bearer tokens. If your customer has lost their copy, you must use this
// endpoint to generate a new one.
func (c *Client) RotateScimDirectoryBearerToken(
func (c *Client) RotateSCIMDirectoryBearerToken(
ctx context.Context,
// The ID of the SCIM directory whose bearer token to rotate.
id string,
opts ...option.RequestOption,
) (*ssoreadygo.RotateScimDirectoryBearerTokenResponse, error) {
) (*ssoreadygo.RotateSCIMDirectoryBearerTokenResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -232,7 +232,7 @@ func (c *Client) RotateScimDirectoryBearerToken(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *ssoreadygo.RotateScimDirectoryBearerTokenResponse
var response *ssoreadygo.RotateSCIMDirectoryBearerTokenResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down
2 changes: 1 addition & 1 deletion management/setup_urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ type CreateSetupURLRequest struct {
// Whether the setup URL lets the user manage SAML connections.
CanManageSAML *bool `json:"canManageSaml,omitempty" url:"-"`
// Whether the setup URL lets the user manage SCIM directories.
CanManageScim *bool `json:"canManageScim,omitempty" url:"-"`
CanManageSCIM *bool `json:"canManageScim,omitempty" url:"-"`
}
10 changes: 5 additions & 5 deletions scim.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

package ssoready

type ScimListScimGroupsRequest struct {
type SCIMListSCIMGroupsRequest struct {
// The SCIM directory to list from.
//
// One of `scimDirectoryId`, `organizationId`, or `organizationExternalId` must be specified.
ScimDirectoryID *string `json:"-" url:"scimDirectoryId,omitempty"`
SCIMDirectoryID *string `json:"-" url:"scimDirectoryId,omitempty"`
// The ID of the organization to list from. The primary SCIM directory of this organization is used.
//
// One of `scimDirectoryId`, `organizationId`, or `organizationExternalId` must be specified.
Expand All @@ -19,11 +19,11 @@ type ScimListScimGroupsRequest struct {
PageToken *string `json:"-" url:"pageToken,omitempty"`
}

type ScimListScimUsersRequest struct {
type SCIMListSCIMUsersRequest struct {
// The SCIM directory to list from.
//
// One of `scimDirectoryId`, `organizationId`, or `organizationExternalId` must be specified.
ScimDirectoryID *string `json:"-" url:"scimDirectoryId,omitempty"`
SCIMDirectoryID *string `json:"-" url:"scimDirectoryId,omitempty"`
// The ID of the organization to list from. The primary SCIM directory of this organization is used.
//
// One of `scimDirectoryId`, `organizationId`, or `organizationExternalId` must be specified.
Expand All @@ -33,7 +33,7 @@ type ScimListScimUsersRequest struct {
// One of `scimDirectoryId`, `organizationId`, or `organizationExternalId` must be specified.
OrganizationExternalID *string `json:"-" url:"organizationExternalId,omitempty"`
// If specified, only users that are members of this SCIM group are returned.
ScimGroupID *string `json:"-" url:"scimGroupId,omitempty"`
SCIMGroupID *string `json:"-" url:"scimGroupId,omitempty"`
// Pagination token. Leave empty to get the first page of results.
PageToken *string `json:"-" url:"pageToken,omitempty"`
}
28 changes: 14 additions & 14 deletions scim/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ func NewClient(opts ...option.RequestOption) *Client {
}

// Gets a list of SCIM groups in a SCIM directory.
func (c *Client) ListScimGroups(
func (c *Client) ListSCIMGroups(
ctx context.Context,
request *ssoreadygo.ScimListScimGroupsRequest,
request *ssoreadygo.SCIMListSCIMGroupsRequest,
opts ...option.RequestOption,
) (*ssoreadygo.ListScimGroupsResponse, error) {
) (*ssoreadygo.ListSCIMGroupsResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -61,7 +61,7 @@ func (c *Client) ListScimGroups(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *ssoreadygo.ListScimGroupsResponse
var response *ssoreadygo.ListSCIMGroupsResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -81,12 +81,12 @@ func (c *Client) ListScimGroups(
}

// Gets a SCIM group in a SCIM directory.
func (c *Client) GetScimGroup(
func (c *Client) GetSCIMGroup(
ctx context.Context,
// ID of the SCIM group to get.
id string,
opts ...option.RequestOption,
) (*ssoreadygo.GetScimGroupResponse, error) {
) (*ssoreadygo.GetSCIMGroupResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -100,7 +100,7 @@ func (c *Client) GetScimGroup(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *ssoreadygo.GetScimGroupResponse
var response *ssoreadygo.GetSCIMGroupResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -120,11 +120,11 @@ func (c *Client) GetScimGroup(
}

// Gets a list of SCIM users in a SCIM directory.
func (c *Client) ListScimUsers(
func (c *Client) ListSCIMUsers(
ctx context.Context,
request *ssoreadygo.ScimListScimUsersRequest,
request *ssoreadygo.SCIMListSCIMUsersRequest,
opts ...option.RequestOption,
) (*ssoreadygo.ListScimUsersResponse, error) {
) (*ssoreadygo.ListSCIMUsersResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -146,7 +146,7 @@ func (c *Client) ListScimUsers(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *ssoreadygo.ListScimUsersResponse
var response *ssoreadygo.ListSCIMUsersResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand All @@ -166,12 +166,12 @@ func (c *Client) ListScimUsers(
}

// Gets a SCIM user.
func (c *Client) GetScimUser(
func (c *Client) GetSCIMUser(
ctx context.Context,
// ID of the SCIM user to get.
id string,
opts ...option.RequestOption,
) (*ssoreadygo.GetScimUserResponse, error) {
) (*ssoreadygo.GetSCIMUserResponse, error) {
options := core.NewRequestOptions(opts...)

baseURL := "https://api.ssoready.com"
Expand All @@ -185,7 +185,7 @@ func (c *Client) GetScimUser(

headers := core.MergeHeaders(c.header.Clone(), options.ToHeader())

var response *ssoreadygo.GetScimUserResponse
var response *ssoreadygo.GetSCIMUserResponse
if err := c.caller.Call(
ctx,
&core.CallParams{
Expand Down
Loading

0 comments on commit f6eca36

Please sign in to comment.