From f6eca3661673397f63298e3e875429dc76c773a7 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:17:27 -0700 Subject: [PATCH] :herb: Fern Regeneration -- October 21, 2024 (#2) This PR regenerates code to match the latest API Definition. Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> --- client/client.go | 4 +- management/client/client.go | 4 +- management/scim_directories.go | 2 +- management/scimdirectories/client.go | 36 +++--- management/setup_urls.go | 2 +- scim.go | 10 +- scim/client.go | 28 ++--- types.go | 166 +++++++++++++-------------- 8 files changed, 126 insertions(+), 126 deletions(-) diff --git a/client/client.go b/client/client.go index 5312581..5cd1a16 100644 --- a/client/client.go +++ b/client/client.go @@ -18,7 +18,7 @@ type Client struct { header http.Header SAML *saml.Client - Scim *scim.Client + SCIM *scim.Client Management *managementclient.Client } @@ -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...), } } diff --git a/management/client/client.go b/management/client/client.go index 31ee44f..b1157c8 100644 --- a/management/client/client.go +++ b/management/client/client.go @@ -20,7 +20,7 @@ type Client struct { Organizations *organizations.Client SAMLConnections *samlconnections.Client - ScimDirectories *scimdirectories.Client + SCIMDirectories *scimdirectories.Client SetupURLs *setupurls.Client } @@ -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...), } } diff --git a/management/scim_directories.go b/management/scim_directories.go index 7120d91..5b04988 100644 --- a/management/scim_directories.go +++ b/management/scim_directories.go @@ -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. diff --git a/management/scimdirectories/client.go b/management/scimdirectories/client.go index 082f50e..1e17691 100644 --- a/management/scimdirectories/client.go +++ b/management/scimdirectories/client.go @@ -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" @@ -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{ @@ -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" @@ -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{ @@ -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" @@ -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{ @@ -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" @@ -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{ @@ -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" @@ -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{ diff --git a/management/setup_urls.go b/management/setup_urls.go index 1be2319..a24a9e2 100644 --- a/management/setup_urls.go +++ b/management/setup_urls.go @@ -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:"-"` } diff --git a/scim.go b/scim.go index 33d8da1..b0d246a 100644 --- a/scim.go +++ b/scim.go @@ -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. @@ -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. @@ -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"` } diff --git a/scim/client.go b/scim/client.go index ce72303..b4cf4f4 100644 --- a/scim/client.go +++ b/scim/client.go @@ -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" @@ -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{ @@ -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" @@ -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{ @@ -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" @@ -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{ @@ -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" @@ -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{ diff --git a/types.go b/types.go index 1b67ebe..ae7ed66 100644 --- a/types.go +++ b/types.go @@ -92,25 +92,25 @@ func (c *CreateSAMLConnectionResponse) String() string { return fmt.Sprintf("%#v", c) } -type CreateScimDirectoryResponse struct { +type CreateSCIMDirectoryResponse struct { // The updated SCIM directory. - ScimDirectory *ScimDirectory `json:"scimDirectory,omitempty" url:"scimDirectory,omitempty"` + SCIMDirectory *SCIMDirectory `json:"scimDirectory,omitempty" url:"scimDirectory,omitempty"` extraProperties map[string]interface{} _rawJSON json.RawMessage } -func (c *CreateScimDirectoryResponse) GetExtraProperties() map[string]interface{} { +func (c *CreateSCIMDirectoryResponse) GetExtraProperties() map[string]interface{} { return c.extraProperties } -func (c *CreateScimDirectoryResponse) UnmarshalJSON(data []byte) error { - type unmarshaler CreateScimDirectoryResponse +func (c *CreateSCIMDirectoryResponse) UnmarshalJSON(data []byte) error { + type unmarshaler CreateSCIMDirectoryResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *c = CreateScimDirectoryResponse(value) + *c = CreateSCIMDirectoryResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *c) if err != nil { @@ -122,7 +122,7 @@ func (c *CreateScimDirectoryResponse) UnmarshalJSON(data []byte) error { return nil } -func (c *CreateScimDirectoryResponse) String() string { +func (c *CreateSCIMDirectoryResponse) String() string { if len(c._rawJSON) > 0 { if value, err := core.StringifyJSON(c._rawJSON); err == nil { return value @@ -305,25 +305,25 @@ func (g *GetSAMLRedirectURLResponse) String() string { return fmt.Sprintf("%#v", g) } -type GetScimDirectoryResponse struct { +type GetSCIMDirectoryResponse struct { // The requested SCIM directory. - ScimDirectory *ScimDirectory `json:"scimDirectory,omitempty" url:"scimDirectory,omitempty"` + SCIMDirectory *SCIMDirectory `json:"scimDirectory,omitempty" url:"scimDirectory,omitempty"` extraProperties map[string]interface{} _rawJSON json.RawMessage } -func (g *GetScimDirectoryResponse) GetExtraProperties() map[string]interface{} { +func (g *GetSCIMDirectoryResponse) GetExtraProperties() map[string]interface{} { return g.extraProperties } -func (g *GetScimDirectoryResponse) UnmarshalJSON(data []byte) error { - type unmarshaler GetScimDirectoryResponse +func (g *GetSCIMDirectoryResponse) UnmarshalJSON(data []byte) error { + type unmarshaler GetSCIMDirectoryResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *g = GetScimDirectoryResponse(value) + *g = GetSCIMDirectoryResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *g) if err != nil { @@ -335,7 +335,7 @@ func (g *GetScimDirectoryResponse) UnmarshalJSON(data []byte) error { return nil } -func (g *GetScimDirectoryResponse) String() string { +func (g *GetSCIMDirectoryResponse) String() string { if len(g._rawJSON) > 0 { if value, err := core.StringifyJSON(g._rawJSON); err == nil { return value @@ -347,25 +347,25 @@ func (g *GetScimDirectoryResponse) String() string { return fmt.Sprintf("%#v", g) } -type GetScimGroupResponse struct { +type GetSCIMGroupResponse struct { // The requested SCIM group. - ScimGroup *ScimGroup `json:"scimGroup,omitempty" url:"scimGroup,omitempty"` + SCIMGroup *SCIMGroup `json:"scimGroup,omitempty" url:"scimGroup,omitempty"` extraProperties map[string]interface{} _rawJSON json.RawMessage } -func (g *GetScimGroupResponse) GetExtraProperties() map[string]interface{} { +func (g *GetSCIMGroupResponse) GetExtraProperties() map[string]interface{} { return g.extraProperties } -func (g *GetScimGroupResponse) UnmarshalJSON(data []byte) error { - type unmarshaler GetScimGroupResponse +func (g *GetSCIMGroupResponse) UnmarshalJSON(data []byte) error { + type unmarshaler GetSCIMGroupResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *g = GetScimGroupResponse(value) + *g = GetSCIMGroupResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *g) if err != nil { @@ -377,7 +377,7 @@ func (g *GetScimGroupResponse) UnmarshalJSON(data []byte) error { return nil } -func (g *GetScimGroupResponse) String() string { +func (g *GetSCIMGroupResponse) String() string { if len(g._rawJSON) > 0 { if value, err := core.StringifyJSON(g._rawJSON); err == nil { return value @@ -389,25 +389,25 @@ func (g *GetScimGroupResponse) String() string { return fmt.Sprintf("%#v", g) } -type GetScimUserResponse struct { +type GetSCIMUserResponse struct { // The requested SCIM user. - ScimUser *ScimUser `json:"scimUser,omitempty" url:"scimUser,omitempty"` + SCIMUser *SCIMUser `json:"scimUser,omitempty" url:"scimUser,omitempty"` extraProperties map[string]interface{} _rawJSON json.RawMessage } -func (g *GetScimUserResponse) GetExtraProperties() map[string]interface{} { +func (g *GetSCIMUserResponse) GetExtraProperties() map[string]interface{} { return g.extraProperties } -func (g *GetScimUserResponse) UnmarshalJSON(data []byte) error { - type unmarshaler GetScimUserResponse +func (g *GetSCIMUserResponse) UnmarshalJSON(data []byte) error { + type unmarshaler GetSCIMUserResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *g = GetScimUserResponse(value) + *g = GetSCIMUserResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *g) if err != nil { @@ -419,7 +419,7 @@ func (g *GetScimUserResponse) UnmarshalJSON(data []byte) error { return nil } -func (g *GetScimUserResponse) String() string { +func (g *GetSCIMUserResponse) String() string { if len(g._rawJSON) > 0 { if value, err := core.StringifyJSON(g._rawJSON); err == nil { return value @@ -577,9 +577,9 @@ func (l *ListSAMLConnectionsResponse) String() string { return fmt.Sprintf("%#v", l) } -type ListScimDirectoriesResponse struct { +type ListSCIMDirectoriesResponse struct { // The list of SCIM directories. - ScimDirectories []*ScimDirectory `json:"scimDirectories,omitempty" url:"scimDirectories,omitempty"` + SCIMDirectories []*SCIMDirectory `json:"scimDirectories,omitempty" url:"scimDirectories,omitempty"` // Value to use as `pageToken` for the next page of data. Empty if there is no more data. NextPageToken *string `json:"nextPageToken,omitempty" url:"nextPageToken,omitempty"` @@ -587,17 +587,17 @@ type ListScimDirectoriesResponse struct { _rawJSON json.RawMessage } -func (l *ListScimDirectoriesResponse) GetExtraProperties() map[string]interface{} { +func (l *ListSCIMDirectoriesResponse) GetExtraProperties() map[string]interface{} { return l.extraProperties } -func (l *ListScimDirectoriesResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ListScimDirectoriesResponse +func (l *ListSCIMDirectoriesResponse) UnmarshalJSON(data []byte) error { + type unmarshaler ListSCIMDirectoriesResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *l = ListScimDirectoriesResponse(value) + *l = ListSCIMDirectoriesResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *l) if err != nil { @@ -609,7 +609,7 @@ func (l *ListScimDirectoriesResponse) UnmarshalJSON(data []byte) error { return nil } -func (l *ListScimDirectoriesResponse) String() string { +func (l *ListSCIMDirectoriesResponse) String() string { if len(l._rawJSON) > 0 { if value, err := core.StringifyJSON(l._rawJSON); err == nil { return value @@ -621,9 +621,9 @@ func (l *ListScimDirectoriesResponse) String() string { return fmt.Sprintf("%#v", l) } -type ListScimGroupsResponse struct { +type ListSCIMGroupsResponse struct { // List of SCIM groups. - ScimGroups []*ScimGroup `json:"scimGroups,omitempty" url:"scimGroups,omitempty"` + SCIMGroups []*SCIMGroup `json:"scimGroups,omitempty" url:"scimGroups,omitempty"` // Value to use as `pageToken` for the next page of data. Empty if there is no more data. NextPageToken *string `json:"nextPageToken,omitempty" url:"nextPageToken,omitempty"` @@ -631,17 +631,17 @@ type ListScimGroupsResponse struct { _rawJSON json.RawMessage } -func (l *ListScimGroupsResponse) GetExtraProperties() map[string]interface{} { +func (l *ListSCIMGroupsResponse) GetExtraProperties() map[string]interface{} { return l.extraProperties } -func (l *ListScimGroupsResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ListScimGroupsResponse +func (l *ListSCIMGroupsResponse) UnmarshalJSON(data []byte) error { + type unmarshaler ListSCIMGroupsResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *l = ListScimGroupsResponse(value) + *l = ListSCIMGroupsResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *l) if err != nil { @@ -653,7 +653,7 @@ func (l *ListScimGroupsResponse) UnmarshalJSON(data []byte) error { return nil } -func (l *ListScimGroupsResponse) String() string { +func (l *ListSCIMGroupsResponse) String() string { if len(l._rawJSON) > 0 { if value, err := core.StringifyJSON(l._rawJSON); err == nil { return value @@ -665,9 +665,9 @@ func (l *ListScimGroupsResponse) String() string { return fmt.Sprintf("%#v", l) } -type ListScimUsersResponse struct { +type ListSCIMUsersResponse struct { // List of SCIM users. - ScimUsers []*ScimUser `json:"scimUsers,omitempty" url:"scimUsers,omitempty"` + SCIMUsers []*SCIMUser `json:"scimUsers,omitempty" url:"scimUsers,omitempty"` // Value to use as `pageToken` for the next page of data. Empty if there is no more data. NextPageToken *string `json:"nextPageToken,omitempty" url:"nextPageToken,omitempty"` @@ -675,17 +675,17 @@ type ListScimUsersResponse struct { _rawJSON json.RawMessage } -func (l *ListScimUsersResponse) GetExtraProperties() map[string]interface{} { +func (l *ListSCIMUsersResponse) GetExtraProperties() map[string]interface{} { return l.extraProperties } -func (l *ListScimUsersResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ListScimUsersResponse +func (l *ListSCIMUsersResponse) UnmarshalJSON(data []byte) error { + type unmarshaler ListSCIMUsersResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *l = ListScimUsersResponse(value) + *l = ListSCIMUsersResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *l) if err != nil { @@ -697,7 +697,7 @@ func (l *ListScimUsersResponse) UnmarshalJSON(data []byte) error { return nil } -func (l *ListScimUsersResponse) String() string { +func (l *ListSCIMUsersResponse) String() string { if len(l._rawJSON) > 0 { if value, err := core.StringifyJSON(l._rawJSON); err == nil { return value @@ -829,7 +829,7 @@ func (r *RedeemSAMLAccessCodeResponse) String() string { return fmt.Sprintf("%#v", r) } -type RotateScimDirectoryBearerTokenResponse struct { +type RotateSCIMDirectoryBearerTokenResponse struct { // The new, updated bearer token. // // Do not log or store this bearer token. It is an authentication token that your customer should securely input into @@ -840,17 +840,17 @@ type RotateScimDirectoryBearerTokenResponse struct { _rawJSON json.RawMessage } -func (r *RotateScimDirectoryBearerTokenResponse) GetExtraProperties() map[string]interface{} { +func (r *RotateSCIMDirectoryBearerTokenResponse) GetExtraProperties() map[string]interface{} { return r.extraProperties } -func (r *RotateScimDirectoryBearerTokenResponse) UnmarshalJSON(data []byte) error { - type unmarshaler RotateScimDirectoryBearerTokenResponse +func (r *RotateSCIMDirectoryBearerTokenResponse) UnmarshalJSON(data []byte) error { + type unmarshaler RotateSCIMDirectoryBearerTokenResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *r = RotateScimDirectoryBearerTokenResponse(value) + *r = RotateSCIMDirectoryBearerTokenResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *r) if err != nil { @@ -862,7 +862,7 @@ func (r *RotateScimDirectoryBearerTokenResponse) UnmarshalJSON(data []byte) erro return nil } -func (r *RotateScimDirectoryBearerTokenResponse) String() string { +func (r *RotateSCIMDirectoryBearerTokenResponse) String() string { if len(r._rawJSON) > 0 { if value, err := core.StringifyJSON(r._rawJSON); err == nil { return value @@ -941,7 +941,7 @@ func (s *SAMLConnection) String() string { return fmt.Sprintf("%#v", s) } -type ScimDirectory struct { +type SCIMDirectory struct { // Unique identifier for this SCIM directory. ID *string `json:"id,omitempty" url:"id,omitempty"` // The organization this SCIM directory belongs to. @@ -951,7 +951,7 @@ type ScimDirectory struct { // Base URL the Identity Provider uses to perform SCIM HTTP requests. // // SCIM base URLs are assigned by SSOReady, and need to be inputted into your customer's Identity Provider. - ScimBaseURL *string `json:"scimBaseUrl,omitempty" url:"scimBaseUrl,omitempty"` + SCIMBaseURL *string `json:"scimBaseUrl,omitempty" url:"scimBaseUrl,omitempty"` // Whether this SCIM directory has a bearer token assigned. // // SSOReady only stores a hash of the bearer token. To get a bearer token value, you must rotate this SCIM directory's @@ -962,17 +962,17 @@ type ScimDirectory struct { _rawJSON json.RawMessage } -func (s *ScimDirectory) GetExtraProperties() map[string]interface{} { +func (s *SCIMDirectory) GetExtraProperties() map[string]interface{} { return s.extraProperties } -func (s *ScimDirectory) UnmarshalJSON(data []byte) error { - type unmarshaler ScimDirectory +func (s *SCIMDirectory) UnmarshalJSON(data []byte) error { + type unmarshaler SCIMDirectory var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *s = ScimDirectory(value) + *s = SCIMDirectory(value) extraProperties, err := core.ExtractExtraProperties(data, *s) if err != nil { @@ -984,7 +984,7 @@ func (s *ScimDirectory) UnmarshalJSON(data []byte) error { return nil } -func (s *ScimDirectory) String() string { +func (s *SCIMDirectory) String() string { if len(s._rawJSON) > 0 { if value, err := core.StringifyJSON(s._rawJSON); err == nil { return value @@ -996,11 +996,11 @@ func (s *ScimDirectory) String() string { return fmt.Sprintf("%#v", s) } -type ScimGroup struct { +type SCIMGroup struct { // Unique identifier for this SCIM group. ID *string `json:"id,omitempty" url:"id,omitempty"` // SCIM directory this SCIM group belongs to. - ScimDirectoryID *string `json:"scimDirectoryId,omitempty" url:"scimDirectoryId,omitempty"` + SCIMDirectoryID *string `json:"scimDirectoryId,omitempty" url:"scimDirectoryId,omitempty"` // A human-friendly name for the SCIM group. DisplayName *string `json:"displayName,omitempty" url:"displayName,omitempty"` // Whether the SCIM group has been deleted or deprovisioned from its SCIM directory. @@ -1019,17 +1019,17 @@ type ScimGroup struct { _rawJSON json.RawMessage } -func (s *ScimGroup) GetExtraProperties() map[string]interface{} { +func (s *SCIMGroup) GetExtraProperties() map[string]interface{} { return s.extraProperties } -func (s *ScimGroup) UnmarshalJSON(data []byte) error { - type unmarshaler ScimGroup +func (s *SCIMGroup) UnmarshalJSON(data []byte) error { + type unmarshaler SCIMGroup var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *s = ScimGroup(value) + *s = SCIMGroup(value) extraProperties, err := core.ExtractExtraProperties(data, *s) if err != nil { @@ -1041,7 +1041,7 @@ func (s *ScimGroup) UnmarshalJSON(data []byte) error { return nil } -func (s *ScimGroup) String() string { +func (s *SCIMGroup) String() string { if len(s._rawJSON) > 0 { if value, err := core.StringifyJSON(s._rawJSON); err == nil { return value @@ -1053,11 +1053,11 @@ func (s *ScimGroup) String() string { return fmt.Sprintf("%#v", s) } -type ScimUser struct { +type SCIMUser struct { // Unique identifier for this SCIM user. ID *string `json:"id,omitempty" url:"id,omitempty"` // SCIM directory this SCIM user belongs to. - ScimDirectoryID *string `json:"scimDirectoryId,omitempty" url:"scimDirectoryId,omitempty"` + SCIMDirectoryID *string `json:"scimDirectoryId,omitempty" url:"scimDirectoryId,omitempty"` // The SCIM user's email address. Email *string `json:"email,omitempty" url:"email,omitempty"` // Whether the SCIM user has been deleted or deprovisioned from its SCIM directory. @@ -1072,17 +1072,17 @@ type ScimUser struct { _rawJSON json.RawMessage } -func (s *ScimUser) GetExtraProperties() map[string]interface{} { +func (s *SCIMUser) GetExtraProperties() map[string]interface{} { return s.extraProperties } -func (s *ScimUser) UnmarshalJSON(data []byte) error { - type unmarshaler ScimUser +func (s *SCIMUser) UnmarshalJSON(data []byte) error { + type unmarshaler SCIMUser var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *s = ScimUser(value) + *s = SCIMUser(value) extraProperties, err := core.ExtractExtraProperties(data, *s) if err != nil { @@ -1094,7 +1094,7 @@ func (s *ScimUser) UnmarshalJSON(data []byte) error { return nil } -func (s *ScimUser) String() string { +func (s *SCIMUser) String() string { if len(s._rawJSON) > 0 { if value, err := core.StringifyJSON(s._rawJSON); err == nil { return value @@ -1237,25 +1237,25 @@ func (u *UpdateSAMLConnectionResponse) String() string { return fmt.Sprintf("%#v", u) } -type UpdateScimDirectoryResponse struct { +type UpdateSCIMDirectoryResponse struct { // The updated SCIM directory. - ScimDirectory *ScimDirectory `json:"scimDirectory,omitempty" url:"scimDirectory,omitempty"` + SCIMDirectory *SCIMDirectory `json:"scimDirectory,omitempty" url:"scimDirectory,omitempty"` extraProperties map[string]interface{} _rawJSON json.RawMessage } -func (u *UpdateScimDirectoryResponse) GetExtraProperties() map[string]interface{} { +func (u *UpdateSCIMDirectoryResponse) GetExtraProperties() map[string]interface{} { return u.extraProperties } -func (u *UpdateScimDirectoryResponse) UnmarshalJSON(data []byte) error { - type unmarshaler UpdateScimDirectoryResponse +func (u *UpdateSCIMDirectoryResponse) UnmarshalJSON(data []byte) error { + type unmarshaler UpdateSCIMDirectoryResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *u = UpdateScimDirectoryResponse(value) + *u = UpdateSCIMDirectoryResponse(value) extraProperties, err := core.ExtractExtraProperties(data, *u) if err != nil { @@ -1267,7 +1267,7 @@ func (u *UpdateScimDirectoryResponse) UnmarshalJSON(data []byte) error { return nil } -func (u *UpdateScimDirectoryResponse) String() string { +func (u *UpdateSCIMDirectoryResponse) String() string { if len(u._rawJSON) > 0 { if value, err := core.StringifyJSON(u._rawJSON); err == nil { return value