diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 631eece..24a3c4a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -92,6 +92,7 @@ docs/GroupRemoteInfoConnectorGroup.md docs/GroupRemoteInfoDatabricksAccountGroup.md docs/GroupRemoteInfoDevinGroup.md docs/GroupRemoteInfoDuoGroup.md +docs/GroupRemoteInfoGithubEnterpriseTeam.md docs/GroupRemoteInfoGithubTeam.md docs/GroupRemoteInfoGitlabGroup.md docs/GroupRemoteInfoGoogleGroup.md @@ -210,6 +211,7 @@ docs/ResourceRemoteInfoGcpOrganization.md docs/ResourceRemoteInfoGcpProject.md docs/ResourceRemoteInfoGcpServiceAccount.md docs/ResourceRemoteInfoGcpSqlInstance.md +docs/ResourceRemoteInfoGithubEnterpriseRole.md docs/ResourceRemoteInfoGithubOrg.md docs/ResourceRemoteInfoGithubOrgRole.md docs/ResourceRemoteInfoGithubRepo.md @@ -357,6 +359,7 @@ model_group_remote_info_connector_group.go model_group_remote_info_databricks_account_group.go model_group_remote_info_devin_group.go model_group_remote_info_duo_group.go +model_group_remote_info_github_enterprise_team.go model_group_remote_info_github_team.go model_group_remote_info_gitlab_group.go model_group_remote_info_google_group.go @@ -468,6 +471,7 @@ model_resource_remote_info_gcp_organization.go model_resource_remote_info_gcp_project.go model_resource_remote_info_gcp_service_account.go model_resource_remote_info_gcp_sql_instance.go +model_resource_remote_info_github_enterprise_role.go model_resource_remote_info_github_org.go model_resource_remote_info_github_org_role.go model_resource_remote_info_github_repo.go diff --git a/README.md b/README.md index 0ebffad..e95ad90 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,7 @@ Class | Method | HTTP request | Description *DelegationsAPI* | [**GetDelegation**](docs/DelegationsAPI.md#getdelegation) | **Get** /delegations/{delegation_id} | Get delegation by ID *DelegationsAPI* | [**GetDelegations**](docs/DelegationsAPI.md#getdelegations) | **Get** /delegations | Get delegations *EventsAPI* | [**Events**](docs/EventsAPI.md#events) | **Get** /events | +*EventsAPI* | [**GetEvent**](docs/EventsAPI.md#getevent) | **Get** /events/{event_id} | Get event by ID *GroupBindingsAPI* | [**CreateGroupBinding**](docs/GroupBindingsAPI.md#creategroupbinding) | **Post** /group-bindings | *GroupBindingsAPI* | [**DeleteGroupBinding**](docs/GroupBindingsAPI.md#deletegroupbinding) | **Delete** /group-bindings/{group_binding_id} | *GroupBindingsAPI* | [**GetGroupBinding**](docs/GroupBindingsAPI.md#getgroupbinding) | **Get** /group-bindings/{group_binding_id} | Get group binding by ID @@ -283,6 +284,7 @@ Class | Method | HTTP request | Description - [GroupRemoteInfoDatabricksAccountGroup](docs/GroupRemoteInfoDatabricksAccountGroup.md) - [GroupRemoteInfoDevinGroup](docs/GroupRemoteInfoDevinGroup.md) - [GroupRemoteInfoDuoGroup](docs/GroupRemoteInfoDuoGroup.md) + - [GroupRemoteInfoGithubEnterpriseTeam](docs/GroupRemoteInfoGithubEnterpriseTeam.md) - [GroupRemoteInfoGithubTeam](docs/GroupRemoteInfoGithubTeam.md) - [GroupRemoteInfoGitlabGroup](docs/GroupRemoteInfoGitlabGroup.md) - [GroupRemoteInfoGoogleGroup](docs/GroupRemoteInfoGoogleGroup.md) @@ -394,6 +396,7 @@ Class | Method | HTTP request | Description - [ResourceRemoteInfoGcpProject](docs/ResourceRemoteInfoGcpProject.md) - [ResourceRemoteInfoGcpServiceAccount](docs/ResourceRemoteInfoGcpServiceAccount.md) - [ResourceRemoteInfoGcpSqlInstance](docs/ResourceRemoteInfoGcpSqlInstance.md) + - [ResourceRemoteInfoGithubEnterpriseRole](docs/ResourceRemoteInfoGithubEnterpriseRole.md) - [ResourceRemoteInfoGithubOrg](docs/ResourceRemoteInfoGithubOrg.md) - [ResourceRemoteInfoGithubOrgRole](docs/ResourceRemoteInfoGithubOrgRole.md) - [ResourceRemoteInfoGithubRepo](docs/ResourceRemoteInfoGithubRepo.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index c5fd83d..34c8556 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -742,6 +742,35 @@ paths: - BearerAuth: [] tags: - events + /events/{event_id}: + get: + summary: Get event by ID + description: Returns an `Event` object. + operationId: getEvent + parameters: + - description: The ID of the event. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: path + name: event_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Event" + description: The requested `Event`. + "404": + description: Event not found. + security: + - BearerAuth: [] + tags: + - events /groups: get: summary: Get groups @@ -1091,13 +1120,23 @@ paths: format: uuid type: string style: simple + - description: The access level's remote ID to filter by. + example: arn:aws:iam::590304332660:role/AdministratorAccess + explode: true + in: query + name: access_level_remote_id + required: false + schema: + type: string + style: form + responses: "200": content: application/json: schema: $ref: "#/components/schemas/GroupContainingGroupList" - description: The resources that the group gives access to. + description: The groups that the group gives access to. security: - BearerAuth: [] tags: @@ -6029,7 +6068,6 @@ components: - GIT_LAB - GIT_LAB_CONNECTION - TELEPORT - - SLACK example: GIT_HUB type: string PaginatedGroupsList: @@ -6647,6 +6685,7 @@ components: - INCIDENTIO_ON_CALL_SCHEDULE - ROOTLY_ON_CALL_SCHEDULE - DEVIN_GROUP + - GIT_HUB_ENTERPRISE_TEAM example: OPAL_GROUP type: string ResourceTypeEnum: @@ -6726,6 +6765,7 @@ components: - VAULT_SECRET - VAULT_POLICY - VAULT_OIDC_ROLE + - GIT_HUB_ENTERPRISE_ROLE example: AWS_IAM_ROLE type: string VisibilityTypeEnum: @@ -7245,6 +7285,16 @@ components: type: object required: - team_slug + github_enterprise_team: + description: Remote info for GitHub Enterprise team. + properties: + team_slug: + description: The slug of the GitHub Enterprise team. + example: opal-security + type: string + type: object + required: + - team_slug gitlab_group: description: Remote info for Gitlab group. properties: @@ -7882,6 +7932,16 @@ components: type: object required: - org_name + github_enterprise_role: + description: Remote info for GitHub Enterprise role. + properties: + role_id: + description: The id of the role. + example: 112233 + type: string + type: object + required: + - role_id gitlab_project: description: Remote info for Gitlab project. properties: diff --git a/api_events.go b/api_events.go index 05650c1..3c816e7 100644 --- a/api_events.go +++ b/api_events.go @@ -17,6 +17,7 @@ import ( "io" "net/http" "net/url" + "strings" ) @@ -201,3 +202,106 @@ func (a *EventsAPIService) EventsExecute(r ApiEventsRequest) (*PaginatedEventLis return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiGetEventRequest struct { + ctx context.Context + ApiService *EventsAPIService + eventId string +} + +func (r ApiGetEventRequest) Execute() (*Event, *http.Response, error) { + return r.ApiService.GetEventExecute(r) +} + +/* +GetEvent Get event by ID + +Returns an `Event` object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventId The ID of the event. + @return ApiGetEventRequest +*/ +func (a *EventsAPIService) GetEvent(ctx context.Context, eventId string) ApiGetEventRequest { + return ApiGetEventRequest{ + ApiService: a, + ctx: ctx, + eventId: eventId, + } +} + +// Execute executes the request +// @return Event +func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*Event, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Event + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsAPIService.GetEvent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/events/{event_id}" + localVarPath = strings.Replace(localVarPath, "{"+"event_id"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_groups.go b/api_groups.go index 36991c6..bad3993 100644 --- a/api_groups.go +++ b/api_groups.go @@ -923,6 +923,13 @@ type ApiGetGroupContainingGroupsRequest struct { ctx context.Context ApiService *GroupsAPIService groupId string + accessLevelRemoteId *string +} + +// The access level's remote ID to filter by. +func (r ApiGetGroupContainingGroupsRequest) AccessLevelRemoteId(accessLevelRemoteId string) ApiGetGroupContainingGroupsRequest { + r.accessLevelRemoteId = &accessLevelRemoteId + return r } func (r ApiGetGroupContainingGroupsRequest) Execute() (*GroupContainingGroupList, *http.Response, error) { @@ -968,6 +975,9 @@ func (a *GroupsAPIService) GetGroupContainingGroupsExecute(r ApiGetGroupContaini localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.accessLevelRemoteId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "access_level_remote_id", r.accessLevelRemoteId, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/docs/EventsAPI.md b/docs/EventsAPI.md index a13e861..bae497b 100644 --- a/docs/EventsAPI.md +++ b/docs/EventsAPI.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**Events**](EventsAPI.md#Events) | **Get** /events | +[**GetEvent**](EventsAPI.md#GetEvent) | **Get** /events/{event_id} | Get event by ID @@ -87,3 +88,73 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## GetEvent + +> Event GetEvent(ctx, eventId).Execute() + +Get event by ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + eventId := "29827fb8-f2dd-4e80-9576-28e31e9934ac" // string | The ID of the event. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventsAPI.GetEvent(context.Background(), eventId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsAPI.GetEvent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEvent`: Event + fmt.Fprintf(os.Stdout, "Response from `EventsAPI.GetEvent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**eventId** | **string** | The ID of the event. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEventRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Event**](Event.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/GroupRemoteInfo.md b/docs/GroupRemoteInfo.md index 404c202..509e0cf 100644 --- a/docs/GroupRemoteInfo.md +++ b/docs/GroupRemoteInfo.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **DatabricksAccountGroup** | Pointer to [**GroupRemoteInfoDatabricksAccountGroup**](GroupRemoteInfoDatabricksAccountGroup.md) | | [optional] **ConnectorGroup** | Pointer to [**GroupRemoteInfoConnectorGroup**](GroupRemoteInfoConnectorGroup.md) | | [optional] **GithubTeam** | Pointer to [**GroupRemoteInfoGithubTeam**](GroupRemoteInfoGithubTeam.md) | | [optional] +**GithubEnterpriseTeam** | Pointer to [**GroupRemoteInfoGithubEnterpriseTeam**](GroupRemoteInfoGithubEnterpriseTeam.md) | | [optional] **GitlabGroup** | Pointer to [**GroupRemoteInfoGitlabGroup**](GroupRemoteInfoGitlabGroup.md) | | [optional] **GoogleGroup** | Pointer to [**GroupRemoteInfoGoogleGroup**](GroupRemoteInfoGoogleGroup.md) | | [optional] **LdapGroup** | Pointer to [**GroupRemoteInfoLdapGroup**](GroupRemoteInfoLdapGroup.md) | | [optional] @@ -194,6 +195,31 @@ SetGithubTeam sets GithubTeam field to given value. HasGithubTeam returns a boolean if a field has been set. +### GetGithubEnterpriseTeam + +`func (o *GroupRemoteInfo) GetGithubEnterpriseTeam() GroupRemoteInfoGithubEnterpriseTeam` + +GetGithubEnterpriseTeam returns the GithubEnterpriseTeam field if non-nil, zero value otherwise. + +### GetGithubEnterpriseTeamOk + +`func (o *GroupRemoteInfo) GetGithubEnterpriseTeamOk() (*GroupRemoteInfoGithubEnterpriseTeam, bool)` + +GetGithubEnterpriseTeamOk returns a tuple with the GithubEnterpriseTeam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGithubEnterpriseTeam + +`func (o *GroupRemoteInfo) SetGithubEnterpriseTeam(v GroupRemoteInfoGithubEnterpriseTeam)` + +SetGithubEnterpriseTeam sets GithubEnterpriseTeam field to given value. + +### HasGithubEnterpriseTeam + +`func (o *GroupRemoteInfo) HasGithubEnterpriseTeam() bool` + +HasGithubEnterpriseTeam returns a boolean if a field has been set. + ### GetGitlabGroup `func (o *GroupRemoteInfo) GetGitlabGroup() GroupRemoteInfoGitlabGroup` diff --git a/docs/GroupRemoteInfoGithubEnterpriseTeam.md b/docs/GroupRemoteInfoGithubEnterpriseTeam.md new file mode 100644 index 0000000..f6b92cf --- /dev/null +++ b/docs/GroupRemoteInfoGithubEnterpriseTeam.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoGithubEnterpriseTeam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TeamSlug** | **string** | The slug of the GitHub Enterprise team. | + +## Methods + +### NewGroupRemoteInfoGithubEnterpriseTeam + +`func NewGroupRemoteInfoGithubEnterpriseTeam(teamSlug string, ) *GroupRemoteInfoGithubEnterpriseTeam` + +NewGroupRemoteInfoGithubEnterpriseTeam instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults + +`func NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults() *GroupRemoteInfoGithubEnterpriseTeam` + +NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTeamSlug + +`func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlug() string` + +GetTeamSlug returns the TeamSlug field if non-nil, zero value otherwise. + +### GetTeamSlugOk + +`func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlugOk() (*string, bool)` + +GetTeamSlugOk returns a tuple with the TeamSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamSlug + +`func (o *GroupRemoteInfoGithubEnterpriseTeam) SetTeamSlug(v string)` + +SetTeamSlug sets TeamSlug field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupTypeEnum.md b/docs/GroupTypeEnum.md index b3f4f07..3b900ae 100644 --- a/docs/GroupTypeEnum.md +++ b/docs/GroupTypeEnum.md @@ -49,6 +49,8 @@ * `DEVIN_GROUP` (value: `"DEVIN_GROUP"`) +* `GIT_HUB_ENTERPRISE_TEAM` (value: `"GIT_HUB_ENTERPRISE_TEAM"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GroupsAPI.md b/docs/GroupsAPI.md index 525d628..dc164bc 100644 --- a/docs/GroupsAPI.md +++ b/docs/GroupsAPI.md @@ -615,7 +615,7 @@ Name | Type | Description | Notes ## GetGroupContainingGroups -> GroupContainingGroupList GetGroupContainingGroups(ctx, groupId).Execute() +> GroupContainingGroupList GetGroupContainingGroups(ctx, groupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() Get nested groups @@ -635,10 +635,11 @@ import ( func main() { groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. + accessLevelRemoteId := "arn:aws:iam::590304332660:role/AdministratorAccess" // string | The access level's remote ID to filter by. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GroupsAPI.GetGroupContainingGroups(context.Background(), groupId).Execute() + resp, r, err := apiClient.GroupsAPI.GetGroupContainingGroups(context.Background(), groupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.GetGroupContainingGroups``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -664,6 +665,7 @@ Other parameters are passed through a pointer to a apiGetGroupContainingGroupsRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **accessLevelRemoteId** | **string** | The access level's remote ID to filter by. | ### Return type diff --git a/docs/ResourceRemoteInfo.md b/docs/ResourceRemoteInfo.md index 87c611c..4ef71db 100644 --- a/docs/ResourceRemoteInfo.md +++ b/docs/ResourceRemoteInfo.md @@ -41,6 +41,7 @@ Name | Type | Description | Notes **GithubRepo** | Pointer to [**ResourceRemoteInfoGithubRepo**](ResourceRemoteInfoGithubRepo.md) | | [optional] **GithubOrgRole** | Pointer to [**ResourceRemoteInfoGithubOrgRole**](ResourceRemoteInfoGithubOrgRole.md) | | [optional] **GithubOrg** | Pointer to [**ResourceRemoteInfoGithubOrg**](ResourceRemoteInfoGithubOrg.md) | | [optional] +**GithubEnterpriseRole** | Pointer to [**ResourceRemoteInfoGithubEnterpriseRole**](ResourceRemoteInfoGithubEnterpriseRole.md) | | [optional] **GitlabProject** | Pointer to [**ResourceRemoteInfoGitlabProject**](ResourceRemoteInfoGitlabProject.md) | | [optional] **OktaApp** | Pointer to [**ResourceRemoteInfoOktaApp**](ResourceRemoteInfoOktaApp.md) | | [optional] **OktaStandardRole** | Pointer to [**ResourceRemoteInfoOktaStandardRole**](ResourceRemoteInfoOktaStandardRole.md) | | [optional] @@ -1010,6 +1011,31 @@ SetGithubOrg sets GithubOrg field to given value. HasGithubOrg returns a boolean if a field has been set. +### GetGithubEnterpriseRole + +`func (o *ResourceRemoteInfo) GetGithubEnterpriseRole() ResourceRemoteInfoGithubEnterpriseRole` + +GetGithubEnterpriseRole returns the GithubEnterpriseRole field if non-nil, zero value otherwise. + +### GetGithubEnterpriseRoleOk + +`func (o *ResourceRemoteInfo) GetGithubEnterpriseRoleOk() (*ResourceRemoteInfoGithubEnterpriseRole, bool)` + +GetGithubEnterpriseRoleOk returns a tuple with the GithubEnterpriseRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGithubEnterpriseRole + +`func (o *ResourceRemoteInfo) SetGithubEnterpriseRole(v ResourceRemoteInfoGithubEnterpriseRole)` + +SetGithubEnterpriseRole sets GithubEnterpriseRole field to given value. + +### HasGithubEnterpriseRole + +`func (o *ResourceRemoteInfo) HasGithubEnterpriseRole() bool` + +HasGithubEnterpriseRole returns a boolean if a field has been set. + ### GetGitlabProject `func (o *ResourceRemoteInfo) GetGitlabProject() ResourceRemoteInfoGitlabProject` diff --git a/docs/ResourceRemoteInfoGithubEnterpriseRole.md b/docs/ResourceRemoteInfoGithubEnterpriseRole.md new file mode 100644 index 0000000..0ce346a --- /dev/null +++ b/docs/ResourceRemoteInfoGithubEnterpriseRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoGithubEnterpriseRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoGithubEnterpriseRole + +`func NewResourceRemoteInfoGithubEnterpriseRole(roleId string, ) *ResourceRemoteInfoGithubEnterpriseRole` + +NewResourceRemoteInfoGithubEnterpriseRole instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults + +`func NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults() *ResourceRemoteInfoGithubEnterpriseRole` + +NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleId + +`func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *ResourceRemoteInfoGithubEnterpriseRole) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ResourceTypeEnum.md b/docs/ResourceTypeEnum.md index a14efc1..e7c49ed 100644 --- a/docs/ResourceTypeEnum.md +++ b/docs/ResourceTypeEnum.md @@ -151,6 +151,8 @@ * `VAULT_OIDC_ROLE` (value: `"VAULT_OIDC_ROLE"`) +* `GIT_HUB_ENTERPRISE_ROLE` (value: `"GIT_HUB_ENTERPRISE_ROLE"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ThirdPartyProviderEnum.md b/docs/ThirdPartyProviderEnum.md index 47bbb1c..b24ca6b 100644 --- a/docs/ThirdPartyProviderEnum.md +++ b/docs/ThirdPartyProviderEnum.md @@ -31,8 +31,6 @@ * `TELEPORT` (value: `"TELEPORT"`) -* `SLACK2` (value: `"SLACK"`) - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/model_group_remote_info.go b/model_group_remote_info.go index 30e82df..57c1b7b 100644 --- a/model_group_remote_info.go +++ b/model_group_remote_info.go @@ -26,6 +26,7 @@ type GroupRemoteInfo struct { DatabricksAccountGroup *GroupRemoteInfoDatabricksAccountGroup `json:"databricks_account_group,omitempty"` ConnectorGroup *GroupRemoteInfoConnectorGroup `json:"connector_group,omitempty"` GithubTeam *GroupRemoteInfoGithubTeam `json:"github_team,omitempty"` + GithubEnterpriseTeam *GroupRemoteInfoGithubEnterpriseTeam `json:"github_enterprise_team,omitempty"` GitlabGroup *GroupRemoteInfoGitlabGroup `json:"gitlab_group,omitempty"` GoogleGroup *GroupRemoteInfoGoogleGroup `json:"google_group,omitempty"` LdapGroup *GroupRemoteInfoLdapGroup `json:"ldap_group,omitempty"` @@ -254,6 +255,38 @@ func (o *GroupRemoteInfo) SetGithubTeam(v GroupRemoteInfoGithubTeam) { o.GithubTeam = &v } +// GetGithubEnterpriseTeam returns the GithubEnterpriseTeam field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetGithubEnterpriseTeam() GroupRemoteInfoGithubEnterpriseTeam { + if o == nil || IsNil(o.GithubEnterpriseTeam) { + var ret GroupRemoteInfoGithubEnterpriseTeam + return ret + } + return *o.GithubEnterpriseTeam +} + +// GetGithubEnterpriseTeamOk returns a tuple with the GithubEnterpriseTeam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetGithubEnterpriseTeamOk() (*GroupRemoteInfoGithubEnterpriseTeam, bool) { + if o == nil || IsNil(o.GithubEnterpriseTeam) { + return nil, false + } + return o.GithubEnterpriseTeam, true +} + +// HasGithubEnterpriseTeam returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasGithubEnterpriseTeam() bool { + if o != nil && !IsNil(o.GithubEnterpriseTeam) { + return true + } + + return false +} + +// SetGithubEnterpriseTeam gets a reference to the given GroupRemoteInfoGithubEnterpriseTeam and assigns it to the GithubEnterpriseTeam field. +func (o *GroupRemoteInfo) SetGithubEnterpriseTeam(v GroupRemoteInfoGithubEnterpriseTeam) { + o.GithubEnterpriseTeam = &v +} + // GetGitlabGroup returns the GitlabGroup field value if set, zero value otherwise. func (o *GroupRemoteInfo) GetGitlabGroup() GroupRemoteInfoGitlabGroup { if o == nil || IsNil(o.GitlabGroup) { @@ -730,6 +763,9 @@ func (o GroupRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.GithubTeam) { toSerialize["github_team"] = o.GithubTeam } + if !IsNil(o.GithubEnterpriseTeam) { + toSerialize["github_enterprise_team"] = o.GithubEnterpriseTeam + } if !IsNil(o.GitlabGroup) { toSerialize["gitlab_group"] = o.GitlabGroup } @@ -800,6 +836,7 @@ func (o *GroupRemoteInfo) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "databricks_account_group") delete(additionalProperties, "connector_group") delete(additionalProperties, "github_team") + delete(additionalProperties, "github_enterprise_team") delete(additionalProperties, "gitlab_group") delete(additionalProperties, "google_group") delete(additionalProperties, "ldap_group") diff --git a/model_group_remote_info_github_enterprise_team.go b/model_group_remote_info_github_enterprise_team.go new file mode 100644 index 0000000..2bb3479 --- /dev/null +++ b/model_group_remote_info_github_enterprise_team.go @@ -0,0 +1,170 @@ +/* +Opal API + +The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. + +API version: 1.0 +Contact: hello@opal.dev +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package opal + +import ( + "encoding/json" + "fmt" +) + +// checks if the GroupRemoteInfoGithubEnterpriseTeam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoGithubEnterpriseTeam{} + +// GroupRemoteInfoGithubEnterpriseTeam Remote info for GitHub Enterprise team. +type GroupRemoteInfoGithubEnterpriseTeam struct { + // The slug of the GitHub Enterprise team. + TeamSlug string `json:"team_slug"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoGithubEnterpriseTeam GroupRemoteInfoGithubEnterpriseTeam + +// NewGroupRemoteInfoGithubEnterpriseTeam instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGroupRemoteInfoGithubEnterpriseTeam(teamSlug string) *GroupRemoteInfoGithubEnterpriseTeam { + this := GroupRemoteInfoGithubEnterpriseTeam{} + this.TeamSlug = teamSlug + return &this +} + +// NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults() *GroupRemoteInfoGithubEnterpriseTeam { + this := GroupRemoteInfoGithubEnterpriseTeam{} + return &this +} + +// GetTeamSlug returns the TeamSlug field value +func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlug() string { + if o == nil { + var ret string + return ret + } + + return o.TeamSlug +} + +// GetTeamSlugOk returns a tuple with the TeamSlug field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TeamSlug, true +} + +// SetTeamSlug sets field value +func (o *GroupRemoteInfoGithubEnterpriseTeam) SetTeamSlug(v string) { + o.TeamSlug = v +} + +func (o GroupRemoteInfoGithubEnterpriseTeam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoGithubEnterpriseTeam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["team_slug"] = o.TeamSlug + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoGithubEnterpriseTeam) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "team_slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGroupRemoteInfoGithubEnterpriseTeam := _GroupRemoteInfoGithubEnterpriseTeam{} + + err = json.Unmarshal(data, &varGroupRemoteInfoGithubEnterpriseTeam) + + if err != nil { + return err + } + + *o = GroupRemoteInfoGithubEnterpriseTeam(varGroupRemoteInfoGithubEnterpriseTeam) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "team_slug") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoGithubEnterpriseTeam struct { + value *GroupRemoteInfoGithubEnterpriseTeam + isSet bool +} + +func (v NullableGroupRemoteInfoGithubEnterpriseTeam) Get() *GroupRemoteInfoGithubEnterpriseTeam { + return v.value +} + +func (v *NullableGroupRemoteInfoGithubEnterpriseTeam) Set(val *GroupRemoteInfoGithubEnterpriseTeam) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoGithubEnterpriseTeam) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoGithubEnterpriseTeam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoGithubEnterpriseTeam(val *GroupRemoteInfoGithubEnterpriseTeam) *NullableGroupRemoteInfoGithubEnterpriseTeam { + return &NullableGroupRemoteInfoGithubEnterpriseTeam{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoGithubEnterpriseTeam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoGithubEnterpriseTeam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_type_enum.go b/model_group_type_enum.go index b423cc3..b5ba4b8 100644 --- a/model_group_type_enum.go +++ b/model_group_type_enum.go @@ -44,6 +44,7 @@ const ( GROUPTYPEENUM_INCIDENTIO_ON_CALL_SCHEDULE GroupTypeEnum = "INCIDENTIO_ON_CALL_SCHEDULE" GROUPTYPEENUM_ROOTLY_ON_CALL_SCHEDULE GroupTypeEnum = "ROOTLY_ON_CALL_SCHEDULE" GROUPTYPEENUM_DEVIN_GROUP GroupTypeEnum = "DEVIN_GROUP" + GROUPTYPEENUM_GIT_HUB_ENTERPRISE_TEAM GroupTypeEnum = "GIT_HUB_ENTERPRISE_TEAM" ) // All allowed values of GroupTypeEnum enum @@ -71,6 +72,7 @@ var AllowedGroupTypeEnumEnumValues = []GroupTypeEnum{ "INCIDENTIO_ON_CALL_SCHEDULE", "ROOTLY_ON_CALL_SCHEDULE", "DEVIN_GROUP", + "GIT_HUB_ENTERPRISE_TEAM", } func (v *GroupTypeEnum) UnmarshalJSON(src []byte) error { diff --git a/model_resource_remote_info.go b/model_resource_remote_info.go index bea40d2..5057134 100644 --- a/model_resource_remote_info.go +++ b/model_resource_remote_info.go @@ -57,6 +57,7 @@ type ResourceRemoteInfo struct { GithubRepo *ResourceRemoteInfoGithubRepo `json:"github_repo,omitempty"` GithubOrgRole *ResourceRemoteInfoGithubOrgRole `json:"github_org_role,omitempty"` GithubOrg *ResourceRemoteInfoGithubOrg `json:"github_org,omitempty"` + GithubEnterpriseRole *ResourceRemoteInfoGithubEnterpriseRole `json:"github_enterprise_role,omitempty"` GitlabProject *ResourceRemoteInfoGitlabProject `json:"gitlab_project,omitempty"` OktaApp *ResourceRemoteInfoOktaApp `json:"okta_app,omitempty"` OktaStandardRole *ResourceRemoteInfoOktaStandardRole `json:"okta_standard_role,omitempty"` @@ -1287,6 +1288,38 @@ func (o *ResourceRemoteInfo) SetGithubOrg(v ResourceRemoteInfoGithubOrg) { o.GithubOrg = &v } +// GetGithubEnterpriseRole returns the GithubEnterpriseRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGithubEnterpriseRole() ResourceRemoteInfoGithubEnterpriseRole { + if o == nil || IsNil(o.GithubEnterpriseRole) { + var ret ResourceRemoteInfoGithubEnterpriseRole + return ret + } + return *o.GithubEnterpriseRole +} + +// GetGithubEnterpriseRoleOk returns a tuple with the GithubEnterpriseRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGithubEnterpriseRoleOk() (*ResourceRemoteInfoGithubEnterpriseRole, bool) { + if o == nil || IsNil(o.GithubEnterpriseRole) { + return nil, false + } + return o.GithubEnterpriseRole, true +} + +// HasGithubEnterpriseRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGithubEnterpriseRole() bool { + if o != nil && !IsNil(o.GithubEnterpriseRole) { + return true + } + + return false +} + +// SetGithubEnterpriseRole gets a reference to the given ResourceRemoteInfoGithubEnterpriseRole and assigns it to the GithubEnterpriseRole field. +func (o *ResourceRemoteInfo) SetGithubEnterpriseRole(v ResourceRemoteInfoGithubEnterpriseRole) { + o.GithubEnterpriseRole = &v +} + // GetGitlabProject returns the GitlabProject field value if set, zero value otherwise. func (o *ResourceRemoteInfo) GetGitlabProject() ResourceRemoteInfoGitlabProject { if o == nil || IsNil(o.GitlabProject) { @@ -2176,6 +2209,9 @@ func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.GithubOrg) { toSerialize["github_org"] = o.GithubOrg } + if !IsNil(o.GithubEnterpriseRole) { + toSerialize["github_enterprise_role"] = o.GithubEnterpriseRole + } if !IsNil(o.GitlabProject) { toSerialize["gitlab_project"] = o.GitlabProject } @@ -2307,6 +2343,7 @@ func (o *ResourceRemoteInfo) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "github_repo") delete(additionalProperties, "github_org_role") delete(additionalProperties, "github_org") + delete(additionalProperties, "github_enterprise_role") delete(additionalProperties, "gitlab_project") delete(additionalProperties, "okta_app") delete(additionalProperties, "okta_standard_role") diff --git a/model_resource_remote_info_github_enterprise_role.go b/model_resource_remote_info_github_enterprise_role.go new file mode 100644 index 0000000..2a98984 --- /dev/null +++ b/model_resource_remote_info_github_enterprise_role.go @@ -0,0 +1,170 @@ +/* +Opal API + +The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. + +API version: 1.0 +Contact: hello@opal.dev +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package opal + +import ( + "encoding/json" + "fmt" +) + +// checks if the ResourceRemoteInfoGithubEnterpriseRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGithubEnterpriseRole{} + +// ResourceRemoteInfoGithubEnterpriseRole Remote info for GitHub Enterprise role. +type ResourceRemoteInfoGithubEnterpriseRole struct { + // The id of the role. + RoleId string `json:"role_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoGithubEnterpriseRole ResourceRemoteInfoGithubEnterpriseRole + +// NewResourceRemoteInfoGithubEnterpriseRole instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceRemoteInfoGithubEnterpriseRole(roleId string) *ResourceRemoteInfoGithubEnterpriseRole { + this := ResourceRemoteInfoGithubEnterpriseRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults() *ResourceRemoteInfoGithubEnterpriseRole { + this := ResourceRemoteInfoGithubEnterpriseRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleId() string { + if o == nil { + var ret string + return ret + } + + return o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoGithubEnterpriseRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoGithubEnterpriseRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGithubEnterpriseRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGithubEnterpriseRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "role_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varResourceRemoteInfoGithubEnterpriseRole := _ResourceRemoteInfoGithubEnterpriseRole{} + + err = json.Unmarshal(data, &varResourceRemoteInfoGithubEnterpriseRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGithubEnterpriseRole(varResourceRemoteInfoGithubEnterpriseRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoGithubEnterpriseRole struct { + value *ResourceRemoteInfoGithubEnterpriseRole + isSet bool +} + +func (v NullableResourceRemoteInfoGithubEnterpriseRole) Get() *ResourceRemoteInfoGithubEnterpriseRole { + return v.value +} + +func (v *NullableResourceRemoteInfoGithubEnterpriseRole) Set(val *ResourceRemoteInfoGithubEnterpriseRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGithubEnterpriseRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGithubEnterpriseRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGithubEnterpriseRole(val *ResourceRemoteInfoGithubEnterpriseRole) *NullableResourceRemoteInfoGithubEnterpriseRole { + return &NullableResourceRemoteInfoGithubEnterpriseRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGithubEnterpriseRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGithubEnterpriseRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_type_enum.go b/model_resource_type_enum.go index e04f789..ac227ff 100644 --- a/model_resource_type_enum.go +++ b/model_resource_type_enum.go @@ -95,6 +95,7 @@ const ( RESOURCETYPEENUM_VAULT_SECRET ResourceTypeEnum = "VAULT_SECRET" RESOURCETYPEENUM_VAULT_POLICY ResourceTypeEnum = "VAULT_POLICY" RESOURCETYPEENUM_VAULT_OIDC_ROLE ResourceTypeEnum = "VAULT_OIDC_ROLE" + RESOURCETYPEENUM_GIT_HUB_ENTERPRISE_ROLE ResourceTypeEnum = "GIT_HUB_ENTERPRISE_ROLE" ) // All allowed values of ResourceTypeEnum enum @@ -173,6 +174,7 @@ var AllowedResourceTypeEnumEnumValues = []ResourceTypeEnum{ "VAULT_SECRET", "VAULT_POLICY", "VAULT_OIDC_ROLE", + "GIT_HUB_ENTERPRISE_ROLE", } func (v *ResourceTypeEnum) UnmarshalJSON(src []byte) error { diff --git a/model_third_party_provider_enum.go b/model_third_party_provider_enum.go index cd85118..db98f32 100644 --- a/model_third_party_provider_enum.go +++ b/model_third_party_provider_enum.go @@ -35,7 +35,6 @@ const ( THIRDPARTYPROVIDERENUM_GIT_LAB ThirdPartyProviderEnum = "GIT_LAB" THIRDPARTYPROVIDERENUM_GIT_LAB_CONNECTION ThirdPartyProviderEnum = "GIT_LAB_CONNECTION" THIRDPARTYPROVIDERENUM_TELEPORT ThirdPartyProviderEnum = "TELEPORT" - THIRDPARTYPROVIDERENUM_SLACK2 ThirdPartyProviderEnum = "SLACK" ) // All allowed values of ThirdPartyProviderEnum enum @@ -54,7 +53,6 @@ var AllowedThirdPartyProviderEnumEnumValues = []ThirdPartyProviderEnum{ "GIT_LAB", "GIT_LAB_CONNECTION", "TELEPORT", - "SLACK", } func (v *ThirdPartyProviderEnum) UnmarshalJSON(src []byte) error {