diff --git a/README.md b/README.md index bf9ccaff..6d549cec 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,8 @@ func main() { ctx := context.Background() res, err := s.AppEntitlementOwners.Add(ctx, operations.C1APIAppV1AppEntitlementOwnersAddRequest{ AddAppEntitlementOwnerRequest: &shared.AddAppEntitlementOwnerRequest{}, - AppID: "Small West", - EntitlementID: "Officer impactful", + AppID: "program", + EntitlementID: "North", }) if err != nil { log.Fatal(err) diff --git a/RELEASES.md b/RELEASES.md index daf39ea2..8b339e4c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -182,4 +182,14 @@ Based on: ### Generated - [go v1.11.2] . ### Releases -- [Go v1.11.2] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.11.2 - . \ No newline at end of file +- [Go v1.11.2] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.11.2 - . + +## 2023-10-17 18:38:20 +### Changes +Based on: +- OpenAPI Doc 0.1.0-alpha +- Speakeasy CLI 1.101.0 (2.161.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v1.12.0] . +### Releases +- [Go v1.12.0] https://github.com/ConductorOne/conductorone-sdk-go/releases/tag/v1.12.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 47057794..846f548d 100755 --- a/USAGE.md +++ b/USAGE.md @@ -23,8 +23,8 @@ func main() { ctx := context.Background() res, err := s.AppEntitlementOwners.Add(ctx, operations.C1APIAppV1AppEntitlementOwnersAddRequest{ AddAppEntitlementOwnerRequest: &shared.AddAppEntitlementOwnerRequest{}, - AppID: "Small West", - EntitlementID: "Officer impactful", + AppID: "program", + EntitlementID: "North", }) if err != nil { log.Fatal(err) diff --git a/conductoroneapi.go b/conductoroneapi.go index cb9c9099..affc96a9 100755 --- a/conductoroneapi.go +++ b/conductoroneapi.go @@ -186,9 +186,9 @@ func New(opts ...SDKOption) *ConductoroneAPI { sdkConfiguration: sdkConfiguration{ Language: "go", OpenAPIDocVersion: "0.1.0-alpha", - SDKVersion: "1.11.2", - GenVersion: "2.152.1", - UserAgent: "speakeasy-sdk/go 1.11.2 2.152.1 0.1.0-alpha github.com/conductorone/conductorone-sdk-go", + SDKVersion: "1.12.0", + GenVersion: "2.161.0", + UserAgent: "speakeasy-sdk/go 1.12.0 2.161.0 0.1.0-alpha github.com/conductorone/conductorone-sdk-go", ServerDefaults: []map[string]string{ { "tenantDomain": "example", diff --git a/docs/models/shared/appuser.md b/docs/models/shared/appuser.md index 8b407aba..cf51cbcb 100755 --- a/docs/models/shared/appuser.md +++ b/docs/models/shared/appuser.md @@ -14,7 +14,10 @@ Application User that represents an account in the application. | `DeletedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | | `DisplayName` | **string* | :heavy_minus_sign: | The display name of the application user. | | `Email` | **string* | :heavy_minus_sign: | The email field of the application user. | +| `Emails` | []*string* | :heavy_minus_sign: | The emails field of the application user. | | `ID` | **string* | :heavy_minus_sign: | A unique idenditfier of the application user. | | `IdentityUserID` | **string* | :heavy_minus_sign: | The conductor one user ID of the account owner. | | `Profile` | map[string][AppUserProfile](../../models/shared/appuserprofile.md) | :heavy_minus_sign: | N/A | -| `UpdatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `UpdatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | +| `Username` | **string* | :heavy_minus_sign: | The username field of the application user. | +| `Usernames` | []*string* | :heavy_minus_sign: | The usernames field of the application user. | \ No newline at end of file diff --git a/docs/models/shared/requestcatalogsearchservicesearchentitlementsresponse.md b/docs/models/shared/requestcatalogsearchservicesearchentitlementsresponse.md index c1700cae..45656651 100755 --- a/docs/models/shared/requestcatalogsearchservicesearchentitlementsresponse.md +++ b/docs/models/shared/requestcatalogsearchservicesearchentitlementsresponse.md @@ -7,6 +7,6 @@ The RequestCatalogSearchServiceSearchEntitlementsResponse message contains a lis | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `Expanded` | [][RequestCatalogSearchServiceSearchEntitlementsResponseExpanded](../../models/shared/requestcatalogsearchservicesearchentitlementsresponseexpanded.md) | :heavy_minus_sign: | The list of results containing up to X results, where X is the page size defined in the request. | -| `List` | [][AppEntitlementWithUserBindings](../../models/shared/appentitlementwithuserbindings.md) | :heavy_minus_sign: | List of serialized related objects. | +| `Expanded` | [][RequestCatalogSearchServiceSearchEntitlementsResponseExpanded](../../models/shared/requestcatalogsearchservicesearchentitlementsresponseexpanded.md) | :heavy_minus_sign: | List of serialized related objects. | +| `List` | [][AppEntitlementWithUserBindings](../../models/shared/appentitlementwithuserbindings.md) | :heavy_minus_sign: | The list of results containing up to X results, where X is the page size defined in the request. | | `NextPageToken` | **string* | :heavy_minus_sign: | The nextPageToken is shown for the next page if the number of results is larger than the max page size.
The server returns one page of results and the nextPageToken until all results are retreived.
To retrieve the next page, use the same request and append a pageToken field with the value of nextPageToken shown on the previous page. | \ No newline at end of file diff --git a/docs/models/shared/user.md b/docs/models/shared/user.md index 32388b4b..42c612ac 100755 --- a/docs/models/shared/user.md +++ b/docs/models/shared/user.md @@ -17,6 +17,7 @@ The User object provides all of the details for an user, as well as some configu | `DirectoryStatusSources` | [][UserAttributeMappingSource](../../models/shared/userattributemappingsource.md) | :heavy_minus_sign: | A list of objects mapped based on directoryStatus attribute mappings configured in the system. | | `DisplayName` | **string* | :heavy_minus_sign: | The display name of the user. | | `Email` | **string* | :heavy_minus_sign: | This is the user's email. | +| `Emails` | []*string* | :heavy_minus_sign: | This is a list of all of the user's emails from app users. | | `EmploymentStatus` | **string* | :heavy_minus_sign: | The users employment status. | | `EmploymentStatusSources` | [][UserAttributeMappingSource](../../models/shared/userattributemappingsource.md) | :heavy_minus_sign: | A list of objects mapped based on employmentStatus attribute mappings configured in the system. | | `EmploymentType` | **string* | :heavy_minus_sign: | The employment type of the user. | @@ -29,4 +30,6 @@ The User object provides all of the details for an user, as well as some configu | `Profile` | map[string][UserProfile](../../models/shared/userprofile.md) | :heavy_minus_sign: | N/A | | `RoleIds` | []*string* | :heavy_minus_sign: | A list of unique identifiers that maps to ConductorOne’s user roles let you assign users permissions tailored to the work they do in the software. | | `Status` | [*UserStatus](../../models/shared/userstatus.md) | :heavy_minus_sign: | The status of the user in the system. | -| `UpdatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `UpdatedAt` | [*time.Time](https://pkg.go.dev/time#Time) | :heavy_minus_sign: | N/A | +| `Username` | **string* | :heavy_minus_sign: | This is the user's primary username. Typically sourced from the primary directory. | +| `Usernames` | []*string* | :heavy_minus_sign: | This is a list of all of the user's usernames from app users. | \ No newline at end of file diff --git a/docs/sdks/appentitlementowners/README.md b/docs/sdks/appentitlementowners/README.md index e3a77c96..1c815963 100755 --- a/docs/sdks/appentitlementowners/README.md +++ b/docs/sdks/appentitlementowners/README.md @@ -36,8 +36,8 @@ func main() { ctx := context.Background() res, err := s.AppEntitlementOwners.Add(ctx, operations.C1APIAppV1AppEntitlementOwnersAddRequest{ AddAppEntitlementOwnerRequest: &shared.AddAppEntitlementOwnerRequest{}, - AppID: "Small West", - EntitlementID: "Officer impactful", + AppID: "program", + EntitlementID: "North", }) if err != nil { log.Fatal(err) @@ -89,8 +89,8 @@ func main() { ctx := context.Background() res, err := s.AppEntitlementOwners.List(ctx, operations.C1APIAppV1AppEntitlementOwnersListRequest{ - AppID: "Bronze Architect", - EntitlementID: "Southeast Soap katal", + AppID: "Future", + EntitlementID: "Southeast", }) if err != nil { log.Fatal(err) @@ -143,9 +143,9 @@ func main() { ctx := context.Background() res, err := s.AppEntitlementOwners.Remove(ctx, operations.C1APIAppV1AppEntitlementOwnersRemoveRequest{ RemoveAppEntitlementOwnerRequest: &shared.RemoveAppEntitlementOwnerRequest{}, - AppID: "SCSI", - EntitlementID: "JBOD tan", - UserID: "encompassing", + AppID: "Optimization", + EntitlementID: "JBOD", + UserID: "tan", }) if err != nil { log.Fatal(err) @@ -202,8 +202,8 @@ func main() { "markets", }, }, - AppID: "yahoo bandwidth", - EntitlementID: "male microchip", + AppID: "Non", + EntitlementID: "bandwidth", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appentitlements/README.md b/docs/sdks/appentitlements/README.md index e5d12f55..1b2e4552 100755 --- a/docs/sdks/appentitlements/README.md +++ b/docs/sdks/appentitlements/README.md @@ -37,7 +37,7 @@ func main() { ctx := context.Background() res, err := s.AppEntitlements.Get(ctx, operations.C1APIAppV1AppEntitlementsGetRequest{ - AppID: "Group Cambridgeshire", + AppID: "motivating", ID: "", }) if err != nil { @@ -90,7 +90,7 @@ func main() { ctx := context.Background() res, err := s.AppEntitlements.List(ctx, operations.C1APIAppV1AppEntitlementsListRequest{ - AppID: "Bronze Architect", + AppID: "Future", }) if err != nil { log.Fatal(err) @@ -142,9 +142,9 @@ func main() { ctx := context.Background() res, err := s.AppEntitlements.ListForAppResource(ctx, operations.C1APIAppV1AppEntitlementsListForAppResourceRequest{ - AppID: "SDD convergence", - AppResourceID: "quis whether", - AppResourceTypeID: "Non", + AppID: "person", + AppResourceID: "convergence", + AppResourceTypeID: "area", }) if err != nil { log.Fatal(err) @@ -196,8 +196,8 @@ func main() { ctx := context.Background() res, err := s.AppEntitlements.ListForAppUser(ctx, operations.C1APIAppV1AppEntitlementsListForAppUserRequest{ - AppID: "Gardena payment Mountain", - AppUserID: "Cruiser", + AppID: "meter", + AppUserID: "Monitored", }) if err != nil { log.Fatal(err) @@ -249,8 +249,8 @@ func main() { ctx := context.Background() res, err := s.AppEntitlements.ListUsers(ctx, operations.C1APIAppV1AppEntitlementsListUsersRequest{ - AppEntitlementID: "yellow payment", - AppID: "why Electric", + AppEntitlementID: "invoice", + AppID: "Northwest", }) if err != nil { log.Fatal(err) @@ -324,7 +324,7 @@ func main() { }, }, }, - AppID: "Ruble ADP Oregon", + AppID: "less", ID: "", }) if err != nil { diff --git a/docs/sdks/appentitlementuserbinding/README.md b/docs/sdks/appentitlementuserbinding/README.md index 336a4e74..6ce9638b 100755 --- a/docs/sdks/appentitlementuserbinding/README.md +++ b/docs/sdks/appentitlementuserbinding/README.md @@ -32,9 +32,9 @@ func main() { ctx := context.Background() res, err := s.AppEntitlementUserBinding.ListAppUsersForIdentityWithGrant(ctx, operations.C1APIAppV1AppEntitlementUserBindingServiceListAppUsersForIdentityWithGrantRequest{ - AppEntitlementID: "Applications parsing", - AppID: "turquoise tan sympathetically", - IdentityUserID: "Plastic", + AppEntitlementID: "Balboa", + AppID: "PCI", + IdentityUserID: "soup", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appowners/README.md b/docs/sdks/appowners/README.md index 62e3f198..f13f3b0e 100755 --- a/docs/sdks/appowners/README.md +++ b/docs/sdks/appowners/README.md @@ -35,8 +35,8 @@ func main() { ctx := context.Background() res, err := s.AppOwners.Add(ctx, operations.C1APIAppV1AppOwnersAddRequest{ AddAppOwnerRequest: &shared.AddAppOwnerRequest{}, - AppID: "Small West", - UserID: "Officer impactful", + AppID: "program", + UserID: "North", }) if err != nil { log.Fatal(err) @@ -88,7 +88,7 @@ func main() { ctx := context.Background() res, err := s.AppOwners.List(ctx, operations.C1APIAppV1AppOwnersListRequest{ - AppID: "Bronze Architect", + AppID: "Future", }) if err != nil { log.Fatal(err) @@ -141,8 +141,8 @@ func main() { ctx := context.Background() res, err := s.AppOwners.Remove(ctx, operations.C1APIAppV1AppOwnersRemoveRequest{ RemoveAppOwnerRequest: &shared.RemoveAppOwnerRequest{}, - AppID: "SCSI", - UserID: "JBOD tan", + AppID: "Optimization", + UserID: "JBOD", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appreport/README.md b/docs/sdks/appreport/README.md index b62fe539..3c2e6538 100755 --- a/docs/sdks/appreport/README.md +++ b/docs/sdks/appreport/README.md @@ -32,7 +32,7 @@ func main() { ctx := context.Background() res, err := s.AppReport.List(ctx, operations.C1APIAppV1AppReportServiceListRequest{ - AppID: "Bronze Architect", + AppID: "Future", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appreportaction/README.md b/docs/sdks/appreportaction/README.md index 0f41760c..5a2a9483 100755 --- a/docs/sdks/appreportaction/README.md +++ b/docs/sdks/appreportaction/README.md @@ -33,7 +33,7 @@ func main() { ctx := context.Background() res, err := s.AppReportAction.GenerateReport(ctx, operations.C1APIAppV1AppReportActionServiceGenerateReportRequest{ AppActionsServiceGenerateReportRequest: &shared.AppActionsServiceGenerateReportRequest{}, - AppID: "World", + AppID: "South", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appresource/README.md b/docs/sdks/appresource/README.md index 7fad7bef..0fc6f7dc 100755 --- a/docs/sdks/appresource/README.md +++ b/docs/sdks/appresource/README.md @@ -33,8 +33,8 @@ func main() { ctx := context.Background() res, err := s.AppResource.Get(ctx, operations.C1APIAppV1AppResourceServiceGetRequest{ - AppID: "Group Cambridgeshire", - AppResourceTypeID: "reintermediate fuchsia Planner", + AppID: "motivating", + AppResourceTypeID: "Account", ID: "", }) if err != nil { @@ -87,8 +87,8 @@ func main() { ctx := context.Background() res, err := s.AppResource.List(ctx, operations.C1APIAppV1AppResourceServiceListRequest{ - AppID: "Bronze Architect", - AppResourceTypeID: "Southeast Soap katal", + AppID: "Future", + AppResourceTypeID: "Southeast", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appresourceowners/README.md b/docs/sdks/appresourceowners/README.md index c3e3d5b7..281c85b2 100755 --- a/docs/sdks/appresourceowners/README.md +++ b/docs/sdks/appresourceowners/README.md @@ -32,9 +32,9 @@ func main() { ctx := context.Background() res, err := s.AppResourceOwners.List(ctx, operations.C1APIAppV1AppResourceOwnersListRequest{ - AppID: "Bronze Architect", - ResourceID: "Southeast Soap katal", - ResourceTypeID: "West East", + AppID: "Future", + ResourceID: "Southeast", + ResourceTypeID: "XML", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appresourcetype/README.md b/docs/sdks/appresourcetype/README.md index 8196ee77..d21a94c9 100755 --- a/docs/sdks/appresourcetype/README.md +++ b/docs/sdks/appresourcetype/README.md @@ -33,7 +33,7 @@ func main() { ctx := context.Background() res, err := s.AppResourceType.Get(ctx, operations.C1APIAppV1AppResourceTypeServiceGetRequest{ - AppID: "Group Cambridgeshire", + AppID: "motivating", ID: "", }) if err != nil { @@ -86,7 +86,7 @@ func main() { ctx := context.Background() res, err := s.AppResourceType.List(ctx, operations.C1APIAppV1AppResourceTypeServiceListRequest{ - AppID: "Bronze Architect", + AppID: "Future", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appusagecontrols/README.md b/docs/sdks/appusagecontrols/README.md index 4c85bee4..0c140171 100755 --- a/docs/sdks/appusagecontrols/README.md +++ b/docs/sdks/appusagecontrols/README.md @@ -33,7 +33,7 @@ func main() { ctx := context.Background() res, err := s.AppUsageControls.Get(ctx, operations.C1APIAppV1AppUsageControlsServiceGetRequest{ - AppID: "Group Cambridgeshire", + AppID: "motivating", }) if err != nil { log.Fatal(err) @@ -88,7 +88,7 @@ func main() { UpdateAppUsageControlsRequest: &shared.UpdateAppUsageControlsRequest{ AppUsageControls: &shared.AppUsageControls{}, }, - AppID: "South complexity", + AppID: "up", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/appuser/README.md b/docs/sdks/appuser/README.md index ff73e4de..5d821b0b 100755 --- a/docs/sdks/appuser/README.md +++ b/docs/sdks/appuser/README.md @@ -43,8 +43,8 @@ func main() { }, }, }, - AppUserAppID: "Clothing Tempe", - AppUserID: "Ohio ADP", + AppUserAppID: "complexity", + AppUserID: "Supervisor", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/attributes/README.md b/docs/sdks/attributes/README.md index c60c6a8c..9f68dcf7 100755 --- a/docs/sdks/attributes/README.md +++ b/docs/sdks/attributes/README.md @@ -240,7 +240,7 @@ func main() { ctx := context.Background() res, err := s.Attributes.ListAttributeValues(ctx, operations.C1APIAttributeV1AttributesListAttributeValuesRequest{ - AttributeTypeID: "trot markets", + AttributeTypeID: "Account", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/connector/README.md b/docs/sdks/connector/README.md index 2d1625dc..e81a6ba2 100755 --- a/docs/sdks/connector/README.md +++ b/docs/sdks/connector/README.md @@ -56,7 +56,7 @@ func main() { "Southwest", }, }, - AppID: "National Lauderhill", + AppID: "alarm", }) if err != nil { log.Fatal(err) @@ -118,7 +118,7 @@ func main() { "Southwest", }, }, - AppID: "visionary curiously", + AppID: "labore", }) if err != nil { log.Fatal(err) @@ -171,7 +171,7 @@ func main() { ctx := context.Background() res, err := s.Connector.Delete(ctx, operations.C1APIAppV1ConnectorServiceDeleteRequest{ ConnectorServiceDeleteRequest: &shared.ConnectorServiceDeleteRequest{}, - AppID: "Architect Cotton port", + AppID: "roughly", ID: "", }) if err != nil { @@ -224,7 +224,7 @@ func main() { ctx := context.Background() res, err := s.Connector.Get(ctx, operations.C1APIAppV1ConnectorServiceGetRequest{ - AppID: "Group Cambridgeshire", + AppID: "motivating", ID: "", }) if err != nil { @@ -277,8 +277,8 @@ func main() { ctx := context.Background() res, err := s.Connector.GetCredentials(ctx, operations.C1APIAppV1ConnectorServiceGetCredentialsRequest{ - AppID: "reluctance", - ConnectorID: "Cambridgeshire", + AppID: "West", + ConnectorID: "Beryllium", ID: "", }) if err != nil { @@ -331,7 +331,7 @@ func main() { ctx := context.Background() res, err := s.Connector.List(ctx, operations.C1APIAppV1ConnectorServiceListRequest{ - AppID: "Bronze Architect", + AppID: "Future", }) if err != nil { log.Fatal(err) @@ -384,8 +384,8 @@ func main() { ctx := context.Background() res, err := s.Connector.RevokeCredential(ctx, operations.C1APIAppV1ConnectorServiceRevokeCredentialRequest{ ConnectorServiceRevokeCredentialRequest: &shared.ConnectorServiceRevokeCredentialRequest{}, - AppID: "Supervisor Senior", - ConnectorID: "North as symbolise", + AppID: "Focused", + ConnectorID: "Passenger", ID: "", }) if err != nil { @@ -439,8 +439,8 @@ func main() { ctx := context.Background() res, err := s.Connector.RotateCredential(ctx, operations.C1APIAppV1ConnectorServiceRotateCredentialRequest{ ConnectorServiceRotateCredentialRequest: &shared.ConnectorServiceRotateCredentialRequest{}, - AppID: "yawningly Clothing", - ConnectorID: "watt functional ferociously", + AppID: "program", + ConnectorID: "cost", }) if err != nil { log.Fatal(err) @@ -511,7 +511,7 @@ func main() { }, }, }, - AppID: "Architect", + AppID: "Ohio", ID: "", }) if err != nil { @@ -583,8 +583,8 @@ func main() { }, }, }, - ConnectorAppID: "Moscovium Pickup", - ConnectorID: "synthesize initiatives instead", + ConnectorAppID: "Dollar", + ConnectorID: "Pickup", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/directory/README.md b/docs/sdks/directory/README.md index 7019840e..3c86a98a 100755 --- a/docs/sdks/directory/README.md +++ b/docs/sdks/directory/README.md @@ -91,7 +91,7 @@ func main() { ctx := context.Background() res, err := s.Directory.Delete(ctx, operations.C1APIDirectoryV1DirectoryServiceDeleteRequest{ DirectoryServiceDeleteRequest: &shared.DirectoryServiceDeleteRequest{}, - AppID: "Architect Cotton port", + AppID: "roughly", }) if err != nil { log.Fatal(err) @@ -143,7 +143,7 @@ func main() { ctx := context.Background() res, err := s.Directory.Get(ctx, operations.C1APIDirectoryV1DirectoryServiceGetRequest{ - AppID: "Group Cambridgeshire", + AppID: "motivating", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/requestcatalogmanagement/README.md b/docs/sdks/requestcatalogmanagement/README.md index 8b115f59..d74963aa 100755 --- a/docs/sdks/requestcatalogmanagement/README.md +++ b/docs/sdks/requestcatalogmanagement/README.md @@ -47,7 +47,7 @@ func main() { shared.AppEntitlementRef{}, }, }, - CatalogID: "deposit", + CatalogID: "Killeen", }) if err != nil { log.Fatal(err) @@ -104,7 +104,7 @@ func main() { shared.AppEntitlementRef{}, }, }, - CatalogID: "East cyan Wilma", + CatalogID: "female", }) if err != nil { log.Fatal(err) @@ -364,7 +364,7 @@ func main() { ctx := context.Background() res, err := s.RequestCatalogManagement.ListEntitlementsForAccess(ctx, operations.C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsForAccessRequest{ - CatalogID: "mint digital Man", + CatalogID: "deliberately", }) if err != nil { log.Fatal(err) @@ -416,7 +416,7 @@ func main() { ctx := context.Background() res, err := s.RequestCatalogManagement.ListEntitlementsPerCatalog(ctx, operations.C1APIRequestcatalogV1RequestCatalogManagementServiceListEntitlementsPerCatalogRequest{ - CatalogID: "Senior", + CatalogID: "Incredible", }) if err != nil { log.Fatal(err) @@ -473,7 +473,7 @@ func main() { shared.AppEntitlementRef{}, }, }, - CatalogID: "Mill Audi indigo", + CatalogID: "Convertible", }) if err != nil { log.Fatal(err) @@ -530,7 +530,7 @@ func main() { shared.AppEntitlementRef{}, }, }, - CatalogID: "UTF8", + CatalogID: "Elsinore", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/roles/README.md b/docs/sdks/roles/README.md index 559f3d8a..9b933700 100755 --- a/docs/sdks/roles/README.md +++ b/docs/sdks/roles/README.md @@ -34,7 +34,7 @@ func main() { ctx := context.Background() res, err := s.Roles.Get(ctx, operations.C1APIIamV1RolesGetRequest{ - RoleID: "Group Cambridgeshire", + RoleID: "motivating", }) if err != nil { log.Fatal(err) @@ -146,7 +146,7 @@ func main() { }, }, }, - RoleID: "Tempe Ruble ADP", + RoleID: "Supervisor", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/task/README.md b/docs/sdks/task/README.md index eed2ce72..24cd9ecc 100755 --- a/docs/sdks/task/README.md +++ b/docs/sdks/task/README.md @@ -39,8 +39,8 @@ func main() { }, }, TaskGrantSource: &shared.TaskGrantSource{}, - AppEntitlementID: "barring", - AppID: "vote Tuna Florida", + AppEntitlementID: "Cheese", + AppID: "barring", }) if err != nil { log.Fatal(err) @@ -96,8 +96,8 @@ func main() { "tame", }, }, - AppEntitlementID: "Arab cultivate Clothing", - AppID: "Southwest", + AppEntitlementID: "Nitrogen", + AppID: "connecting", }) if err != nil { log.Fatal(err) diff --git a/docs/sdks/taskactions/README.md b/docs/sdks/taskactions/README.md index 0131fb4d..6d428167 100755 --- a/docs/sdks/taskactions/README.md +++ b/docs/sdks/taskactions/README.md @@ -41,9 +41,9 @@ func main() { "Gasoline", }, }, - PolicyStepID: "edge Tennessee", + PolicyStepID: "National", }, - TaskID: "Hatchback Northeast", + TaskID: "synthesize", }) if err != nil { log.Fatal(err) @@ -102,7 +102,7 @@ func main() { }, }, }, - TaskID: "physically redefine azure", + TaskID: "Tesla", }) if err != nil { log.Fatal(err) @@ -161,7 +161,7 @@ func main() { }, }, }, - TaskID: "Poinciana", + TaskID: "Alaska", }) if err != nil { log.Fatal(err) @@ -220,7 +220,7 @@ func main() { }, }, }, - TaskID: "reprehenderit", + TaskID: "Cotton", }) if err != nil { log.Fatal(err) diff --git a/gen.yaml b/gen.yaml index 662e205d..6aa9c001 100644 --- a/gen.yaml +++ b/gen.yaml @@ -1,9 +1,9 @@ configVersion: 1.0.0 management: - docChecksum: d3c26becd73429035fbcaeb45feff007 + docChecksum: 62ce67261ac2cb50833d44d274d1cd96 docVersion: 0.1.0-alpha - speakeasyVersion: 1.97.1 - generationVersion: 2.152.1 + speakeasyVersion: 1.101.0 + generationVersion: 2.161.0 generation: comments: disableComments: false @@ -15,7 +15,7 @@ generation: features: go: additionalProperties: 0.1.1 - core: 2.91.4 + core: 2.91.5 globalSecurity: 2.82.2 globalServerURLs: 2.82.0 groups: 2.81.2 @@ -24,7 +24,7 @@ features: nameOverrides: 2.81.1 unions: 2.83.1 go: - version: 1.11.2 + version: 1.12.0 flattenGlobalSecurity: true maxMethodParams: 0 packageName: github.com/conductorone/conductorone-sdk-go diff --git a/pkg/models/shared/appuser.go b/pkg/models/shared/appuser.go index 80709536..f2a8b7b3 100755 --- a/pkg/models/shared/appuser.go +++ b/pkg/models/shared/appuser.go @@ -212,12 +212,18 @@ type AppUser struct { DisplayName *string `json:"displayName,omitempty"` // The email field of the application user. Email *string `json:"email,omitempty"` + // The emails field of the application user. + Emails []string `json:"emails,omitempty"` // A unique idenditfier of the application user. ID *string `json:"id,omitempty"` // The conductor one user ID of the account owner. IdentityUserID *string `json:"identityUserId,omitempty"` Profile map[string]AppUserProfile `json:"profile,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` + // The username field of the application user. + Username *string `json:"username,omitempty"` + // The usernames field of the application user. + Usernames []string `json:"usernames,omitempty"` } func (a AppUser) MarshalJSON() ([]byte, error) { @@ -280,6 +286,13 @@ func (o *AppUser) GetEmail() *string { return o.Email } +func (o *AppUser) GetEmails() []string { + if o == nil { + return nil + } + return o.Emails +} + func (o *AppUser) GetID() *string { if o == nil { return nil @@ -307,3 +320,17 @@ func (o *AppUser) GetUpdatedAt() *time.Time { } return o.UpdatedAt } + +func (o *AppUser) GetUsername() *string { + if o == nil { + return nil + } + return o.Username +} + +func (o *AppUser) GetUsernames() []string { + if o == nil { + return nil + } + return o.Usernames +} diff --git a/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go b/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go index d322b183..c3c588f2 100755 --- a/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go +++ b/pkg/models/shared/requestcatalogsearchservicesearchentitlementsresponse.go @@ -40,9 +40,9 @@ func (o *RequestCatalogSearchServiceSearchEntitlementsResponseExpanded) GetAddit // The RequestCatalogSearchServiceSearchEntitlementsResponse message contains a list of results and a nextPageToken if applicable. type RequestCatalogSearchServiceSearchEntitlementsResponse struct { - // The list of results containing up to X results, where X is the page size defined in the request. - Expanded []RequestCatalogSearchServiceSearchEntitlementsResponseExpanded `json:"expanded,omitempty"` // List of serialized related objects. + Expanded []RequestCatalogSearchServiceSearchEntitlementsResponseExpanded `json:"expanded,omitempty"` + // The list of results containing up to X results, where X is the page size defined in the request. List []AppEntitlementWithUserBindings `json:"list,omitempty"` // The nextPageToken is shown for the next page if the number of results is larger than the max page size. // The server returns one page of results and the nextPageToken until all results are retreived. diff --git a/pkg/models/shared/user.go b/pkg/models/shared/user.go index 76369b76..0b352b35 100755 --- a/pkg/models/shared/user.go +++ b/pkg/models/shared/user.go @@ -230,6 +230,8 @@ type User struct { DisplayName *string `json:"displayName,omitempty"` // This is the user's email. Email *string `json:"email,omitempty"` + // This is a list of all of the user's emails from app users. + Emails []string `json:"emails,omitempty"` // The users employment status. EmploymentStatus *string `json:"employmentStatus,omitempty"` // A list of objects mapped based on employmentStatus attribute mappings configured in the system. @@ -254,6 +256,10 @@ type User struct { // The status of the user in the system. Status *UserStatus `json:"status,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` + // This is the user's primary username. Typically sourced from the primary directory. + Username *string `json:"username,omitempty"` + // This is a list of all of the user's usernames from app users. + Usernames []string `json:"usernames,omitempty"` } func (u User) MarshalJSON() ([]byte, error) { @@ -337,6 +343,13 @@ func (o *User) GetEmail() *string { return o.Email } +func (o *User) GetEmails() []string { + if o == nil { + return nil + } + return o.Emails +} + func (o *User) GetEmploymentStatus() *string { if o == nil { return nil @@ -427,3 +440,17 @@ func (o *User) GetUpdatedAt() *time.Time { } return o.UpdatedAt } + +func (o *User) GetUsername() *string { + if o == nil { + return nil + } + return o.Username +} + +func (o *User) GetUsernames() []string { + if o == nil { + return nil + } + return o.Usernames +} diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index f630a329..4ef632ae 100755 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -155,6 +155,14 @@ func populateFromGlobals(fieldType reflect.StructField, valType reflect.Value, p } func isNil(typ reflect.Type, val reflect.Value) bool { + // `reflect.TypeOf(nil) == nil` so calling typ.Kind() will cause a nil pointer + // dereference panic. Catch it and return early. + // https://github.com/golang/go/issues/51649 + // https://github.com/golang/go/issues/54208 + if typ == nil { + return true + } + if typ.Kind() == reflect.Ptr || typ.Kind() == reflect.Map || typ.Kind() == reflect.Slice || typ.Kind() == reflect.Interface { return val.IsNil() }