diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index e767c31..631eece 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -85,16 +85,24 @@ docs/GroupContainingGroup.md docs/GroupContainingGroupList.md docs/GroupRemoteInfo.md docs/GroupRemoteInfoActiveDirectoryGroup.md +docs/GroupRemoteInfoAwsSsoGroup.md docs/GroupRemoteInfoAzureAdMicrosoft365Group.md docs/GroupRemoteInfoAzureAdSecurityGroup.md +docs/GroupRemoteInfoConnectorGroup.md +docs/GroupRemoteInfoDatabricksAccountGroup.md +docs/GroupRemoteInfoDevinGroup.md docs/GroupRemoteInfoDuoGroup.md docs/GroupRemoteInfoGithubTeam.md docs/GroupRemoteInfoGitlabGroup.md docs/GroupRemoteInfoGoogleGroup.md +docs/GroupRemoteInfoIncidentioOnCallSchedule.md docs/GroupRemoteInfoLdapGroup.md docs/GroupRemoteInfoOktaGroup.md docs/GroupRemoteInfoOktaGroupRule.md +docs/GroupRemoteInfoPagerdutyOnCallSchedule.md +docs/GroupRemoteInfoRootlyOnCallSchedule.md docs/GroupRemoteInfoSnowflakeRole.md +docs/GroupRemoteInfoTailscaleGroup.md docs/GroupRemoteInfoWorkdayUserSecurityGroup.md docs/GroupResource.md docs/GroupResourceList.md @@ -137,6 +145,7 @@ docs/PaginatedUARsList.md docs/PaginatedUsersList.md docs/PropagationStatus.md docs/PropagationStatusEnum.md +docs/RDSEngineEnum.md docs/RemoteUser.md docs/Request.md docs/RequestApprovalEnum.md @@ -162,16 +171,35 @@ docs/ResourceAccessUser.md docs/ResourceAccessUserList.md docs/ResourceNHI.md docs/ResourceRemoteInfo.md +docs/ResourceRemoteInfoAnthropicWorkspace.md docs/ResourceRemoteInfoAwsAccount.md docs/ResourceRemoteInfoAwsEc2Instance.md docs/ResourceRemoteInfoAwsEksCluster.md docs/ResourceRemoteInfoAwsIamRole.md docs/ResourceRemoteInfoAwsOrganizationalUnit.md docs/ResourceRemoteInfoAwsPermissionSet.md +docs/ResourceRemoteInfoAwsRdsCluster.md docs/ResourceRemoteInfoAwsRdsInstance.md +docs/ResourceRemoteInfoAzureEnterpriseApp.md +docs/ResourceRemoteInfoAzureEntraIdRole.md +docs/ResourceRemoteInfoAzureManagementGroup.md +docs/ResourceRemoteInfoAzureResourceGroup.md +docs/ResourceRemoteInfoAzureSqlDatabase.md +docs/ResourceRemoteInfoAzureSqlManagedDatabase.md +docs/ResourceRemoteInfoAzureSqlManagedInstance.md +docs/ResourceRemoteInfoAzureSqlServer.md +docs/ResourceRemoteInfoAzureStorageAccount.md +docs/ResourceRemoteInfoAzureStorageContainer.md +docs/ResourceRemoteInfoAzureSubscription.md +docs/ResourceRemoteInfoAzureUserAssignedManagedIdentity.md +docs/ResourceRemoteInfoAzureVirtualMachine.md docs/ResourceRemoteInfoCoupaRole.md +docs/ResourceRemoteInfoCursorOrganization.md docs/ResourceRemoteInfoCustomConnector.md +docs/ResourceRemoteInfoDatabricksAccountServicePrincipal.md docs/ResourceRemoteInfoDatastaxAstraRole.md +docs/ResourceRemoteInfoDevinOrganization.md +docs/ResourceRemoteInfoDevinRole.md docs/ResourceRemoteInfoGcpBigQueryDataset.md docs/ResourceRemoteInfoGcpBigQueryTable.md docs/ResourceRemoteInfoGcpBucket.md @@ -182,18 +210,28 @@ docs/ResourceRemoteInfoGcpOrganization.md docs/ResourceRemoteInfoGcpProject.md docs/ResourceRemoteInfoGcpServiceAccount.md docs/ResourceRemoteInfoGcpSqlInstance.md +docs/ResourceRemoteInfoGithubOrg.md docs/ResourceRemoteInfoGithubOrgRole.md docs/ResourceRemoteInfoGithubRepo.md docs/ResourceRemoteInfoGitlabProject.md docs/ResourceRemoteInfoGoogleWorkspaceRole.md +docs/ResourceRemoteInfoIlevelAdvancedRole.md docs/ResourceRemoteInfoOktaApp.md docs/ResourceRemoteInfoOktaCustomRole.md docs/ResourceRemoteInfoOktaStandardRole.md +docs/ResourceRemoteInfoOpenaiPlatformProject.md +docs/ResourceRemoteInfoOpenaiPlatformServiceAccount.md +docs/ResourceRemoteInfoOracleFusionRole.md docs/ResourceRemoteInfoPagerdutyRole.md docs/ResourceRemoteInfoSalesforcePermissionSet.md docs/ResourceRemoteInfoSalesforceProfile.md docs/ResourceRemoteInfoSalesforceRole.md +docs/ResourceRemoteInfoSnowflakeDatabase.md +docs/ResourceRemoteInfoSnowflakeSchema.md +docs/ResourceRemoteInfoSnowflakeTable.md +docs/ResourceRemoteInfoTailscaleSsh.md docs/ResourceRemoteInfoTeleportRole.md +docs/ResourceRemoteInfoWorkdayRole.md docs/ResourceTypeEnum.md docs/ResourceUser.md docs/ResourceUserAccessStatus.md @@ -312,16 +350,24 @@ model_group_containing_group.go model_group_containing_group_list.go model_group_remote_info.go model_group_remote_info_active_directory_group.go +model_group_remote_info_aws_sso_group.go model_group_remote_info_azure_ad_microsoft_365_group.go model_group_remote_info_azure_ad_security_group.go +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_team.go model_group_remote_info_gitlab_group.go model_group_remote_info_google_group.go +model_group_remote_info_incidentio_on_call_schedule.go model_group_remote_info_ldap_group.go model_group_remote_info_okta_group.go model_group_remote_info_okta_group_rule.go +model_group_remote_info_pagerduty_on_call_schedule.go +model_group_remote_info_rootly_on_call_schedule.go model_group_remote_info_snowflake_role.go +model_group_remote_info_tailscale_group.go model_group_remote_info_workday_user_security_group.go model_group_resource.go model_group_resource_list.go @@ -358,6 +404,7 @@ model_paginated_uars_list.go model_paginated_users_list.go model_propagation_status.go model_propagation_status_enum.go +model_rds_engine_enum.go model_remote_user.go model_request.go model_request_approval_enum.go @@ -382,16 +429,35 @@ model_resource_access_user.go model_resource_access_user_list.go model_resource_nhi.go model_resource_remote_info.go +model_resource_remote_info_anthropic_workspace.go model_resource_remote_info_aws_account.go model_resource_remote_info_aws_ec2_instance.go model_resource_remote_info_aws_eks_cluster.go model_resource_remote_info_aws_iam_role.go model_resource_remote_info_aws_organizational_unit.go model_resource_remote_info_aws_permission_set.go +model_resource_remote_info_aws_rds_cluster.go model_resource_remote_info_aws_rds_instance.go +model_resource_remote_info_azure_enterprise_app.go +model_resource_remote_info_azure_entra_id_role.go +model_resource_remote_info_azure_management_group.go +model_resource_remote_info_azure_resource_group.go +model_resource_remote_info_azure_sql_database.go +model_resource_remote_info_azure_sql_managed_database.go +model_resource_remote_info_azure_sql_managed_instance.go +model_resource_remote_info_azure_sql_server.go +model_resource_remote_info_azure_storage_account.go +model_resource_remote_info_azure_storage_container.go +model_resource_remote_info_azure_subscription.go +model_resource_remote_info_azure_user_assigned_managed_identity.go +model_resource_remote_info_azure_virtual_machine.go model_resource_remote_info_coupa_role.go +model_resource_remote_info_cursor_organization.go model_resource_remote_info_custom_connector.go +model_resource_remote_info_databricks_account_service_principal.go model_resource_remote_info_datastax_astra_role.go +model_resource_remote_info_devin_organization.go +model_resource_remote_info_devin_role.go model_resource_remote_info_gcp_big_query_dataset.go model_resource_remote_info_gcp_big_query_table.go model_resource_remote_info_gcp_bucket.go @@ -402,18 +468,28 @@ 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_org.go model_resource_remote_info_github_org_role.go model_resource_remote_info_github_repo.go model_resource_remote_info_gitlab_project.go model_resource_remote_info_google_workspace_role.go +model_resource_remote_info_ilevel_advanced_role.go model_resource_remote_info_okta_app.go model_resource_remote_info_okta_custom_role.go model_resource_remote_info_okta_standard_role.go +model_resource_remote_info_openai_platform_project.go +model_resource_remote_info_openai_platform_service_account.go +model_resource_remote_info_oracle_fusion_role.go model_resource_remote_info_pagerduty_role.go model_resource_remote_info_salesforce_permission_set.go model_resource_remote_info_salesforce_profile.go model_resource_remote_info_salesforce_role.go +model_resource_remote_info_snowflake_database.go +model_resource_remote_info_snowflake_schema.go +model_resource_remote_info_snowflake_table.go +model_resource_remote_info_tailscale_ssh.go model_resource_remote_info_teleport_role.go +model_resource_remote_info_workday_role.go model_resource_type_enum.go model_resource_user.go model_resource_user_access_status.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index e465da4..3821090 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.14.0 +7.19.0 diff --git a/README.md b/README.md index 7f91196..0ebffad 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 1.0 - Package version: 1.0.0 -- Generator version: 7.14.0 +- Generator version: 7.19.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://www.opal.dev/](https://www.opal.dev/) @@ -82,8 +82,8 @@ Class | Method | HTTP request | Description *AccessRulesAPI* | [**CreateAccessRule**](docs/AccessRulesAPI.md#createaccessrule) | **Post** /access-rules | *AccessRulesAPI* | [**GetAccessRule**](docs/AccessRulesAPI.md#getaccessrule) | **Get** /access-rules/{access_rule_id} | *AccessRulesAPI* | [**UpdateAccessRule**](docs/AccessRulesAPI.md#updateaccessrule) | **Put** /access-rules/{access_rule_id} | -*AppsAPI* | [**GetApp**](docs/AppsAPI.md#getapp) | **Get** /apps/{app_id} | -*AppsAPI* | [**GetApps**](docs/AppsAPI.md#getapps) | **Get** /apps | +*AppsAPI* | [**GetApp**](docs/AppsAPI.md#getapp) | **Get** /apps/{app_id} | Get app by ID +*AppsAPI* | [**GetApps**](docs/AppsAPI.md#getapps) | **Get** /apps | Get apps *AppsAPI* | [**GetSyncErrors**](docs/AppsAPI.md#getsyncerrors) | **Get** /sync_errors | *BundlesAPI* | [**AddBundleGroup**](docs/BundlesAPI.md#addbundlegroup) | **Post** /bundles/{bundle_id}/groups | *BundlesAPI* | [**AddBundleResource**](docs/BundlesAPI.md#addbundleresource) | **Post** /bundles/{bundle_id}/resources | @@ -104,8 +104,8 @@ Class | Method | HTTP request | Description *ConfigurationTemplatesAPI* | [**UpdateConfigurationTemplate**](docs/ConfigurationTemplatesAPI.md#updateconfigurationtemplate) | **Put** /configuration-templates | *DelegationsAPI* | [**CreateDelegation**](docs/DelegationsAPI.md#createdelegation) | **Post** /delegations | *DelegationsAPI* | [**DeleteDelegation**](docs/DelegationsAPI.md#deletedelegation) | **Delete** /delegations/{delegation_id} | -*DelegationsAPI* | [**GetDelegation**](docs/DelegationsAPI.md#getdelegation) | **Get** /delegations/{delegation_id} | -*DelegationsAPI* | [**GetDelegations**](docs/DelegationsAPI.md#getdelegations) | **Get** /delegations | +*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 | *GroupBindingsAPI* | [**CreateGroupBinding**](docs/GroupBindingsAPI.md#creategroupbinding) | **Post** /group-bindings | *GroupBindingsAPI* | [**DeleteGroupBinding**](docs/GroupBindingsAPI.md#deletegroupbinding) | **Delete** /group-bindings/{group_binding_id} | @@ -175,6 +175,7 @@ Class | Method | HTTP request | Description *ResourcesAPI* | [**DeleteResourceNhi**](docs/ResourcesAPI.md#deleteresourcenhi) | **Delete** /resources/{resource_id}/non-human-identities/{non_human_identity_id} | *ResourcesAPI* | [**DeleteResourceUser**](docs/ResourcesAPI.md#deleteresourceuser) | **Delete** /resources/{resource_id}/users/{user_id} | *ResourcesAPI* | [**GetResource**](docs/ResourcesAPI.md#getresource) | **Get** /resources/{resource_id} | Get resource by ID +*ResourcesAPI* | [**GetResourceGroups**](docs/ResourcesAPI.md#getresourcegroups) | **Get** /resources/{resource_id}/groups | *ResourcesAPI* | [**GetResourceMessageChannels**](docs/ResourcesAPI.md#getresourcemessagechannels) | **Get** /resources/{resource_id}/message-channels | *ResourcesAPI* | [**GetResourceNhis**](docs/ResourcesAPI.md#getresourcenhis) | **Get** /resources/{resource_id}/non-human-identities | *ResourcesAPI* | [**GetResourceReviewerStages**](docs/ResourcesAPI.md#getresourcereviewerstages) | **Get** /resources/{resource_id}/reviewer-stages | @@ -275,16 +276,24 @@ Class | Method | HTTP request | Description - [GroupContainingGroupList](docs/GroupContainingGroupList.md) - [GroupRemoteInfo](docs/GroupRemoteInfo.md) - [GroupRemoteInfoActiveDirectoryGroup](docs/GroupRemoteInfoActiveDirectoryGroup.md) + - [GroupRemoteInfoAwsSsoGroup](docs/GroupRemoteInfoAwsSsoGroup.md) - [GroupRemoteInfoAzureAdMicrosoft365Group](docs/GroupRemoteInfoAzureAdMicrosoft365Group.md) - [GroupRemoteInfoAzureAdSecurityGroup](docs/GroupRemoteInfoAzureAdSecurityGroup.md) + - [GroupRemoteInfoConnectorGroup](docs/GroupRemoteInfoConnectorGroup.md) + - [GroupRemoteInfoDatabricksAccountGroup](docs/GroupRemoteInfoDatabricksAccountGroup.md) + - [GroupRemoteInfoDevinGroup](docs/GroupRemoteInfoDevinGroup.md) - [GroupRemoteInfoDuoGroup](docs/GroupRemoteInfoDuoGroup.md) - [GroupRemoteInfoGithubTeam](docs/GroupRemoteInfoGithubTeam.md) - [GroupRemoteInfoGitlabGroup](docs/GroupRemoteInfoGitlabGroup.md) - [GroupRemoteInfoGoogleGroup](docs/GroupRemoteInfoGoogleGroup.md) + - [GroupRemoteInfoIncidentioOnCallSchedule](docs/GroupRemoteInfoIncidentioOnCallSchedule.md) - [GroupRemoteInfoLdapGroup](docs/GroupRemoteInfoLdapGroup.md) - [GroupRemoteInfoOktaGroup](docs/GroupRemoteInfoOktaGroup.md) - [GroupRemoteInfoOktaGroupRule](docs/GroupRemoteInfoOktaGroupRule.md) + - [GroupRemoteInfoPagerdutyOnCallSchedule](docs/GroupRemoteInfoPagerdutyOnCallSchedule.md) + - [GroupRemoteInfoRootlyOnCallSchedule](docs/GroupRemoteInfoRootlyOnCallSchedule.md) - [GroupRemoteInfoSnowflakeRole](docs/GroupRemoteInfoSnowflakeRole.md) + - [GroupRemoteInfoTailscaleGroup](docs/GroupRemoteInfoTailscaleGroup.md) - [GroupRemoteInfoWorkdayUserSecurityGroup](docs/GroupRemoteInfoWorkdayUserSecurityGroup.md) - [GroupResource](docs/GroupResource.md) - [GroupResourceList](docs/GroupResourceList.md) @@ -321,6 +330,7 @@ Class | Method | HTTP request | Description - [PaginatedUsersList](docs/PaginatedUsersList.md) - [PropagationStatus](docs/PropagationStatus.md) - [PropagationStatusEnum](docs/PropagationStatusEnum.md) + - [RDSEngineEnum](docs/RDSEngineEnum.md) - [RemoteUser](docs/RemoteUser.md) - [Request](docs/Request.md) - [RequestApprovalEnum](docs/RequestApprovalEnum.md) @@ -345,16 +355,35 @@ Class | Method | HTTP request | Description - [ResourceAccessUserList](docs/ResourceAccessUserList.md) - [ResourceNHI](docs/ResourceNHI.md) - [ResourceRemoteInfo](docs/ResourceRemoteInfo.md) + - [ResourceRemoteInfoAnthropicWorkspace](docs/ResourceRemoteInfoAnthropicWorkspace.md) - [ResourceRemoteInfoAwsAccount](docs/ResourceRemoteInfoAwsAccount.md) - [ResourceRemoteInfoAwsEc2Instance](docs/ResourceRemoteInfoAwsEc2Instance.md) - [ResourceRemoteInfoAwsEksCluster](docs/ResourceRemoteInfoAwsEksCluster.md) - [ResourceRemoteInfoAwsIamRole](docs/ResourceRemoteInfoAwsIamRole.md) - [ResourceRemoteInfoAwsOrganizationalUnit](docs/ResourceRemoteInfoAwsOrganizationalUnit.md) - [ResourceRemoteInfoAwsPermissionSet](docs/ResourceRemoteInfoAwsPermissionSet.md) + - [ResourceRemoteInfoAwsRdsCluster](docs/ResourceRemoteInfoAwsRdsCluster.md) - [ResourceRemoteInfoAwsRdsInstance](docs/ResourceRemoteInfoAwsRdsInstance.md) + - [ResourceRemoteInfoAzureEnterpriseApp](docs/ResourceRemoteInfoAzureEnterpriseApp.md) + - [ResourceRemoteInfoAzureEntraIdRole](docs/ResourceRemoteInfoAzureEntraIdRole.md) + - [ResourceRemoteInfoAzureManagementGroup](docs/ResourceRemoteInfoAzureManagementGroup.md) + - [ResourceRemoteInfoAzureResourceGroup](docs/ResourceRemoteInfoAzureResourceGroup.md) + - [ResourceRemoteInfoAzureSqlDatabase](docs/ResourceRemoteInfoAzureSqlDatabase.md) + - [ResourceRemoteInfoAzureSqlManagedDatabase](docs/ResourceRemoteInfoAzureSqlManagedDatabase.md) + - [ResourceRemoteInfoAzureSqlManagedInstance](docs/ResourceRemoteInfoAzureSqlManagedInstance.md) + - [ResourceRemoteInfoAzureSqlServer](docs/ResourceRemoteInfoAzureSqlServer.md) + - [ResourceRemoteInfoAzureStorageAccount](docs/ResourceRemoteInfoAzureStorageAccount.md) + - [ResourceRemoteInfoAzureStorageContainer](docs/ResourceRemoteInfoAzureStorageContainer.md) + - [ResourceRemoteInfoAzureSubscription](docs/ResourceRemoteInfoAzureSubscription.md) + - [ResourceRemoteInfoAzureUserAssignedManagedIdentity](docs/ResourceRemoteInfoAzureUserAssignedManagedIdentity.md) + - [ResourceRemoteInfoAzureVirtualMachine](docs/ResourceRemoteInfoAzureVirtualMachine.md) - [ResourceRemoteInfoCoupaRole](docs/ResourceRemoteInfoCoupaRole.md) + - [ResourceRemoteInfoCursorOrganization](docs/ResourceRemoteInfoCursorOrganization.md) - [ResourceRemoteInfoCustomConnector](docs/ResourceRemoteInfoCustomConnector.md) + - [ResourceRemoteInfoDatabricksAccountServicePrincipal](docs/ResourceRemoteInfoDatabricksAccountServicePrincipal.md) - [ResourceRemoteInfoDatastaxAstraRole](docs/ResourceRemoteInfoDatastaxAstraRole.md) + - [ResourceRemoteInfoDevinOrganization](docs/ResourceRemoteInfoDevinOrganization.md) + - [ResourceRemoteInfoDevinRole](docs/ResourceRemoteInfoDevinRole.md) - [ResourceRemoteInfoGcpBigQueryDataset](docs/ResourceRemoteInfoGcpBigQueryDataset.md) - [ResourceRemoteInfoGcpBigQueryTable](docs/ResourceRemoteInfoGcpBigQueryTable.md) - [ResourceRemoteInfoGcpBucket](docs/ResourceRemoteInfoGcpBucket.md) @@ -365,18 +394,28 @@ Class | Method | HTTP request | Description - [ResourceRemoteInfoGcpProject](docs/ResourceRemoteInfoGcpProject.md) - [ResourceRemoteInfoGcpServiceAccount](docs/ResourceRemoteInfoGcpServiceAccount.md) - [ResourceRemoteInfoGcpSqlInstance](docs/ResourceRemoteInfoGcpSqlInstance.md) + - [ResourceRemoteInfoGithubOrg](docs/ResourceRemoteInfoGithubOrg.md) - [ResourceRemoteInfoGithubOrgRole](docs/ResourceRemoteInfoGithubOrgRole.md) - [ResourceRemoteInfoGithubRepo](docs/ResourceRemoteInfoGithubRepo.md) - [ResourceRemoteInfoGitlabProject](docs/ResourceRemoteInfoGitlabProject.md) - [ResourceRemoteInfoGoogleWorkspaceRole](docs/ResourceRemoteInfoGoogleWorkspaceRole.md) + - [ResourceRemoteInfoIlevelAdvancedRole](docs/ResourceRemoteInfoIlevelAdvancedRole.md) - [ResourceRemoteInfoOktaApp](docs/ResourceRemoteInfoOktaApp.md) - [ResourceRemoteInfoOktaCustomRole](docs/ResourceRemoteInfoOktaCustomRole.md) - [ResourceRemoteInfoOktaStandardRole](docs/ResourceRemoteInfoOktaStandardRole.md) + - [ResourceRemoteInfoOpenaiPlatformProject](docs/ResourceRemoteInfoOpenaiPlatformProject.md) + - [ResourceRemoteInfoOpenaiPlatformServiceAccount](docs/ResourceRemoteInfoOpenaiPlatformServiceAccount.md) + - [ResourceRemoteInfoOracleFusionRole](docs/ResourceRemoteInfoOracleFusionRole.md) - [ResourceRemoteInfoPagerdutyRole](docs/ResourceRemoteInfoPagerdutyRole.md) - [ResourceRemoteInfoSalesforcePermissionSet](docs/ResourceRemoteInfoSalesforcePermissionSet.md) - [ResourceRemoteInfoSalesforceProfile](docs/ResourceRemoteInfoSalesforceProfile.md) - [ResourceRemoteInfoSalesforceRole](docs/ResourceRemoteInfoSalesforceRole.md) + - [ResourceRemoteInfoSnowflakeDatabase](docs/ResourceRemoteInfoSnowflakeDatabase.md) + - [ResourceRemoteInfoSnowflakeSchema](docs/ResourceRemoteInfoSnowflakeSchema.md) + - [ResourceRemoteInfoSnowflakeTable](docs/ResourceRemoteInfoSnowflakeTable.md) + - [ResourceRemoteInfoTailscaleSsh](docs/ResourceRemoteInfoTailscaleSsh.md) - [ResourceRemoteInfoTeleportRole](docs/ResourceRemoteInfoTeleportRole.md) + - [ResourceRemoteInfoWorkdayRole](docs/ResourceRemoteInfoWorkdayRole.md) - [ResourceTypeEnum](docs/ResourceTypeEnum.md) - [ResourceUser](docs/ResourceUser.md) - [ResourceUserAccessStatus](docs/ResourceUserAccessStatus.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index edb0f4c..c5fd83d 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -4,81 +4,82 @@ info: email: hello@opal.dev name: Opal Team url: https://www.opal.dev/ - description: The Opal API is a RESTful API that allows you to interact with the - Opal Security platform programmatically. + description: The Opal API is a RESTful API that allows you to interact with the Opal Security platform programmatically. title: Opal API version: "1.0" servers: -- description: Production - url: https://api.opal.dev/v1 + - description: Production + url: https://api.opal.dev/v1 +# keep tags alphabetized, also add any new tags to the list below tags: -- description: Operations related to access rules - name: access-rules -- description: Operations related to apps - name: apps -- description: Operations related to bundles - name: bundles -- description: Operations related to configuration templates - name: configuration-templates -- description: Operations related to request reviewer delegations - name: delegations -- description: Operations related to events - name: events -- description: Operations related to groups - name: groups -- description: Operations related to group bindings - name: group-bindings -- description: Operations related to IDP group mappings - name: idp-group-mappings -- description: Operations related to message channels - name: message-channels -- description: Operations related to non-human identities - name: non-human-identities -- description: Operations related to on-call schedules - name: on-call-schedules -- description: Operations related to owners - name: owners -- description: Operations related to requests - name: requests -- description: Operations related to resources - name: resources -- description: Operations related to sessions - name: sessions -- description: Operations related to tags - name: tags -- description: Operations related to UARs - name: uars -- description: Operations related to users - name: users + - name: access-rules + description: Operations related to access rules + - name: apps + description: Operations related to apps + - name: bundles + description: Operations related to bundles + - name: configuration-templates + description: Operations related to configuration templates + - name: delegations + description: Operations related to request reviewer delegations + - name: events + description: Operations related to events + - name: groups + description: Operations related to groups + - name: group-bindings + description: Operations related to group bindings + - name: idp-group-mappings + description: Operations related to IDP group mappings + - name: message-channels + description: Operations related to message channels + - name: non-human-identities + description: Operations related to non-human identities + - name: on-call-schedules + description: Operations related to on-call schedules + - name: owners + description: Operations related to owners + - name: requests + description: Operations related to requests + - name: resources + description: Operations related to resources + - name: sessions + description: Operations related to sessions + - name: tags + description: Operations related to tags + - name: uars + description: Operations related to UARs + - name: users + description: Operations related to users paths: /apps: get: + summary: Get apps description: Returns a list of `App` objects. operationId: getApps parameters: - - description: A list of app types to filter by. - example: - - OKTA_DIRECTORY - - GIT_HUB - explode: false - in: query - name: app_type_filter - required: false - schema: - items: - $ref: "#/components/schemas/AppTypeEnum" - type: array - style: form - - description: An owner ID to filter by. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: true - in: query - name: owner_filter - required: false - schema: - format: uuid - type: string - style: form + - description: A list of app types to filter by. + example: + - OKTA_DIRECTORY + - GIT_HUB + explode: false + in: query + name: app_type_filter + required: false + schema: + items: + $ref: "#/components/schemas/AppTypeEnum" + type: array + style: form + - description: An owner ID to filter by. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: owner_filter + required: false + schema: + format: uuid + type: string + style: form responses: "200": content: @@ -87,24 +88,25 @@ paths: $ref: "#/components/schemas/AppsList" description: A list of apps for your organization. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - apps + - apps /apps/{app_id}: get: + summary: Get app by ID description: Returns an `App` object. operationId: getApp parameters: - - description: The ID of the app. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: app_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the app. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: app_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -113,111 +115,89 @@ paths: $ref: "#/components/schemas/App" description: The requested `App`. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - apps + - apps /bundles: get: + summary: Get bundles description: Returns a list of `Bundle` objects. operationId: getBundles parameters: - - description: "The maximum number of bundles to return from the beginning of\ - \ the list. Default is 200, max is 1000." - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - type: integer - style: form - - description: A cursor indicating where to start fetching items after a specific - point. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: A filter for the bundle name. - example: Engineering - explode: true - in: query - name: contains - required: false - schema: - type: string - style: form + - description: The maximum number of bundles to return from the beginning of the list. Default is 200, max is 1000. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: A cursor indicating where to start fetching items after a specific point. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: A filter for the bundle name. + example: Engineering + explode: true + in: query + name: contains + required: false + schema: + type: string + style: form responses: "200": + description: A list of bundles for your organization. content: application/json: schema: $ref: "#/components/schemas/PaginatedBundleList" - description: A list of bundles for your organization. security: - - BearerAuth: [] - summary: Get bundles + - BearerAuth: [] tags: - - bundles + - bundles post: description: Creates a bundle. operationId: createBundle requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/CreateBundleInfo" - required: true responses: "201": + description: The bundle successfully created. content: application/json: schema: $ref: "#/components/schemas/Bundle" - description: The bundle successfully created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles /bundles/{bundle_id}: - delete: - description: Deletes a bundle. - operationId: deleteBundle - parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: The bundle was successfully deleted. - security: - - BearerAuth: [] - tags: - - bundles get: + summary: Get bundle by ID description: Returns a `Bundle` object. operationId: getBundle parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -226,78 +206,94 @@ paths: $ref: "#/components/schemas/Bundle" description: The requested `Bundle`. security: - - BearerAuth: [] - summary: Get bundle by ID + - BearerAuth: [] + tags: + - bundles + delete: + description: Deletes a bundle. + operationId: deleteBundle + parameters: + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The bundle was successfully deleted. + security: + - BearerAuth: [] tags: - - bundles + - bundles put: description: Updates a bundle. operationId: updateBundle parameters: - - description: The ID of the bundle to be updated. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the bundle to be updated. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/Bundle" - required: true responses: "200": + description: The bundle was successfully updated. content: application/json: schema: $ref: "#/components/schemas/Bundle" - description: The bundle was successfully updated. "204": description: No changes detected (no-op) security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles /bundles/{bundle_id}/resources: get: description: Returns a list of `Resource` objects in a given bundle. operationId: getBundleResources parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple - - description: "The maximum number of resources to return from the beginning\ - \ of the list. Default is 200, max is 1000." - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - type: integer - style: form - - description: A cursor indicating where to start fetching items after a specific - point. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The maximum number of resources to return from the beginning of the list. Default is 200, max is 1000. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: A cursor indicating where to start fetching items after a specific point. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form responses: "200": content: @@ -306,29 +302,42 @@ paths: $ref: "#/components/schemas/PaginatedBundleResourceList" description: A list of resources for the bundle. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles post: description: Adds a resource to a bundle. operationId: addBundleResource parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string requestBody: + required: false content: application/json: schema: - $ref: "#/components/schemas/addBundleResource_request" - required: false + properties: + resource_id: + description: The ID of the resource to add. + example: 72e75a6f-7183-48c5-94ff-6013f213314b + format: uuid + type: string + access_level_remote_id: + description: The remote ID of the access level to grant to this user. Required if the resource being added requires an access level. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + type: string + access_level_name: + description: The name of the access level to grant to this user. If omitted, the default access level name value (empty string) is used. + example: AdministratorAccess + type: string + required: + - resource_id responses: "201": content: @@ -337,86 +346,78 @@ paths: $ref: "#/components/schemas/BundleResource" description: Resource was successfully added to the bundle. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles /bundles/{bundle_id}/resources/{resource_id}: delete: description: Removes a resource from a bundle. operationId: removeBundleResource parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the resource to remove. - example: 72e75a6f-7183-48c5-94ff-6013f213314b - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: "The remote ID of the access level to grant. If omitted, the\ - \ default access level remote ID value (empty string) is used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + - description: The ID of the resource to remove. + example: 72e75a6f-7183-48c5-94ff-6013f213314b + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + - description: The remote ID of the access level to grant. If omitted, the default access level remote ID value (empty string) is used. + 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": description: Resource was successfully removed from the bundle. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles /bundles/{bundle_id}/groups: get: description: Returns a list of `Group` objects in a given bundle. operationId: getBundleGroups parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple - - description: "The maximum number of groups to return from the beginning of\ - \ the list. Default is 200, max is 1000." - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - type: integer - style: form - - description: A cursor indicating where to start fetching items after a specific - point. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The maximum number of groups to return from the beginning of the list. Default is 200, max is 1000. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + style: form + - description: A cursor indicating where to start fetching items after a specific point. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form responses: "200": content: @@ -425,29 +426,42 @@ paths: $ref: "#/components/schemas/PaginatedBundleGroupList" description: A list of groups for the bundle. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles post: description: Adds a group to a bundle. operationId: addBundleGroup parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string requestBody: + required: true content: application/json: schema: - $ref: "#/components/schemas/addBundleGroup_request" - required: true + properties: + group_id: + description: The ID of the group to add. + example: 72e75a6f-7183-48c5-94ff-6013f213314b + format: uuid + type: string + access_level_remote_id: + description: The remote ID of the access level to grant to this user. Required if the group being added requires an access level. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + type: string + access_level_name: + description: The name of the access level to grant to this user. If omitted, the default access level name value (empty string) is used. + example: AdministratorAccess + type: string + required: + - group_id responses: "201": content: @@ -456,65 +470,60 @@ paths: $ref: "#/components/schemas/BundleGroup" description: Group was successfully added to the bundle. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles /bundles/{bundle_id}/groups/{group_id}: delete: description: Removes a group from a bundle. operationId: removeBundleGroup parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the group to remove. - example: 72e75a6f-7183-48c5-94ff-6013f213314b - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The remote ID of the access level to remove. - example: arn:aws:iam::590304332660:role/AdministratorAccess - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + - description: The ID of the group to remove. + example: 72e75a6f-7183-48c5-94ff-6013f213314b + in: path + name: group_id + required: true + schema: + format: uuid + type: string + - description: The remote ID of the access level to remove. + 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": description: Group was successfully removed from the bundle. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles /bundles/{bundle_id}/visibility: get: description: Gets the visibility of the bundle. operationId: getBundleVisibility parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -523,36 +532,35 @@ paths: $ref: "#/components/schemas/VisibilityInfo" description: The visibility details of a bundle. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles put: description: Sets the visibility of the bundle. operationId: setBundleVisibility parameters: - - description: The ID of the bundle. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: bundle_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the bundle. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: bundle_id + required: true + schema: + format: uuid + type: string requestBody: + required: true content: application/json: schema: + description: The visibility details of the bundle. Setting to LIMITED visibility with no visibility groups will make bundle only visible to admins and users with access. $ref: "#/components/schemas/VisibilityInfo" - required: true responses: "200": description: The visibility details of the bundle were successfully set. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - bundles + - bundles /configuration-templates: get: description: Returns a list of `ConfigurationTemplate` objects. @@ -565,18 +573,18 @@ paths: $ref: "#/components/schemas/PaginatedConfigurationTemplateList" description: One page worth of configuration templates for your organization. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - configuration-templates + - configuration-templates post: description: Creates a configuration template. operationId: createConfigurationTemplate requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/CreateConfigurationTemplateInfo" - required: true responses: "200": content: @@ -585,19 +593,12 @@ paths: $ref: "#/components/schemas/ConfigurationTemplate" description: The configuration template just created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - configuration-templates + - configuration-templates put: description: Update a configuration template. operationId: updateConfigurationTemplate - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/UpdateConfigurationTemplateInfo" - description: Configuration template to be updated - required: true responses: "200": content: @@ -605,125 +606,131 @@ paths: schema: $ref: "#/components/schemas/ConfigurationTemplate" description: The configuration template just updated. + requestBody: + description: Configuration template to be updated + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateConfigurationTemplateInfo" security: - - BearerAuth: [] + - BearerAuth: [] tags: - - configuration-templates + - configuration-templates /configuration-templates/{configuration_template_id}: delete: description: Deletes a configuration template. operationId: deleteConfigurationTemplate parameters: - - description: The ID of the configuration template. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: configuration_template_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the configuration template. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: configuration_template_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": description: The configuration template was successfully deleted. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - configuration-templates + - configuration-templates /events: get: description: Returns a list of `Event` objects. operationId: events parameters: - - description: A start date filter for the events. - examples: - withDate: - summary: Example with date - value: 2021-11-01 - withDatetime: - summary: Example with date and time in ISO 8601 datetime format. - value: 2025-01-01T00:00:00Z - explode: true - in: query - name: start_date_filter - required: false - schema: - type: string - style: form - - description: An end date filter for the events. - examples: - withDate: - summary: Example with date - value: 2021-11-12 - withDatetime: - summary: Example with date and time in ISO 8601 datetime format. - value: 2025-01-01T00:00:00Z - explode: true - in: query - name: end_date_filter - required: false - schema: - type: string - style: form - - description: An actor filter for the events. Supply the ID of the actor. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: true - in: query - name: actor_filter - required: false - schema: - format: uuid - type: string - style: form - - description: An object filter for the events. Supply the ID of the object. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: true - in: query - name: object_filter - required: false - schema: - format: uuid - type: string - style: form - - description: An event type filter for the events. - example: USER_MFA_RESET - explode: true - in: query - name: event_type_filter - required: false - schema: - type: string - style: form - - description: An API filter for the events. Supply the name and preview of - the API token. - example: fullaccess:**************************M_g== - explode: true - in: query - name: api_token_filter - required: false - schema: - type: string - style: form - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: A start date filter for the events. + examples: + withDate: + summary: Example with date + value: 2021-11-01 + withDatetime: + summary: Example with date and time in ISO 8601 datetime format. + value: 2025-01-01T00:00:00Z + explode: true + in: query + name: start_date_filter + required: false + schema: + type: string + style: form + - description: An end date filter for the events. + examples: + withDate: + summary: Example with date + value: 2021-11-12 + withDatetime: + summary: Example with date and time in ISO 8601 datetime format. + value: 2025-01-01T00:00:00Z + explode: true + in: query + name: end_date_filter + required: false + schema: + type: string + style: form + - description: An actor filter for the events. Supply the ID of the actor. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: actor_filter + required: false + schema: + format: uuid + type: string + style: form + - description: An object filter for the events. Supply the ID of the object. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: object_filter + required: false + schema: + format: uuid + type: string + style: form + - description: An event type filter for the events. + example: USER_MFA_RESET + explode: true + in: query + name: event_type_filter + required: false + schema: + type: string + style: form + - description: An API filter for the events. Supply the name and preview of the API token. + example: fullaccess:**************************M_g== + explode: true + in: query + name: api_token_filter + required: false + schema: + type: string + style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -732,66 +739,67 @@ paths: $ref: "#/components/schemas/PaginatedEventList" description: One page worth of events with the appropriate filters applied. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - events + - events /groups: get: + summary: Get groups description: Returns a list of groups for your organization. operationId: getGroups parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form - - description: The group type to filter by. - example: OPAL_GROUP - explode: true - in: query - name: group_type_filter - required: false - schema: - $ref: "#/components/schemas/GroupTypeEnum" - style: form - - description: The group ids to filter by. - example: - - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - - 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: query - name: group_ids - required: false - schema: - items: - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - format: uuid + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: type: string - type: array - style: form - - description: Group name. - example: example-name - explode: true - in: query - name: group_name - required: false - schema: - type: string - style: form + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form + - description: The group type to filter by. + example: OPAL_GROUP + explode: true + in: query + name: group_type_filter + required: false + schema: + $ref: "#/components/schemas/GroupTypeEnum" + style: form + - description: The group ids to filter by. + example: + - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + - 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: query + name: group_ids + required: false + schema: + items: + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + format: uuid + type: string + type: array + style: form + - description: Group name. + example: example-name + explode: true + in: query + name: group_name + required: false + schema: + type: string + style: form responses: "200": content: @@ -800,87 +808,66 @@ paths: $ref: "#/components/schemas/PaginatedGroupsList" description: One page worth groups associated with your organization. security: - - BearerAuth: [] - summary: Get groups + - BearerAuth: [] tags: - - groups - post: - description: "Creates an Opal group or [imports a remote group](https://docs.opal.dev/reference/end-system-objects)." - operationId: createGroup + - groups + put: + description: Bulk updates a list of groups. + operationId: updateGroups requestBody: + description: Groups to be updated + required: true content: application/json: schema: - $ref: "#/components/schemas/CreateGroupInfo" - required: true + $ref: "#/components/schemas/UpdateGroupInfoList" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/Group" - description: The group just created. + $ref: "#/components/schemas/UpdateGroupInfoList" + description: The resulting updated group infos. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups - put: - description: Bulk updates a list of groups. - operationId: updateGroups + - groups + post: + description: Creates an Opal group or [imports a remote group](https://docs.opal.dev/reference/end-system-objects). + operationId: createGroup requestBody: + required: true content: application/json: schema: - $ref: "#/components/schemas/UpdateGroupInfoList" - description: Groups to be updated - required: true + $ref: "#/components/schemas/CreateGroupInfo" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UpdateGroupInfoList" - description: The resulting updated group infos. + $ref: "#/components/schemas/Group" + description: The group just created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}: - delete: - description: Deletes a group. - operationId: delete_group - parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: The group was successfully deleted. - security: - - BearerAuth: [] - tags: - - groups get: + summary: Get group by ID description: Returns a `Group` object. operationId: getGroup parameters: - - description: The ID of the group. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -889,26 +876,45 @@ paths: $ref: "#/components/schemas/Group" description: The requested `Group`. security: - - BearerAuth: [] - summary: Get group by ID + - BearerAuth: [] + tags: + - groups + delete: + description: Deletes a group. + operationId: delete_group + parameters: + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The group was successfully deleted. + security: + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/message-channels: get: - description: Gets the list of audit and reviewer message channels attached to - a group. + description: Gets the list of audit and reviewer message channels attached to a group. operationId: get_group_message_channels parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -917,29 +923,29 @@ paths: $ref: "#/components/schemas/MessageChannelList" description: The audit and reviewer message channels attached to the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups put: description: Sets the list of audit message channels attached to a group. operationId: set_group_message_channels parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/MessageChannelIDList" - required: true responses: "200": content: @@ -952,24 +958,24 @@ paths: type: array description: The updated audit message channel IDs for the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/on-call-schedules: get: description: Gets the list of on call schedules attached to a group. operationId: get_group_on_call_schedules parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -978,29 +984,29 @@ paths: $ref: "#/components/schemas/OnCallScheduleList" description: The on call schedules attached to the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups put: description: Sets the list of on call schedules attached to a group. operationId: set_group_on_call_schedules parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/OnCallScheduleIDList" - required: true responses: "200": content: @@ -1013,24 +1019,24 @@ paths: type: array description: The updated on call schedule IDs for the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/resources: get: description: Gets the list of resources that the group gives access to. operationId: get_group_resources parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1039,51 +1045,52 @@ paths: $ref: "#/components/schemas/GroupResourceList" description: The resources that the group gives access to. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups put: description: Sets the list of resources that the group gives access to. operationId: set_group_resources parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/UpdateGroupResourcesInfo" - required: true responses: "200": description: The group resource were successfully set. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/containing-groups: get: + summary: Get nested groups description: Gets the list of groups that the group gives access to. operationId: get_group_containing_groups parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1092,30 +1099,29 @@ paths: $ref: "#/components/schemas/GroupContainingGroupList" description: The resources that the group gives access to. security: - - BearerAuth: [] - summary: Get nested groups + - BearerAuth: [] tags: - - groups + - groups post: description: Creates a new containing group. operationId: add_group_containing_group parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/GroupContainingGroup" - required: true responses: "200": content: @@ -1124,65 +1130,35 @@ paths: $ref: "#/components/schemas/GroupContainingGroup" description: The created `GroupContainingGroup` object. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/containing-groups/{containing_group_id}: - delete: - description: Removes a containing group from a group. - operationId: remove_group_containing_group - parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the containing group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: containing_group_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "204": - description: The containing group was successfully removed from the group. - security: - - BearerAuth: [] - tags: - - groups get: + summary: Get nested group by ID description: Gets a specific containing group for a group. operationId: get_group_containing_group parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the containing group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: containing_group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the containing group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: containing_group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1191,52 +1167,105 @@ paths: $ref: "#/components/schemas/GroupContainingGroup" description: The created `GroupContainingGroup` object. security: - - BearerAuth: [] - summary: Get nested group by ID + - BearerAuth: [] + tags: + - groups + delete: + description: Removes a containing group from a group. + operationId: remove_group_containing_group + parameters: + - description: The ID of the member group to remove. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the containing group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: containing_group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The remote ID of the member group's access level 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: + "204": + description: The member group was successfully removed from the containing group. + security: + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/resources/{resource_id}: post: description: Adds a resource to a group. operationId: add_group_resource parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - deprecated: true - description: "The remote ID of the access level to grant to this user. If\ - \ omitted, the default access level remote ID value (empty string) is used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + explode: true + in: query + name: access_level_remote_id + required: false + schema: + type: string + style: form + deprecated: true requestBody: + required: false content: application/json: schema: - $ref: "#/components/schemas/add_group_resource_request" - required: false + example: + access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess + duration_minutes: 60 + properties: + access_level_remote_id: + description: The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + type: string + duration_minutes: + description: The duration for which the resource can be accessed (in minutes). Use 0 to set to indefinite. + example: 60 + type: integer + maximum: 525960 # One year + minimum: 0 + type: object responses: "200": content: @@ -1245,24 +1274,24 @@ paths: $ref: "#/components/schemas/GroupResource" description: The created `GroupResource` object. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/visibility: get: description: Gets the visibility of this group. operationId: get_group_visibility parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1271,29 +1300,29 @@ paths: $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups put: description: Sets the visibility of this group. operationId: set_group_visibility parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/VisibilityInfo" - required: true responses: "200": content: @@ -1302,25 +1331,25 @@ paths: $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/reviewers: get: deprecated: true description: Gets the list of owner IDs of the reviewers for a group. operationId: get_group_reviewers parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1333,30 +1362,30 @@ paths: type: array description: The IDs of owners that are reviewers for this group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups put: deprecated: true description: Sets the list of reviewers for a group. operationId: set_group_reviewers parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/ReviewerIDList" - required: true responses: "200": content: @@ -1369,25 +1398,25 @@ paths: type: array description: The updated IDs of owners that are reviewers for this group security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/reviewer-stages: get: deprecated: true description: Gets the list of reviewer stages for a group. operationId: get_group_reviewer_stages parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1399,30 +1428,30 @@ paths: type: array description: The reviewer stages for this group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups put: deprecated: true description: Sets the list of reviewer stages for a group. operationId: set_group_reviewer_stages parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/ReviewerStageList" - required: true responses: "200": content: @@ -1434,24 +1463,24 @@ paths: type: array description: The updated reviewer stages for this group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/tags: get: description: Returns all tags applied to the group. operationId: get_group_tags parameters: - - description: The ID of the group whose tags to return. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group whose tags to return. + name: group_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1460,43 +1489,43 @@ paths: $ref: "#/components/schemas/TagsList" description: The tags applied to the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/users: get: description: Gets the list of users for this group. operationId: get_group_users parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -1505,105 +1534,129 @@ paths: $ref: "#/components/schemas/GroupUserList" description: List of users with access to this group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/{group_id}/users/{user_id}: - delete: - description: Removes a user's access from this group. - operationId: delete_group_user + put: + description: Updates a user's access level or duration in this group. + operationId: update_group_user parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of a user to remove from this group. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: user_id + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user whose access is being updated. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: required: true - schema: - format: uuid - type: string - style: simple - - description: "The remote ID of the access level for which this user has direct\ - \ access. If omitted, the default access level remote ID value (empty string)\ - \ is assumed." - example: 30 - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form + content: + application/json: + schema: + type: object + example: + duration_minutes: 60 + access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess + properties: + duration_minutes: + description: The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite. + type: integer + maximum: 525960 # One year + example: 120 + access_level_remote_id: + description: The updated remote ID of the access level granted to this user. + type: string + example: arn:aws:iam::590304332660:role/ReadOnlyAccess + required: + - duration_minutes responses: "200": - description: This user's access was successfully removed from this group. + description: The GroupUser was successfully updated. + content: + application/json: + schema: + $ref: "#/components/schemas/GroupUser" security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups post: description: Adds a user to this group. operationId: add_group_user parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user to add. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - - deprecated: true - description: The duration for which the group can be accessed (in minutes). - Use 0 to set to indefinite. - example: 60 - explode: true - in: query - name: duration_minutes - required: false - schema: - maximum: 525960 - type: integer - style: form - - deprecated: true - description: "The remote ID of the access level to grant to this user. If\ - \ omitted, the default access level remote ID value (empty string) is used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form - requestBody: - content: + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user to add. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The duration for which the group can be accessed (in minutes). Use 0 to set to indefinite. + example: 60 + explode: true + in: query + name: duration_minutes + required: false + schema: + type: integer + maximum: 525960 # One year + style: form + deprecated: true + - description: The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + explode: true + in: query + name: access_level_remote_id + required: false + schema: + type: string + style: form + deprecated: true + requestBody: + required: false + content: application/json: schema: - $ref: "#/components/schemas/add_group_user_request" - required: false + example: + duration_minutes: 60 + access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess + properties: + duration_minutes: + description: The duration for which the group can be accessed (in minutes). Use 0 to set to indefinite. + example: 60 + type: integer + access_level_remote_id: + description: The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + type: string + required: + - duration_minutes + type: object responses: "200": content: @@ -1612,84 +1665,83 @@ paths: $ref: "#/components/schemas/GroupUser" description: The GroupUser that was created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups - put: - description: Updates a user's access level or duration in this group. - operationId: update_group_user + - groups + delete: + description: Removes a user's access from this group. + operationId: delete_group_user parameters: - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user whose access is being updated. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/update_group_user_request" - required: true + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of a user to remove from this group. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The remote ID of the access level for which this user has direct access. If omitted, the default access level remote ID value (empty string) is assumed. + example: 30 + 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/GroupUser" - description: The GroupUser was successfully updated. + description: This user's access was successfully removed from this group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /groups/users/{user_id}: get: description: Returns all groups that the user is a member of. operationId: get_user_groups parameters: - - description: The ID of the user whose groups to return. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The ID of the user whose groups to return. + name: user_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -1698,33 +1750,33 @@ paths: $ref: "#/components/schemas/GroupUserList" description: The groups that the user is a member of. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - groups + - groups /group-bindings: get: + summary: Get group bindings description: Returns a list of `GroupBinding` objects. operationId: getGroupBindings parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -1733,19 +1785,18 @@ paths: $ref: "#/components/schemas/PaginatedGroupBindingsList" description: One page worth of group bindings for your organization. security: - - BearerAuth: [] - summary: Get group bindings + - BearerAuth: [] tags: - - group-bindings + - group-bindings post: description: Creates a group binding. operationId: createGroupBinding requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/CreateGroupBindingInfo" - required: true responses: "200": content: @@ -1754,62 +1805,42 @@ paths: $ref: "#/components/schemas/GroupBinding" description: The group binding just created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - group-bindings + - group-bindings put: description: Bulk updates a list of group bindings. operationId: updateGroupBindings requestBody: + description: Group bindings to be updated + required: true content: application/json: schema: $ref: "#/components/schemas/UpdateGroupBindingInfoList" - description: Group bindings to be updated - required: true responses: "200": description: The group bindings were successfully updated. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - group-bindings + - group-bindings /group-bindings/{group_binding_id}: - delete: - description: Deletes a group binding. - operationId: deleteGroupBinding - parameters: - - description: The ID of the group binding. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_binding_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: The group binding was successfully deleted. - security: - - BearerAuth: [] - tags: - - group-bindings get: + summary: Get group binding by ID description: Returns a `GroupBinding` object. operationId: getGroupBinding parameters: - - description: The ID of the group binding. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: group_binding_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the group binding. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: group_binding_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1818,123 +1849,123 @@ paths: $ref: "#/components/schemas/GroupBinding" description: The requested `GroupBinding`. security: - - BearerAuth: [] - summary: Get group binding by ID + - BearerAuth: [] + tags: + - group-bindings + delete: + description: Deletes a group binding. + operationId: deleteGroupBinding + parameters: + - description: The ID of the group binding. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_binding_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The group binding was successfully deleted. + security: + - BearerAuth: [] tags: - - group-bindings + - group-bindings /idp-group-mappings/{app_resource_id}: get: - description: Returns the configured set of available `IdpGroupMapping` objects - for an Okta app. + description: Returns the configured set of available `IdpGroupMapping` objects for an Okta app. operationId: getIdpGroupMappings parameters: - - description: The ID of the Okta app. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: app_resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the Okta app. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: app_resource_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: application/json: schema: $ref: "#/components/schemas/IdpGroupMappingList" - description: The configured set of available `IdpGroupMapping` objects for - an Okta app. + description: The configured set of available `IdpGroupMapping` objects for an Okta app. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - idp-group-mappings + - idp-group-mappings put: - description: Updates the list of available `IdpGroupMapping` objects for an - Okta app. + description: Updates the list of available `IdpGroupMapping` objects for an Okta app. operationId: updateIdpGroupMappings parameters: - - description: The ID of the Okta app. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: app_resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the Okta app. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: app_resource_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: - $ref: "#/components/schemas/updateIdpGroupMappings_request" - required: true + properties: + mappings: + type: array + items: + properties: + group_id: + type: string + format: uuid + alias: + type: string + hidden_from_end_user: + type: boolean + type: object + required: + - mappings + type: object responses: "200": - description: The updated set of available `IdpGroupMapping` objects for - an Okta app. + description: The updated set of available `IdpGroupMapping` objects for an Okta app. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - idp-group-mappings + - idp-group-mappings /idp-group-mappings/{app_resource_id}/groups/{group_id}: - delete: - description: Deletes an `IdpGroupMapping` object. - operationId: delete_idp_group_mappings - parameters: - - description: The ID of the Okta app. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: app_resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: The IDP group mapping was successfully deleted. - security: - - BearerAuth: [] - tags: - - idp-group-mappings get: description: Gets an `IdpGroupMapping` object for an Okta app and group. operationId: getIdpGroupMapping parameters: - - description: The ID of the Okta app. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: app_resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the Okta app. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: app_resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -1943,9 +1974,9 @@ paths: $ref: "#/components/schemas/IdpGroupMapping" description: The `IdpGroupMapping` object for the Okta app and group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - idp-group-mappings + - idp-group-mappings post: description: | Creates or updates an individual `IdpGroupMapping` object (upsert operation). @@ -1955,76 +1986,121 @@ paths: - If the mapping exists, only the fields provided in the request will be updated operationId: createIdpGroupMapping parameters: - - description: The ID of the Okta app. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: app_resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the group. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the Okta app. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: app_resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: false content: application/json: schema: - $ref: "#/components/schemas/createIdpGroupMapping_request" - required: false + properties: + alias: + description: Optional alias for the group mapping + type: string + nullable: true + hidden_from_end_user: + description: | + Whether this mapping should be hidden from end users. + - **New mappings**: If not provided, defaults to `false` + - **Existing mappings**: If not provided, existing value is preserved (no change) + - **Explicit values**: If provided, value is updated to the specified boolean + type: boolean + nullable: true + type: object responses: "200": + description: The IDP group mapping was successfully created or updated. content: application/json: schema: $ref: "#/components/schemas/IdpGroupMapping" - description: The IDP group mapping was successfully created or updated. security: - - BearerAuth: [] + - BearerAuth: [] + tags: + - idp-group-mappings + delete: + description: Deletes an `IdpGroupMapping` object. + operationId: delete_idp_group_mappings + parameters: + - description: The ID of the Okta app. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: app_resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The IDP group mapping was successfully deleted. + security: + - BearerAuth: [] tags: - - idp-group-mappings + - idp-group-mappings /owners: get: + summary: Get owners description: Returns a list of `Owner` objects. operationId: get_owners parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form - - description: Owner name to filter by. - example: 200 - explode: true - in: query - name: name - required: false - schema: - type: string - style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form + - description: Owner name to filter by. + example: 200 + explode: true + in: query + name: name + required: false + schema: + type: string + style: form responses: "200": content: @@ -2033,19 +2109,18 @@ paths: $ref: "#/components/schemas/PaginatedOwnersList" description: One page worth of owners in your organization. security: - - BearerAuth: [] - summary: Get owners + - BearerAuth: [] tags: - - owners + - owners post: description: Creates an owner. operationId: createOwner requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/CreateOwnerInfo" - required: true responses: "200": content: @@ -2054,19 +2129,19 @@ paths: $ref: "#/components/schemas/Owner" description: The owner just created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - owners + - owners put: description: Bulk updates a list of owners. operationId: updateOwners requestBody: + description: Owners to be updated + required: true content: application/json: schema: $ref: "#/components/schemas/UpdateOwnerInfoList" - description: Owners to be updated - required: true responses: "200": content: @@ -2075,45 +2150,25 @@ paths: $ref: "#/components/schemas/UpdateOwnerInfoList" description: The resulting updated owner infos. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - owners + - owners /owners/{owner_id}: - delete: - description: Deletes an owner. - operationId: delete_owner - parameters: - - description: The ID of the owner. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: owner_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: The owner was successfully deleted. - security: - - BearerAuth: [] - tags: - - owners get: + summary: Get owner by ID description: Returns an `Owner` object. operationId: getOwner parameters: - - description: The ID of the owner. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: owner_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the owner. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: owner_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -2122,25 +2177,44 @@ paths: $ref: "#/components/schemas/Owner" description: The owner object associated with the passed-in ID. security: - - BearerAuth: [] - summary: Get owner by ID + - BearerAuth: [] + tags: + - owners + delete: + description: Deletes an owner. + operationId: delete_owner + parameters: + - description: The ID of the owner. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: owner_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The owner was successfully deleted. + security: + - BearerAuth: [] tags: - - owners + - owners /owners/name/{owner_name}: get: - description: "Returns an `Owner` object. Does not support owners with `/` in\ - \ their name, use /owners?name=... instead." + description: Returns an `Owner` object. Does not support owners with `/` in their name, use /owners?name=... instead. operationId: getOwnerFromName parameters: - - description: The name of the owner. - example: MyOwner - explode: true - in: path - name: owner_name - required: true - schema: - type: string - style: simple + - description: The name of the owner. + example: MyOwner + explode: true + in: path + name: owner_name + required: true + schema: + type: string + style: simple responses: "200": content: @@ -2149,25 +2223,24 @@ paths: $ref: "#/components/schemas/Owner" description: The owner object associated with the passed-in name. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - owners + - owners /owners/{owner_id}/users: get: - description: "Gets the list of users for this owner, in escalation priority\ - \ order if applicable." + description: Gets the list of users for this owner, in escalation priority order if applicable. operationId: get_owner_users parameters: - - description: The ID of the owner. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: owner_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the owner. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: owner_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -2176,32 +2249,29 @@ paths: $ref: "#/components/schemas/UserList" description: The users for this owner. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - owners + - owners put: - description: "Sets the list of users for this owner. If escalation is enabled,\ - \ the order of this list is the escalation priority order of the users. If\ - \ the owner has a source group, adding or removing users from this list won't\ - \ be possible." + description: Sets the list of users for this owner. If escalation is enabled, the order of this list is the escalation priority order of the users. If the owner has a source group, adding or removing users from this list won't be possible. operationId: set_owner_users parameters: - - description: The ID of the owner. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: owner_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the owner. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: owner_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/UserIDList" - required: true responses: "200": content: @@ -2210,92 +2280,90 @@ paths: $ref: "#/components/schemas/UserList" description: The updated users for the owner. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - owners + - owners /requests: get: - description: Returns a list of requests for your organization that is visible - by the admin. + summary: Get requests + description: Returns a list of requests for your organization that is visible by the admin. operationId: getRequests parameters: - - description: A start date filter for the events. - examples: - withDate: - summary: Example with date - value: 2021-11-01 - withDatetime: - summary: Example with date and time in ISO 8601 datetime format. - value: 2025-01-01T00:00:00Z - explode: true - in: query - name: start_date_filter - required: false - schema: - type: string - style: form - - description: An end date filter for the events. - examples: - withDate: - summary: Example with date - value: 2021-11-12 - withDatetime: - summary: Example with date and time in ISO 8601 datetime format. - value: 2025-01-01T00:00:00Z - explode: true - in: query - name: end_date_filter - required: false - schema: - type: string - style: form - - description: Filter requests by their requester ID. - example: 37cb7e41-12ba-46da-92ff-030abe0450b1 - explode: true - in: query - name: requester_id - required: false - schema: - format: uuid - type: string - style: form - - description: Filter requests by their target user ID. - example: 37cb7e41-12ba-46da-92ff-030abe0450b1 - explode: true - in: query - name: target_user_id - required: false - schema: - format: uuid - type: string - style: form - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form - - description: Boolean toggle for if it should only show pending requests. - explode: true - in: query - name: show_pending_only - required: false - schema: - type: boolean - style: form + - description: A start date filter for the events. + examples: + withDate: + summary: Example with date + value: 2021-11-01 + withDatetime: + summary: Example with date and time in ISO 8601 datetime format. + value: 2025-01-01T00:00:00Z + explode: true + in: query + name: start_date_filter + required: false + schema: + type: string + style: form + - description: An end date filter for the events. + examples: + withDate: + summary: Example with date + value: 2021-11-12 + withDatetime: + summary: Example with date and time in ISO 8601 datetime format. + value: 2025-01-01T00:00:00Z + explode: true + in: query + name: end_date_filter + required: false + schema: + type: string + style: form + - description: Filter requests by their requester ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + in: query + name: requester_id + required: false + schema: + format: uuid + type: string + style: form + - description: Filter requests by their target user ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + in: query + name: target_user_id + required: false + schema: + format: uuid + type: string + style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form + - description: Boolean toggle for if it should only show pending requests. + explode: true + in: query + name: show_pending_only + required: false + schema: + type: boolean + style: form responses: "200": content: @@ -2304,110 +2372,96 @@ paths: $ref: "#/components/schemas/RequestList" description: The list of requests. security: - - BearerAuth: [] - summary: Get requests + - BearerAuth: [] tags: - - requests + - requests post: - description: Create an access request - operationId: createRequest + description: "Create an access request" + operationId: "createRequest" requestBody: + description: Resources to be updated + required: true content: application/json: schema: $ref: "#/components/schemas/CreateRequestInfo" - description: Resources to be updated - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/createRequest_200_response" + properties: + id: + format: uuid + type: string + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 description: The resulting request. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - requests + - requests /requests/relay: get: - deprecated: true + summary: Get requests via Relay description: Returns a paginated list of requests using Relay-style cursor pagination. operationId: getRequestsRelay + deprecated: true parameters: - - description: "Number of results to return after the cursor. Use either first/after\ - \ or last/before, not both." - example: 10 - explode: true - in: query - name: first - required: false - schema: - maximum: 100 - minimum: 1 - type: integer - style: form - - description: Cursor to fetch results after. Used with 'first' for forward - pagination. - example: Y3Vyc29yOnYyOpK5MjAyMS0wMS0wN1QwNzo0MToyNy4xMTlaFjYwZmM2YmJlZjk4YzE1N2ZhNjFhYjk4Nw== - explode: true - in: query - name: after - required: false - schema: - type: string - style: form - - description: "Number of results to return before the cursor. Use either first/after\ - \ or last/before, not both." - example: 10 - explode: true - in: query - name: last - required: false - schema: - maximum: 100 - minimum: 1 - type: integer - style: form - - description: Cursor to fetch results before. Used with 'last' for backward - pagination. - example: Y3Vyc29yOnYyOpK5MjAyMS0wMS0wN1QwNzo0MToyNy4xMTlaFjYwZmM2YmJlZjk4YzE1N2ZhNjFhYjk4Nw== - explode: true - in: query - name: before - required: false - schema: - type: string - style: form - - description: Filter requests by their status. - example: PENDING - explode: true - in: query - name: status - required: false - schema: - $ref: "#/components/schemas/RequestStatusEnum" - style: form - - description: Filter requests assigned to a specific user ID. - example: 37cb7e41-12ba-46da-92ff-030abe0450b1 - explode: true - in: query - name: to - required: false - schema: - format: uuid - type: string - style: form - - description: Filter requests made by a specific user ID. - example: 37cb7e41-12ba-46da-92ff-030abe0450b1 - explode: true - in: query - name: from - required: false - schema: - format: uuid - type: string - style: form + - description: Number of results to return after the cursor. Use either first/after or last/before, not both. + example: 10 + in: query + name: first + required: false + schema: + type: integer + minimum: 1 + maximum: 100 + - description: Cursor to fetch results after. Used with 'first' for forward pagination. + example: "Y3Vyc29yOnYyOpK5MjAyMS0wMS0wN1QwNzo0MToyNy4xMTlaFjYwZmM2YmJlZjk4YzE1N2ZhNjFhYjk4Nw==" + in: query + name: after + required: false + schema: + type: string + - description: Number of results to return before the cursor. Use either first/after or last/before, not both. + example: 10 + in: query + name: last + required: false + schema: + type: integer + minimum: 1 + maximum: 100 + - description: Cursor to fetch results before. Used with 'last' for backward pagination. + example: "Y3Vyc29yOnYyOpK5MjAyMS0wMS0wN1QwNzo0MToyNy4xMTlaFjYwZmM2YmJlZjk4YzE1N2ZhNjFhYjk4Nw==" + in: query + name: before + required: false + schema: + type: string + - description: Filter requests by their status. + example: PENDING + in: query + name: status + required: false + schema: + $ref: "#/components/schemas/RequestStatusEnum" + - description: Filter requests assigned to a specific user ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + in: query + name: to + required: false + schema: + format: uuid + type: string + - description: Filter requests made by a specific user ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + in: query + name: from + required: false + schema: + format: uuid + type: string responses: "200": content: @@ -2416,247 +2470,269 @@ paths: $ref: "#/components/schemas/RequestConnection" description: A paginated list of requests using Relay-style cursor pagination. security: - - BearerAuth: [] - summary: Get requests via Relay + - BearerAuth: [] tags: - - requests + - requests /requests/{id}: get: + summary: Get request by ID description: Returns a request by ID. operationId: getRequest parameters: - - description: The ID of the request. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the request. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": + description: The requested request object. content: application/json: schema: $ref: "#/components/schemas/Request" - description: The requested request object. security: - - BearerAuth: [] - summary: Get request by ID + - BearerAuth: [] tags: - - requests + - requests /requests/{id}/approve: post: - description: Approve an access request - operationId: approveRequest + description: "Approve an access request" + operationId: "approveRequest" parameters: - - description: The ID of the request to approve - explode: false - in: path - name: id - required: true - schema: - format: uuid - type: string - style: simple + - description: "The ID of the request to approve" + in: path + name: id + required: true + schema: + type: string + format: uuid requestBody: + description: Approval parameters + required: true content: application/json: schema: - $ref: "#/components/schemas/approveRequest_request" - description: Approval parameters - required: true + type: object + properties: + level: + $ref: "#/components/schemas/RequestApprovalEnum" + comment: + type: string + description: "Optional comment for the approval" + example: "Approved after security review" + required: + - level responses: "200": + description: "Request successfully approved" content: application/json: schema: - $ref: "#/components/schemas/approveRequest_200_response" - description: Request successfully approved + type: object + properties: + request: + $ref: "#/components/schemas/Request" security: - - BearerAuth: [] + - BearerAuth: [] tags: - - requests + - requests /requests/{id}/deny: post: - description: Deny an access request - operationId: denyRequest + description: "Deny an access request" + operationId: "denyRequest" parameters: - - description: The ID of the request to deny - explode: false - in: path - name: id - required: true - schema: - format: uuid - type: string - style: simple + - description: "The ID of the request to deny" + in: path + name: id + required: true + schema: + type: string + format: uuid requestBody: + description: Denial parameters + required: true content: application/json: schema: - $ref: "#/components/schemas/denyRequest_request" - description: Denial parameters - required: true + type: object + properties: + comment: + type: string + description: "Comment for the denial" + example: "Denied due to insufficient justification" + level: + $ref: "#/components/schemas/RequestApprovalEnum" + required: + - comment responses: "200": + description: "Request successfully denied" content: application/json: schema: - $ref: "#/components/schemas/approveRequest_200_response" - description: Request successfully denied + type: object + properties: + request: + $ref: "#/components/schemas/Request" security: - - BearerAuth: [] + - BearerAuth: [] tags: - - requests + - requests /requests/{id}/comments: get: description: Returns a list of comments for a specific request. operationId: getRequestComments parameters: - - description: The ID of the request to get comments for - explode: false - in: path - name: id - required: true - schema: - format: uuid - type: string - style: simple + - description: "The ID of the request to get comments for" + in: path + name: id + required: true + schema: + type: string + format: uuid responses: "200": + description: A list of comments associated with the specified request. content: application/json: schema: + type: object $ref: "#/components/schemas/RequestCommentList" - description: A list of comments associated with the specified request. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - requests + - requests post: - description: Comment on an access request - operationId: createRequestComment + description: "Comment on an access request" + operationId: "createRequestComment" parameters: - - description: The ID of the request to comment on - explode: false - in: path - name: id - required: true - schema: - format: uuid - type: string - style: simple + - description: "The ID of the request to comment on" + in: path + name: id + required: true + schema: + type: string + format: uuid requestBody: + description: Comment parameters + required: true content: application/json: schema: - $ref: "#/components/schemas/createRequestComment_request" - description: Comment parameters - required: true + type: object + properties: + comment: + type: string + description: "comment" + required: + - comment responses: "200": + description: "Request successfully commented" content: application/json: schema: - $ref: "#/components/schemas/approveRequest_200_response" - description: Request successfully commented + type: object + properties: + request: + $ref: "#/components/schemas/Request" security: - - BearerAuth: [] + - BearerAuth: [] tags: - - requests + - requests /resources: get: + summary: Get resources description: Returns a list of resources for your organization. operationId: getResources parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form - - description: The resource type to filter by. Required when remote_id is provided. - example: AWS_IAM_ROLE - explode: true - in: query - name: resource_type_filter - required: false - schema: - $ref: "#/components/schemas/ResourceTypeEnum" - style: form - - description: The resource ids to filter by. - example: - - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - - 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: query - name: resource_ids - required: false - schema: - items: - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form + - description: The resource type to filter by. Required when remote_id is provided. + example: AWS_IAM_ROLE + explode: true + in: query + name: resource_type_filter + required: false + schema: + $ref: "#/components/schemas/ResourceTypeEnum" + style: form + - description: The resource ids to filter by. + example: + - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + - 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: query + name: resource_ids + required: false + schema: + items: + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + format: uuid + type: string + type: array + style: form + - description: Resource name. + example: example-name + explode: true + in: query + name: resource_name + required: false + schema: + type: string + style: form + - description: The parent resource id to filter by. + example: + - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: query + name: parent_resource_id + required: false + schema: format: uuid type: string - type: array - style: form - - description: Resource name. - example: example-name - explode: true - in: query - name: resource_name - required: false - schema: - type: string - style: form - - description: The parent resource id to filter by. - example: - - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: query - name: parent_resource_id - required: false - schema: - format: uuid - type: string - style: form - - description: The ancestor resource id to filter by. Returns all resources - that are descendants of the specified resource. - example: - - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: query - name: ancestor_resource_id - required: false - schema: - format: uuid - type: string - style: form - - description: Filter resources by their remote id. This will return all resources - that have a remote id that matches the provided remote id. Note that this - requires resource_type_filter to be provided. - explode: true - in: query - name: remote_id - required: false - schema: - type: string - style: form + style: form + - description: The ancestor resource id to filter by. Returns all resources that are descendants of the specified resource. + example: + - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: query + name: ancestor_resource_id + required: false + schema: + format: uuid + type: string + style: form + - description: Filter resources by their remote id. This will return all resources that have a remote id that matches the provided remote id. Note that this requires resource_type_filter to be provided. + in: query + name: remote_id + required: false + schema: + type: string + style: form responses: "200": content: @@ -2665,115 +2741,113 @@ paths: $ref: "#/components/schemas/PaginatedResourcesList" description: One page worth resources associated with your organization. security: - - BearerAuth: [] - summary: Get resources + - BearerAuth: [] tags: - - resources - post: - description: "Creates a resource. See [here](https://docs.opal.dev/reference/end-system-objects)\ - \ for details about importing resources." - operationId: createResource + - resources + put: + description: Bulk updates a list of resources. + operationId: updateResources requestBody: + description: Resources to be updated + required: true content: application/json: schema: - $ref: "#/components/schemas/CreateResourceInfo" - required: true + $ref: "#/components/schemas/UpdateResourceInfoList" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/Resource" - description: The resource just created. + $ref: "#/components/schemas/UpdateResourceInfoList" + description: The resulting updated resource infos. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources - put: - description: Bulk updates a list of resources. - operationId: updateResources + - resources + post: + description: Creates a resource. See [here](https://docs.opal.dev/reference/end-system-objects) for details about importing resources. + operationId: createResource requestBody: + required: true content: application/json: schema: - $ref: "#/components/schemas/UpdateResourceInfoList" - description: Resources to be updated - required: true + $ref: "#/components/schemas/CreateResourceInfo" responses: "200": content: application/json: schema: - $ref: "#/components/schemas/UpdateResourceInfoList" - description: The resulting updated resource infos. + $ref: "#/components/schemas/Resource" + description: The resource just created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}: - delete: - description: Deletes a resource. - operationId: delete_resource - parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: The resource was successfully deleted. - security: - - BearerAuth: [] - tags: - - resources get: + summary: Get resource by ID description: Retrieves a resource. operationId: get_resource parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": + description: The requested resource. content: application/json: schema: $ref: "#/components/schemas/Resource" - description: The requested resource. security: - - BearerAuth: [] - summary: Get resource by ID + - BearerAuth: [] + tags: + - resources + delete: + description: Deletes a resource. + operationId: delete_resource + parameters: + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The resource was successfully deleted. + security: + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/message-channels: get: description: Gets the list of audit message channels attached to a resource. operationId: get_resource_message_channels parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -2782,29 +2856,29 @@ paths: $ref: "#/components/schemas/MessageChannelList" description: The audit message channels attached to the resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources put: description: Sets the list of audit message channels attached to a resource. operationId: set_resource_message_channels parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/MessageChannelIDList" - required: true responses: "200": content: @@ -2817,24 +2891,24 @@ paths: type: array description: The updated audit message channel IDs for the resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/visibility: get: description: Gets the visibility of this resource. operationId: get_resource_visibility parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -2843,29 +2917,29 @@ paths: $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources put: description: Sets the visibility of this resource. operationId: set_resource_visibility parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/VisibilityInfo" - required: true responses: "200": content: @@ -2874,24 +2948,24 @@ paths: $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/reviewers: get: description: Gets the list of owner IDs of the reviewers for a resource. operationId: get_resource_reviewers parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -2904,29 +2978,29 @@ paths: type: array description: The IDs of owners that are reviewers for this resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources put: description: Sets the list of reviewers for a resource. operationId: set_resource_reviewers parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/ReviewerIDList" - required: true responses: "200": content: @@ -2939,24 +3013,24 @@ paths: type: array description: The updated IDs of owners that are reviewers for this resource security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/reviewer-stages: get: description: Gets the list reviewer stages for a resource. operationId: get_resource_reviewer_stages parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -2968,29 +3042,29 @@ paths: type: array description: The reviewer stages for this resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources put: description: Sets the list of reviewer stages for a resource. operationId: set_resource_reviewer_stages parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/ReviewerStageList" - required: true responses: "200": content: @@ -3002,33 +3076,33 @@ paths: type: array description: The updated reviewer stages for this resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /non-human-identities: get: description: Returns a list of non-human identities for your organization. operationId: get_nhis parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -3037,33 +3111,33 @@ paths: $ref: "#/components/schemas/PaginatedResourcesList" description: One page worth non-human identities in your organization. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - non-human-identities + - non-human-identities /resources/{resource_id}/non-human-identities: get: description: Gets the list of non-human identities with access to this resource. operationId: get_resource_nhis parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: Limit the number of results returned. - example: 200 - explode: true - in: query - name: limit - required: false - schema: - type: integer - style: form + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Limit the number of results returned. + example: 200 + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form responses: "200": content: @@ -3072,33 +3146,34 @@ paths: $ref: "#/components/schemas/AccessList" description: List of non-human identities with access to this resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/users: get: + summary: Get resource users description: Gets the list of users for this resource. operationId: get_resource_users parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: Limit the number of results returned. - example: 200 - explode: true - in: query - name: limit - required: false - schema: - type: integer - style: form + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Limit the number of results returned. + example: 200 + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form responses: "200": content: @@ -3107,240 +3182,173 @@ paths: $ref: "#/components/schemas/ResourceAccessUserList" description: List of users with access to this resource. security: - - BearerAuth: [] - summary: Get resource users + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/non-human-identities/{non_human_identity_id}: - delete: - description: Removes a non-human identity's direct access from this resource. - operationId: delete_resource_nhi - parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The resource ID of the non-human identity to remove from this - resource. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: non_human_identity_id - required: true - schema: - format: uuid - type: string - style: simple - - description: "The remote ID of the access level for which this non-human identity\ - \ has direct access. If omitted, the default access level remote ID value\ - \ (empty string) is assumed." - example: roles/cloudsql.instanceUser - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form - responses: - "200": - description: This non-human identity's access was successfully removed from - this resource. - security: - - BearerAuth: [] - tags: - - resources post: description: Gives a non-human identity access to this resource. operationId: add_resource_nhi parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The resource ID of the non-human identity to add. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: non_human_identity_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The resource ID of the non-human identity to add. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + explode: false + in: path + name: non_human_identity_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: false content: application/json: schema: - $ref: "#/components/schemas/add_resource_nhi_request" - required: false + example: + duration_minutes: 60 + access_level_remote_id: roles/cloudsql.instanceUser + properties: + duration_minutes: + description: The duration for which the resource can be accessed (in minutes). Use 0 to set to indefinite. + example: 60 + type: integer + maximum: 525960 # One year + access_level_remote_id: + description: The remote ID of the access level to grant. If omitted, the default access level remote ID value (empty string) is used. + example: roles/cloudsql.instanceUser + type: string + required: + - duration_minutes + type: object responses: "200": content: application/json: schema: $ref: "#/components/schemas/ResourceNHI" - description: Details about the access that the non-human identity was granted - to the resource. + description: Details about the access that the non-human identity was granted to the resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources - /resources/{resource_id}/users/{user_id}: + - resources delete: - description: Removes a user's direct access from this resource. - operationId: delete_resource_user - parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of a user to remove from this resource. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - - description: "The remote ID of the access level for which this user has direct\ - \ access. If omitted, the default access level remote ID value (empty string)\ - \ is assumed." - 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": - description: This user's access was successfully removed from this resource. - security: - - BearerAuth: [] - tags: - - resources - get: - description: Returns information about a specific user's access to a resource. - operationId: getResourceUser + description: Removes a non-human identity's direct access from this resource. + operationId: delete_resource_nhi parameters: - - description: The ID of the resource. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The resource ID of the non-human identity to remove from this resource. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + explode: false + in: path + name: non_human_identity_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The remote ID of the access level for which this non-human identity has direct access. If omitted, the default access level remote ID value (empty string) is assumed. + example: roles/cloudsql.instanceUser + 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/getResourceUser_200_response" - description: List of ResourceUser records for the user's access to the resource. - "404": - description: Resource or user not found. + description: This non-human identity's access was successfully removed from this resource. security: - - BearerAuth: [] - summary: Get resource user + - BearerAuth: [] tags: - - resources + - resources + /resources/{resource_id}/users/{user_id}: post: description: Adds a user to this resource. operationId: add_resource_user parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user to add. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - - deprecated: true - description: The duration for which the resource can be accessed (in minutes). - Use 0 to set to indefinite. - example: 60 - explode: true - in: query - name: duration_minutes - required: false - schema: - maximum: 525960 - type: integer - style: form - - deprecated: true - description: "The remote ID of the access level to grant to this user. If\ - \ omitted, the default access level remote ID value (empty string) is used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user to add. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The duration for which the resource can be accessed (in minutes). Use 0 to set to indefinite. + example: 60 + explode: true + in: query + name: duration_minutes + required: false + schema: + type: integer + maximum: 525960 # One year + style: form + deprecated: true + - description: The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + explode: true + in: query + name: access_level_remote_id + required: false + schema: + type: string + style: form + deprecated: true requestBody: + required: false content: application/json: schema: - $ref: "#/components/schemas/add_resource_user_request" - required: false + example: + duration_minutes: 60 + access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess + properties: + duration_minutes: + description: The duration for which the resource can be accessed (in minutes). Use 0 to set to indefinite. + example: 60 + type: integer + maximum: 525960 # One year + access_level_remote_id: + description: The remote ID of the access level to grant to this user. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + type: string + required: + - duration_minutes + type: object responses: "200": content: @@ -3349,106 +3357,217 @@ paths: $ref: "#/components/schemas/ResourceUser" description: The ResourceUser that was created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources put: description: Updates a user's access level or duration on this resource. operationId: update_resource_user parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user whose access is being updated. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user whose access is being updated. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: - $ref: "#/components/schemas/update_resource_user_request" - required: true + type: object + example: + duration_minutes: 60 + access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess + properties: + duration_minutes: + description: The updated duration for which the resource can be accessed (in minutes). Use 0 for indefinite. + type: integer + maximum: 525960 # One year + example: 120 + access_level_remote_id: + description: The updated remote ID of the access level granted to this user. + type: string + example: arn:aws:iam::590304332660:role/ReadOnlyAccess + required: + - duration_minutes responses: "200": + description: The ResourceUser was successfully updated. content: application/json: schema: $ref: "#/components/schemas/ResourceUser" - description: The ResourceUser was successfully updated. security: - - BearerAuth: [] + - BearerAuth: [] + tags: + - resources + delete: + description: Removes a user's direct access from this resource. + operationId: delete_resource_user + parameters: + - description: The ID of the resource. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of a user to remove from this resource. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The remote ID of the access level for which this user has direct access. If omitted, the default access level remote ID value (empty string) is assumed. + 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": + description: This user's access was successfully removed from this resource. + security: + - BearerAuth: [] + tags: + - resources + get: + summary: Get resource user + description: Returns information about a specific user's access to a resource. + operationId: getResourceUser + parameters: + - description: The ID of the resource. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + type: object + properties: + data: + type: array + items: + $ref: "#/components/schemas/ResourceUser" + cursor: + type: string + description: Pagination cursor for the next page of results + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + total_count: + type: integer + description: Total number of results + example: 120 + required: + - data + description: List of ResourceUser records for the user's access to the resource. + "404": + description: Resource or user not found. + security: + - BearerAuth: [] tags: - - resources + - resources /resource-user-access-status/{resource_id}/{user_id}: get: deprecated: true description: Get user's access status to a resource. operationId: resource_user_access_status_retrieve parameters: - - description: The ID of the resource. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - - description: "The remote ID of the access level that you wish to query for\ - \ the resource. If omitted, the default access level remote ID value (empty\ - \ string) is used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - explode: true - in: query - name: access_level_remote_id - required: false - schema: - type: string - style: form - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The ID of the resource. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: The remote ID of the access level that you wish to query for the resource. If omitted, the default access level remote ID value (empty string) is used. + example: arn:aws:iam::590304332660:role/AdministratorAccess + explode: true + in: query + name: access_level_remote_id + required: false + schema: + type: string + style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -3457,24 +3576,24 @@ paths: $ref: "#/components/schemas/ResourceUserAccessStatus" description: The access status reflecting the user's access to the resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/tags: get: description: Returns all tags applied to the resource. operationId: get_resource_tags parameters: - - description: The ID of the resource whose tags to return. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource whose tags to return. + name: resource_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -3483,25 +3602,24 @@ paths: $ref: "#/components/schemas/TagsList" description: The tags applied to the resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/{resource_id}/scoped-role-permissions: get: - description: Returns all the scoped role permissions that apply to the given - resource. Only OPAL_SCOPED_ROLE resource type supports this field. + description: Returns all the scoped role permissions that apply to the given resource. Only OPAL_SCOPED_ROLE resource type supports this field. operationId: get_resource_scoped_role_permissions parameters: - - description: The ID of the resource whose scoped role permissions belong to. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource whose scoped role permissions belong to. + name: resource_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -3510,30 +3628,29 @@ paths: $ref: "#/components/schemas/ScopedRolePermissionList" description: The role permissions that this Opal Scoped Role has. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources put: description: Sets all the scoped role permissions on an OPAL_SCOPED_ROLE resource. operationId: set_resource_scoped_role_permissions parameters: - - description: The ID of the resource whose scoped role permissions belong to. - Must be of OPAL_SCOPED_ROLE resource type. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the resource whose scoped role permissions belong to. Must be of OPAL_SCOPED_ROLE resource type. + name: resource_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/ScopedRolePermissionList" - required: true responses: "200": content: @@ -3542,51 +3659,51 @@ paths: $ref: "#/components/schemas/ScopedRolePermissionList" description: The role permissions that this Opal Scoped Role has. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - resources + - resources /resources/users/{user_id}: get: description: Gets the list of resources for this user. operationId: get_user_resources parameters: - - description: The ID of the user. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - - description: Limit the number of results returned. - example: 200 - explode: true - in: query - name: limit - required: false - schema: - type: integer - style: form - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Include user's access to unmanaged resources. - example: false - explode: true - in: query - name: include_unmanaged - required: false - schema: - type: boolean - style: form + - description: The ID of the user. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple + - description: Limit the number of results returned. + example: 200 + explode: true + in: query + name: limit + required: false + schema: + type: integer + style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Include user's access to unmanaged resources. + example: false + explode: true + in: query + name: include_unmanaged + required: false + schema: + type: boolean + style: form responses: "200": content: @@ -3595,33 +3712,59 @@ paths: $ref: "#/components/schemas/ResourceAccessUserList" description: List of resources user has access to. security: - - BearerAuth: [] + - BearerAuth: [] + tags: + - resources + /resources/{resource_id}/groups: + get: + description: Returns a list of groups that grant access to the resource + operationId: get_resource_groups + parameters: + - description: The ID of the resource that the groups grant access to. + name: resource_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GroupResourceList" + description: The groups that grant access to the resource. + security: + - BearerAuth: [] tags: - - resources + - resources /sessions: get: description: Returns a list of `Session` objects. operationId: sessions parameters: - - description: The ID of the resource. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: true - in: query - name: resource_id - required: true - schema: - format: uuid - type: string - style: form - - description: The ID of the user you wish to query sessions for. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: query - name: user_id - required: false - schema: - type: string - style: form + - description: The ID of the resource. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: true + in: query + name: resource_id + required: true + schema: + format: uuid + type: string + style: form + - description: The ID of the user you wish to query sessions for. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: query + name: user_id + required: false + schema: + type: string + style: form responses: "200": content: @@ -3630,69 +3773,68 @@ paths: $ref: "#/components/schemas/SessionsList" description: The sessions associated with a resource. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - sessions + - sessions /user: get: description: Returns a `User` object. operationId: user parameters: - - description: The user ID of the user. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: query - name: user_id - required: false - schema: - format: uuid - type: string - style: form - - description: "The email of the user. If both user ID and email are provided,\ - \ user ID will take precedence. If neither are provided, an error will occur." - example: johndoe@domain.org - explode: true - in: query - name: email - required: false - schema: - type: string - style: form - responses: - "200": + - description: The user ID of the user. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: query + name: user_id + required: false + schema: + format: uuid + type: string + style: form + - description: The email of the user. If both user ID and email are provided, user ID will take precedence. If neither are provided, an error will occur. + example: johndoe@domain.org + explode: true + in: query + name: email + required: false + schema: + type: string + style: form + responses: + "200": content: application/json: schema: $ref: "#/components/schemas/User" description: The user object associated with the passed-in email or ID. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - users + - users /users: get: description: Returns a list of users for your organization. operationId: getUsers parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -3701,70 +3843,64 @@ paths: $ref: "#/components/schemas/PaginatedUsersList" description: One page worth users in your organization. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - users + - users /users/remote_users: get: description: Returns a list of remote users for your organization. operationId: getRemoteUsers parameters: - - description: Filter remote users by their third party provider. - example: - - GIT_HUB - explode: true - in: query - name: third_party_provider - required: false - schema: - items: - $ref: "#/components/schemas/ThirdPartyProviderEnum" - type: array - style: form - - description: Filter remote users by their user ID. - example: - - 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: query - name: user_id - required: false - schema: - items: - format: uuid - type: string - type: array - style: form - - description: Filter remote users by their remote ID. - example: - - 1234567890 - explode: true - in: query - name: remote_id - required: false - schema: - items: + - description: Filter remote users by their third party provider. + example: [GIT_HUB] + in: query + name: third_party_provider + required: false + schema: + type: array + items: + $ref: "#/components/schemas/ThirdPartyProviderEnum" + style: form + - description: Filter remote users by their user ID. + example: [32acc112-21ff-4669-91c2-21e27683eaa1] + in: query + name: user_id + required: false + schema: + type: array + items: + type: string + format: uuid + style: form + - description: Filter remote users by their remote ID. + example: [1234567890] + in: query + name: remote_id + required: false + schema: + type: array + items: + type: string + style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: type: string - type: array - style: form - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -3773,24 +3909,24 @@ paths: $ref: "#/components/schemas/PaginatedRemoteUsersList" description: One page worth users in your organization. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - users + - users /users/{user_id}/tags: get: description: Returns all tags applied to the user. operationId: get_user_tags parameters: - - description: The ID of the user whose tags to return. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the user whose tags to return. + name: user_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -3799,19 +3935,19 @@ paths: $ref: "#/components/schemas/TagsList" description: The tags applied to the user. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - users + - users /access-rules: post: description: Creates a new access rule config for the given group_id. operationId: create_access_rule requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/UpdateAccessRuleInfo" - required: true responses: "201": content: @@ -3820,25 +3956,24 @@ paths: $ref: "#/components/schemas/AccessRule" description: The created access rule config for the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - access-rules + - access-rules /access-rules/{access_rule_id}: get: - description: Returns a list of access rule config given the group_id of the - access rule. + description: Returns a list of access rule config given the group_id of the access rule. operationId: get_access_rule parameters: - - description: The access rule ID (group ID) of the access rule. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: access_rule_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The access rule ID (group ID) of the access rule. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: access_rule_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -3847,29 +3982,29 @@ paths: $ref: "#/components/schemas/AccessRule" description: The access rules for the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - access-rules + - access-rules put: description: Updates the access rule config for the given group_id. operationId: update_access_rule parameters: - - description: The access rule ID (group ID) of the access rule. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: access_rule_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The access rule ID (group ID) of the access rule. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: access_rule_id + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/UpdateAccessRuleInfo" - required: true responses: "200": content: @@ -3878,47 +4013,25 @@ paths: $ref: "#/components/schemas/AccessRule" description: The updated access rule config for the group. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - access-rules + - access-rules /tag/{tag_id}: - delete: - description: UNSTABLE. May be removed at any time. Deletes a tag with the given - id. - operationId: delete_tag_by_ID - parameters: - - description: The tag ID - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: Tag was deleted. - security: - - BearerAuth: [] - tags: - - tags get: - description: UNSTABLE. May be removed at any time. Gets a tag with the given - id. + summary: Get tag by ID + description: UNSTABLE. May be removed at any time. Gets a tag with the given id. operationId: get_tag_by_ID parameters: - - description: The tag ID - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The tag ID + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: tag_id + required: true + schema: + type: string + format: uuid + style: simple responses: "200": content: @@ -3927,33 +4040,53 @@ paths: $ref: "#/components/schemas/Tag" description: The tag requested. security: - - BearerAuth: [] - summary: Get tag by ID + - BearerAuth: [] + tags: + - tags + delete: + description: UNSTABLE. May be removed at any time. Deletes a tag with the given id. + operationId: delete_tag_by_ID + parameters: + - description: The tag ID + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: tag_id + required: true + schema: + type: string + format: uuid + style: simple + responses: + "200": + description: Tag was deleted. + security: + - BearerAuth: [] tags: - - tags + - tags /tag: get: description: Gets a tag with the given key and value. operationId: get_tag parameters: - - description: The key of the tag to get. - example: api-scope - explode: false - in: query - name: tag_key - required: true - schema: - type: string - style: form - - description: The value of the tag to get. - example: production - explode: false - in: query - name: tag_value - required: false - schema: - type: string - style: form + - description: The key of the tag to get. + example: api-scope + explode: false + in: query + name: tag_key + required: true + schema: + type: string + style: form + - description: The value of the tag to get. + example: production + explode: false + in: query + name: tag_value + required: false + schema: + type: string + style: form responses: "200": content: @@ -3962,50 +4095,49 @@ paths: $ref: "#/components/schemas/Tag" description: The tag requested. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - tags + - tags post: description: Creates a tag with the given key and value. operationId: create_tag parameters: - - deprecated: true - description: The key of the tag to create. - example: api-scope - explode: false - in: query - name: tag_key - required: false - schema: - type: string - style: form - - deprecated: true - description: The value of the tag to create. - example: production - explode: false - in: query - name: tag_value - required: false - schema: - type: string - style: form - - deprecated: true - description: The ID of the owner that manages the tag. - example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 - explode: false - in: query - name: admin_owner_id - required: false - schema: - format: uuid - type: string - style: form + - description: The key of the tag to create. + example: api-scope + explode: false + in: query + name: tag_key + required: false + schema: + type: string + style: form + deprecated: true + - description: The value of the tag to create. + example: production + explode: false + in: query + name: tag_value + required: false + schema: + type: string + style: form + deprecated: true + - description: The ID of the owner that manages the tag. + example: f92aa855-cea9-4814-b9d8-f2a60d3e4a06 + explode: false + in: query + name: admin_owner_id + schema: + format: uuid + type: string + style: form + deprecated: true requestBody: + required: false content: application/json: schema: $ref: "#/components/schemas/CreateTagInfo" - required: false responses: "200": content: @@ -4014,33 +4146,34 @@ paths: $ref: "#/components/schemas/Tag" description: The tag that was created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - tags + - tags /tags: get: + summary: Get tags description: Returns a list of tags created by your organization. operationId: getTags parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -4049,207 +4182,207 @@ paths: $ref: "#/components/schemas/PaginatedTagsList" description: A list of tags created by your organization. security: - - BearerAuth: [] - summary: Get tags + - BearerAuth: [] tags: - - tags + - tags /tags/{tag_id}/users/{user_id}: - delete: - description: Removes a tag from a user. - operationId: remove_user_tag - parameters: - - description: The ID of the tag to remove. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user to remove the tag from. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: Tag removed from user successfully. - security: - - BearerAuth: [] - tags: - - tags post: description: Applies a tag to a user. operationId: add_user_tag parameters: - - description: The ID of the tag to apply. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the user to apply the tag to. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: user_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the tag to apply. + name: tag_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user to apply the tag to. + name: user_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple requestBody: + required: false content: application/json: schema: type: object - required: false responses: "200": description: Tag applied to user successfully. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - tags - /tags/{tag_id}/groups/{group_id}: + - tags delete: - description: Removes a tag from a group. - operationId: remove_group_tag + description: Removes a tag from a user. + operationId: remove_user_tag parameters: - - description: The ID of the tag to remove. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the group to remove the tag from. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the tag to remove. + name: tag_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the user to remove the tag from. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: user_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": - description: Tag removed from group successfully. + description: Tag removed from user successfully. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - tags + - tags + /tags/{tag_id}/groups/{group_id}: post: description: Applies a tag to a group. operationId: add_group_tag parameters: - - description: The ID of the tag to apply. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the group to apply the tag to. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: group_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the tag to apply. + name: tag_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the group to apply the tag to. + name: group_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple responses: "200": description: Tag applied to group successfully. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - tags - /tags/{tag_id}/resources/{resource_id}: + - tags delete: - description: Removes a tag from a resource. - operationId: remove_resource_tag + description: Removes a tag from a group. + operationId: remove_group_tag parameters: - - description: The ID of the tag to remove. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the resource to remove the tag from. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the tag to remove. + name: tag_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the group to remove the tag from. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: group_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": - description: Tag removed from resource successfully. + description: Tag removed from group successfully. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - tags + - tags + /tags/{tag_id}/resources/{resource_id}: post: description: Applies a tag to a resource. operationId: add_resource_tag parameters: - - description: The ID of the tag to apply. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: tag_id - required: true - schema: - format: uuid - type: string - style: simple - - description: The ID of the resource to apply the tag to. - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false - in: path - name: resource_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the tag to apply. + name: tag_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the resource to apply the tag to. + name: resource_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple responses: "200": description: Tag applied to resource successfully. security: - - BearerAuth: [] + - BearerAuth: [] + tags: + - tags + delete: + description: Removes a tag from a resource. + operationId: remove_resource_tag + parameters: + - description: The ID of the tag to remove. + name: tag_id + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + required: true + schema: + format: uuid + type: string + style: simple + - description: The ID of the resource to remove the tag from. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: Tag removed from resource successfully. + security: + - BearerAuth: [] tags: - - tags + - tags /message-channels: get: + summary: Get message channels description: Returns a list of `MessageChannel` objects. operationId: get_message_channels responses: @@ -4260,20 +4393,19 @@ paths: $ref: "#/components/schemas/MessageChannelList" description: A list of message channels for your organization. security: - - BearerAuth: [] - summary: Get message channels + - BearerAuth: [] tags: - - message-channels + - message-channels post: description: Creates a `MessageChannel` objects. operationId: create_message_channel requestBody: + description: The `MessageChannel` object to be created. + required: true content: application/json: schema: $ref: "#/components/schemas/CreateMessageChannelInfo" - description: The `MessageChannel` object to be created. - required: true responses: "200": content: @@ -4282,24 +4414,25 @@ paths: $ref: "#/components/schemas/MessageChannel" description: The message channel that was created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - message-channels + - message-channels /message-channels/{message_channel_id}: get: + summary: Get message channel by ID description: Gets a `MessageChannel` object. operationId: get_message_channel parameters: - - description: The ID of the message_channel. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: message_channel_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the message_channel. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: message_channel_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -4308,12 +4441,12 @@ paths: $ref: "#/components/schemas/MessageChannel" description: The requested message channel. security: - - BearerAuth: [] - summary: Get message channel by ID + - BearerAuth: [] tags: - - message-channels + - message-channels /on-call-schedules: get: + summary: Get on call schedules description: Returns a list of `OnCallSchedule` objects. operationId: get_on_call_schedules responses: @@ -4324,20 +4457,19 @@ paths: $ref: "#/components/schemas/OnCallScheduleList" description: A list of on call schedules for your organization. security: - - BearerAuth: [] - summary: Get on call schedules + - BearerAuth: [] tags: - - on-call-schedules + - on-call-schedules post: description: Creates a `OnCallSchedule` objects. operationId: create_on_call_schedule requestBody: + description: The `OnCallSchedule` object to be created. + required: true content: application/json: schema: $ref: "#/components/schemas/CreateOnCallScheduleInfo" - description: The `OnCallSchedule` object to be created. - required: true responses: "200": content: @@ -4346,24 +4478,25 @@ paths: $ref: "#/components/schemas/OnCallSchedule" description: The on call schedule that was created. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - on-call-schedules + - on-call-schedules /on-call-schedules/{on_call_schedule_id}: get: + summary: Get on call schedule by ID description: Gets a `OnCallSchedule` object. operationId: get_on_call_schedule parameters: - - description: The ID of the on_call_schedule. - example: 9546209c-42c2-4801-96d7-9ec42df0f59c - explode: false - in: path - name: on_call_schedule_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the on_call_schedule. + example: 9546209c-42c2-4801-96d7-9ec42df0f59c + explode: false + in: path + name: on_call_schedule_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -4372,34 +4505,33 @@ paths: $ref: "#/components/schemas/OnCallSchedule" description: The requested on call schedule. security: - - BearerAuth: [] - summary: Get on call schedule by ID + - BearerAuth: [] tags: - - on-call-schedules + - on-call-schedules /uars: get: description: Returns a list of `UAR` objects. operationId: getUARs parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The pagination cursor value. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: Number of results to return per page. Default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -4408,20 +4540,20 @@ paths: $ref: "#/components/schemas/PaginatedUARsList" description: A list of UARs for your organization. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - uars + - uars /uar: post: description: Starts a User Access Review. operationId: create_uar requestBody: + description: The settings of the UAR. + required: true content: application/json: schema: $ref: "#/components/schemas/CreateUARInfo" - description: The settings of the UAR. - required: true responses: "200": content: @@ -4430,24 +4562,24 @@ paths: $ref: "#/components/schemas/UAR" description: The UAR that was started. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - uars + - uars /uar/{uar_id}: get: description: Retrieves a specific UAR. operationId: get_uar parameters: - - description: The ID of the UAR. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: path - name: uar_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the UAR. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: uar_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -4456,45 +4588,44 @@ paths: $ref: "#/components/schemas/UAR" description: The UAR that was requested. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - uars + - uars /sync_errors: get: - description: Returns a list of recent sync errors that have occurred since the - last successful sync. + description: Returns a list of recent sync errors that have occurred since the last successful sync. operationId: getSyncErrors parameters: - - description: The ID of the app to list sync errors for. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: false - in: query - name: app_id - required: false - schema: - format: uuid - type: string - style: form - - description: The ID of the resource to list sync errors for. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false - in: query - name: resource_id - required: false - schema: - format: uuid - type: string - style: form - - description: The ID of the group to list sync errors for. - example: 9546209c-42c2-4801-96d7-9ec42df0f59c - explode: false - in: query - name: group_id - required: false - schema: - format: uuid - type: string - style: form + - description: The ID of the app to list sync errors for. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: false + in: query + name: app_id + required: false + schema: + format: uuid + type: string + style: form + - description: The ID of the resource to list sync errors for. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: query + name: resource_id + required: false + schema: + format: uuid + type: string + style: form + - description: The ID of the group to list sync errors for. + example: 9546209c-42c2-4801-96d7-9ec42df0f59c + explode: false + in: query + name: group_id + required: false + schema: + format: uuid + type: string + style: form responses: "200": content: @@ -4505,57 +4636,54 @@ paths: type: array description: A list of sync errors. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - apps + - apps /delegations: get: - description: Returns a list of request reviewer delegations configured for your - organization. + summary: Get delegations + description: Returns a list of request reviewer delegations configured for your organization. operationId: getDelegations parameters: - - description: The delegator user ID to filter delegations by the user delegating - their access review requests. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: true - in: query - name: delegator_user_id - required: false - schema: - format: uuid - type: string - style: form - - description: The delegate user ID to filter delegations by the user being - delegated to. - example: 29827fb8-f2dd-4e80-9576-28e31e9934ac - explode: true - in: query - name: delegate_user_id - required: false - schema: - format: uuid - type: string - style: form - - description: A cursor to indicate where to start fetching results. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false - schema: - type: string - style: form - - description: The maximum number of results to return per page. The default - is 200. - example: 200 - explode: true - in: query - name: page_size - required: false - schema: - maximum: 1000 - type: integer - style: form + - description: The delegator user ID to filter delegations by the user delegating their access review requests. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: delegator_user_id + required: false + schema: + format: uuid + type: string + style: form + - description: The delegate user ID to filter delegations by the user being delegated to. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: delegate_user_id + required: false + schema: + format: uuid + type: string + style: form + - description: A cursor to indicate where to start fetching results. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + explode: true + in: query + name: cursor + required: false + schema: + type: string + style: form + - description: The maximum number of results to return per page. The default is 200. + example: 200 + explode: true + in: query + name: page_size + required: false + schema: + type: integer + maximum: 1000 + style: form responses: "200": content: @@ -4564,19 +4692,18 @@ paths: $ref: "#/components/schemas/PaginatedDelegationsList" description: A list of delegations for your organization. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - delegations + - delegations post: - description: Creates a new request reviewer delegation to delegate access review - requests from one user to another. + description: Creates a new request reviewer delegation to delegate access review requests from one user to another. operationId: createDelegation requestBody: + required: true content: application/json: schema: $ref: "#/components/schemas/CreateDelegationRequest" - required: true responses: "200": content: @@ -4585,45 +4712,25 @@ paths: $ref: "#/components/schemas/Delegation" description: Delegation created successfully. security: - - BearerAuth: [] + - BearerAuth: [] tags: - - delegations + - delegations /delegations/{delegation_id}: - delete: - description: Deletes a delegation by its ID. - operationId: deleteDelegation - parameters: - - description: The ID of the delegation to remove. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: delegation_id - required: true - schema: - format: uuid - type: string - style: simple - responses: - "200": - description: Delegation removed successfully - security: - - BearerAuth: [] - tags: - - delegations get: + summary: Get delegation by ID description: Returns a specific delegation by its ID. operationId: getDelegation parameters: - - description: The ID of the delegation to retrieve. - example: 32acc112-21ff-4669-91c2-21e27683eaa1 - explode: true - in: path - name: delegation_id - required: true - schema: - format: uuid - type: string - style: simple + - description: The ID of the delegation to retrieve. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: delegation_id + required: true + schema: + format: uuid + type: string + style: simple responses: "200": content: @@ -4632,354 +4739,260 @@ paths: $ref: "#/components/schemas/Delegation" description: The requested delegation. security: - - BearerAuth: [] + - BearerAuth: [] + tags: + - delegations + delete: + description: Deletes a delegation by its ID. + operationId: deleteDelegation + parameters: + - description: The ID of the delegation to remove. + example: 32acc112-21ff-4669-91c2-21e27683eaa1 + explode: true + in: path + name: delegation_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: Delegation removed successfully + security: + - BearerAuth: [] tags: - - delegations + - delegations + components: schemas: PaginatedAssignedRequestList: + type: object + required: + - requests + - cursor properties: requests: + type: array items: $ref: "#/components/schemas/Request" - type: array cursor: - description: The cursor to continue pagination type: string - required: - - cursor - - requests + description: The cursor to continue pagination PageInfo: - example: - hasNextPage: true - hasPreviousPage: true - endCursor: endCursor - startCursor: startCursor + type: object + required: + - hasNextPage + - endCursor + - hasPreviousPage + - startCursor properties: hasNextPage: - description: Whether there are more items after the end cursor type: boolean + description: Whether there are more items after the end cursor endCursor: - description: The cursor to continue pagination forwards type: string + description: The cursor to continue pagination forwards hasPreviousPage: - description: Whether there are more items before the start cursor type: boolean + description: Whether there are more items before the start cursor startCursor: - description: The cursor to continue pagination backwards type: string - required: - - endCursor - - hasNextPage - - hasPreviousPage - - startCursor + description: The cursor to continue pagination backwards + RequestEdge: - example: - cursor: cursor - node: - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - requester_id: c86c85d-0651-43e2-a748-d69d658418e8 - target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 - target_group_id: r86c85d-0651-43e2-a748-d69d658418e8 - status: pending - reason: I need this resource. - duration_minutes: 1440 - request_comments: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 - user_id: c86c85d-0651-43e2-a748-d69d658418e8 - comment: This is a comment. - reviewer_stages: - - requestedRoleName: Admin - requestedItemName: AWS Production Account - stages: - - stage: 1 - operator: AND - reviewers: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: PENDING - - stage: 2 - operator: OR - reviewers: - - id: 8d86c85d-0651-43e2-a748-d69d658418e9 - status: APPROVED + type: object + required: + - node + - cursor properties: node: $ref: "#/components/schemas/Request" cursor: - description: The cursor for this request edge type: string - required: - - cursor - - node + description: The cursor for this request edge + RequestConnection: - example: - edges: - - cursor: cursor - node: - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - requester_id: c86c85d-0651-43e2-a748-d69d658418e8 - target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 - target_group_id: r86c85d-0651-43e2-a748-d69d658418e8 - status: pending - reason: I need this resource. - duration_minutes: 1440 - request_comments: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 - user_id: c86c85d-0651-43e2-a748-d69d658418e8 - comment: This is a comment. - reviewer_stages: - - requestedRoleName: Admin - requestedItemName: AWS Production Account - stages: - - stage: 1 - operator: AND - reviewers: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: PENDING - - stage: 2 - operator: OR - reviewers: - - id: 8d86c85d-0651-43e2-a748-d69d658418e9 - status: APPROVED - - cursor: cursor - node: - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - requester_id: c86c85d-0651-43e2-a748-d69d658418e8 - target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 - target_group_id: r86c85d-0651-43e2-a748-d69d658418e8 - status: pending - reason: I need this resource. - duration_minutes: 1440 - request_comments: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 - user_id: c86c85d-0651-43e2-a748-d69d658418e8 - comment: This is a comment. - reviewer_stages: - - requestedRoleName: Admin - requestedItemName: AWS Production Account - stages: - - stage: 1 - operator: AND - reviewers: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: PENDING - - stage: 2 - operator: OR - reviewers: - - id: 8d86c85d-0651-43e2-a748-d69d658418e9 - status: APPROVED - pageInfo: - hasNextPage: true - hasPreviousPage: true - endCursor: endCursor - startCursor: startCursor - totalCount: 0 + type: object + required: + - edges + - pageInfo + - totalCount properties: edges: + type: array items: $ref: "#/components/schemas/RequestEdge" - type: array pageInfo: $ref: "#/components/schemas/PageInfo" totalCount: - description: The total number of items available type: integer - required: - - edges - - pageInfo - - totalCount + description: The total number of items available UARScope: - description: "If set, the access review will only contain resources and groups\ - \ that match at least one of the filters in scope." + description: If set, the access review will only contain resources and groups that match at least one of the filters in scope. example: filter_operator: ANY users: - - userd283-ca87-4a8a-bdbb-df212eca5353 - include_group_bindings: true + - userd283-ca87-4a8a-bdbb-df212eca5353 + include_group_bindings: True tags: - - key: uar_scope - value: high_priority + - key: uar_scope + value: high_priority names: - - demo - - api + - demo + - api admins: - - f454d283-ca87-4a8a-bdbb-df212eca5353 - - 8763d283-ca87-4a8a-bdbb-df212ecab139 + - f454d283-ca87-4a8a-bdbb-df212eca5353 + - 8763d283-ca87-4a8a-bdbb-df212ecab139 resource_types: - - GCP_CLOUD_SQL_POSTGRES_INSTANCE + - GCP_CLOUD_SQL_POSTGRES_INSTANCE group_types: - - AWS_SSO_GROUP + - AWS_SSO_GROUP apps: - - pas2d283-ca87-4a8a-bdbb-df212eca5353 - - apss2d283-ca87-4a8a-bdbb-df212eca5353 + - pas2d283-ca87-4a8a-bdbb-df212eca5353 + - apss2d283-ca87-4a8a-bdbb-df212eca5353 entities: - - f454d283-as87-4a8a-bdbb-df212eca5353 - - f454d283-as87-4a8a-bdbb-df212eca5329 + - f454d283-as87-4a8a-bdbb-df212eca5353 + - f454d283-as87-4a8a-bdbb-df212eca5329 properties: group_visibility: description: Specifies what users can see during an Access Review - enum: - - STRICT - - VIEW_VISIBLE_AND_ASSIGNED - - VIEW_ALL type: string + enum: [STRICT, VIEW_VISIBLE_AND_ASSIGNED, VIEW_ALL] users: - description: "The access review will only include the following users. If\ - \ any users are selected, any entity filters will be applied to only the\ - \ entities that the selected users have access to." + description: The access review will only include the following users. If any users are selected, any entity filters will be applied to only the entities that the selected users have access to. items: example: userd283-ca87-4a8a-bdbb-df212eca5353 - format: uuid type: string + format: uuid type: array filter_operator: - description: Specifies whether entities must match all (AND) or any (OR) - of the filters. - enum: - - ANY - - ALL + description: Specifies whether entities must match all (AND) or any (OR) of the filters. type: string + enum: [ANY, ALL] entities: - description: This access review will include resources and groups with ids - in the given strings. + description: This access review will include resources and groups with ids in the given strings. items: example: f454d283-as87-4a8a-bdbb-df212eca5353 - format: uuid type: string + format: uuid type: array apps: description: This access review will include items in the specified applications items: example: pas2d283-ca87-4a8a-bdbb-df212eca5353 - format: uuid type: string + format: uuid type: array admins: - description: This access review will include resources and groups who are - owned by one of the owners corresponding to the given IDs. + description: This access review will include resources and groups who are owned by one of the owners corresponding to the given IDs. items: example: f454d283-ca87-4a8a-bdbb-df212eca5353 - format: uuid type: string + format: uuid type: array group_types: - description: This access review will include items of the specified group - types + description: This access review will include items of the specified group types + type: array items: $ref: "#/components/schemas/GroupTypeEnum" - type: array resource_types: - description: This access review will include items of the specified resource - types + description: This access review will include items of the specified resource types + type: array items: $ref: "#/components/schemas/ResourceTypeEnum" - type: array include_group_bindings: - example: false type: boolean + example: False tags: - description: This access review will include resources and groups who are - tagged with one of the given tags. + description: This access review will include resources and groups who are tagged with one of the given tags. items: $ref: "#/components/schemas/TagFilter" type: array names: - description: This access review will include resources and groups whose - name contains one of the given strings. + description: This access review will include resources and groups whose name contains one of the given strings. items: example: demo type: string type: array + type: object PaginatedUARsList: description: A list of UARs. example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - uar_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - name: Monthly UAR (July) - send_reviewer_assignment_notification: false - deadline: 2022-07-14T06:59:59Z - time_zone: America/Los_Angeles - self_review_allowed: false - uar_scope: - tags: - - key: uar_scope - value: high_priority - names: - - demo - - api - admins: - - f454d283-ca87-4a8a-bdbb-df212eca5353 - - 8763d283-ca87-4a8a-bdbb-df212ecab139 - - uar_id: 39a4d283-ca87-4a8a-bdbb-df212eca5fdb - name: Monthly UAR (August) - send_reviewer_assignment_notification: true - deadline: 2022-08-14T06:59:59Z - time_zone: America/Los_Angeles - self_review_allowed: false - uar_scope: - tags: - - key: uar_scope - value: high_priority - names: - - demo - - api - admins: - - f454d283-ca87-4a8a-bdbb-df212eca5353 - - 8763d283-ca87-4a8a-bdbb-df212ecab139 + - uar_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + name: Monthly UAR (July) + send_reviewer_assignment_notification: False + deadline: 2022-07-14T06:59:59Z + time_zone: America/Los_Angeles + self_review_allowed: False + uar_scope: + tags: + - key: uar_scope + value: high_priority + names: + - demo + - api + admins: + - f454d283-ca87-4a8a-bdbb-df212eca5353 + - 8763d283-ca87-4a8a-bdbb-df212ecab139 + - uar_id: 39a4d283-ca87-4a8a-bdbb-df212eca5fdb + name: Monthly UAR (August) + send_reviewer_assignment_notification: True + deadline: 2022-08-14T06:59:59Z + time_zone: America/Los_Angeles + self_review_allowed: False + uar_scope: + tags: + - key: uar_scope + value: high_priority + names: + - demo + - api + admins: + - f454d283-ca87-4a8a-bdbb-df212eca5353 + - 8763d283-ca87-4a8a-bdbb-df212ecab139 properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/UAR" type: array required: - - results + - results + type: object UAR: description: A user access review. example: uar_id: f454d283-ca87-4a8a-bdbb-df212eca5353 name: Monthly UAR (July) - send_reviewer_assignment_notification: false + send_reviewer_assignment_notification: False deadline: 2022-07-14T06:59:59Z time_zone: America/Los_Angeles - self_review_allowed: false + self_review_allowed: False uar_scope: tags: - - key: uar_scope - value: high_priority + - key: uar_scope + value: high_priority names: - - demo - - api + - demo + - api admins: - - f454d283-ca87-4a8a-bdbb-df212eca5353 - - 8763d283-ca87-4a8a-bdbb-df212ecab139 + - f454d283-ca87-4a8a-bdbb-df212eca5353 + - 8763d283-ca87-4a8a-bdbb-df212ecab139 properties: uar_id: description: The ID of the UAR. @@ -4993,61 +5006,59 @@ components: reviewer_assignment_policy: $ref: "#/components/schemas/UARReviewerAssignmentPolicyEnum" send_reviewer_assignment_notification: - description: A bool representing whether to send a notification to reviewers - when they're assigned a new review. Default is False. - example: false + description: A bool representing whether to send a notification to reviewers when they're assigned a new review. Default is False. + example: False type: boolean deadline: description: The last day for reviewers to complete their access reviews. example: 2022-07-14T06:59:59Z - format: date-time type: string + format: date-time time_zone: - description: The time zone name (as defined by the IANA Time Zone database) - used in the access review deadline and exported audit report. Default - is America/Los_Angeles. + description: The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. example: America/Los_Angeles type: string self_review_allowed: - description: A bool representing whether to present a warning when a user - is the only reviewer for themself. Default is False. - example: false + description: A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. + example: False type: boolean + instantly_action_reviews: + description: A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + type: boolean + example: False uar_scope: $ref: "#/components/schemas/UARScope" required: - - deadline - - name - - reviewer_assignment_policy - - self_review_allowed - - send_reviewer_assignment_notification - - time_zone - - uar_id + - uar_id + - name + - deadline + - reviewer_assignment_policy + - send_reviewer_assignment_notification + - time_zone + - self_review_allowed + - instantly_action_reviews + type: object CreateUARInfo: description: Information needed to start a user access review. example: name: Monthly UAR (July) - send_reviewer_assignment_notification: false + send_reviewer_assignment_notification: False deadline: 2022-07-14T06:59:59Z time_zone: America/Los_Angeles - self_review_allowed: false - reminder_schedule: - - 7 - - 3 - - 1 - - 0 - reminder_include_manager: true + self_review_allowed: False + reminder_schedule: [7, 3, 1, 0] + reminder_include_manager: True uar_scope: group_visibility: STRICT tags: - - key: uar_scope - value: high_priority + - key: uar_scope + value: high_priority names: - - demo - - api + - demo + - api admins: - - f454d283-ca87-4a8a-bdbb-df212eca5353 - - 8763d283-ca87-4a8a-bdbb-df212ecab139 + - f454d283-ca87-4a8a-bdbb-df212eca5353 + - 8763d283-ca87-4a8a-bdbb-df212ecab139 properties: name: description: The name of the UAR. @@ -5056,50 +5067,52 @@ components: reviewer_assignment_policy: $ref: "#/components/schemas/UARReviewerAssignmentPolicyEnum" send_reviewer_assignment_notification: - description: A bool representing whether to send a notification to reviewers - when they're assigned a new review. Default is False. - example: false + description: A bool representing whether to send a notification to reviewers when they're assigned a new review. Default is False. + example: False type: boolean deadline: description: The last day for reviewers to complete their access reviews. example: 2022-07-14T06:59:59Z - format: date-time type: string + format: date-time time_zone: - description: The time zone name (as defined by the IANA Time Zone database) - used in the access review deadline and exported audit report. Default - is America/Los_Angeles. + description: The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. example: America/Los_Angeles type: string self_review_allowed: - description: A bool representing whether to present a warning when a user - is the only reviewer for themself. Default is False. - example: false + description: A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. + example: False type: boolean + instantly_action_reviews: + description: A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + type: boolean + example: False reminder_schedule: items: type: integer type: array reminder_include_manager: - example: false type: boolean + example: False uar_scope: $ref: "#/components/schemas/UARScope" required: - - deadline - - name - - reviewer_assignment_policy - - self_review_allowed - - send_reviewer_assignment_notification - - time_zone + - name + - deadline + - reviewer_assignment_policy + - send_reviewer_assignment_notification + - time_zone + - self_review_allowed + type: object UARReviewerAssignmentPolicyEnum: - description: "A policy for auto-assigning reviewers. If auto-assignment is on,\ - \ specific assignments can still be manually adjusted after the access review\ - \ is started. Default is Manually." + description: A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. enum: - - MANUALLY - - BY_OWNING_TEAM_ADMIN - - BY_MANAGER + - MANUALLY + - BY_OWNING_TEAM_ADMIN + - BY_OWNING_TEAM_ADMIN_ALL + - BY_MANAGER + - BY_APPROVERS + - BY_APPROVERS_ALL example: MANUALLY type: string TagFilter: @@ -5117,27 +5130,29 @@ components: example: high_priority type: string required: - - key + - key + type: object AppsList: description: A list of apps. example: - - app_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - name: Okta Org - description: Okta directory for the engineering team. - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - app_type: OKTA_DIRECTORY - - app_id: 5247d283-ca87-4a8a-bdbb-df212eca1243 - name: Prod AWS Account - description: Our production engineering account for AWS. - admin_owner_id: aab485d-0651-43e2-a748-d69d6584123af - app_type: AWS + - app_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + name: Okta Org + description: Okta directory for the engineering team. + admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + app_type: OKTA_DIRECTORY + - app_id: 5247d283-ca87-4a8a-bdbb-df212eca1243 + name: Prod AWS Account + description: Our production engineering account for AWS. + admin_owner_id: aab485d-0651-43e2-a748-d69d6584123af + app_type: AWS properties: apps: items: $ref: "#/components/schemas/App" type: array required: - - apps + - apps + type: object App: description: |- # App Object @@ -5179,45 +5194,55 @@ components: $ref: "#/components/schemas/AppValidation" type: array required: - - admin_owner_id - - app_id - - app_type - - description - - name + - app_id + - name + - description + - admin_owner_id + - app_type + type: object AppTypeEnum: description: The type of an app. enum: - - ACTIVE_DIRECTORY - - AZURE_AD - - AWS - - AWS_SSO - - CUSTOM - - DUO - - GCP - - GIT_HUB - - GIT_LAB - - GOOGLE_GROUPS - - GOOGLE_WORKSPACE - - LDAP - - MARIADB - - MONGO - - MONGO_ATLAS - - MYSQL - - OKTA_DIRECTORY - - OPAL - - PAGERDUTY - - SALESFORCE - - TAILSCALE - - TELEPORT - - WORKDAY + - ACTIVE_DIRECTORY + - ANTHROPIC + - AZURE_AD + - AWS + - AWS_SSO + - COUPA + - CURSOR + - CUSTOM + - DATABRICKS + - DATASTAX_ASTRA + - DUO + - GCP + - GIT_HUB + - GIT_LAB + - GOOGLE_GROUPS + - GOOGLE_WORKSPACE + - ILEVEL + - INCIDENTIO + - LDAP + - MARIADB + - MONGO + - MONGO_ATLAS + - MYSQL + - OKTA_DIRECTORY + - OPENAI_PLATFORM + - OPAL + - PAGERDUTY + - SALESFORCE + - SNOWFLAKE + - TAILSCALE + - TELEPORT + - WORKDAY example: OKTA_DIRECTORY type: string EntityTypeEnum: description: The type of an entity. enum: - - GROUP - - RESOURCE - - USER + - GROUP + - RESOURCE + - USER example: GROUP type: string Event: @@ -5244,7 +5269,10 @@ components: example: 29827fb8-f2dd-4e80-9576-28e31e9934ac format: uuid type: string - actor_name: {} + actor_name: + description: The name of the actor user. + example: John Smith + format: string actor_email: description: The email of the actor user. example: john@acmecorp.com @@ -5268,18 +5296,19 @@ components: type: string api_token_preview: description: The preview of the API token used to create the event. - example: '**************************M_g==' + example: "**************************M_g==" type: string sub_events: items: $ref: "#/components/schemas/SubEvent" type: array required: - - actor_name - - actor_user_id - - created_at - - event_id - - event_type + - event_id + - actor_user_id + - actor_name + - event_type + - created_at + type: object AppValidation: description: |- # App validation object @@ -5289,30 +5318,28 @@ components: ### Usage Example List from the `GET Apps` endpoint. example: - key: iam:GetRole - name: Opal's service account is missing the 'iam:GetRole' permission. - usage_reason: Opal uses the 'iam:GetRole' permissions to view access to resources. - details: 403 Google API Error. Service account is not authorized to access - role assignments. + key: "iam:GetRole" + name: "Opal's service account is missing the 'iam:GetRole' permission." + usage_reason: "Opal uses the 'iam:GetRole' permissions to view access to resources." + details: "403 Google API Error. Service account is not authorized to access role assignments." severity: HIGH status: FAILED updated_at: 2021-01-06T20:00:00Z properties: key: - description: The key of the app validation. These are not unique IDs between - runs. - example: iam:GetUser + description: The key of the app validation. These are not unique IDs between runs. + example: "iam:GetUser" type: string - name: {} + name: + description: The human-readable description of whether the validation has the permissions. + example: "Opal's service account is missing the 'iam:GetUser' description." usage_reason: description: The reason for needing the validation. example: Opal uses the 'iam:GetUser' permission to import users. type: string details: - description: Extra details regarding the validation. Could be an error message - or restrictions on permissions. - example: 403 Google API Error. Service account is not authorized to access - role assignments. + description: Extra details regarding the validation. Could be an error message or restrictions on permissions. + example: 403 Google API Error. Service account is not authorized to access role assignments. type: string severity: $ref: "#/components/schemas/AppValidationSeverityEnum" @@ -5324,29 +5351,28 @@ components: format: date-time type: string required: - - key - - name - - severity - - status - - updated_at + - key + - name + - status + - severity + - updated_at AppValidationSeverityEnum: description: The severity of an app validation. enum: - - CRITICAL - - HIGH - - MEDIUM - - LOW + - CRITICAL + - HIGH + - MEDIUM + - LOW example: CRITICAL type: string AppValidationStatusEnum: description: The status of an app validation. enum: - - SUCCESS - - FAILED + - SUCCESS + - FAILED example: FAILED type: string SubEvent: - additionalProperties: true description: |- # Sub event Object ### Description @@ -5366,69 +5392,75 @@ components: example: USERS_CREATED type: string required: - - sub_event_type + - sub_event_type + type: object + additionalProperties: true PaginatedEventList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - event_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - actor_user_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - created_at: 2022-01-23T04:56:07Z - event_type: USERS_CREATED - - event_id: 7646aa9a-e2ee-4eb5-8c62-91f29038a373 - actor_user_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - created_at: 2022-02-03T12:33:02Z - event_type: USER_TEAM_UPDATED + - event_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + actor_user_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + created_at: 2022-01-23T04:56:07Z + event_type: USERS_CREATED + - event_id: 7646aa9a-e2ee-4eb5-8c62-91f29038a373 + actor_user_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + created_at: 2022-02-03T12:33:02Z + event_type: USER_TEAM_UPDATED properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/Event" type: array + type: object ResourceAccessUserList: example: results: - - full_name: Jake Barnes - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-01-23T04:56:07Z - email: jake@company.dev - has_direct_access: true - num_access_paths: 2 - - full_name: Brett Ashley - user_id: 7646aa9a-e2ee-4eb5-8c62-91f29038a373 - resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-02-03T12:33:02Z - email: brett@company.dev - has_direct_access: true - num_access_paths: 3 + - full_name: Jake Barnes + user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + expiration_date: 2022-01-23T04:56:07Z + email: jake@company.dev + has_direct_access: true + num_access_paths: 2 + - full_name: Brett Ashley + user_id: 7646aa9a-e2ee-4eb5-8c62-91f29038a373 + resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + expiration_date: 2022-02-03T12:33:02Z + email: brett@company.dev + has_direct_access: true + num_access_paths: 3 properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/ResourceAccessUser" type: array + type: object ResourceAccessLevel: description: |- # Access Level Object @@ -5451,8 +5483,9 @@ components: example: arn:aws:iam::590304332660:role/AdministratorAccess type: string required: - - access_level_name - - access_level_remote_id + - access_level_name + - access_level_remote_id + type: object ResourceUserAccessStatus: description: |- # AccessStatus Object @@ -5485,18 +5518,19 @@ components: description: The day and time the user's access will expire. example: 2022-01-23T04:56:07Z format: date-time - type: string nullable: true + type: string required: - - resource_id - - status - - user_id + - resource_id + - status + - user_id + type: object ResourceUserAccessStatusEnum: description: The status of the user's access to the resource. enum: - - AUTHORIZED - - REQUESTED - - UNAUTHORIZED + - AUTHORIZED + - REQUESTED + - UNAUTHORIZED example: AUTHORIZED type: string ResourceUser: @@ -5535,14 +5569,15 @@ components: description: The day and time the user's access will expire. example: 2022-01-23T04:56:07Z format: date-time - type: string nullable: true + type: string required: - - access_level - - email - - full_name - - resource_id - - user_id + - email + - full_name + - resource_id + - user_id + - access_level + type: object ResourceAccessUser: description: |- # Resource Access User Object @@ -5563,6 +5598,14 @@ components: example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 format: uuid type: string + resource_name: + description: The name of the resource. + example: AdministratorAccess + type: string + description: + description: The description of the resource. + example: Full access to all resources and settings. + type: string user_id: description: The ID of the user. example: 29827fb8-f2dd-4e80-9576-28e31e9934ac @@ -5582,51 +5625,51 @@ components: description: The day and time the user's access will expire. example: 2022-01-23T04:56:07Z format: date-time - type: string nullable: true + type: string has_direct_access: - description: "The user has direct access to this resources (vs. indirectly,\ - \ like through a group)." + description: The user has direct access to this resources (vs. indirectly, like through a group). example: true type: boolean num_access_paths: - description: The number of ways in which the user has access through this - resource (directly and indirectly). + description: The number of ways in which the user has access through this resource (directly and indirectly). example: 3 format: int32 type: integer propagation_status: $ref: "#/components/schemas/PropagationStatus" required: - - access_level - - email - - full_name - - has_direct_access - - num_access_paths - - resource_id - - user_id + - email + - full_name + - resource_id + - user_id + - access_level + - has_direct_access + - num_access_paths + type: object AccessList: example: results: - - principal_id: 74908af0-9383-4feb-b7ea-8b305d737338 - principal_type: RESOURCE - entity_id: db04925a-635d-4764-870e-500b9b035c8e - entity_type: RESOURCE - expiration_date: 2022-01-23T04:56:07Z - has_direct_access: true - num_access_paths: 3 - - principal_id: d940df34-726a-4403-864e-16cb2a0d6793 - principal_type: RESOURCE - entity_id: c26cd16c-a3fa-4b82-96b1-32177f8b8f59 - entity_type: RESOURCE - expiration_date: 2022-01-23T04:56:07Z - has_direct_access: true - num_access_paths: 3 + - principal_id: 74908af0-9383-4feb-b7ea-8b305d737338 + principal_type: RESOURCE + entity_id: db04925a-635d-4764-870e-500b9b035c8e + entity_type: RESOURCE + expiration_date: 2022-01-23T04:56:07Z + has_direct_access: true + num_access_paths: 3 + - principal_id: d940df34-726a-4403-864e-16cb2a0d6793 + principal_type: RESOURCE + entity_id: c26cd16c-a3fa-4b82-96b1-32177f8b8f59 + entity_type: RESOURCE + expiration_date: 2022-01-23T04:56:07Z + has_direct_access: true + num_access_paths: 3 properties: results: items: $ref: "#/components/schemas/Access" type: array + type: object Access: description: |- # Access Object @@ -5664,26 +5707,25 @@ components: description: The day and time the principal's access will expire. example: 2022-01-23T04:56:07Z format: date-time - type: string nullable: true + type: string has_direct_access: - description: The principal has direct access to this entity (vs. inherited - access). + description: The principal has direct access to this entity (vs. inherited access). example: true type: boolean num_access_paths: - description: The number of ways in which the principal has access to this - entity (directly and inherited). + description: The number of ways in which the principal has access to this entity (directly and inherited). example: 3 format: int32 type: integer required: - - entity_id - - entity_type - - has_direct_access - - num_access_paths - - principal_id - - principal_type + - principal_id + - principal_type + - entity_id + - entity_type + - has_direct_access + - num_access_paths + type: object ResourceNHI: description: |- # Resource Non-Human Identity Direct Access Object @@ -5710,40 +5752,43 @@ components: description: The day and time the non-human identity's access will expire. example: 2022-01-23T04:56:07Z format: date-time - type: string nullable: true + type: string required: - - non_human_identity_id - - resource_id + - resource_id + - non_human_identity_id + type: object SessionsList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - connection_id: h0z968412-2451-4bbd-42h4-057l715d917m - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-01-23T04:56:07Z - - connection_id: 6e6b5597-bd36-4f4c-a629-01e3fa791932 - user_id: b031c922-b84f-4424-9f4f-c49c05871bfe - resource_id: 77eb1ab7-2c27-4fc4-afdb-137e1265cddd - expiration_date: 2022-03-12T07:22:18Z + - connection_id: h0z968412-2451-4bbd-42h4-057l715d917m + user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + expiration_date: 2022-01-23T04:56:07Z + - connection_id: 6e6b5597-bd36-4f4c-a629-01e3fa791932 + user_id: b031c922-b84f-4424-9f4f-c49c05871bfe + resource_id: 77eb1ab7-2c27-4fc4-afdb-137e1265cddd + expiration_date: 2022-03-12T07:22:18Z properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/Session" type: array + type: object Session: description: |- # Session Object @@ -5779,74 +5824,79 @@ components: description: The day and time the user's access will expire. example: 2022-01-23T04:56:07Z format: date-time - type: string nullable: false + type: string required: - - access_level - - connection_id - - expiration_date - - resource_id - - user_id + - connection_id + - user_id + - resource_id + - access_level + - expiration_date + type: object PaginatedUsersList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - email: john.doe@company.dev - full_name: John Doe - position: Senior Engineer - - user_id: e8581682-04f7-473a-a419-472f0fb26d46 - email: jane.smith@company.dev - full_name: Jane Smith - position: Product Marketing Lead + - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + email: john.doe@company.dev + full_name: John Doe + position: Senior Engineer + - user_id: e8581682-04f7-473a-a419-472f0fb26d46 + email: jane.smith@company.dev + full_name: Jane Smith + position: Product Marketing Lead properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/User" type: array + type: object required: - - results + - results PaginatedRemoteUsersList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - remote_id: 1234567890 - third_party_provider: GIT_LAB - - user_id: 29827fb8-f2dd-4e80-9576-238979927392 - remote_id: remoteid123 - third_party_provider: GIT_HUB + - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + remote_id: 1234567890 + third_party_provider: GIT_LAB + - user_id: 29827fb8-f2dd-4e80-9576-238979927392 + remote_id: remoteid123 + third_party_provider: GIT_HUB properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/RemoteUser" type: array + type: object required: - - results + - results RemoteUser: description: |- # RemoteUser Object @@ -5867,11 +5917,15 @@ components: example: 1234567890 type: string third_party_provider: + description: The third party provider of the remote user. + example: GIT_HUB $ref: "#/components/schemas/ThirdPartyProviderEnum" required: - - remote_id - - third_party_provider - - user_id + - user_id + - remote_id + - third_party_provider + type: object + User: description: |- # User Object @@ -5916,74 +5970,66 @@ components: hr_idp_status: $ref: "#/components/schemas/UserHrIdpStatusEnum" required: - - email - - first_name - - full_name - - last_name - - position - - user_id + - user_id + - email + - full_name + - first_name + - last_name + - position + type: object UserList: description: A list of users. - example: - users: - - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - email: john.doe@company.dev - full_name: John Doe - first_name: John - last_name: Doe - position: Engineer - - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - email: john.doe@company.dev - full_name: John Doe - first_name: John - last_name: Doe - position: Engineer properties: users: items: $ref: "#/components/schemas/User" type: array + type: object required: - - users + - users UserIDList: description: A list of user IDs. example: user_ids: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 + - 7870617d-e72a-47f5-a84c-693817ab4567 + - 1520617d-e72a-47f5-a84c-693817ab48ad2 properties: user_ids: items: - format: uuid type: string + format: uuid type: array + type: object required: - - user_ids + - user_ids UserHrIdpStatusEnum: description: User status pulled from an HR/IDP provider. enum: - - ACTIVE - - SUSPENDED - - DEPROVISIONED - - DELETED - - NOT_FOUND + - ACTIVE + - SUSPENDED + - DEPROVISIONED + - DELETED + - NOT_FOUND example: ACTIVE type: string ThirdPartyProviderEnum: description: The third party provider of the remote user. enum: - - AUTH0 - - SLACK - - GOOGLE_CHAT - - JIRA - - LINEAR - - SERVICE_NOW - - PAGER_DUTY - - OPSGENIE - - GIT_HUB - - GIT_LAB - - GIT_LAB_CONNECTION - - TELEPORT + - AUTH0 + - SLACK + - GOOGLE_CHAT + - JIRA + - LINEAR + - SERVICE_NOW + - FRESH_SERVICE + - SHORTCUT + - PAGER_DUTY + - OPSGENIE + - GIT_HUB + - GIT_LAB + - GIT_LAB_CONNECTION + - TELEPORT + - SLACK example: GIT_HUB type: string PaginatedGroupsList: @@ -5991,41 +6037,39 @@ components: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - description: This group represents Active Directory group "Payments Production - Admin". We use this AD group to facilitate staging deployments and qualifying - new releases. - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - max_duration: 120 - require_manager_approval: false - require_support_ticket: false - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - description: Manages the Integrations Team on-call privileged resources. - This group is automatically synced with the on-call rotation defined in - PagerDuty. - admin_owner_id: 4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3 - max_duration: 360 - require_manager_approval: false - require_support_ticket: true + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd + description: This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases. + admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + max_duration: 120 + require_manager_approval: False + require_support_ticket: False + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + description: Manages the Integrations Team on-call privileged resources. This group is automatically synced with the on-call rotation defined in PagerDuty. + admin_owner_id: 4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3 + max_duration: 360 + require_manager_approval: False + require_support_ticket: True properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/Group" type: array + type: object required: - - results + - results GroupResource: description: |- # GroupResource Object @@ -6034,7 +6078,7 @@ components: example: group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 resource_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - access_level_remote_id: write + access_level_remote_id: "write" properties: group_id: description: The ID of the group. @@ -6046,12 +6090,27 @@ components: example: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd format: uuid type: string + group_name: + description: The name of the group + example: API Group + type: string + resource_name: + description: The name of the resource + example: API Group + type: string + expiration_date: + description: The day and time the group's access will expire. + example: 2022-01-23T04:56:07Z + format: date-time + nullable: true + type: string access_level: $ref: "#/components/schemas/ResourceAccessLevel" required: - - access_level - - group_id - - resource_id + - group_id + - resource_id + - access_level + type: object GroupContainingGroup: description: |- # GroupContainingGroup Object @@ -6065,8 +6124,18 @@ components: example: f454d283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string + duration_minutes: + description: The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite. + type: integer + maximum: 525960 # One year + example: 120 + access_level_remote_id: + description: The updated remote ID of the access level granted to this group. + type: string + example: arn:aws:iam::590304332660:role/ReadOnlyAccess required: - - containing_group_id + - containing_group_id + type: object Group: description: |- # Group Object @@ -6080,13 +6149,11 @@ components: app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd remote_id: 037m2jsg218b2wb remote_name: Finance Team - description: This group represents Active Directory group "Payments Production - Admin". We use this AD group to facilitate staging deployments and qualifying - new releases. + description: This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases. admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 max_duration: 120 - require_manager_approval: false - require_support_ticket: false + require_manager_approval: False + require_support_ticket: False properties: group_id: description: The ID of the group. @@ -6104,9 +6171,7 @@ components: type: string description: description: A description of the group. - example: This group represents Active Directory group "Payments Production - Admin". We use this AD group to facilitate staging deployments and qualifying - new releases. + example: This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases. type: string admin_owner_id: description: The ID of the owner of the group. @@ -6116,8 +6181,8 @@ components: group_leader_user_ids: description: A list of User IDs for the group leaders of the group items: - format: uuid type: string + format: uuid type: array remote_id: description: The ID of the remote. @@ -6130,46 +6195,37 @@ components: group_type: $ref: "#/components/schemas/GroupTypeEnum" max_duration: - description: The maximum duration for which the group can be requested (in - minutes). - example: 120 + description: The maximum duration for which the group can be requested (in minutes). type: integer - recommended_duration: - description: The recommended duration for which the group should be requested - (in minutes). -1 represents an indefinite duration. example: 120 + recommended_duration: + description: The recommended duration for which the group should be requested (in minutes). -1 represents an indefinite duration. type: integer - extensions_duration_in_minutes: - description: "The duration for which access can be extended (in minutes).\ - \ Set to 0 to disable extensions. When > 0, extensions are enabled for\ - \ the specified duration." example: 120 + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. type: integer + example: 120 require_manager_approval: - deprecated: true - description: A bool representing whether or not access requests to the group - require manager approval. - example: false + description: A bool representing whether or not access requests to the group require manager approval. + example: False type: boolean + deprecated: true require_support_ticket: - description: A bool representing whether or not access requests to the group - require an access ticket. - example: false + description: A bool representing whether or not access requests to the group require an access ticket. + example: False type: boolean require_mfa_to_approve: - description: A bool representing whether or not to require MFA for reviewers - to approve requests for this group. - example: false + description: A bool representing whether or not to require MFA for reviewers to approve requests for this group. + example: False type: boolean require_mfa_to_request: - description: A bool representing whether or not to require MFA for requesting - access to this group. - example: false + description: A bool representing whether or not to require MFA for requesting access to this group. + example: False type: boolean auto_approval: - description: A bool representing whether or not to automatically approve - requests to this group. - example: false + description: A bool representing whether or not to automatically approve requests to this group. + example: False type: boolean request_template_id: description: The ID of the associated request template. @@ -6187,84 +6243,84 @@ components: format: uuid type: string is_requestable: - description: A bool representing whether or not to allow access requests - to this group. - example: false + description: A bool representing whether or not to allow access requests to this group. + example: False type: boolean request_configurations: description: A list of request configurations for this group. example: [] + type: array items: $ref: "#/components/schemas/RequestConfiguration" - type: array request_configuration_list: - description: A list of request configurations for this group. Deprecated - in favor of `request_configurations`. + description: A list of request configurations for this group. Deprecated in favor of `request_configurations`. + deprecated: true example: [] + type: array items: $ref: "#/components/schemas/RequestConfiguration" - type: array metadata: + description: JSON metadata about the remote group. Only set for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details. deprecated: true - description: "JSON metadata about the remote group. Only set for items linked\ - \ to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects)\ - \ for details." - example: "{ \"okta_directory_group\": { \"group_id\": \"00g4bs66kwtpe1g12345\"\ - \ } }" + example: |- + { "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } } type: string remote_info: $ref: "#/components/schemas/GroupRemoteInfo" custom_request_notification: - description: Custom request notification sent to the requester when the - request is approved. - example: Check your email to register your account. - maxLength: 800 + description: Custom request notification sent to the requester when the request is approved. type: string + maxLength: 800 nullable: true + example: "Check your email to register your account." risk_sensitivity: - allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" - description: "The risk sensitivity level for the group. When an override\ - \ is set, this field will match that." + description: The risk sensitivity level for the group. When an override is set, this field will match that. readOnly: true + allOf: + - $ref: "#/components/schemas/RiskSensitivityEnum" risk_sensitivity_override: allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" + - $ref: "#/components/schemas/RiskSensitivityEnum" last_successful_sync: + readOnly: true + description: Information about the last successful sync of this group. $ref: "#/components/schemas/SyncTask" required: - - group_id + - group_id + type: object GroupUserList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - full_name: Jake Barnes - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-01-23T04:56:07Z - email: jake@company.dev - - full_name: Brett Ashley - user_id: 7646aa9a-e2ee-4eb5-8c62-91f29038a373 - group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-02-03T12:33:02Z - email: brett@company.dev + - full_name: Jake Barnes + user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac + group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + expiration_date: 2022-01-23T04:56:07Z + email: jake@company.dev + - full_name: Brett Ashley + user_id: 7646aa9a-e2ee-4eb5-8c62-91f29038a373 + group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + expiration_date: 2022-02-03T12:33:02Z + email: brett@company.dev properties: results: items: $ref: "#/components/schemas/GroupUser" type: array next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string + type: object GroupAccessLevel: description: |- # Access Level Object @@ -6287,8 +6343,9 @@ components: example: 20 type: string required: - - access_level_name - - access_level_remote_id + - access_level_name + - access_level_remote_id + type: object GroupUser: description: |- # Group Access User Object @@ -6309,6 +6366,14 @@ components: example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 format: uuid type: string + group_name: + description: The name of the group. + example: API Group + type: string + description: + description: The description of the group. + example: Group required to request API's + type: string user_id: description: The ID of the user. example: 29827fb8-f2dd-4e80-9576-28e31e9934ac @@ -6316,6 +6381,7 @@ components: type: string access_level: $ref: "#/components/schemas/GroupAccessLevel" + nullable: true full_name: description: The user's full name. example: Jake Barnes @@ -6328,80 +6394,78 @@ components: description: The day and time the user's access will expire. example: 2022-01-23T04:56:07Z format: date-time - type: string nullable: true + type: string propagation_status: $ref: "#/components/schemas/PropagationStatus" required: - - email - - full_name - - group_id - - user_id + - email + - full_name + - group_id + - user_id + - group_name + - description + type: object PropagationStatus: - description: "The state of whether the push action was propagated to the remote\ - \ system. If this is null, the access was synced from the remote system." + description: The state of whether the push action was propagated to the remote system. If this is null, the access was synced from the remote system. properties: status: $ref: "#/components/schemas/PropagationStatusEnum" required: - - status + - status PropagationStatusEnum: - description: The status of whether the user has been synced to the group or - resource in the remote system. + description: The status of whether the user has been synced to the group or resource in the remote system. enum: - - SUCCESS - - ERR_REMOTE_INTERNAL_ERROR - - ERR_REMOTE_USER_NOT_FOUND - - ERR_REMOTE_USER_NOT_LINKED - - ERR_REMOTE_RESOURCE_NOT_FOUND - - ERR_REMOTE_THROTTLE - - ERR_NOT_AUTHORIZED_TO_QUERY_RESOURCE - - ERR_REMOTE_PROVISIONING_VIA_IDP_FAILED - - ERR_IDP_EMAIL_UPDATE_CONFLICT - - ERR_TIMEOUT - - ERR_UNKNOWN - - ERR_OPAL_INTERNAL_ERROR - - ERR_ORG_READ_ONLY - - ERR_OPERATION_UNSUPPORTED - - PENDING - - PENDING_MANUAL_PROPAGATION - - PENDING_TICKET_CREATION - - ERR_TICKET_CREATION_SKIPPED - - ERR_DRY_RUN_MODE_ENABLED - - ERR_HR_IDP_PROVIDER_NOT_LINKED - - ERR_REMOTE_UNRECOVERABLE_ERROR + - SUCCESS + - ERR_REMOTE_INTERNAL_ERROR + - ERR_REMOTE_USER_NOT_FOUND + - ERR_REMOTE_USER_NOT_LINKED + - ERR_REMOTE_RESOURCE_NOT_FOUND + - ERR_REMOTE_THROTTLE + - ERR_NOT_AUTHORIZED_TO_QUERY_RESOURCE + - ERR_REMOTE_PROVISIONING_VIA_IDP_FAILED + - ERR_IDP_EMAIL_UPDATE_CONFLICT + - ERR_TIMEOUT + - ERR_UNKNOWN + - ERR_OPAL_INTERNAL_ERROR + - ERR_ORG_READ_ONLY + - ERR_OPERATION_UNSUPPORTED + - PENDING + - PENDING_MANUAL_PROPAGATION + - PENDING_TICKET_CREATION + - ERR_TICKET_CREATION_SKIPPED + - ERR_DRY_RUN_MODE_ENABLED + - ERR_HR_IDP_PROVIDER_NOT_LINKED + - ERR_REMOTE_UNRECOVERABLE_ERROR example: - - SUCCESS + - SUCCESS type: string UpdateGroupInfoList: example: groups: - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - description: This group represents Active Directory group "Payments Production - Admin". We use this AD group to facilitate staging deployments and qualifying - new releases. - name: api-group - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - max_duration: 120 - require_manager_approval: false - require_support_ticket: false - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - description: Manages the Integrations Team on-call privileged resources. - This group is automatically synced with the on-call rotation defined in - PagerDuty. - name: on-call-integrations - admin_owner_id: 4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3 - max_duration: 360 - require_manager_approval: false - require_support_ticket: true + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + description: This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases. + name: api-group + admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + max_duration: 120 + require_manager_approval: False + require_support_ticket: False + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + description: Manages the Integrations Team on-call privileged resources. This group is automatically synced with the on-call rotation defined in PagerDuty. + name: on-call-integrations + admin_owner_id: 4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3 + max_duration: 360 + require_manager_approval: False + require_support_ticket: True properties: groups: description: A list of groups with information to update. items: $ref: "#/components/schemas/UpdateGroupInfo" type: array + type: object required: - - groups + - groups UpdateGroupInfo: description: |- # UpdateGroupInfo Object @@ -6409,14 +6473,12 @@ components: The `UpdateGroupInfo` object is used as an input to the UpdateGroup API. example: group_id: f454d283-ca87-4a87-bdbb-df212eca5353 - description: This group represents Active Directory group "Payments Production - Admin". We use this AD group to facilitate staging deployments and qualifying - new releases. + description: This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases. name: api-group admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 max_duration: 120 - require_manager_approval: false - require_support_ticket: false + require_manager_approval: False + require_support_ticket: False properties: group_id: description: The ID of the group. @@ -6429,9 +6491,7 @@ components: type: string description: description: A description of the group. - example: This group represents Active Directory group "Payments Production - Admin". We use this AD group to facilitate staging deployments and qualifying - new releases. + example: This group represents Active Directory group "Payments Production Admin". We use this AD group to facilitate staging deployments and qualifying new releases. type: string admin_owner_id: description: The ID of the owner of the group. @@ -6439,259 +6499,300 @@ components: format: uuid type: string max_duration: - deprecated: true - description: The maximum duration for which the group can be requested (in - minutes). Use -1 to set to indefinite. Deprecated in favor of `request_configurations`. - example: 120 + description: The maximum duration for which the group can be requested (in minutes). Use -1 to set to indefinite. Deprecated in favor of `request_configurations`. type: integer - recommended_duration: - deprecated: true - description: The recommended duration for which the group should be requested - (in minutes). Will be the default value in a request. Use -1 to set to - indefinite and 0 to unset. Deprecated in favor of `request_configurations`. example: 120 + deprecated: true + recommended_duration: + description: The recommended duration for which the group should be requested (in minutes). Will be the default value in a request. Use -1 to set to indefinite and 0 to unset. Deprecated in favor of `request_configurations`. type: integer - require_manager_approval: + example: 120 deprecated: true - description: A bool representing whether or not access requests to the group - require manager approval. Deprecated in favor of `request_configurations`. - example: false + require_manager_approval: + description: A bool representing whether or not access requests to the group require manager approval. Deprecated in favor of `request_configurations`. + example: False type: boolean - require_support_ticket: deprecated: true - description: A bool representing whether or not access requests to the group - require an access ticket. Deprecated in favor of `request_configurations`. - example: false + require_support_ticket: + description: A bool representing whether or not access requests to the group require an access ticket. Deprecated in favor of `request_configurations`. + example: False type: boolean - folder_id: deprecated: true + folder_id: description: The ID of the folder that the group is located in. example: e27cb7b0-98e2-4555-9916-9e6d8ca6b079 format: uuid type: string + deprecated: true require_mfa_to_approve: - description: A bool representing whether or not to require MFA for reviewers - to approve requests for this group. - example: false + description: A bool representing whether or not to require MFA for reviewers to approve requests for this group. + example: False type: boolean require_mfa_to_request: - deprecated: true - description: A bool representing whether or not to require MFA for requesting - access to this group. Deprecated in favor of `request_configurations`. - example: false + description: A bool representing whether or not to require MFA for requesting access to this group. Deprecated in favor of `request_configurations`. + example: False type: boolean - auto_approval: deprecated: true - description: A bool representing whether or not to automatically approve - requests to this group. Deprecated in favor of `request_configurations`. - example: false + auto_approval: + description: A bool representing whether or not to automatically approve requests to this group. Deprecated in favor of `request_configurations`. + example: False type: boolean + deprecated: true configuration_template_id: description: The ID of the associated configuration template. example: 06851574-e50d-40ca-8c78-f72ae6ab4304 format: uuid type: string request_template_id: - deprecated: true - description: The ID of the associated request template. Deprecated in favor - of `request_configurations`. + description: The ID of the associated request template. Deprecated in favor of `request_configurations`. example: 06851574-e50d-40ca-8c78-f72ae6ab4304 format: uuid type: string - is_requestable: deprecated: true - description: A bool representing whether or not to allow access requests - to this group. Deprecated in favor of `request_configurations`. - example: false + is_requestable: + description: A bool representing whether or not to allow access requests to this group. Deprecated in favor of `request_configurations`. + example: False type: boolean + deprecated: true group_leader_user_ids: description: A list of User IDs for the group leaders of the group items: - format: uuid type: string + format: uuid type: array extensions_duration_in_minutes: - deprecated: true - description: "The duration for which access can be extended (in minutes).\ - \ Deprecated, set the extension duration in the request_configuration\ - \ you want it to apply to." - example: 120 + description: The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. type: integer + example: 120 + deprecated: true request_configurations: - description: "The request configuration list of the configuration template.\ - \ If not provided, the default request configuration will be used." + type: array items: $ref: "#/components/schemas/RequestConfiguration" - type: array + description: The request configuration list of the configuration template. If not provided, the default request configuration will be used. request_configuration_list: + description: The request configuration list of the configuration template. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. $ref: "#/components/schemas/CreateRequestConfigurationInfoList" + deprecated: true + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: null + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 0 + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e9 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: + group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b4 + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 1 custom_request_notification: - description: Custom request notification sent to the requester when the - request is approved. - example: Check your email to register your account. - maxLength: 800 + description: Custom request notification sent to the requester when the request is approved. type: string + maxLength: 800 nullable: true + example: "Check your email to register your account." risk_sensitivity_override: allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" + - $ref: "#/components/schemas/RiskSensitivityEnum" required: - - group_id + - group_id + type: object GroupTypeEnum: description: The type of the group. enum: - - ACTIVE_DIRECTORY_GROUP - - AWS_SSO_GROUP - - DATABRICKS_ACCOUNT_GROUP - - DUO_GROUP - - GIT_HUB_TEAM - - GIT_LAB_GROUP - - GOOGLE_GROUPS_GROUP - - GOOGLE_GROUPS_GKE_GROUP - - LDAP_GROUP - - OKTA_GROUP - - OKTA_GROUP_RULE - - TAILSCALE_GROUP - - OPAL_GROUP - - OPAL_ACCESS_RULE - - AZURE_AD_SECURITY_GROUP - - AZURE_AD_MICROSOFT_365_GROUP - - CONNECTOR_GROUP - - SNOWFLAKE_ROLE - - WORKDAY_USER_SECURITY_GROUP + - ACTIVE_DIRECTORY_GROUP + - AWS_SSO_GROUP + - DATABRICKS_ACCOUNT_GROUP + - DUO_GROUP + - GIT_HUB_TEAM + - GIT_LAB_GROUP + - GOOGLE_GROUPS_GROUP + - GOOGLE_GROUPS_GKE_GROUP + - LDAP_GROUP + - OKTA_GROUP + - OKTA_GROUP_RULE + - TAILSCALE_GROUP + - OPAL_GROUP + - OPAL_ACCESS_RULE + - AZURE_AD_SECURITY_GROUP + - AZURE_AD_MICROSOFT_365_GROUP + - CONNECTOR_GROUP + - SNOWFLAKE_ROLE + - WORKDAY_USER_SECURITY_GROUP + - PAGERDUTY_ON_CALL_SCHEDULE + - INCIDENTIO_ON_CALL_SCHEDULE + - ROOTLY_ON_CALL_SCHEDULE + - DEVIN_GROUP example: OPAL_GROUP type: string ResourceTypeEnum: description: The type of the resource. enum: - - AWS_IAM_ROLE - - AWS_EC2_INSTANCE - - AWS_EKS_CLUSTER - - AWS_RDS_POSTGRES_CLUSTER - - AWS_RDS_POSTGRES_INSTANCE - - AWS_RDS_MYSQL_CLUSTER - - AWS_RDS_MYSQL_INSTANCE - - AWS_ACCOUNT - - AWS_SSO_PERMISSION_SET - - AWS_ORGANIZATIONAL_UNIT - - AZURE_MANAGEMENT_GROUP - - AZURE_RESOURCE_GROUP - - AZURE_SUBSCRIPTION - - AZURE_VIRTUAL_MACHINE - - AZURE_STORAGE_ACCOUNT - - AZURE_STORAGE_CONTAINER - - AZURE_SQL_SERVER - - AZURE_SQL_MANAGED_INSTANCE - - AZURE_SQL_DATABASE - - AZURE_SQL_MANAGED_DATABASE - - AZURE_USER_ASSIGNED_MANAGED_Identity - - AZURE_ENTRA_ID_ROLE - - AZURE_ENTERPRISE_APP - - CUSTOM - - CUSTOM_CONNECTOR - - DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL - - GCP_ORGANIZATION - - GCP_BUCKET - - GCP_COMPUTE_INSTANCE - - GCP_FOLDER - - GCP_GKE_CLUSTER - - GCP_PROJECT - - GCP_CLOUD_SQL_POSTGRES_INSTANCE - - GCP_CLOUD_SQL_MYSQL_INSTANCE - - GCP_BIG_QUERY_DATASET - - GCP_BIG_QUERY_TABLE - - GCP_SERVICE_ACCOUNT - - GIT_HUB_REPO - - GIT_HUB_ORG_ROLE - - GIT_LAB_PROJECT - - GOOGLE_WORKSPACE_ROLE - - MONGO_INSTANCE - - MONGO_ATLAS_INSTANCE - - OKTA_APP - - OKTA_ROLE - - OPAL_ROLE - - OPAL_SCOPED_ROLE - - PAGERDUTY_ROLE - - TAILSCALE_SSH - - SALESFORCE_PERMISSION_SET - - SALESFORCE_PROFILE - - SALESFORCE_ROLE - - SNOWFLAKE_DATABASE - - SNOWFLAKE_SCHEMA - - SNOWFLAKE_TABLE - - WORKDAY_ROLE - - MYSQL_INSTANCE - - MARIADB_INSTANCE - - POSTGRES_INSTANCE - - TELEPORT_ROLE - - ILEVEL_ADVANCED_ROLE - - DATASTAX_ASTRA_ROLE - - COUPA_ROLE + - AWS_IAM_ROLE + - AWS_EC2_INSTANCE + - AWS_EKS_CLUSTER + - AWS_RDS_POSTGRES_CLUSTER + - AWS_RDS_POSTGRES_INSTANCE + - AWS_RDS_MYSQL_CLUSTER + - AWS_RDS_MYSQL_INSTANCE + - AWS_ACCOUNT + - AWS_SSO_PERMISSION_SET + - AWS_ORGANIZATIONAL_UNIT + - AZURE_MANAGEMENT_GROUP + - AZURE_RESOURCE_GROUP + - AZURE_SUBSCRIPTION + - AZURE_VIRTUAL_MACHINE + - AZURE_STORAGE_ACCOUNT + - AZURE_STORAGE_CONTAINER + - AZURE_SQL_SERVER + - AZURE_SQL_MANAGED_INSTANCE + - AZURE_SQL_DATABASE + - AZURE_SQL_MANAGED_DATABASE + - AZURE_USER_ASSIGNED_MANAGED_Identity + - AZURE_ENTRA_ID_ROLE + - AZURE_ENTERPRISE_APP + - CUSTOM + - CUSTOM_CONNECTOR + - DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL + - GCP_ORGANIZATION + - GCP_BUCKET + - GCP_COMPUTE_INSTANCE + - GCP_FOLDER + - GCP_GKE_CLUSTER + - GCP_PROJECT + - GCP_CLOUD_SQL_POSTGRES_INSTANCE + - GCP_CLOUD_SQL_MYSQL_INSTANCE + - GCP_BIG_QUERY_DATASET + - GCP_BIG_QUERY_TABLE + - GCP_SERVICE_ACCOUNT + - GIT_HUB_REPO + - GIT_HUB_ORG_ROLE + - GIT_LAB_PROJECT + - GOOGLE_WORKSPACE_ROLE + - MONGO_INSTANCE + - MONGO_ATLAS_INSTANCE + - OKTA_APP + - OKTA_ROLE + - OPAL_ROLE + - OPAL_SCOPED_ROLE + - PAGERDUTY_ROLE + - TAILSCALE_SSH + - SALESFORCE_PERMISSION_SET + - SALESFORCE_PROFILE + - SALESFORCE_ROLE + - SNOWFLAKE_DATABASE + - SNOWFLAKE_SCHEMA + - SNOWFLAKE_TABLE + - WORKDAY_ROLE + - MYSQL_INSTANCE + - MARIADB_INSTANCE + - POSTGRES_INSTANCE + - TELEPORT_ROLE + - ILEVEL_ADVANCED_ROLE + - DATASTAX_ASTRA_ROLE + - COUPA_ROLE + - CURSOR_ORGANIZATION + - OPENAI_PLATFORM_PROJECT + - OPENAI_PLATFORM_SERVICE_ACCOUNT + - ANTHROPIC_WORKSPACE + - GIT_HUB_ORG + - ORACLE_FUSION_ROLE + - DEVIN_ORGANIZATION + - DEVIN_ROLE + - VAULT_SECRET + - VAULT_POLICY + - VAULT_OIDC_ROLE example: AWS_IAM_ROLE type: string VisibilityTypeEnum: description: The visibility level of the entity. enum: - - GLOBAL - - LIMITED + - GLOBAL + - LIMITED example: GLOBAL type: string RolePermissionNameEnum: description: The name of the role permission. enum: - - READ - - READ_ASSIGNMENTS - - CREATE - - IMPORT - - EXPORT - - SYNC - - DELETE - - READ_SETTINGS - - EDIT_TAGS - - EDIT_SETTINGS - - EDIT_SYNC_SETTINGS - - EDIT_ASSIGNMENTS - - EDIT_REQUEST_CONFIGURATIONS - - EDIT_EVENT_STREAM - - ASSIGN_UAR_REVIEWERS - - SEND_REMINDERS - - STOP - - REQUEST_ON_BEHALF - - RESET_MFA + - READ + - READ_ASSIGNMENTS + - CREATE + - IMPORT + - EXPORT + - SYNC + - DELETE + - READ_SETTINGS + - EDIT_TAGS + - EDIT_SETTINGS + - EDIT_SYNC_SETTINGS + - EDIT_ASSIGNMENTS + - EDIT_REQUEST_CONFIGURATIONS + - EDIT_EVENT_STREAM + - ASSIGN_UAR_REVIEWERS + - SEND_REMINDERS + - STOP + - REQUEST_ON_BEHALF + - RESET_MFA example: READ type: string RolePermissionTargetTypeEnum: description: The type of the target for the role permission. enum: - - RESOURCE - - CONNECTION - - GROUP - - BUNDLE - - USER - - ACCESS_REVIEW + - RESOURCE + - CONNECTION + - GROUP + - BUNDLE + - USER + - ACCESS_REVIEW + - OWNER example: RESOURCE type: string UpdateGroupResourcesInfo: example: group_resources: - - resource_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 - access_level_remote_id: "" - - resource_id: 6f99639b-7928-4043-8184-47cbc6766145 - access_level_remote_id: write + - resource_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 + access_level_remote_id: "" + - resource_id: 6f99639b-7928-4043-8184-47cbc6766145 + access_level_remote_id: "write" properties: resources: items: $ref: "#/components/schemas/ResourceWithAccessLevel" type: array + type: object required: - - resources + - resources IdpGroupMapping: description: Information about a group mapping. example: app_resource_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 group_id: 6f99639b-7928-4043-8184-47cbc6766145 - alias: finance-team - hidden_from_end_user: false + alias: "finance-team" + hidden_from_end_user: False properties: app_resource_id: description: The ID of the app resource. @@ -6708,34 +6809,35 @@ components: example: finance-team type: string hidden_from_end_user: - description: A bool representing whether or not the group is hidden from - the end user. - example: false + description: A bool representing whether or not the group is hidden from the end user. + example: False type: boolean required: - - group_id - - hidden_from_end_user + - group_id + - hidden_from_end_user + type: object IdpGroupMappingList: example: mappings: - - group_id: 6f99639b-7928-4043-8184-47cbc6766145 - alias: finance-team - hidden_from_end_user: false - - group_id: 7870617d-e72a-47f5-a84c-693817ab4567 - alias: engineering-team - hidden_from_end_user: false + - group_id: 6f99639b-7928-4043-8184-47cbc6766145 + alias: "finance-team" + hidden_from_end_user: False + - group_id: 7870617d-e72a-47f5-a84c-693817ab4567 + alias: "engineering-team" + hidden_from_end_user: False properties: mappings: items: $ref: "#/components/schemas/IdpGroupMapping" type: array + type: object required: - - mappings + - mappings ResourceWithAccessLevel: description: Information about a resource and corresponding access level example: resource_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - access_level_remote_id: write + access_level_remote_id: "write" properties: resource_id: description: The ID of the resource. @@ -6747,12 +6849,13 @@ components: example: write type: string required: - - resource_id + - resource_id + type: object GroupWithAccessLevel: description: Information about a group and corresponding access level example: group_id: 7870617d-e72a-47f5-a84c-693817ab4567 - access_level_remote_id: write + access_level_remote_id: "write" properties: group_id: description: The ID of the group. @@ -6764,182 +6867,184 @@ components: example: write type: string required: - - group_id + - group_id + type: object GroupResourceList: example: group_resources: - - group_id: 7870617d-e72a-47f5-a84c-693817ab4567 - resource_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 - access_level_remote_id: "" - - group_id: 50333e67-73ce-47ab-b049-d8abcd45f7a1 - resource_id: 6f99639b-7928-4043-8184-47cbc6766145 - access_level_remote_id: write + - group_id: 7870617d-e72a-47f5-a84c-693817ab4567 + resource_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 + access_level_remote_id: "" + - group_id: 50333e67-73ce-47ab-b049-d8abcd45f7a1 + resource_id: 6f99639b-7928-4043-8184-47cbc6766145 + access_level_remote_id: "write" properties: group_resources: items: $ref: "#/components/schemas/GroupResource" type: array + type: object required: - - group_resources + - group_resources GroupContainingGroupList: example: containing_groups: - - containing_group_id: 7870617d-e72a-47f5-a84c-693817ab4567 - - containing_group_id: 50333e67-73ce-47ab-b049-d8abcd45f7a1 + - containing_group_id: 7870617d-e72a-47f5-a84c-693817ab4567 + - containing_group_id: 50333e67-73ce-47ab-b049-d8abcd45f7a1 properties: containing_groups: items: $ref: "#/components/schemas/GroupContainingGroup" type: array + type: object required: - - containing_groups + - containing_groups MessageChannelList: example: channels: - - message_channel_id: 7870617d-e72a-47f5-a84c-693817ab4567 - third_party_provider: SLACK - remote_id: C03FJR97276 - name: api-team-audit-channel - is_private: false - - message_channel_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 - third_party_provider: SLACK - remote_id: A4FJR97365D - name: api-team-monitor-channel - is_private: false + - message_channel_id: 7870617d-e72a-47f5-a84c-693817ab4567 + third_party_provider: SLACK + remote_id: C03FJR97276 + name: api-team-audit-channel + is_private: False + - message_channel_id: 1520617d-e72a-47f5-a84c-693817ab48ad2 + third_party_provider: SLACK + remote_id: A4FJR97365D + name: api-team-monitor-channel + is_private: False properties: channels: items: $ref: "#/components/schemas/MessageChannel" type: array + type: object required: - - channels + - channels OnCallScheduleList: example: on_call_schedules: - - on_call_schedule_id: 50d5e9f6-f23f-4d5a-ae91-b2640cf3975e - third_party_provider: PAGER_DUTY - remote_id: P7OWH2R - name: Customer Support On-Call - - on_call_schedule_id: 4d61592c-ed61-4b13-8f22-2fac1c49f574 - third_party_provider: OPSGENIE - remote_id: 72a8cb04-9e25-465d-a932-992f72077c61 - name: Opal Backend On-Call + - on_call_schedule_id: 50d5e9f6-f23f-4d5a-ae91-b2640cf3975e + third_party_provider: PAGER_DUTY + remote_id: P7OWH2R + name: Customer Support On-Call + - on_call_schedule_id: 4d61592c-ed61-4b13-8f22-2fac1c49f574 + third_party_provider: OPSGENIE + remote_id: 72a8cb04-9e25-465d-a932-992f72077c61 + name: Opal Backend On-Call properties: on_call_schedules: items: $ref: "#/components/schemas/OnCallSchedule" type: array + type: object required: - - on_call_schedules + - on_call_schedules VisibilityInfo: description: Visibility infomation of an entity. example: visibility: LIMITED visibility_group_ids: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 + - 7870617d-e72a-47f5-a84c-693817ab4567 + - 1520617d-e72a-47f5-a84c-693817ab48ad2 properties: visibility: $ref: "#/components/schemas/VisibilityTypeEnum" visibility_group_ids: items: - format: uuid type: string + format: uuid type: array + type: object required: - - visibility + - visibility MessageChannelIDList: description: A list of message channel IDs. example: message_channel_ids: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 + - 7870617d-e72a-47f5-a84c-693817ab4567 + - 1520617d-e72a-47f5-a84c-693817ab48ad2 properties: message_channel_ids: items: - format: uuid type: string + format: uuid type: array + type: object required: - - message_channel_ids + - message_channel_ids OnCallScheduleIDList: - description: "A list of on call schedule Opal UUIDs. To get the matching remote\ - \ IDs, use the /on-call-schedules endpoints." + description: A list of on call schedule Opal UUIDs. To get the matching remote IDs, use the /on-call-schedules endpoints. example: on_call_schedule_ids: - - 9546209c-42c2-4801-96d7-9ec42df0f59c - - bb0197c0-5ea5-45d9-b3b7-b6c439be6435 + - 9546209c-42c2-4801-96d7-9ec42df0f59c + - bb0197c0-5ea5-45d9-b3b7-b6c439be6435 properties: on_call_schedule_ids: items: - format: uuid type: string + format: uuid type: array + type: object required: - - on_call_schedule_ids + - on_call_schedule_ids ReviewerIDList: description: A list of reviewer IDs. example: reviewer_ids: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 + - 7870617d-e72a-47f5-a84c-693817ab4567 + - 1520617d-e72a-47f5-a84c-693817ab48ad2 properties: reviewer_ids: items: - format: uuid type: string + format: uuid type: array + type: object required: - - reviewer_ids + - reviewer_ids ReviewerStageList: - example: - stages: - - owner_ids: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 - - owner_ids: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 properties: stages: description: A list of reviewer stages. items: $ref: "#/components/schemas/ReviewerStage" type: array + type: object required: - - stages + - stages ReviewerStage: description: A reviewer stage. example: owner_ids: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 + - 7870617d-e72a-47f5-a84c-693817ab4567 + - 1520617d-e72a-47f5-a84c-693817ab48ad2 properties: require_manager_approval: description: Whether this reviewer stage should require manager approval. - example: false + example: False type: boolean require_admin_approval: description: Whether this reviewer stage should require admin approval. - example: false + example: False type: boolean operator: - description: The operator of the reviewer stage. Admin and manager approval - are also treated as reviewers. + description: The operator of the reviewer stage. Admin and manager approval are also treated as reviewers. enum: - - AND - - OR + - AND + - OR example: AND type: string owner_ids: items: - format: uuid type: string + format: uuid type: array + type: object required: - - operator - - owner_ids - - require_manager_approval + - operator + - require_manager_approval + - owner_ids + - stage MessageChannel: description: |- # MessageChannel Object @@ -6953,7 +7058,7 @@ components: third_party_provider: SLACK remote_id: C03FJR97276 name: api-team-audit-channel - is_private: false + is_private: False properties: message_channel_id: description: The ID of the message channel. @@ -6972,10 +7077,11 @@ components: type: string is_private: description: A bool representing whether or not the message channel is private. - example: false + example: False type: boolean + type: object required: - - message_channel_id + - message_channel_id CreateMessageChannelInfo: description: |- # CreateMessageChannelInfo Object @@ -6991,13 +7097,14 @@ components: description: The remote ID of the message channel example: C03FJR97276 type: string + type: object required: - - remote_id - - third_party_provider + - third_party_provider + - remote_id MessageChannelProviderEnum: description: The third party provider of the message channel. enum: - - SLACK + - SLACK example: SLACK type: string OnCallSchedule: @@ -7029,6 +7136,9 @@ components: description: The name of the on call schedule. example: Customer Support On-Call type: string + type: object + required: + - message_channel_id CreateOnCallScheduleInfo: description: |- # CreateOnCallScheduleInfo Object @@ -7044,133 +7154,1005 @@ components: description: The remote ID of the on call schedule example: PNZNINN type: string + type: object required: - - remote_id - - third_party_provider + - third_party_provider + - remote_id OnCallScheduleProviderEnum: description: The third party provider of the on call schedule. enum: - - OPSGENIE - - PAGER_DUTY + - OPSGENIE + - PAGER_DUTY example: PAGER_DUTY type: string TicketingProviderEnum: description: The third party ticketing platform provider. enum: - - JIRA - - LINEAR - - SERVICE_NOW + - JIRA + - LINEAR + - SERVICE_NOW example: LINEAR type: string + RDSEngineEnum: + type: string + description: "The database engine for the RDS instance." + enum: [MYSQL, POSTGRESQL] GroupRemoteInfo: - description: "Information that defines the remote group. This replaces the deprecated\ - \ remote_id and metadata fields. If remote_info is provided, a group will\ - \ be imported into Opal. For group types that support group creation through\ - \ Opal, a new group will be created if remote_info is not provided." + description: Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. properties: active_directory_group: - $ref: "#/components/schemas/GroupRemoteInfo_active_directory_group" + description: Remote info for Active Directory group. + properties: + group_id: + description: The id of the Google group. + example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + type: string + type: object + required: + - group_id + tailscale_group: + description: Remote info for Tailscale group. + properties: + group_id: + description: The id of the Tailscale group. + example: 898931321 + type: string + type: object + required: + - group_id + aws_sso_group: + description: Remote info for AWS SSO group. + properties: + group_id: + description: The id of the AWS SSO group. + example: 898931321 + type: string + type: object + required: + - group_id + databricks_account_group: + description: Remote info for Databricks account group. + properties: + group_id: + description: The id of the Databricks account group. + example: 898931321 + type: string + type: object + required: + - group_id + connector_group: + description: Remote info for Connector group. + properties: + group_id: + description: The id of the Connector group. + example: 898931321 + type: string + type: object + required: + - group_id github_team: - $ref: "#/components/schemas/GroupRemoteInfo_github_team" + description: Remote info for GitHub team. + properties: + team_id: + deprecated: true + description: The id of the GitHub team. + example: 898931321 + type: string + team_slug: + description: The slug of the GitHub team. + example: opal-security + type: string + type: object + required: + - team_slug gitlab_group: - $ref: "#/components/schemas/GroupRemoteInfo_gitlab_group" + description: Remote info for Gitlab group. + properties: + group_id: + description: The id of the Gitlab group. + example: 898931321 + type: string + type: object + required: + - group_id google_group: - $ref: "#/components/schemas/GroupRemoteInfo_google_group" + description: Remote info for Google group. + properties: + group_id: + description: The id of the Google group. + example: 1y6w882181n7sg + type: string + type: object + required: + - group_id ldap_group: - $ref: "#/components/schemas/GroupRemoteInfo_ldap_group" + description: Remote info for LDAP group. + properties: + group_id: + description: The id of the LDAP group. + example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + type: string + type: object + required: + - group_id okta_group: - $ref: "#/components/schemas/GroupRemoteInfo_okta_group" + description: Remote info for Okta Directory group. + properties: + group_id: + description: The id of the Okta Directory group. + example: 00gjs33pe8rtmRrp3rd6 + type: string + type: object + required: + - group_id duo_group: - $ref: "#/components/schemas/GroupRemoteInfo_duo_group" + description: Remote info for Duo Security group. + properties: + group_id: + description: The id of the Duo Security group. + example: DSRD8W89B9DNDBY4RHAC + type: string + type: object + required: + - group_id azure_ad_security_group: - $ref: "#/components/schemas/GroupRemoteInfo_azure_ad_security_group" + description: Remote info for Microsoft Entra ID Security group. + properties: + group_id: + description: The id of the Microsoft Entra ID Security group. + example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + type: string + type: object + required: + - group_id azure_ad_microsoft_365_group: - $ref: "#/components/schemas/GroupRemoteInfo_azure_ad_microsoft_365_group" + description: Remote info for Microsoft Entra ID Microsoft 365 group. + properties: + group_id: + description: The id of the Microsoft Entra ID Microsoft 365 group. + example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + type: string + type: object + required: + - group_id snowflake_role: - $ref: "#/components/schemas/GroupRemoteInfo_snowflake_role" + description: Remote info for Snowflake role. + properties: + role_id: + description: The id of the Snowflake role. + example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + type: string + type: object + required: + - role_id okta_group_rule: - $ref: "#/components/schemas/GroupRemoteInfo_okta_group_rule" + description: Remote info for Okta Directory group rule. + properties: + rule_id: + description: The id of the Okta group rule. + example: 0pr3f7zMZZHPgUoWO0g4 + type: string + type: object + required: + - rule_id workday_user_security_group: - $ref: "#/components/schemas/GroupRemoteInfo_workday_user_security_group" + description: Remote info for Workday User Security group. + properties: + group_id: + description: The id of the Workday User Security group. + example: 123abc456def + type: string + type: object + required: + - group_id + pagerduty_on_call_schedule: + description: Remote info for PagerDuty on-call schedule group. + properties: + schedule_id: + description: The id of the PagerDuty on-call schedule. + example: PNZNINN + type: string + type: object + required: + - schedule_id + incidentio_on_call_schedule: + description: Remote info for Incident.io on-call schedule group. + properties: + schedule_id: + description: The id of the Incident.io on-call schedule. + example: 01HZ8XQM9ZQX8RKMZQ8ZQX8RK + type: string + type: object + required: + - schedule_id + rootly_on_call_schedule: + description: Remote info for Rootly on-call schedule group. + properties: + schedule_id: + description: The id of the Rootly on-call schedule. + example: 01HZ8XQM9ZQX8RKMZQ8ZQX8RK + type: string + type: object + required: + - schedule_id + devin_group: + description: Remote info for Devin group. + properties: + group_name: + description: The name of the Devin group. + example: devin-group-01 + type: string + type: object + required: + - group_name + type: object ResourceRemoteInfo: - description: Information that defines the remote resource. This replaces the - deprecated remote_id and metadata fields. - properties: + description: Information that defines the remote resource. This replaces the deprecated remote_id and metadata fields. + properties: + databricks_account_service_principal: + description: Remote info for Databricks account service principal. + properties: + application_id: + description: The application ID of the service principal. + example: 00000000-0000-0000-0000-000000000000 + type: string + resource_id: + description: The resource ID of the service principal. + example: 00000000-0000-0000-0000-000000000000 + type: string + type: object + required: + - application_id + - resource_id + azure_subscription: + description: Remote info for Azure subscription. + properties: + resource_id: + description: The ARM resource ID of the subscription. + example: /subscriptions/00000000-0000-0000-0000-000000000000 + type: string + type: object + required: + - resource_id + azure_resource_group: + description: Remote info for Azure resource group. + properties: + resource_id: + description: The ARM resource ID of the resource group. + example: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/my-rg + type: string + type: object + required: + - resource_id + azure_management_group: + description: Remote info for Azure management group. + properties: + resource_id: + description: The ARM resource ID of the management group. + example: /providers/Microsoft.Management/managementGroups/my-mg + type: string + type: object + required: + - resource_id + azure_virtual_machine: + description: Remote info for Azure virtual machine. + properties: + resource_id: + description: The ARM resource ID of the virtual machine. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Compute/virtualMachines/vm01 + type: string + type: object + required: + - resource_id + azure_storage_account: + description: Remote info for Azure storage account. + properties: + resource_id: + description: The ARM resource ID of the storage account. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01 + type: string + type: object + required: + - resource_id + azure_storage_container: + description: Remote info for Azure storage container. + properties: + resource_id: + description: The ARM resource ID of the storage container. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01/blobServices/default/containers/c01 + type: string + type: object + required: + - resource_id + azure_sql_server: + description: Remote info for Azure SQL server. + properties: + resource_id: + description: The ARM resource ID of the SQL server. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01 + type: string + type: object + required: + - resource_id + azure_sql_database: + description: Remote info for Azure SQL database. + properties: + resource_id: + description: The ARM resource ID of the SQL database. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/servers/sqldev01/databases/db01 + type: string + type: object + required: + - resource_id + azure_sql_managed_instance: + description: Remote info for Azure SQL managed instance. + properties: + resource_id: + description: The ARM resource ID of the SQL managed instance. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01 + type: string + type: object + required: + - resource_id + azure_sql_managed_database: + description: Remote info for Azure SQL managed database. + properties: + resource_id: + description: The ARM resource ID of the SQL managed database. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01/databases/midb01 + type: string + type: object + required: + - resource_id + azure_user_assigned_managed_identity: + description: Remote info for Azure user assigned managed identity. + properties: + resource_id: + description: The ARM resource ID of the user assigned managed identity. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id01 + type: string + type: object + required: + - resource_id + azure_enterprise_app: + description: Remote info for Azure Enterprise App. + properties: + resource_id: + description: The remote application identifier (service principal or application object ID). + example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee + type: string + type: object + required: + - resource_id + azure_entra_id_role: + description: Remote info for Azure Entra ID role. + properties: + resource_id: + description: The remote role identifier from Entra (object ID). + example: 11111111-2222-3333-4444-555555555555 + type: string + type: object + required: + - resource_id aws_organizational_unit: - $ref: "#/components/schemas/ResourceRemoteInfo_aws_organizational_unit" + description: Remote info for AWS organizational unit. + properties: + parent_id: + description: The id of the parent organizational unit. + example: ou-1234 + type: string + organizational_unit_id: + description: The id of the AWS organizational unit that is being created. + example: ou-1234 + type: string + type: object + required: + - organizational_unit_id aws_account: - $ref: "#/components/schemas/ResourceRemoteInfo_aws_account" + description: Remote info for AWS account. + properties: + account_id: + description: The id of the AWS account. + example: 234234234234 + type: string + organizational_unit_id: + description: The id of the AWS organizational unit. Required only if customer has OUs enabled. + example: ou-1234 + type: string + type: object + required: + - account_id aws_permission_set: - $ref: "#/components/schemas/ResourceRemoteInfo_aws_permission_set" + description: Remote info for AWS Identity Center permission set. + properties: + arn: + description: The ARN of the permission set. + example: arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9 + type: string + account_id: + description: The ID of an AWS account to which this permission set is provisioned. + example: 234234234234 + type: string + type: object + required: + - arn + - account_id aws_iam_role: - $ref: "#/components/schemas/ResourceRemoteInfo_aws_iam_role" + description: Remote info for AWS IAM role. + properties: + arn: + description: The ARN of the IAM role. + example: arn:aws:iam::179308207300:role/MyRole + type: string + account_id: + description: The id of the AWS account. Required for AWS Organizations. + example: 234234234234 + type: string + type: object + required: + - arn aws_ec2_instance: - $ref: "#/components/schemas/ResourceRemoteInfo_aws_ec2_instance" + description: Remote info for AWS EC2 instance. + properties: + instance_id: + description: The instanceId of the EC2 instance. + example: i-13f1a1e2899f9e93a + type: string + region: + description: The region of the EC2 instance. + example: us-east-2 + type: string + account_id: + description: The id of the AWS account. Required for AWS Organizations. + example: 234234234234 + type: string + type: object + required: + - instance_id + - region + aws_rds_cluster: + description: Remote info for AWS RDS cluster. + properties: + cluster_id: + description: The clusterId of the RDS cluster. + example: demo-mysql-cluster + type: string + region: + description: The region of the RDS cluster. + example: us-east-2 + type: string + resource_id: + description: The resourceId of the RDS cluster. + example: cluster-AOO8V0XUCNU13XLZXQDQRSN0NQ + type: string + account_id: + description: The id of the AWS account. Required for AWS Organizations. + example: 234234234234 + type: string + database_name: + description: The name of the database in the RDS cluster. This can be the value of the tag `opal:database-name` or the database name. + example: mydatabase + type: string + engine: + allOf: + - $ref: "#/components/schemas/RDSEngineEnum" + type: object + required: + - cluster_id + - region + - resource_id + - account_id + - database_name + - engine aws_rds_instance: - $ref: "#/components/schemas/ResourceRemoteInfo_aws_rds_instance" + description: Remote info for AWS RDS instance. + properties: + instance_id: + description: The instanceId of the RDS instance. + example: demo-mysql-db + type: string + region: + description: The region of the RDS instance. + example: us-east-2 + type: string + resource_id: + description: The resourceId of the RDS instance. + example: db-AOO8V0XUCNU13XLZXQDQRSN0NQ + type: string + account_id: + description: The id of the AWS account. Required for AWS Organizations. + example: 234234234234 + type: string + type: object + required: + - instance_id + - region + - resource_id aws_eks_cluster: - $ref: "#/components/schemas/ResourceRemoteInfo_aws_eks_cluster" + description: Remote info for AWS EKS cluster. + properties: + arn: + description: The ARN of the EKS cluster. + example: arn:aws:eks:us-east-2:234234234234:cluster/testcluster + type: string + account_id: + description: The id of the AWS account. Required for AWS Organizations. + example: 234234234234 + type: string + type: object + required: + - arn custom_connector: - $ref: "#/components/schemas/ResourceRemoteInfo_custom_connector" + description: Remote info for a custom connector resource. + properties: + remote_resource_id: + description: The id of the resource in the end system + example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + type: string + can_have_usage_events: + description: A bool representing whether or not the resource can have usage data. + example: False + type: boolean + type: object + required: + - remote_resource_id + - can_have_usage_events gcp_organization: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_organization" + description: Remote info for GCP organization. + properties: + organization_id: + description: The id of the organization. + example: organizations/898931321 + type: string + type: object + required: + - organization_id gcp_bucket: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_bucket" + description: Remote info for GCP bucket. + properties: + bucket_id: + description: The id of the bucket. + example: example-bucket-898931321 + type: string + type: object + required: + - bucket_id gcp_compute_instance: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_compute_instance" + description: Remote info for GCP compute instance. + properties: + instance_id: + description: The id of the instance. + example: example-instance-898931321 + type: string + project_id: + description: The id of the project the instance is in. + example: example-project-898931321 + type: string + zone: + description: The zone the instance is in. + example: us-central1-a + type: string + type: object + required: + - instance_id + - project_id + - zone gcp_big_query_dataset: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_big_query_dataset" + description: Remote info for GCP BigQuery Dataset. + properties: + project_id: + description: The id of the project the dataset is in. + example: example-project-898931321 + type: string + dataset_id: + description: The id of the dataset. + example: example-dataset-898931321 + type: string + type: object + required: + - project_id + - dataset_id gcp_big_query_table: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_big_query_table" + description: Remote info for GCP BigQuery Table. + properties: + project_id: + description: The id of the project the table is in. + example: example-project-898931321 + type: string + dataset_id: + description: The id of the dataset the table is in. + example: example-dataset-898931321 + type: string + table_id: + description: The id of the table. + example: example-table-898931321 + type: string + type: object + required: + - project_id + - dataset_id + - table_id gcp_folder: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_folder" + description: Remote info for GCP folder. + properties: + folder_id: + description: The id of the folder. + example: folder/898931321 + type: string + type: object + required: + - folder_id gcp_gke_cluster: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_gke_cluster" + description: Remote info for GCP GKE cluster. + properties: + cluster_name: + description: The name of the GKE cluster. + example: example-cluster-898931321 + type: string + type: object + required: + - cluster_name gcp_project: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_project" + description: Remote info for GCP project. + properties: + project_id: + description: The id of the project. + example: example-project-898931321 + type: string + type: object + required: + - project_id gcp_sql_instance: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_sql_instance" + description: Remote info for GCP SQL instance. + properties: + instance_id: + description: The id of the SQL instance. + example: example-sql-898931321 + type: string + project_id: + description: The id of the project the instance is in. + example: example-project-898931321 + type: string + type: object + required: + - instance_id + - project_id gcp_service_account: - $ref: "#/components/schemas/ResourceRemoteInfo_gcp_service_account" + description: Remote info for a GCP service account. + properties: + email: + description: The email of the service account. + example: production@project.iam.gserviceaccount.com + type: string + service_account_id: + description: The id of the service account. + example: 103561576023829463298 + type: string + project_id: + description: The id of the project the service account is in. + example: example-project-898931321 + type: string + type: object + required: + - email + - service_account_id + - project_id google_workspace_role: - $ref: "#/components/schemas/ResourceRemoteInfo_google_workspace_role" + description: Remote info for GCP workspace role. + properties: + role_id: + description: The id of the role. + example: google-workspace-role:01234567890123456 + type: string + type: object + required: + - role_id github_repo: - $ref: "#/components/schemas/ResourceRemoteInfo_github_repo" + description: Remote info for GitHub repository. + properties: + repo_id: + deprecated: true + description: The id of the repository. + example: 898931321 + type: string + repo_name: + description: The name of the repository. + example: Opal Security + type: string + type: object + required: + - repo_name github_org_role: - $ref: "#/components/schemas/ResourceRemoteInfo_github_org_role" + description: Remote info for GitHub organization role. + properties: + role_id: + description: The id of the role. + example: 112233 + type: string + type: object + required: + - role_id + github_org: + description: Remote info for GitHub organization. + properties: + org_name: + description: The name of the organization. + example: Opal Security + type: string + type: object + required: + - org_name gitlab_project: - $ref: "#/components/schemas/ResourceRemoteInfo_gitlab_project" + description: Remote info for Gitlab project. + properties: + project_id: + description: The id of the project. + example: 898931321 + type: string + type: object + required: + - project_id okta_app: - $ref: "#/components/schemas/ResourceRemoteInfo_okta_app" + description: Remote info for Okta directory app. + properties: + app_id: + description: The id of the app. + example: a9dfas0f678asdf67867 + type: string + type: object + required: + - app_id okta_standard_role: - $ref: "#/components/schemas/ResourceRemoteInfo_okta_standard_role" + description: Remote info for Okta directory standard role. + properties: + role_type: + description: The type of the standard role. + example: ORG_ADMIN + type: string + type: object + required: + - role_type okta_custom_role: - $ref: "#/components/schemas/ResourceRemoteInfo_okta_custom_role" + description: Remote info for Okta directory custom role. + properties: + role_id: + description: The id of the custom role. + example: a9dfas0f678asdf67867 + type: string + type: object + required: + - role_id + snowflake_database: + description: Remote info for Snowflake database. + properties: + database_name: + description: The name of the database. + example: mydatabase + type: string + type: object + required: + - database_name + snowflake_schema: + description: Remote info for Snowflake schema. + properties: + database_name: + description: The name of the database the schema is in. + example: mydatabase + type: string + schema_name: + description: The name of the schema. + example: mycatalogschema + type: string + type: object + required: + - database_name + - schema_name + snowflake_table: + description: Remote info for Snowflake table. + properties: + database_name: + description: The name of the database the table is in. + example: mydatabase + type: string + schema_name: + description: The name of the schema the table is in. + example: mycatalogschema + type: string + table_name: + description: The name of the table. + example: myitemstable + type: string + type: object + required: + - database_name + - schema_name + - table_name + ilevel_advanced_role: + description: Remote info for iLevel Advanced role. + properties: + role_name: + description: The name of the role. + example: IT User + type: string + type: object + required: + - role_name + tailscale_ssh: + description: Remote info for Tailscale SSH tag. + properties: + tag_name: + description: The name of the tag. + example: admin + type: string + type: object + required: + - tag_name pagerduty_role: - $ref: "#/components/schemas/ResourceRemoteInfo_pagerduty_role" + description: Remote info for Pagerduty role. + properties: + role_name: + description: The name of the role. + example: owner + type: string + type: object + required: + - role_name + workday_role: + description: Remote info for Workday role. + properties: + role_id: + description: The id of the role. + example: 123abc456def + type: string + type: object + required: + - role_id + salesforce_permission_set: - $ref: "#/components/schemas/ResourceRemoteInfo_salesforce_permission_set" + description: Remote info for Salesforce permission set. + properties: + permission_set_id: + description: The id of the permission set. + example: 0PS5Y090202wOV7WAM + type: string + type: object + required: + - permission_set_id salesforce_profile: - $ref: "#/components/schemas/ResourceRemoteInfo_salesforce_profile" + description: Remote info for Salesforce profile. + properties: + profile_id: + description: The id of the permission set. + example: 0PS5Y090202wOV7WAM + type: string + user_license_id: + description: The id of the user license. + example: 1005Y030081Qb5XJHS + type: string + type: object + required: + - profile_id + - user_license_id salesforce_role: - $ref: "#/components/schemas/ResourceRemoteInfo_salesforce_role" + description: Remote info for Salesforce role. + properties: + role_id: + description: The id of the role. + example: 0PS5Y090202wOV7WAM + type: string + type: object + required: + - role_id teleport_role: - $ref: "#/components/schemas/ResourceRemoteInfo_teleport_role" + description: Remote info for Teleport role. + properties: + role_name: + description: The name role. + example: admin_role + type: string + type: object + required: + - role_name datastax_astra_role: - $ref: "#/components/schemas/ResourceRemoteInfo_datastax_astra_role" + description: Remote info for an Astra role. + properties: + role_id: + description: The id of the role. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + type: object + required: + - role_id coupa_role: - $ref: "#/components/schemas/ResourceRemoteInfo_coupa_role" + description: Remote info for Coupa role. + properties: + role_id: + description: The id of the role. + example: 999 + type: string + type: object + required: + - role_id + cursor_organization: + description: Remote info for a Cursor organization. + properties: + org_id: + description: The id of the organization. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + type: object + required: + - org_id + openai_platform_project: + description: Remote info for OpenAI Platform project. + properties: + project_id: + description: The id of the project. + example: proj_abc + type: string + type: object + required: + - project_id + openai_platform_service_account: + description: Remote info for OpenAI Platform service account. + properties: + project_id: + description: The id of the project for the service account. + example: proj_abc + type: string + service_account_id: + description: The id of the service account. + example: svc_acct_abc + type: string + type: object + required: + - project_id + - service_account_id + anthropic_workspace: + description: Remote info for Anthropic workspace. + properties: + workspace_id: + description: The id of the workspace. + example: ws-123456 + type: string + type: object + required: + - workspace_id + oracle_fusion_role: + description: Remote info for Oracle Fusion role. + properties: + role_id: + description: The id of the role. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + type: object + required: + - role_id + devin_organization: + description: Remote info for Devin organization. + properties: + org_id: + description: The id of the organization. + example: devin-org-01 + type: string + type: object + required: + - org_id + devin_role: + description: Remote info for Devin role. + properties: + role_id: + description: The id of the role. + example: devin-role-01 + type: string + type: object + required: + - role_id + type: object RiskSensitivityEnum: - description: Indicates the level of potential impact misuse or unauthorized - access may incur. - enum: - - UNKNOWN - - CRITICAL - - HIGH - - MEDIUM - - LOW - - NONE type: string + description: "Indicates the level of potential impact misuse or unauthorized access may incur." + enum: [UNKNOWN, CRITICAL, HIGH, MEDIUM, LOW, NONE] CreateResourceInfo: description: |- # CreateResourceInfo Object @@ -7213,10 +8195,7 @@ components: $ref: "#/components/schemas/ResourceRemoteInfo" remote_resource_id: deprecated: true - description: "Deprecated - use remote_info instead. The ID of the resource\ - \ on the remote system. Include only for items linked to remote systems.\ - \ See [this guide](https://docs.opal.dev/reference/end-system-objects)\ - \ for details on how to specify this field." + description: Deprecated - use remote_info instead. The ID of the resource on the remote system. Include only for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details on how to specify this field. example: API_ACCESS_MANAGEMENT_ADMIN-51d203da-313a-4fd9-8fcf-420ce6312345 type: string metadata: @@ -7454,17 +8433,18 @@ components: type: string custom_request_notification: description: Custom request notification sent upon request approval. - example: Check your email to register your account. - maxLength: 800 type: string + maxLength: 800 nullable: true + example: "Check your email to register your account." risk_sensitivity_override: allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" + - $ref: "#/components/schemas/RiskSensitivityEnum" required: - - app_id - - name - - resource_type + - name + - resource_type + - app_id + type: object CreateBundleInfo: description: |- # CreateBundleInfo Object @@ -7479,20 +8459,20 @@ components: admin_owner_id: 7870617d-e72a-47f5-a84c-693817ab4567 properties: name: - description: The name of the bundle. - example: Test Bundle type: string + description: The name of the bundle. + example: "Test Bundle" description: - description: A brief description of the bundle. - example: This is a test bundle type: string + description: A brief description of the bundle. + example: "This is a test bundle" admin_owner_id: - description: The ID of the bundle's admin owner. - example: 7c86c85d-0651-43e2-a748-d69d658418e8 type: string + description: The ID of the bundle's admin owner. + example: "7c86c85d-0651-43e2-a748-d69d658418e8" required: - - admin_owner_id - - name + - name + - admin_owner_id CreateGroupInfo: description: |- # CreateGroupInfo Object @@ -7506,8 +8486,8 @@ components: name: Engineering Team description: Engineering team Okta group. group_type: OKTA_GROUP - metadata: "{ \"okta_directory_group\": { \"group_id\": \"00g4bs66kwtpe1g12345\"\ - \ } }" + metadata: |- + { "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } } app_id: f454d283-ca87-4a8a-bdbb-df212eca5353 properties: name: @@ -7529,10 +8509,7 @@ components: $ref: "#/components/schemas/GroupRemoteInfo" remote_group_id: deprecated: true - description: "Deprecated - use remote_info instead. The ID of the group\ - \ on the remote system. Include only for items linked to remote systems.\ - \ See [this guide](https://docs.opal.dev/reference/end-system-objects)\ - \ for details on how to specify this field." + description: Deprecated - use remote_info instead. The ID of the group on the remote system. Include only for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details on how to specify this field. example: 00g4fixjd6Bc9w012345 type: string metadata: @@ -7626,62 +8603,65 @@ components: "type": "object" } ``` - example: "{ \"okta_directory_group\": { \"group_id\": \"00g4bs66kwtpe1g12345\"\ - \ } }" + example: |- + { "okta_directory_group": { "group_id": "00g4bs66kwtpe1g12345" } } type: string custom_request_notification: description: Custom request notification sent upon request approval. - example: Check your email to register your account. - maxLength: 800 type: string + maxLength: 800 nullable: true + example: "Check your email to register your account." risk_sensitivity_override: allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" + - $ref: "#/components/schemas/RiskSensitivityEnum" required: - - app_id - - group_type - - name + - name + - group_type + - app_id + type: object PaginatedResourcesList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - resource_id: f454d283-ca67-4a8a-bdbb-df212eca5353 - description: This resource represents AWS IAM role "SupportUser". - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - remote_id: arn:aws:iam::490306337630:role/SupportUser - remote_name: SupportUser - max_duration: 120 - require_manager_approval: false - require_support_ticket: false - parent_resource_id: f454d283-ca67-4a8a-bdbb-df212eca5345 - - resource_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - description: This resource represents GCP project "app-demo". - remote_id: app-demo-307223 - remote_name: app-demo - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - max_duration: 360 - require_manager_approval: false - require_support_ticket: true + - resource_id: f454d283-ca67-4a8a-bdbb-df212eca5353 + description: This resource represents AWS IAM role "SupportUser". + admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + remote_id: arn:aws:iam::490306337630:role/SupportUser + remote_name: SupportUser + max_duration: 120 + require_manager_approval: False + require_support_ticket: False + parent_resource_id: f454d283-ca67-4a8a-bdbb-df212eca5345 + - resource_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + description: This resource represents GCP project "app-demo". + remote_id: app-demo-307223 + remote_name: app-demo + admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + max_duration: 360 + require_manager_approval: False + require_support_ticket: True properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/Resource" type: array + type: object required: - - results + - results RequestStatusEnum: description: |- # Request Status @@ -7691,10 +8671,10 @@ components: ### Usage Example Returned from the `GET Requests` endpoint. enum: - - PENDING - - APPROVED - - DENIED - - CANCELED + - PENDING + - APPROVED + - DENIED + - CANCELED type: string Request: description: |- @@ -7715,26 +8695,26 @@ components: reason: I need this resource. duration_minutes: 1440 request_comments: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 - user_id: c86c85d-0651-43e2-a748-d69d658418e8 - comment: This is a comment. + - id: 7c86c85d-0651-43e2-a748-d69d658418e8 + created_at: 2021-01-06T20:00:00Z + updated_at: 2021-01-06T20:00:00Z + request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 + user_id: c86c85d-0651-43e2-a748-d69d658418e8 + comment: This is a comment. reviewer_stages: - - requestedRoleName: Admin - requestedItemName: AWS Production Account - stages: - - stage: 1 - operator: AND - reviewers: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: PENDING - - stage: 2 - operator: OR - reviewers: - - id: 8d86c85d-0651-43e2-a748-d69d658418e9 - status: APPROVED + - requestedRoleName: "Admin" + requestedItemName: "AWS Production Account" + stages: + - stage: 1 + operator: AND + reviewers: + - id: 7c86c85d-0651-43e2-a748-d69d658418e8 + status: PENDING + - stage: 2 + operator: OR + reviewers: + - id: 8d86c85d-0651-43e2-a748-d69d658418e9 + status: APPROVED properties: id: description: The unique identifier of the request. @@ -7757,18 +8737,18 @@ components: format: uuid type: string target_user_id: - description: The unique identifier of the user who is the target of the - request. + description: The unique identifier of the user who is the target of the request. example: 7c86c85d-0651-43e2-a748-d69d658418e8 format: uuid type: string target_group_id: - description: The unique identifier of the group who is the target of the - request. + description: The unique identifier of the group who is the target of the request. example: 7c86c85d-0651-43e2-a748-d69d658418e8 format: uuid type: string status: + description: The status of the request. + example: pending $ref: "#/components/schemas/RequestStatusEnum" reason: description: The reason for the request. @@ -7780,44 +8760,48 @@ components: type: integer requested_items_list: description: The list of targets for the request. + type: array items: $ref: "#/components/schemas/RequestedItem" - type: array custom_fields_responses: - description: The responses given to the custom fields associated to the - request + description: The responses given to the custom fields associated to the request + type: array items: $ref: "#/components/schemas/RequestCustomFieldResponse" - type: array stages: + deprecated: true + description: The stages configuration for this request $ref: "#/components/schemas/RequestItemStages" reviewer_stages: - description: The configured reviewer stages for every item in this request - items: - $ref: "#/components/schemas/RequestReviewerStages" - type: array - required: - - created_at - - id - - reason - - requester_id - - status - - updated_at + description: The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded + oneOf: + - type: array + items: + $ref: "#/components/schemas/RequestReviewerStages" + - type: string + required: + - id + - created_at + - updated_at + - requester_id + - status + - reason RequestCommentList: description: A paginated list of request comments + type: object example: comments: - - created_at: 2021-01-06T20:00:00Z - request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 - user_id: c86c85d-0651-43e2-a748-d69d658418e8 - comment: This is a comment. + - created_at: 2021-01-06T20:00:00Z + request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 + user_id: c86c85d-0651-43e2-a748-d69d658418e8 + comment: This is a comment. properties: comments: items: $ref: "#/components/schemas/RequestComment" type: array required: - - comments + - comments RequestComment: description: |- # Request Comment Object @@ -7838,8 +8822,7 @@ components: format: date-time type: string request_id: - description: The unique identifier of the request the comment is associated - with. + description: The unique identifier of the request the comment is associated with. example: 7c86c85d-0651-43e2-a748-d69d658418e8 format: uuid type: string @@ -7861,12 +8844,13 @@ components: example: This is a comment. type: string required: - - comment - - created_at - - request_id - - user_id + - created_at + - request_id + - user_id + - comment RequestReviewerStages: description: The stages configuration for a request item + type: object properties: access_level_name: description: The name of the access level requested. @@ -7886,16 +8870,17 @@ components: type: string stages: description: The stages of review for this request + type: array items: $ref: "#/components/schemas/RequestStage" - type: array required: - - item_id - - item_name - - stages + - item_name + - item_id + - stages RequestItemStages: - deprecated: true description: The stages configuration for a request item + type: object + deprecated: true properties: requestedRoleName: description: The name of the requested role @@ -7905,56 +8890,59 @@ components: type: string stages: description: The stages of review for this request + type: array items: $ref: "#/components/schemas/RequestStage" - type: array required: - - requestedItemName - - stages + - requestedItemName + - stages RequestStage: description: A stage in the request review process + type: object properties: stage: description: The stage number type: integer operator: + description: The operator to apply to reviewers in this stage $ref: "#/components/schemas/ReviewStageOperator" reviewers: description: The reviewers for this stage + type: array items: $ref: "#/components/schemas/RequestReviewer" - type: array required: - - operator - - reviewers - - stage + - stage + - operator + - reviewers ReviewStageOperator: description: The operator to apply to reviewers in a stage - enum: - - AND - - OR type: string + enum: + - AND + - OR RequestReviewer: description: A reviewer in a request stage + type: object properties: id: description: The unique identifier of the reviewer - format: uuid type: string + format: uuid full_name: description: The user's full name. example: Jake Barnes type: string status: description: The status of this reviewer's review - enum: - - PENDING - - APPROVED - - REJECTED type: string + enum: + - PENDING + - APPROVED + - REJECTED required: - - id - - status + - id + - status RequestedItem: description: |- # Requested Item Object @@ -7963,12 +8951,6 @@ components: ### Usage Example Returned from the `GET Requests` endpoint. - example: - resource_id: null - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - access_level_name: admin - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - name: Engineering Team properties: resource_id: description: The ID of the resource requested. @@ -8000,25 +8982,36 @@ components: description: The name of the target on the remote system. example: SupportUser type: string + example: + resource_id: null + group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + access_level_name: admin + access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser + name: Engineering Team RequestCustomFieldResponse: properties: field_name: type: string field_type: + example: SHORT_TEXT $ref: "#/components/schemas/RequestTemplateCustomFieldTypeEnum" field_value: - $ref: "#/components/schemas/RequestCustomFieldResponse_field_value" - required: - - field_name - - field_type - - field_value + oneOf: + - type: string + example: "This is a response to a long text or short text or multi choice" + - type: boolean + example: true + required: + - field_name + - field_type + - field_value RequestTemplateCustomFieldTypeEnum: description: The type of the custom request field. enum: - - SHORT_TEXT - - LONG_TEXT - - BOOLEAN - - MULTI_CHOICE + - SHORT_TEXT + - LONG_TEXT + - BOOLEAN + - MULTI_CHOICE type: string RequestList: description: |- @@ -8030,35 +9023,34 @@ components: Returned from the `GET Requests` endpoint. example: requests: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - organization_id: w86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - requester_id: c86c85d-0651-43e2-a748-d69d658418e8 - target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 - target_group_id: g86c85d-0651-43e2-a748-d69d658418e8 - status: pending - reason: I need this resource. - duration_minutes: 1440 - request_comments: - - id: 4c86c85d-0651-43e2-a748-d69d658418e8 + - id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 created_at: 2021-01-06T20:00:00Z updated_at: 2021-01-06T20:00:00Z - request_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - user_id: c86c85d-0651-43e2-a748-d69d658418e8 - comment: This is a comment. + requester_id: c86c85d-0651-43e2-a748-d69d658418e8 + target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 + target_group_id: g86c85d-0651-43e2-a748-d69d658418e8 + status: pending + reason: I need this resource. + duration_minutes: 1440 + request_comments: + - id: 4c86c85d-0651-43e2-a748-d69d658418e8 + created_at: 2021-01-06T20:00:00Z + updated_at: 2021-01-06T20:00:00Z + request_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + user_id: c86c85d-0651-43e2-a748-d69d658418e8 + comment: This is a comment. cursor: eyJjcmVhdGVkX2F0IjoiMjAyMS0wMS0wNlQyMDo0NzowMFoiLCJ2YWx1ZSI6ImFkbWluIn0= properties: requests: description: The list of requests. + type: array items: $ref: "#/components/schemas/Request" - type: array cursor: - description: The cursor to use in the next request to get the next page - of results. - example: eyJjcmVhdGVkX2F0IjoiMjAyMS0wMS0wNlQyMDo0NzowMFoiLCJ2YWx1ZSI6ImFkbWluIn0= + description: The cursor to use in the next request to get the next page of results. type: string + example: eyJjcmVhdGVkX2F0IjoiMjAyMS0wMS0wNlQyMDo0NzowMFoiLCJ2YWx1ZSI6ImFkbWluIn0= Resource: description: |- # Resource Object @@ -8075,13 +9067,13 @@ components: remote_id: 318038399 remote_name: repo-name max_duration: 120 - require_manager_approval: false - require_support_ticket: false + require_manager_approval: False + require_support_ticket: False parent_resource_id: f454d283-ca67-4a8a-bdbb-df212eca5345 ancestor_resource_ids: - - f454d283-ca67-4a8a-bdbb-df212eca5345 + - f454d283-ca67-4a8a-bdbb-df212eca5345 descendant_resource_ids: - - f454d283-ca67-4a8a-bdbb-df212eca5345 + - f454d283-ca67-4a8a-bdbb-df212eca5345 properties: resource_id: description: The ID of the resource. @@ -8117,51 +9109,41 @@ components: resource_type: $ref: "#/components/schemas/ResourceTypeEnum" max_duration: - description: The maximum duration for which the resource can be requested - (in minutes). - example: 120 + description: The maximum duration for which the resource can be requested (in minutes). type: integer - recommended_duration: - description: The recommended duration for which the resource should be requested - (in minutes). -1 represents an indefinite duration. example: 120 + recommended_duration: + description: The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. type: integer - extensions_duration_in_minutes: - description: "The duration for which access can be extended (in minutes).\ - \ Set to 0 to disable extensions. When > 0, extensions are enabled for\ - \ the specified duration." example: 120 + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. type: integer + example: 120 require_manager_approval: - deprecated: true - description: A bool representing whether or not access requests to the resource - require manager approval. - example: false + description: A bool representing whether or not access requests to the resource require manager approval. + example: False type: boolean + deprecated: true require_support_ticket: - description: A bool representing whether or not access requests to the resource - require an access ticket. - example: false + description: A bool representing whether or not access requests to the resource require an access ticket. + example: False type: boolean require_mfa_to_approve: - description: A bool representing whether or not to require MFA for reviewers - to approve requests for this resource. - example: false + description: A bool representing whether or not to require MFA for reviewers to approve requests for this resource. + example: False type: boolean require_mfa_to_request: - description: A bool representing whether or not to require MFA for requesting - access to this resource. - example: false + description: A bool representing whether or not to require MFA for requesting access to this resource. + example: False type: boolean require_mfa_to_connect: - description: A bool representing whether or not to require MFA to connect - to this resource. - example: false + description: A bool representing whether or not to require MFA to connect to this resource. + example: False type: boolean auto_approval: - description: A bool representing whether or not to automatically approve - requests to this resource. - example: false + description: A bool representing whether or not to automatically approve requests to this resource. + example: False type: boolean request_template_id: description: The ID of the associated request template. @@ -8169,9 +9151,8 @@ components: format: uuid type: string is_requestable: - description: A bool representing whether or not to allow access requests - to this resource. - example: false + description: A bool representing whether or not to allow access requests to this resource. + example: False type: boolean parent_resource_id: description: The ID of the parent resource. @@ -8184,13 +9165,13 @@ components: format: uuid type: string request_configurations: - description: A list of configurations for requests to this resource. + type: array items: $ref: "#/components/schemas/RequestConfiguration" - type: array + description: A list of configurations for requests to this resource. request_configuration_list: - description: A list of configurations for requests to this resource. Deprecated - in favor of `request_configurations`. + description: A list of configurations for requests to this resource. Deprecated in favor of `request_configurations`. + deprecated: true items: $ref: "#/components/schemas/RequestConfiguration" type: array @@ -8198,23 +9179,20 @@ components: $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: description: Custom request notification sent upon request approval. - maxLength: 800 type: string + maxLength: 800 nullable: true risk_sensitivity: - allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" - description: "The risk sensitivity level for the resource. When an override\ - \ is set, this field will match that." + description: The risk sensitivity level for the resource. When an override is set, this field will match that. readOnly: true + allOf: + - $ref: "#/components/schemas/RiskSensitivityEnum" risk_sensitivity_override: allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" + - $ref: "#/components/schemas/RiskSensitivityEnum" metadata: + description: JSON metadata about the remote resource. Only set for items linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects) for details. deprecated: true - description: "JSON metadata about the remote resource. Only set for items\ - \ linked to remote systems. See [this guide](https://docs.opal.dev/reference/end-system-objects)\ - \ for details." example: |- { "okta_directory_role": @@ -8228,58 +9206,75 @@ components: $ref: "#/components/schemas/ResourceRemoteInfo" ancestor_resource_ids: description: List of resource IDs that are ancestors of this resource. - example: - - f454d283-ca67-4a8a-bdbb-df212eca5345 - - f454d283-ca67-4a8a-bdbb-df212eca5346 + type: array items: format: uuid type: string - type: array + example: + - f454d283-ca67-4a8a-bdbb-df212eca5345 + - f454d283-ca67-4a8a-bdbb-df212eca5346 descendant_resource_ids: description: List of resource IDs that are descendants of this resource. - example: - - f454d283-ca67-4a8a-bdbb-df212eca5347 - - f454d283-ca67-4a8a-bdbb-df212eca5348 + type: array items: format: uuid type: string - type: array + example: + - f454d283-ca67-4a8a-bdbb-df212eca5347 + - f454d283-ca67-4a8a-bdbb-df212eca5348 last_successful_sync: + readOnly: true + description: Information about the last successful sync of this resource. $ref: "#/components/schemas/SyncTask" required: - - resource_id + - resource_id + type: object AwsPermissionSetMetadata: description: Metadata for AWS Identity Center permission set. properties: aws_permission_set: - $ref: "#/components/schemas/AwsPermissionSetMetadata_aws_permission_set" - required: - - aws_permission_set + type: object + properties: + arn: + description: The ARN of the permission set. + example: arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9 + type: string + account_id: + description: The ID of an AWS account to which this permission set is provisioned. + example: 234234234234 + type: string + required: + - arn + - account_id + type: object + required: + - aws_permission_set UpdateResourceInfoList: example: resources: - - resource_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - name: my-mongo-db - description: This resource represents AWS IAM role "SupportUser". - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - max_duration: 120 - require_manager_approval: false - require_support_ticket: false - - resource_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - name: Admin Role - description: This resource represents GCP project "app-demo". - admin_owner_id: 4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3 - max_duration: 360 - require_manager_approval: false - require_support_ticket: true + - resource_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + name: my-mongo-db + description: This resource represents AWS IAM role "SupportUser". + admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + max_duration: 120 + require_manager_approval: False + require_support_ticket: False + - resource_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + name: Admin Role + description: This resource represents GCP project "app-demo". + admin_owner_id: 4220bc12-ab8a-4b5d-be7b-f6bbcf9159f3 + max_duration: 360 + require_manager_approval: False + require_support_ticket: True properties: resources: description: A list of resources with information to update. items: $ref: "#/components/schemas/UpdateResourceInfo" type: array + type: object required: - - resources + - resources UpdateResourceInfo: description: |- # UpdateResourceInfo Object @@ -8291,8 +9286,8 @@ components: description: This resource represents AWS IAM role "SupportUser". admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 max_duration: 120 - require_manager_approval: false - require_support_ticket: false + require_manager_approval: False + require_support_ticket: False properties: resource_id: description: The ID of the resource. @@ -8313,165 +9308,192 @@ components: format: uuid type: string max_duration: - deprecated: true - description: The maximum duration for which the resource can be requested - (in minutes). Use -1 to set to indefinite. Deprecated in favor of `request_configurations`. - example: 120 + description: The maximum duration for which the resource can be requested (in minutes). Use -1 to set to indefinite. Deprecated in favor of `request_configurations`. type: integer - recommended_duration: - deprecated: true - description: The recommended duration for which the resource should be requested - (in minutes). Will be the default value in a request. Use -1 to set to - indefinite and 0 to unset. Deprecated in favor of `request_configurations`. example: 120 + deprecated: true + recommended_duration: + description: The recommended duration for which the resource should be requested (in minutes). Will be the default value in a request. Use -1 to set to indefinite and 0 to unset. Deprecated in favor of `request_configurations`. type: integer - require_manager_approval: + example: 120 deprecated: true - description: A bool representing whether or not access requests to the resource - require manager approval. - example: false + require_manager_approval: + description: A bool representing whether or not access requests to the resource require manager approval. + example: False type: boolean - require_support_ticket: deprecated: true - description: A bool representing whether or not access requests to the resource - require an access ticket. Deprecated in favor of `request_configurations`. - example: false + require_support_ticket: + description: A bool representing whether or not access requests to the resource require an access ticket. Deprecated in favor of `request_configurations`. + example: False type: boolean - folder_id: deprecated: true + folder_id: description: The ID of the folder that the resource is located in. example: e27cb7b0-98e2-4555-9916-9e6d8ca6b079 format: uuid type: string + deprecated: true require_mfa_to_approve: - description: A bool representing whether or not to require MFA for reviewers - to approve requests for this resource. - example: false + description: A bool representing whether or not to require MFA for reviewers to approve requests for this resource. + example: False type: boolean require_mfa_to_request: - deprecated: true - description: A bool representing whether or not to require MFA for requesting - access to this resource. Deprecated in favor of `request_configurations`. - example: false + description: A bool representing whether or not to require MFA for requesting access to this resource. Deprecated in favor of `request_configurations`. + example: False type: boolean + deprecated: true require_mfa_to_connect: - description: A bool representing whether or not to require MFA to connect - to this resource. - example: false + description: A bool representing whether or not to require MFA to connect to this resource. + example: False type: boolean auto_approval: - deprecated: true - description: A bool representing whether or not to automatically approve - requests to this resource. Deprecated in favor of `request_configurations`. - example: false + description: A bool representing whether or not to automatically approve requests to this resource. Deprecated in favor of `request_configurations`. + example: False type: boolean + deprecated: true ticket_propagation: $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: description: Custom request notification sent upon request approval. - example: Check your email to register your account. - maxLength: 800 type: string + maxLength: 800 nullable: true + example: "Check your email to register your account." risk_sensitivity_override: allOf: - - $ref: "#/components/schemas/RiskSensitivityEnum" + - $ref: "#/components/schemas/RiskSensitivityEnum" configuration_template_id: description: The ID of the associated configuration template. example: 06851574-e50d-40ca-8c78-f72ae6ab4304 format: uuid type: string request_template_id: - deprecated: true - description: The ID of the associated request template. Deprecated in favor - of `request_configurations`. + description: The ID of the associated request template. Deprecated in favor of `request_configurations`. example: 06851574-e50d-40ca-8c78-f72ae6ab4304 format: uuid type: string - is_requestable: deprecated: true - description: A bool representing whether or not to allow access requests - to this resource. Deprecated in favor of `request_configurations`. - example: false + is_requestable: + description: A bool representing whether or not to allow access requests to this resource. Deprecated in favor of `request_configurations`. + example: False type: boolean - extensions_duration_in_minutes: deprecated: true - description: "The duration for which access can be extended (in minutes).\ - \ Deprecated, set the extension duration in the request_configuration\ - \ you want it to apply to." - example: 120 + extensions_duration_in_minutes: + description: The duration for which access can be extended (in minutes). Deprecated, set the extension duration in the request_configuration you want it to apply to. type: integer + example: 120 + deprecated: true request_configurations: - description: "A list of configurations for requests to this resource. If\ - \ not provided, the default request configuration will be used." + type: array items: $ref: "#/components/schemas/RequestConfiguration" - type: array + description: A list of configurations for requests to this resource. If not provided, the default request configuration will be used. request_configuration_list: + description: A list of configurations for requests to this resource. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. $ref: "#/components/schemas/CreateRequestConfigurationInfoList" - required: - - resource_id + deprecated: true + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: null + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 0 + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e9 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: + group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b4 + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 1 + required: + - resource_id + type: object PaginatedTagsList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - tag_id: f290a738-5f9f-43c2-ad67-fa31ff0eb946 - created_at: 2022-01-23T04:56:07Z - updated_at: 2022-02-23T01:34:07Z - user_creator_id: d4a7d928-783e-4599-8ec6-088d635a5bcc - admin_owner_id: bfb518b1-3f5b-4e3b-8eb8-3b3fabd4ea2b - key: database-name - value: redis_db - - tag_id: 92f0a738-5f9f-43c2-ad67-fa31ff0eb052 - created_at: 2022-03-23T04:56:07Z - updated_at: 2022-04-23T01:34:07Z - user_creator_id: a4d7d928-783e-4599-8ec6-088d635af4ac - admin_owner_id: gtg418b1-3f5b-4e3b-8eb8-3b3fabd4eaa1 - key: database-type - value: sql + - tag_id: f290a738-5f9f-43c2-ad67-fa31ff0eb946 + created_at: 2022-01-23T04:56:07Z + updated_at: 2022-02-23T01:34:07Z + user_creator_id: d4a7d928-783e-4599-8ec6-088d635a5bcc + admin_owner_id: bfb518b1-3f5b-4e3b-8eb8-3b3fabd4ea2b + key: database-name + value: redis_db + - tag_id: 92f0a738-5f9f-43c2-ad67-fa31ff0eb052 + created_at: 2022-03-23T04:56:07Z + updated_at: 2022-04-23T01:34:07Z + user_creator_id: a4d7d928-783e-4599-8ec6-088d635af4ac + admin_owner_id: gtg418b1-3f5b-4e3b-8eb8-3b3fabd4eaa1 + key: database-type + value: sql properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/Tag" type: array required: - - results + - results + type: object TagsList: example: results: - - tag_id: f290a738-5f9f-43c2-ad67-fa31ff0eb946 - created_at: 2022-01-23T04:56:07Z - updated_at: 2022-02-23T01:34:07Z - user_creator_id: d4a7d928-783e-4599-8ec6-088d635a5bcc - admin_owner_id: bfb518b1-3f5b-4e3b-8eb8-3b3fabd4ea2b - key: database-name - value: redis_db - - tag_id: 92f0a738-5f9f-43c2-ad67-fa31ff0eb052 - created_at: 2022-03-23T04:56:07Z - updated_at: 2022-04-23T01:34:07Z - user_creator_id: a4d7d928-783e-4599-8ec6-088d635af4ac - admin_owner_id: gtg418b1-3f5b-4e3b-8eb8-3b3fabd4eaa1 - key: database-type - value: sql + - tag_id: f290a738-5f9f-43c2-ad67-fa31ff0eb946 + created_at: 2022-01-23T04:56:07Z + updated_at: 2022-02-23T01:34:07Z + user_creator_id: d4a7d928-783e-4599-8ec6-088d635a5bcc + admin_owner_id: bfb518b1-3f5b-4e3b-8eb8-3b3fabd4ea2b + key: database-name + value: redis_db + - tag_id: 92f0a738-5f9f-43c2-ad67-fa31ff0eb052 + created_at: 2022-03-23T04:56:07Z + updated_at: 2022-04-23T01:34:07Z + user_creator_id: a4d7d928-783e-4599-8ec6-088d635af4ac + admin_owner_id: gtg418b1-3f5b-4e3b-8eb8-3b3fabd4eaa1 + key: database-type + value: sql properties: tags: items: $ref: "#/components/schemas/Tag" type: array required: - - tags + - tags + type: object Tag: description: |- # Tag Object @@ -8516,8 +9538,9 @@ components: description: The value of the tag. example: redis_db type: string + type: object required: - - tag_id + - tag_id CreateTagInfo: description: |- # CreateTagInfo Object @@ -8539,48 +9562,50 @@ components: example: production type: string required: - - tag_key + - tag_key + type: object PaginatedGroupBindingsList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWtJ results: - - group_binding_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - created_by_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - created_at: 2022-01-23T04:56:07Z - source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - groups: - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - group_type: OKTA_GROUP - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - group_type: AWS_SSO_GROUP - - group_binding_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - created_by_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - source_group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - created_at: 2022-01-23T04:56:07Z - groups: - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - group_type: AWS_SSO_GROUP - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - group_type: OKTA_GROUP + - group_binding_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + created_by_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + created_at: 2022-01-23T04:56:07Z + source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + groups: + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + group_type: OKTA_GROUP + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + group_type: AWS_SSO_GROUP + - group_binding_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + created_by_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + source_group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + created_at: 2022-01-23T04:56:07Z + groups: + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + group_type: AWS_SSO_GROUP + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + group_type: OKTA_GROUP properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/GroupBinding" type: array required: - - results + - results CreateGroupBindingInfo: description: |- # CreateGroupBindingInfo Object @@ -8589,8 +9614,8 @@ components: example: source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 groups: - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b properties: source_group_id: description: The ID of the source group. @@ -8600,32 +9625,41 @@ components: groups: description: The list of groups. items: - $ref: "#/components/schemas/CreateGroupBindingInfo_groups_inner" + properties: + group_id: + description: The ID of the group. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + required: + - group_id type: array required: - - groups - - source_group_id + - source_group_id + - groups + type: object UpdateGroupBindingInfoList: example: group_bindings: - - group_binding_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - groups: - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - - group_binding_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - source_group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - groups: - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + - group_binding_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + groups: + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + - group_binding_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + source_group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + groups: + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 properties: group_bindings: description: A list of group bindings with information to update. items: $ref: "#/components/schemas/UpdateGroupBindingInfo" type: array + type: object required: - - group_bindings + - group_bindings UpdateGroupBindingInfo: description: |- # UpdateGroupBindingInfo Object @@ -8635,8 +9669,8 @@ components: group_binding_id: 0ae19dbf-324d-4216-999c-574d46182c7e source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 groups: - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b properties: group_binding_id: description: The ID of the group binding. @@ -8651,12 +9685,20 @@ components: groups: description: The list of groups. items: - $ref: "#/components/schemas/CreateGroupBindingInfo_groups_inner" + properties: + group_id: + description: The ID of the group. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + required: + - group_id type: array required: - - group_binding_id - - groups - - source_group_id + - group_binding_id + - source_group_id + - groups + type: object GroupBinding: description: |- # Group Binding Object @@ -8671,10 +9713,10 @@ components: created_at: 2022-01-23T04:56:07Z source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 groups: - - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - group_type: OKTA_GROUP - - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - group_type: AWS_SSO_GROUP + - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + group_type: OKTA_GROUP + - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + group_type: AWS_SSO_GROUP properties: group_binding_id: description: The ID of the group binding. @@ -8702,11 +9744,11 @@ components: $ref: "#/components/schemas/GroupBindingGroup" type: array required: - - created_at - - created_by_id - - group_binding_id - - groups - - source_group_id + - group_binding_id + - created_by_id + - created_at + - source_group_id + - groups GroupBindingGroup: description: |- # Group Binding Group Object @@ -8727,51 +9769,14 @@ components: group_type: $ref: "#/components/schemas/GroupTypeEnum" required: - - group_id - - group_type + - group_id + - group_type + type: object UpdateAccessRuleInfo: description: |- # UpdateAccessRuleInfo Object ### Description The `UpdateAccessRuleInfo` object is used as an input to the UpdateAccessRule and CreateAccessRule API. - example: - ruleClauses: - unless: - clauses: - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - when: - clauses: - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - name: Platform Engineering - description: This access rule represents all platform engineers in the company. - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: ACTIVE properties: name: description: The name of the access rule. @@ -8788,19 +9793,19 @@ components: type: string status: description: The status of the access rule. + type: string enum: - - ACTIVE - - PAUSED + - ACTIVE + - PAUSED example: ACTIVE - type: string ruleClauses: $ref: "#/components/schemas/RuleClauses" required: - - admin_owner_id - - description - - name - - ruleClauses - - status + - status + - ruleClauses + - name + - admin_owner_id + - description AccessRule: description: |- # Access Rule Object @@ -8809,45 +9814,6 @@ components: ### Usage Example Get access rule configurations from the `GET Access Rule Configs` endpoint. - example: - ruleClauses: - unless: - clauses: - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - when: - clauses: - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - name: Platform Engineering - description: This access rule represents all platform engineers in the company. - admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - access_rule_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: ACTIVE properties: access_rule_id: description: The ID (group ID) of the access rule. @@ -8869,150 +9835,91 @@ components: type: string status: description: The status of the access rule. + type: string enum: - - ACTIVE - - PAUSED + - ACTIVE + - PAUSED example: ACTIVE - type: string ruleClauses: $ref: "#/components/schemas/RuleClauses" required: - - access_rule_id - - admin_owner_id - - description - - name - - ruleClauses - - status + - status + - ruleClauses + - name + - admin_owner_id + - access_rule_id + - description RuleClauses: - example: - unless: - clauses: - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - when: - clauses: - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key properties: when: $ref: "#/components/schemas/RuleConjunction" unless: $ref: "#/components/schemas/RuleConjunction" required: - - when + - when RuleConjunction: - example: - clauses: - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key properties: clauses: + type: array + minItems: 1 items: $ref: "#/components/schemas/RuleDisjunction" - minItems: 1 - type: array required: - - clauses + - clauses RuleDisjunction: - example: - selectors: - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key - - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key properties: selectors: + type: array items: $ref: "#/components/schemas/TagSelector" - type: array required: - - selectors + - selectors TagSelector: - example: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - value: value - key: key properties: key: type: string value: type: string connection_id: - format: uuid type: string + format: uuid required: - - connection_id - - key - - value + - key + - value + - connection_id PaginatedOwnersList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - - owner_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - name: API Owner - description: This owner represents the API team owners. - access_request_escalation_period: 120 - - owner_id: e8581682-04f7-473a-a419-472f0fb26d46 - name: Finance Owner - description: This owner represents the Finance team owners. - access_request_escalation_period: 120 + - owner_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + name: API Owner + description: This owner represents the API team owners. + access_request_escalation_period: 120 + - owner_id: e8581682-04f7-473a-a419-472f0fb26d46 + name: Finance Owner + description: This owner represents the Finance team owners. + access_request_escalation_period: 120 properties: next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string results: items: $ref: "#/components/schemas/Owner" type: array + type: object required: - - results + - results Owner: description: |- # Owner Object @@ -9038,10 +9945,9 @@ components: example: This owner represents the API team owners. type: string access_request_escalation_period: - description: The amount of time (in minutes) before the next reviewer is - notified. Use 0 to remove escalation policy. - example: 120 + description: The amount of time (in minutes) before the next reviewer is notified. Use 0 to remove escalation policy. type: integer + example: 120 reviewer_message_channel_id: example: 37cb7e41-12ba-46da-92ff-030abe0450b1 format: uuid @@ -9053,7 +9959,8 @@ components: type: string nullable: true required: - - owner_id + - owner_id + type: object CreateOwnerInfo: description: |- # CreateOwnerInfo Object @@ -9076,19 +9983,17 @@ components: example: This owner represents the API team owners. type: string access_request_escalation_period: - description: The amount of time (in minutes) before the next reviewer is - notified. Use 0 to remove escalation policy. - example: 120 + description: The amount of time (in minutes) before the next reviewer is notified. Use 0 to remove escalation policy. type: integer + example: 120 user_ids: - description: Users to add to the created owner. If setting a source_group_id - this list must be empty. + description: Users to add to the created owner. If setting a source_group_id this list must be empty. example: - - 7870617d-e72a-47f5-a84c-693817ab4567 - - 1520617d-e72a-47f5-a84c-693817ab48ad2 + - 7870617d-e72a-47f5-a84c-693817ab4567 + - 1520617d-e72a-47f5-a84c-693817ab48ad2 items: - format: uuid type: string + format: uuid type: array reviewer_message_channel_id: description: The message channel id for the reviewer channel. @@ -9100,27 +10005,29 @@ components: format: uuid type: string required: - - name - - user_ids + - name + - user_ids + type: object UpdateOwnerInfoList: example: owners: - - owner_id: f454d283-ca87-4a8a-bdbb-df212eca5353 - name: API Owner - description: This owner represents the API team owners. - access_request_escalation_period: 120 - - owner_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - name: Finance Owner - description: This owner represents the Finance team owners. - access_request_escalation_period: 15 + - owner_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + name: API Owner + description: This owner represents the API team owners. + access_request_escalation_period: 120 + - owner_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + name: Finance Owner + description: This owner represents the Finance team owners. + access_request_escalation_period: 15 properties: owners: description: A list of owners with information to update. items: $ref: "#/components/schemas/UpdateOwnerInfo" type: array + type: object required: - - owners + - owners UpdateOwnerInfo: description: |- # UpdateOwnerInfo Object @@ -9146,23 +10053,21 @@ components: example: This owner represents the API team owners. type: string access_request_escalation_period: - description: The amount of time (in minutes) before the next reviewer is - notified. Use 0 to remove escalation policy. + description: The amount of time (in minutes) before the next reviewer is notified. Use 0 to remove escalation policy. example: 120 type: integer reviewer_message_channel_id: - description: The message channel id for the reviewer channel. Use "" to - remove an existing message channel. + description: The message channel id for the reviewer channel. Use "" to remove an existing message channel. example: 37cb7e41-12ba-46da-92ff-030abe0450b1 type: string source_group_id: - description: Sync this owner's user list with a source group. Use "" to - remove an existing source group. + description: Sync this owner's user list with a source group. Use "" to remove an existing source group. example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 format: uuid type: string required: - - owner_id + - owner_id + type: object Condition: description: |- # Condition Object @@ -9173,23 +10078,24 @@ components: Used to match request configurations to users in `RequestConfiguration` example: group_ids: - - 1b978423-db0a-4037-a4cf-f79c60cb67b3 + - 1b978423-db0a-4037-a4cf-f79c60cb67b3 + type: object properties: group_ids: description: The list of group IDs to match. example: - - 1b978423-db0a-4037-a4cf-f79c60cb67b3 + - 1b978423-db0a-4037-a4cf-f79c60cb67b3 items: - format: uuid type: string + format: uuid type: array role_remote_ids: description: The list of role remote IDs to match. example: - - arn:aws:iam::590304332660:role/AdministratorAccess + - arn:aws:iam::590304332660:role/AdministratorAccess + type: array items: type: string - type: array RequestConfiguration: description: |- # Request Configuration Object @@ -9205,58 +10111,52 @@ components: updated_at: 2021-01-06T20:00:00Z condition: group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - allow_requests: true - auto_approval: false - require_mfa_to_request: false + allow_requests: True + auto_approval: False + require_mfa_to_request: False max_duration_minutes: 120 recommended_duration_minutes: 120 - require_support_ticket: false + require_support_ticket: False reviewer_stages: - - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - owner_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 - stage: 1 + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 priority: 1 + type: object properties: condition: + description: The condition for the request configuration. $ref: "#/components/schemas/Condition" allow_requests: - description: A bool representing whether or not to allow requests for this - resource. - example: true + description: A bool representing whether or not to allow requests for this resource. + example: True type: boolean auto_approval: - description: A bool representing whether or not to automatically approve - requests for this resource. - example: false + description: A bool representing whether or not to automatically approve requests for this resource. + example: False type: boolean require_mfa_to_request: - description: A bool representing whether or not to require MFA for requesting - access to this resource. - example: false + description: A bool representing whether or not to require MFA for requesting access to this resource. + example: False type: boolean max_duration_minutes: - description: The maximum duration for which the resource can be requested - (in minutes). - example: 120 + description: The maximum duration for which the resource can be requested (in minutes). type: integer - recommended_duration_minutes: - description: The recommended duration for which the resource should be requested - (in minutes). -1 represents an indefinite duration. example: 120 + recommended_duration_minutes: + description: The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. type: integer + example: 120 require_support_ticket: - description: A bool representing whether or not access requests to the resource - require an access ticket. - example: false + description: A bool representing whether or not access requests to the resource require an access ticket. + example: False type: boolean extensions_duration_in_minutes: - description: "The duration for which access can be extended (in minutes).\ - \ Set to 0 to disable extensions. When > 0, extensions are enabled for\ - \ the specified duration." - example: 120 + description: The duration for which access can be extended (in minutes). Set to 0 to disable extensions. When > 0, extensions are enabled for the specified duration. type: integer + example: 120 request_template_id: description: The ID of the associated request template. example: 06851574-e50d-40ca-8c78-f72ae6ab4304 @@ -9272,11 +10172,12 @@ components: example: 1 type: integer required: - - allow_requests - - auto_approval - - priority - - require_mfa_to_request - - require_support_ticket + - organization_id + - allow_requests + - auto_approval + - require_mfa_to_request + - require_support_ticket + - priority CreateRequestConfigurationInfoList: description: |- # CreateRequestConfigurationInfoList Object @@ -9299,47 +10200,48 @@ components: using a single group as a condition. example: request_configurations: - - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - organization_id: w86c85d-0651-43e2-a748-d69d658418e8 - condition: null - allow_requests: true - auto_approval: false - require_mfa_to_request: false - max_duration_minutes: 120 - recommended_duration_minutes: 120 - require_support_ticket: false - reviewer_stages: - - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - owner_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 - stage: 1 - priority: 0 - - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e9 - organization_id: w86c85d-0651-43e2-a748-d69d658418e8 - condition: - group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b4 - allow_requests: true - auto_approval: false - require_mfa_to_request: false - max_duration_minutes: 120 - recommended_duration_minutes: 120 - require_support_ticket: false - reviewer_stages: - - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - owner_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 - stage: 1 - priority: 1 + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: null + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 0 + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e9 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: + group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b4 + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 1 properties: request_configurations: description: A list of request configurations to create. items: $ref: "#/components/schemas/RequestConfiguration" type: array + type: object required: - - request_configurations + - request_configurations CreateConfigurationTemplateInfo: description: |- # CreateConfigurationTemplateInfo Object @@ -9352,18 +10254,24 @@ components: admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 visibility: private linked_audit_message_channel_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 member_oncall_schedule_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 break_glass_user_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 - require_mfa_to_approve: false - require_mfa_to_connect: false + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + require_mfa_to_approve: False + require_mfa_to_connect: False name: Prod AWS Template + required: + - admin_owner_id + - visibility + - name + - require_mfa_to_approve + - require_mfa_to_connect properties: admin_owner_id: description: The ID of the owner of the configuration template. @@ -9371,74 +10279,100 @@ components: format: uuid type: string visibility: + description: The visibility info of the configuration template. + example: private $ref: "#/components/schemas/VisibilityInfo" linked_audit_message_channel_ids: - description: The IDs of the audit message channels linked to the configuration - template. + description: The IDs of the audit message channels linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 items: - format: uuid type: string + format: uuid type: array member_oncall_schedule_ids: - description: The IDs of the on-call schedules linked to the configuration - template. + description: The IDs of the on-call schedules linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 items: - format: uuid type: string + format: uuid type: array break_glass_user_ids: - description: The IDs of the break glass users linked to the configuration - template. + description: The IDs of the break glass users linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 items: - format: uuid type: string + format: uuid type: array require_mfa_to_approve: - description: A bool representing whether or not to require MFA for reviewers - to approve requests for this configuration template. - example: false + description: A bool representing whether or not to require MFA for reviewers to approve requests for this configuration template. + example: False type: boolean require_mfa_to_connect: - description: A bool representing whether or not to require MFA to connect - to resources associated with this configuration template. - example: false + description: A bool representing whether or not to require MFA to connect to resources associated with this configuration template. + example: False type: boolean name: description: The name of the configuration template. example: Prod AWS Template type: string request_configurations: - description: "The request configuration list of the configuration template.\ - \ If not provided, the default request configuration will be used." + type: array items: $ref: "#/components/schemas/RequestConfiguration" - type: array + description: The request configuration list of the configuration template. If not provided, the default request configuration will be used. request_configuration_list: + description: The request configuration list of the configuration template. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. $ref: "#/components/schemas/CreateRequestConfigurationInfoList" + deprecated: true + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: null + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 0 + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e9 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: + group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b4 + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 1 ticket_propagation: $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: - description: Custom request notification sent upon request approval for - this configuration template. - example: Check your email to register your account. - maxLength: 800 + description: Custom request notification sent upon request approval for this configuration template. type: string + maxLength: 800 nullable: true - required: - - admin_owner_id - - name - - require_mfa_to_approve - - require_mfa_to_connect - - visibility + example: "Check your email to register your account." ConfigurationTemplate: description: |- # Configuration Template Object @@ -9452,17 +10386,17 @@ components: admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 visibility: private linked_audit_message_channel_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 member_oncall_schedule_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 break_glass_user_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 - require_mfa_to_approve: false - require_mfa_to_connect: false + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + require_mfa_to_approve: False + require_mfa_to_connect: False name: Prod AWS Template properties: configuration_template_id: @@ -9480,65 +10414,60 @@ components: format: uuid type: string visibility: + description: The visibility info of the configuration template. + example: private $ref: "#/components/schemas/VisibilityInfo" linked_audit_message_channel_ids: - description: The IDs of the audit message channels linked to the configuration - template. + description: The IDs of the audit message channels linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 items: - format: uuid type: string + format: uuid type: array request_configuration_id: - description: The ID of the request configuration linked to the configuration - template. + description: The ID of the request configuration linked to the configuration template. example: 7c86c85d-0651-43e2-a748-d69d658418e8 format: uuid type: string member_oncall_schedule_ids: - description: The IDs of the on-call schedules linked to the configuration - template. + description: The IDs of the on-call schedules linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 7c86c85d-0651-43e2-a748-d69d658418e8 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 7c86c85d-0651-43e2-a748-d69d658418e8 items: - format: uuid type: string + format: uuid type: array break_glass_user_ids: - description: The IDs of the break glass users linked to the configuration - template. + description: The IDs of the break glass users linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 items: - format: uuid type: string + format: uuid type: array require_mfa_to_approve: - description: A bool representing whether or not to require MFA for reviewers - to approve requests for this configuration template. - example: false + description: A bool representing whether or not to require MFA for reviewers to approve requests for this configuration template. + example: False type: boolean require_mfa_to_connect: - description: A bool representing whether or not to require MFA to connect - to resources associated with this configuration template. - example: false + description: A bool representing whether or not to require MFA to connect to resources associated with this configuration template. + example: False type: boolean ticket_propagation: $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: - description: Custom request notification sent upon request approval for - this configuration template. - example: Check your email to register your account. - maxLength: 800 + description: Custom request notification sent upon request approval for this configuration template. type: string + maxLength: 800 nullable: true + example: "Check your email to register your account." TicketPropagationConfiguration: - description: "Configuration for ticket propagation, when enabled, a ticket will\ - \ be created for access changes related to the users in this resource." + description: Configuration for ticket propagation, when enabled, a ticket will be created for access changes related to the users in this resource. + type: object properties: enabled_on_grant: type: boolean @@ -9549,8 +10478,8 @@ components: ticket_project_id: type: string required: - - enabled_on_grant - - enabled_on_revocation + - enabled_on_grant + - enabled_on_revocation UpdateConfigurationTemplateInfo: description: |- # UpdateConfigurationTemplateInfo Object @@ -9564,18 +10493,20 @@ components: admin_owner_id: 7c86c85d-0651-43e2-a748-d69d658418e8 visibility: private linked_audit_message_channel_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 member_oncall_schedule_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 break_glass_user_ids: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 - require_mfa_to_approve: false - require_mfa_to_connect: false + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + require_mfa_to_approve: False + require_mfa_to_connect: False name: Prod AWS Template + required: + - configuration_template_id properties: configuration_template_id: description: The ID of the configuration template. @@ -9592,66 +10523,96 @@ components: format: uuid type: string visibility: + description: The visibility info of the configuration template. + example: private $ref: "#/components/schemas/VisibilityInfo" linked_audit_message_channel_ids: - description: The IDs of the audit message channels linked to the configuration - template. + description: The IDs of the audit message channels linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 items: - format: uuid type: string + format: uuid type: array request_configurations: - description: The request configuration list linked to the configuration - template. + type: array items: $ref: "#/components/schemas/RequestConfiguration" - type: array + description: The request configuration list linked to the configuration template. request_configuration_list: + description: The request configuration list linked to the configuration template. Deprecated in favor of `request_configurations`. $ref: "#/components/schemas/CreateRequestConfigurationInfoList" + deprecated: true + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: null + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 0 + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e9 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + condition: + group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b4 + allow_requests: True + auto_approval: False + require_mfa_to_request: False + max_duration_minutes: 120 + recommended_duration_minutes: 120 + require_support_ticket: False + reviewer_stages: + - reviewer_stage_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + owner_ids: + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 + stage: 1 + priority: 1 member_oncall_schedule_ids: - description: The IDs of the on-call schedules linked to the configuration - template. + description: The IDs of the on-call schedules linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 7c86c85d-0651-43e2-a748-d69d658418e8 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 7c86c85d-0651-43e2-a748-d69d658418e8 items: - format: uuid type: string + format: uuid type: array break_glass_user_ids: - description: The IDs of the break glass users linked to the configuration - template. + description: The IDs of the break glass users linked to the configuration template. example: - - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 37cb7e41-12ba-46da-92ff-030abe0450b1 + - 37cb7e41-12ba-46da-92ff-030abe0450b2 items: - format: uuid type: string + format: uuid type: array require_mfa_to_approve: - description: A bool representing whether or not to require MFA for reviewers - to approve requests for this configuration template. - example: false + description: A bool representing whether or not to require MFA for reviewers to approve requests for this configuration template. + example: False type: boolean require_mfa_to_connect: - description: A bool representing whether or not to require MFA to connect - to resources associated with this configuration template. - example: false + description: A bool representing whether or not to require MFA to connect to resources associated with this configuration template. + example: False type: boolean ticket_propagation: $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: - description: Custom request notification sent upon request approval for - this configuration template. - example: Check your email to register your account. - maxLength: 800 + description: Custom request notification sent upon request approval for this configuration template. type: string + maxLength: 800 nullable: true - required: - - configuration_template_id + example: "Check your email to register your account." PaginatedConfigurationTemplateList: description: |- # PaginatedConfigurationTemplateList Object @@ -9662,21 +10623,21 @@ components: Returned from the `GET Configuration Templates` endpoint. example: results: - - configuration_template_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - admin_owner_id: a4d7d928-783e-4599-8ec6-088d635af4ac - visibility: private - linked_audit_message_channel_ids: - - l3cb7e41-12ba-46da-92ff-030abe0450b1 - - f3cb7e41-12ba-46da-92ff-030abe0450b2 - request_configuration_id: r3cb7e41-12ba-46da-92ff-030abe0450b1 - member_oncall_schedule_ids: - - 23cb7e41-12ba-46da-92ff-030abe0450b1 - - m3cb7e41-12ba-46da-92ff-030abe0450b2 - break_glass_user_ids: - - 63cb7e41-12ba-46da-92ff-030abe0450b1 - - b3cb7e41-12ba-46da-92ff-030abe0450b2 - require_mfa_to_approve: false - require_mfa_to_connect: false + - configuration_template_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + admin_owner_id: a4d7d928-783e-4599-8ec6-088d635af4ac + visibility: private + linked_audit_message_channel_ids: + - l3cb7e41-12ba-46da-92ff-030abe0450b1 + - f3cb7e41-12ba-46da-92ff-030abe0450b2 + request_configuration_id: r3cb7e41-12ba-46da-92ff-030abe0450b1 + member_oncall_schedule_ids: + - 23cb7e41-12ba-46da-92ff-030abe0450b1 + - m3cb7e41-12ba-46da-92ff-030abe0450b2 + break_glass_user_ids: + - 63cb7e41-12ba-46da-92ff-030abe0450b1 + - b3cb7e41-12ba-46da-92ff-030abe0450b2 + require_mfa_to_approve: False + require_mfa_to_connect: False properties: results: items: @@ -9684,94 +10645,118 @@ components: type: array CreateRequestInfo: description: All the information needed for creating a request - example: - support_ticket: - ticketing_provider: LINEAR - identifier: identifier - remote_id: remote_id - url: url - reason: reason - target_group_id: userd283-ca87-4a8a-bdbb-df212eca5353 - duration_minutes: 0 - resources: - - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - id: group283-ca87-4a8a-bdbb-df212eca5353 - access_level_name: arn:aws:iam::490306337630:role/SupportUser - - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - id: group283-ca87-4a8a-bdbb-df212eca5353 - access_level_name: arn:aws:iam::490306337630:role/SupportUser - groups: - - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - id: f454d283-ca87-4a8a-bdbb-df212eca5353 - access_level_name: arn:aws:iam::490306337630:role/SupportUser - - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - id: f454d283-ca87-4a8a-bdbb-df212eca5353 - access_level_name: arn:aws:iam::490306337630:role/SupportUser - target_user_id: userd283-ca87-4a8a-bdbb-df212eca5353 - custom_metadata: - - name: name - type: SHORT_TEXT - value: value - - name: name - type: SHORT_TEXT - value: value properties: resources: - items: - $ref: "#/components/schemas/CreateRequestInfo_resources_inner" type: array - groups: items: - $ref: "#/components/schemas/CreateRequestInfo_groups_inner" + type: object + properties: + id: + description: The ID of the resource requested. Should not be specified if group_id is specified. + example: group283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + access_level_remote_id: + description: The ID of the access level requested on the remote system. + example: arn:aws:iam::490306337630:role/SupportUser + type: string + access_level_name: + description: The ID of the access level requested on the remote system. This field is deprecated and no longer required. We will populate based on the access_level_remote_id. + example: arn:aws:iam::490306337630:role/SupportUser + type: string + deprecated: true + groups: type: array + items: + type: object + properties: + id: + description: The ID of the group requested. Should not be specified if resource_id is specified. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + access_level_remote_id: + description: The ID of the access level requested on the remote system. + example: arn:aws:iam::490306337630:role/SupportUser + type: string + access_level_name: + description: The ID of the access level requested on the remote system. + example: arn:aws:iam::490306337630:role/SupportUser + type: string + required: + - id target_user_id: - description: The ID of the user to be granted access. Should not be specified - if target_group_id is specified. + description: The ID of the user to be granted access. Should not be specified if target_group_id is specified. example: userd283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string target_group_id: - description: The ID of the group the request is for. Should not be specified - if target_user_id is specified. + description: The ID of the group the request is for. Should not be specified if target_user_id is specified. example: userd283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string reason: type: string support_ticket: - $ref: "#/components/schemas/CreateRequestInfo_support_ticket" + type: object + properties: + ticketing_provider: + $ref: "#/components/schemas/TicketingProviderEnum" + remote_id: + type: string + identifier: + type: string + url: + type: string + required: + - ticketing_provider + - remote_id + - identifier + - url duration_minutes: - description: The duration of the request in minutes. -1 represents an indefinite - duration - minimum: -1 + description: The duration of the request in minutes. -1 represents an indefinite duration type: integer + minimum: -1 custom_metadata: - items: - $ref: "#/components/schemas/CreateRequestInfo_custom_metadata_inner" type: array + items: + type: object + properties: + name: + type: string + type: + $ref: "#/components/schemas/RequestTemplateCustomFieldTypeEnum" + value: + type: string + required: + - name + - type + - value + required: - - duration_minutes - - groups - - reason - - resources + - reason + - duration_minutes + - resources + - groups SyncErrorList: example: sync_errors: - - app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - first_seen: 2022-07-14T06:59:59Z - last_seen: 2022-08-23T04:32:46Z - error_message: Failed to connect to the remote system - insufficient credentials. - - app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - first_seen: 2023-04-24T06:59:59Z - last_seen: 2024-08-21T04:32:46Z - error_message: Resource not found. + - app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd + first_seen: 2022-07-14T06:59:59Z + last_seen: 2022-08-23T04:32:46Z + error_message: Failed to connect to the remote system - insufficient credentials. + - app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd + first_seen: 2023-04-24T06:59:59Z + last_seen: 2024-08-21T04:32:46Z + error_message: Resource not found. properties: sync_errors: items: $ref: "#/components/schemas/SyncError" type: array + type: object required: - - sync_errors + - sync_errors SyncError: description: |- # SyncError Object @@ -9789,13 +10774,13 @@ components: first_seen: description: The time when this error was first seen. example: 2022-07-14T06:59:59Z - format: date-time type: string + format: date-time last_seen: description: The time when this error was most recently seen. example: 2022-07-14T06:59:59Z - format: date-time type: string + format: date-time error_message: description: The error message associated with the sync error. example: Failed to connect to the remote system - insufficient credentials. @@ -9806,27 +10791,18 @@ components: format: uuid type: string required: - - error_message - - first_seen - - last_seen + - first_seen + - last_seen + - error_message + type: object Bundle: - example: - updated_at: 2000-01-23T04:56:07.000+00:00 - bundle_id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - name: Bundle 1 - total_num_items: 15 - description: Description of bundle 1 - created_at: 2000-01-23T04:56:07.000+00:00 - admin_owner_id: 4aed3e8a-727b-4d72-8010-3b8710c50bec - total_num_groups: 5 - total_num_resources: 10 properties: bundle_id: description: The ID of the bundle. example: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 format: uuid - readOnly: true type: string + readOnly: true name: description: The name of the bundle. example: Bundle 1 @@ -9836,15 +10812,15 @@ components: example: Description of bundle 1 type: string created_at: - description: "The creation timestamp of the bundle, in ISO 8601 format" + type: string format: date-time + description: The creation timestamp of the bundle, in ISO 8601 format readOnly: true - type: string updated_at: - description: "The last updated timestamp of the bundle, in ISO 8601 format" + type: string format: date-time + description: The last updated timestamp of the bundle, in ISO 8601 format readOnly: true - type: string admin_owner_id: description: The ID of the owner of the bundle. example: 4aed3e8a-727b-4d72-8010-3b8710c50bec @@ -9853,50 +10829,51 @@ components: total_num_items: description: The total number of items in the bundle. example: 15 - readOnly: true type: integer + readOnly: true total_num_resources: description: The total number of resources in the bundle. example: 10 - readOnly: true type: integer + readOnly: true total_num_groups: description: The total number of groups in the bundle. example: 5 - readOnly: true type: integer + readOnly: true PaginatedBundleList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ totalCount: 2 bundles: - - id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - name: Bundle 1 - description: Description of bundle 1 - admin_owner_id: 4aed3e8a-727b-4d72-8010-3b8710c50bec - total_num_items: 0 - total_num_resources: 0 - total_num_groups: 0 - - id: 8294e9c9-deb6-48e9-9c99-da2a1e04a87f - name: Bundle 2 - description: Description of bundle 2 - admin_owner_id: 4aed3e8a-727b-4d72-8010-3b8710c50bec - total_num_items: 0 - total_num_resources: 0 - total_num_groups: 0 + - id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 + name: Bundle 1 + description: Description of bundle 1 + admin_owner_id: 4aed3e8a-727b-4d72-8010-3b8710c50bec + total_num_items: 0 + total_num_resources: 0 + total_num_groups: 0 + - id: 8294e9c9-deb6-48e9-9c99-da2a1e04a87f + name: Bundle 2 + description: Description of bundle 2 + admin_owner_id: 4aed3e8a-727b-4d72-8010-3b8710c50bec + total_num_items: 0 + total_num_resources: 0 + total_num_groups: 0 properties: previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string total_count: description: The total number of items in the result set. example: 2 @@ -9905,34 +10882,29 @@ components: items: $ref: "#/components/schemas/Bundle" type: array + type: object required: - - bundles + - bundles BundleResource: - example: - bundle_id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - resource_id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - access_level_name: Read properties: bundle_id: description: The ID of the bundle containing the resource. example: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 format: uuid - readOnly: true type: string + readOnly: true resource_id: description: The ID of the resource within a bundle. example: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 format: uuid - readOnly: true type: string + readOnly: true access_level_name: description: The access level of the resource within a bundle. example: Read type: string access_level_remote_id: - description: The remote ID of the access level of the resource within a - bundle. + description: The remote ID of the access level of the resource within a bundle. example: arn:aws:iam::490306337630:role/SupportUser type: string PaginatedBundleResourceList: @@ -9941,22 +10913,23 @@ components: previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ total_count: 3 bundle_resources: - - id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - name: Resource 1 - access_level_name: read - access_level_remote_id: pull + - id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 + name: Resource 1 + access_level_name: read + access_level_remote_id: pull properties: previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string total_count: description: The total number of items in the result set. example: 2 @@ -9965,27 +10938,23 @@ components: items: $ref: "#/components/schemas/BundleResource" type: array + type: object required: - - bundle_resources + - bundle_resources BundleGroup: - example: - group_id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - bundle_id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - access_level_name: Read properties: bundle_id: description: The ID of the bundle containing the group. example: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 format: uuid - readOnly: true type: string + readOnly: true group_id: description: The ID of the group within a bundle. example: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 format: uuid - readOnly: true type: string + readOnly: true access_level_name: description: The access level of the group within a bundle. example: Read @@ -10000,22 +10969,23 @@ components: previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ total_count: 2 bundle_groups: - - id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - name: Group 1 - - id: 8294e9c9-deb6-48e9-9c99-da2a1e04a87f - name: Group 2 + - id: a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 + name: Group 1 + - id: 8294e9c9-deb6-48e9-9c99-da2a1e04a87f + name: Group 2 properties: previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string next: - description: The cursor with which to continue pagination if additional + description: + The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string total_count: description: The total number of items in the result set. example: 2 @@ -10024,34 +10994,36 @@ components: items: $ref: "#/components/schemas/BundleGroup" type: array + type: object required: - - bundle_groups + - bundle_groups ScopedRolePermissionList: example: permissions: - - target_ids: - - a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - - 8294e9c9-deb6-48e9-9c99-da2a1e04a87f - target_type: RESOURCE - permission_name: READ + - target_ids: + - a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 + - 8294e9c9-deb6-48e9-9c99-da2a1e04a87f + target_type: RESOURCE + permission_name: READ properties: permissions: + type: array items: $ref: "#/components/schemas/ScopedRolePermission" - type: array + type: object required: - - permissions + - permissions ScopedRolePermission: + type: object properties: target_ids: - description: "The IDs of the entities that this permission applies to. If\ - \ empty of missing, the permission will have untargeted scope." + description: The IDs of the entities that this permission applies to. If empty of missing, the permission will have untargeted scope. example: - - a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 - - 8294e9c9-deb6-48e9-9c99-da2a1e04a87f + - a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 + - 8294e9c9-deb6-48e9-9c99-da2a1e04a87f items: - format: uuid type: string + format: uuid type: array target_type: $ref: "#/components/schemas/RolePermissionTargetTypeEnum" @@ -10060,15 +11032,12 @@ components: allow_all: type: boolean required: - - allow_all - - permission_name - - target_type + - target_type + - permission_name + - allow_all SyncTask: - description: "Represents a sync task that has been completed, either successfully\ - \ or with errors." - example: - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - completed_at: 2023-10-01T12:00:00Z + type: object + description: Represents a sync task that has been completed, either successfully or with errors. properties: id: description: The ID of the sync task. @@ -10078,19 +11047,21 @@ components: completed_at: description: The time when the sync task was completed. example: 2023-10-01T12:00:00Z - format: date-time type: string + format: date-time required: - - completed_at - - id + - id + - completed_at + example: + id: 7c86c85d-0651-43e2-a748-d69d658418e8 + completed_at: 2023-10-01T12:00:00Z RequestApprovalEnum: - description: The decision level for the approval - enum: - - REGULAR - - ADMIN - example: REGULAR type: string + enum: [REGULAR, ADMIN] + description: "The decision level for the approval" + example: "REGULAR" Delegation: + type: object description: |- # Delegation Object ### Description @@ -10099,15 +11070,6 @@ components: ### Usage Example List from the `GET Delegations` endpoint. Get from the `GET Delegation` endpoint. - example: - start_time: 2023-10-01T12:00:00Z - reason: I need to be out of the office - delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - updated_at: 2023-10-01T12:00:00Z - end_time: 2023-10-01T12:00:00Z - created_at: 2023-10-01T12:00:00Z - id: 4aed3e8a-727b-4d72-8010-3b8710c50bec - delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 properties: id: description: The ID of the delegation. @@ -10127,89 +11089,62 @@ components: start_time: description: The start time of the delegation. example: 2023-10-01T12:00:00Z - format: date-time type: string + format: date-time end_time: description: The end time of the delegation. example: 2023-10-01T12:00:00Z - format: date-time type: string + format: date-time reason: description: The reason for the delegation. - example: I need to be out of the office + example: "I need to be out of the office" type: string created_at: description: The creation time of the delegation. example: 2023-10-01T12:00:00Z - format: date-time type: string + format: date-time updated_at: description: The last updated time of the delegation. example: 2023-10-01T12:00:00Z - format: date-time type: string + format: date-time required: - - created_at - - delegate_user_id - - delegator_user_id - - end_time - - id - - reason - - start_time - - updated_at + - id + - delegator_user_id + - delegate_user_id + - start_time + - end_time + - reason + - created_at + - updated_at PaginatedDelegationsList: + type: object description: A list of delegations for your organization. - example: - next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - total_count: 2 - results: - - start_time: 2023-10-01T12:00:00Z - reason: I need to be out of the office - delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - updated_at: 2023-10-01T12:00:00Z - end_time: 2023-10-01T12:00:00Z - created_at: 2023-10-01T12:00:00Z - id: 4aed3e8a-727b-4d72-8010-3b8710c50bec - delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 - - start_time: 2023-10-01T12:00:00Z - reason: I need to be out of the office - delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - updated_at: 2023-10-01T12:00:00Z - end_time: 2023-10-01T12:00:00Z - created_at: 2023-10-01T12:00:00Z - id: 4aed3e8a-727b-4d72-8010-3b8710c50bec - delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 properties: results: description: The delegations in the result set. + type: array items: $ref: "#/components/schemas/Delegation" - type: array next: - description: The cursor with which to continue pagination if additional - result pages exist. + description: The cursor with which to continue pagination if additional result pages exist. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string nullable: true + type: string previous: description: The cursor used to obtain the current result page. example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ - type: string nullable: true + type: string total_count: description: The total number of items in the result set. example: 2 type: integer CreateDelegationRequest: - description: Request body for creating a new delegation of access review requests - from one user to another. - example: - start_time: 2023-10-01T12:00:00Z - reason: I need to be out of the office - delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 - end_time: 2023-10-01T12:00:00Z - delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 + type: object + description: Request body for creating a new delegation of access review requests from one user to another. properties: delegator_user_id: description: The ID of the user delegating their access review requests. @@ -10224,908 +11159,23 @@ components: start_time: description: The start time of the delegation. example: 2023-10-01T12:00:00Z - format: date-time type: string + format: date-time end_time: description: The end time of the delegation. example: 2023-10-01T12:00:00Z - format: date-time type: string + format: date-time reason: description: The reason for the delegation. - example: I need to be out of the office - type: string - required: - - delegate_user_id - - delegator_user_id - - end_time - - reason - - start_time - addBundleResource_request: - properties: - resource_id: - description: The ID of the resource to add. - example: 72e75a6f-7183-48c5-94ff-6013f213314b - format: uuid - type: string - access_level_remote_id: - description: "The remote ID of the access level to grant to this user. Required\ - \ if the resource being added requires an access level. If omitted, the\ - \ default access level remote ID value (empty string) is used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - type: string - access_level_name: - description: "The name of the access level to grant to this user. If omitted,\ - \ the default access level name value (empty string) is used." - example: AdministratorAccess - type: string - required: - - resource_id - addBundleGroup_request: - properties: - group_id: - description: The ID of the group to add. - example: 72e75a6f-7183-48c5-94ff-6013f213314b - format: uuid - type: string - access_level_remote_id: - description: "The remote ID of the access level to grant to this user. Required\ - \ if the group being added requires an access level. If omitted, the default\ - \ access level remote ID value (empty string) is used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - type: string - access_level_name: - description: "The name of the access level to grant to this user. If omitted,\ - \ the default access level name value (empty string) is used." - example: AdministratorAccess - type: string - required: - - group_id - add_group_resource_request: - example: - access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess - duration_minutes: 60 - properties: - access_level_remote_id: - description: "The remote ID of the access level to grant to this user. If\ - \ omitted, the default access level remote ID value (empty string) is\ - \ used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - type: string - duration_minutes: - description: The duration for which the resource can be accessed (in minutes). - Use 0 to set to indefinite. - example: 60 - maximum: 525960 - minimum: 0 - type: integer - update_group_user_request: - example: - duration_minutes: 60 - access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess - properties: - duration_minutes: - description: The updated duration for which the group can be accessed (in - minutes). Use 0 for indefinite. - example: 120 - maximum: 525960 - type: integer - access_level_remote_id: - description: The updated remote ID of the access level granted to this user. - example: arn:aws:iam::590304332660:role/ReadOnlyAccess - type: string - required: - - duration_minutes - add_group_user_request: - example: - duration_minutes: 60 - access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess - properties: - duration_minutes: - description: The duration for which the group can be accessed (in minutes). - Use 0 to set to indefinite. - example: 60 - type: integer - access_level_remote_id: - description: "The remote ID of the access level to grant to this user. If\ - \ omitted, the default access level remote ID value (empty string) is\ - \ used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - type: string - required: - - duration_minutes - updateIdpGroupMappings_request_mappings_inner: - properties: - group_id: - format: uuid - type: string - alias: - type: string - hidden_from_end_user: - type: boolean - updateIdpGroupMappings_request: - properties: - mappings: - items: - $ref: "#/components/schemas/updateIdpGroupMappings_request_mappings_inner" - type: array - required: - - mappings - createIdpGroupMapping_request: - properties: - alias: - description: Optional alias for the group mapping - type: string - nullable: true - hidden_from_end_user: - description: | - Whether this mapping should be hidden from end users. - - **New mappings**: If not provided, defaults to `false` - - **Existing mappings**: If not provided, existing value is preserved (no change) - - **Explicit values**: If provided, value is updated to the specified boolean - type: boolean - nullable: true - createRequest_200_response: - example: - id: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - properties: - id: - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - format: uuid - type: string - approveRequest_request: - properties: - level: - $ref: "#/components/schemas/RequestApprovalEnum" - comment: - description: Optional comment for the approval - example: Approved after security review - type: string - required: - - level - approveRequest_200_response: - example: - request: - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - requester_id: c86c85d-0651-43e2-a748-d69d658418e8 - target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 - target_group_id: r86c85d-0651-43e2-a748-d69d658418e8 - status: pending - reason: I need this resource. - duration_minutes: 1440 - request_comments: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z - request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 - user_id: c86c85d-0651-43e2-a748-d69d658418e8 - comment: This is a comment. - reviewer_stages: - - requestedRoleName: Admin - requestedItemName: AWS Production Account - stages: - - stage: 1 - operator: AND - reviewers: - - id: 7c86c85d-0651-43e2-a748-d69d658418e8 - status: PENDING - - stage: 2 - operator: OR - reviewers: - - id: 8d86c85d-0651-43e2-a748-d69d658418e9 - status: APPROVED - properties: - request: - $ref: "#/components/schemas/Request" - denyRequest_request: - properties: - comment: - description: Comment for the denial - example: Denied due to insufficient justification - type: string - required: - - comment - createRequestComment_request: - properties: - comment: - description: comment - type: string - required: - - comment - add_resource_nhi_request: - example: - duration_minutes: 60 - access_level_remote_id: roles/cloudsql.instanceUser - properties: - duration_minutes: - description: The duration for which the resource can be accessed (in minutes). - Use 0 to set to indefinite. - example: 60 - maximum: 525960 - type: integer - access_level_remote_id: - description: "The remote ID of the access level to grant. If omitted, the\ - \ default access level remote ID value (empty string) is used." - example: roles/cloudsql.instanceUser - type: string - required: - - duration_minutes - getResourceUser_200_response: - example: - cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - data: - - full_name: Jake Barnes - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-01-23T04:56:07Z - email: jake@company.dev - - full_name: Jake Barnes - user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-01-23T04:56:07Z - email: jake@company.dev - total_count: 120 - properties: - data: - items: - $ref: "#/components/schemas/ResourceUser" - type: array - cursor: - description: Pagination cursor for the next page of results - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - type: string - total_count: - description: Total number of results - example: 120 - type: integer - required: - - data - update_resource_user_request: - example: - duration_minutes: 60 - access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess - properties: - duration_minutes: - description: The updated duration for which the resource can be accessed - (in minutes). Use 0 for indefinite. - example: 120 - maximum: 525960 - type: integer - access_level_remote_id: - description: The updated remote ID of the access level granted to this user. - example: arn:aws:iam::590304332660:role/ReadOnlyAccess - type: string - required: - - duration_minutes - add_resource_user_request: - example: - duration_minutes: 60 - access_level_remote_id: arn:aws:iam::590304332660:role/AdministratorAccess - properties: - duration_minutes: - description: The duration for which the resource can be accessed (in minutes). - Use 0 to set to indefinite. - example: 60 - maximum: 525960 - type: integer - access_level_remote_id: - description: "The remote ID of the access level to grant to this user. If\ - \ omitted, the default access level remote ID value (empty string) is\ - \ used." - example: arn:aws:iam::590304332660:role/AdministratorAccess - type: string - required: - - duration_minutes - GroupRemoteInfo_active_directory_group: - description: Remote info for Active Directory group. - properties: - group_id: - description: The id of the Google group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 - type: string - required: - - group_id - GroupRemoteInfo_github_team: - description: Remote info for GitHub team. - properties: - team_id: - deprecated: true - description: The id of the GitHub team. - example: 898931321 - type: string - team_slug: - description: The slug of the GitHub team. - example: opal-security - type: string - required: - - team_slug - GroupRemoteInfo_gitlab_group: - description: Remote info for Gitlab group. - properties: - group_id: - description: The id of the Gitlab group. - example: 898931321 - type: string - required: - - group_id - GroupRemoteInfo_google_group: - description: Remote info for Google group. - properties: - group_id: - description: The id of the Google group. - example: 1y6w882181n7sg - type: string - required: - - group_id - GroupRemoteInfo_ldap_group: - description: Remote info for LDAP group. - properties: - group_id: - description: The id of the LDAP group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 - type: string - required: - - group_id - GroupRemoteInfo_okta_group: - description: Remote info for Okta Directory group. - properties: - group_id: - description: The id of the Okta Directory group. - example: 00gjs33pe8rtmRrp3rd6 - type: string - required: - - group_id - GroupRemoteInfo_duo_group: - description: Remote info for Duo Security group. - properties: - group_id: - description: The id of the Duo Security group. - example: DSRD8W89B9DNDBY4RHAC - type: string - required: - - group_id - GroupRemoteInfo_azure_ad_security_group: - description: Remote info for Microsoft Entra ID Security group. - properties: - group_id: - description: The id of the Microsoft Entra ID Security group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 - type: string - required: - - group_id - GroupRemoteInfo_azure_ad_microsoft_365_group: - description: Remote info for Microsoft Entra ID Microsoft 365 group. - properties: - group_id: - description: The id of the Microsoft Entra ID Microsoft 365 group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 - type: string - required: - - group_id - GroupRemoteInfo_snowflake_role: - description: Remote info for Snowflake role. - properties: - role_id: - description: The id of the Snowflake role. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 - type: string - required: - - role_id - GroupRemoteInfo_okta_group_rule: - description: Remote info for Okta Directory group rule. - properties: - rule_id: - description: The id of the Okta group rule. - example: 0pr3f7zMZZHPgUoWO0g4 - type: string - required: - - rule_id - GroupRemoteInfo_workday_user_security_group: - description: Remote info for Workday User Security group. - properties: - group_id: - description: The id of the Workday User Security group. - example: 123abc456def - type: string - required: - - group_id - ResourceRemoteInfo_aws_organizational_unit: - description: Remote info for AWS organizational unit. - properties: - parent_id: - description: The id of the parent organizational unit. - example: ou-1234 - type: string - organizational_unit_id: - description: The id of the AWS organizational unit that is being created. - example: ou-1234 - type: string - required: - - organizational_unit_id - ResourceRemoteInfo_aws_account: - description: Remote info for AWS account. - properties: - account_id: - description: The id of the AWS account. - example: 234234234234 - type: string - organizational_unit_id: - description: The id of the AWS organizational unit. Required only if customer - has OUs enabled. - example: ou-1234 - type: string - required: - - account_id - ResourceRemoteInfo_aws_permission_set: - description: Remote info for AWS Identity Center permission set. - properties: - arn: - description: The ARN of the permission set. - example: arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9 - type: string - account_id: - description: The ID of an AWS account to which this permission set is provisioned. - example: 234234234234 - type: string - required: - - account_id - - arn - ResourceRemoteInfo_aws_iam_role: - description: Remote info for AWS IAM role. - properties: - arn: - description: The ARN of the IAM role. - example: arn:aws:iam::179308207300:role/MyRole - type: string - account_id: - description: The id of the AWS account. Required for AWS Organizations. - example: 234234234234 - type: string - required: - - arn - ResourceRemoteInfo_aws_ec2_instance: - description: Remote info for AWS EC2 instance. - properties: - instance_id: - description: The instanceId of the EC2 instance. - example: i-13f1a1e2899f9e93a - type: string - region: - description: The region of the EC2 instance. - example: us-east-2 - type: string - account_id: - description: The id of the AWS account. Required for AWS Organizations. - example: 234234234234 - type: string - required: - - instance_id - - region - ResourceRemoteInfo_aws_rds_instance: - description: Remote info for AWS RDS instance. - properties: - instance_id: - description: The instanceId of the RDS instance. - example: demo-mysql-db - type: string - region: - description: The region of the RDS instance. - example: us-east-2 - type: string - resource_id: - description: The resourceId of the RDS instance. - example: db-AOO8V0XUCNU13XLZXQDQRSN0NQ - type: string - account_id: - description: The id of the AWS account. Required for AWS Organizations. - example: 234234234234 - type: string - required: - - instance_id - - region - - resource_id - ResourceRemoteInfo_aws_eks_cluster: - description: Remote info for AWS EKS cluster. - properties: - arn: - description: The ARN of the EKS cluster. - example: arn:aws:eks:us-east-2:234234234234:cluster/testcluster - type: string - account_id: - description: The id of the AWS account. Required for AWS Organizations. - example: 234234234234 - type: string - required: - - arn - ResourceRemoteInfo_custom_connector: - description: Remote info for a custom connector resource. - properties: - remote_resource_id: - description: The id of the resource in the end system - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 - type: string - can_have_usage_events: - description: A bool representing whether or not the resource can have usage - data. - example: false - type: boolean - required: - - can_have_usage_events - - remote_resource_id - ResourceRemoteInfo_gcp_organization: - description: Remote info for GCP organization. - properties: - organization_id: - description: The id of the organization. - example: organizations/898931321 - type: string - required: - - organization_id - ResourceRemoteInfo_gcp_bucket: - description: Remote info for GCP bucket. - properties: - bucket_id: - description: The id of the bucket. - example: example-bucket-898931321 - type: string - required: - - bucket_id - ResourceRemoteInfo_gcp_compute_instance: - description: Remote info for GCP compute instance. - properties: - instance_id: - description: The id of the instance. - example: example-instance-898931321 - type: string - project_id: - description: The id of the project the instance is in. - example: example-project-898931321 - type: string - zone: - description: The zone the instance is in. - example: us-central1-a - type: string - required: - - instance_id - - project_id - - zone - ResourceRemoteInfo_gcp_big_query_dataset: - description: Remote info for GCP BigQuery Dataset. - properties: - project_id: - description: The id of the project the dataset is in. - example: example-project-898931321 - type: string - dataset_id: - description: The id of the dataset. - example: example-dataset-898931321 - type: string - required: - - dataset_id - - project_id - ResourceRemoteInfo_gcp_big_query_table: - description: Remote info for GCP BigQuery Table. - properties: - project_id: - description: The id of the project the table is in. - example: example-project-898931321 - type: string - dataset_id: - description: The id of the dataset the table is in. - example: example-dataset-898931321 - type: string - table_id: - description: The id of the table. - example: example-table-898931321 - type: string - required: - - dataset_id - - project_id - - table_id - ResourceRemoteInfo_gcp_folder: - description: Remote info for GCP folder. - properties: - folder_id: - description: The id of the folder. - example: folder/898931321 - type: string - required: - - folder_id - ResourceRemoteInfo_gcp_gke_cluster: - description: Remote info for GCP GKE cluster. - properties: - cluster_name: - description: The name of the GKE cluster. - example: example-cluster-898931321 - type: string - required: - - cluster_name - ResourceRemoteInfo_gcp_project: - description: Remote info for GCP project. - properties: - project_id: - description: The id of the project. - example: example-project-898931321 - type: string - required: - - project_id - ResourceRemoteInfo_gcp_sql_instance: - description: Remote info for GCP SQL instance. - properties: - instance_id: - description: The id of the SQL instance. - example: example-sql-898931321 - type: string - project_id: - description: The id of the project the instance is in. - example: example-project-898931321 - type: string - required: - - instance_id - - project_id - ResourceRemoteInfo_gcp_service_account: - description: Remote info for a GCP service account. - properties: - email: - description: The email of the service account. - example: production@project.iam.gserviceaccount.com - type: string - service_account_id: - description: The id of the service account. - example: 103561576023829463298 - type: string - project_id: - description: The id of the project the service account is in. - example: example-project-898931321 - type: string - required: - - email - - project_id - - service_account_id - ResourceRemoteInfo_google_workspace_role: - description: Remote info for GCP workspace role. - properties: - role_id: - description: The id of the role. - example: google-workspace-role:01234567890123456 - type: string - required: - - role_id - ResourceRemoteInfo_github_repo: - description: Remote info for GitHub repository. - properties: - repo_id: - deprecated: true - description: The id of the repository. - example: 898931321 - type: string - repo_name: - description: The name of the repository. - example: Opal Security - type: string - required: - - repo_name - ResourceRemoteInfo_github_org_role: - description: Remote info for GitHub organization role. - properties: - role_id: - description: The id of the role. - example: 112233 - type: string - required: - - role_id - ResourceRemoteInfo_gitlab_project: - description: Remote info for Gitlab project. - properties: - project_id: - description: The id of the project. - example: 898931321 - type: string - required: - - project_id - ResourceRemoteInfo_okta_app: - description: Remote info for Okta directory app. - properties: - app_id: - description: The id of the app. - example: a9dfas0f678asdf67867 - type: string - required: - - app_id - ResourceRemoteInfo_okta_standard_role: - description: Remote info for Okta directory standard role. - properties: - role_type: - description: The type of the standard role. - example: ORG_ADMIN - type: string - required: - - role_type - ResourceRemoteInfo_okta_custom_role: - description: Remote info for Okta directory custom role. - properties: - role_id: - description: The id of the custom role. - example: a9dfas0f678asdf67867 - type: string - required: - - role_id - ResourceRemoteInfo_pagerduty_role: - description: Remote info for Pagerduty role. - properties: - role_name: - description: The name of the role. - example: owner - type: string - required: - - role_name - ResourceRemoteInfo_salesforce_permission_set: - description: Remote info for Salesforce permission set. - properties: - permission_set_id: - description: The id of the permission set. - example: 0PS5Y090202wOV7WAM - type: string - required: - - permission_set_id - ResourceRemoteInfo_salesforce_profile: - description: Remote info for Salesforce profile. - properties: - profile_id: - description: The id of the permission set. - example: 0PS5Y090202wOV7WAM - type: string - user_license_id: - description: The id of the user license. - example: 1005Y030081Qb5XJHS - type: string - required: - - profile_id - - user_license_id - ResourceRemoteInfo_salesforce_role: - description: Remote info for Salesforce role. - properties: - role_id: - description: The id of the role. - example: 0PS5Y090202wOV7WAM - type: string - required: - - role_id - ResourceRemoteInfo_teleport_role: - description: Remote info for Teleport role. - properties: - role_name: - description: The name role. - example: admin_role - type: string - required: - - role_name - ResourceRemoteInfo_datastax_astra_role: - description: Remote info for an Astra role. - properties: - role_id: - description: The id of the role. - example: 123e4567-e89b-12d3-a456-426614174000 - type: string - required: - - role_id - ResourceRemoteInfo_coupa_role: - description: Remote info for Coupa role. - properties: - role_id: - description: The id of the role. - example: 999 - type: string - required: - - role_id - RequestCustomFieldResponse_field_value: - oneOf: - - example: This is a response to a long text or short text or multi choice - type: string - - example: true - type: boolean - AwsPermissionSetMetadata_aws_permission_set: - properties: - arn: - description: The ARN of the permission set. - example: arn:aws:sso:::permissionSet/asdf-32139302d201d32/ps-f03323201211e1b9 - type: string - account_id: - description: The ID of an AWS account to which this permission set is provisioned. - example: 234234234234 - type: string - required: - - account_id - - arn - CreateGroupBindingInfo_groups_inner: - properties: - group_id: - description: The ID of the group. - example: f454d283-ca87-4a8a-bdbb-df212eca5353 - format: uuid - type: string - required: - - group_id - CreateRequestInfo_resources_inner: - example: - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - id: group283-ca87-4a8a-bdbb-df212eca5353 - access_level_name: arn:aws:iam::490306337630:role/SupportUser - properties: - id: - description: The ID of the resource requested. Should not be specified if - group_id is specified. - example: group283-ca87-4a8a-bdbb-df212eca5353 - format: uuid - type: string - access_level_remote_id: - description: The ID of the access level requested on the remote system. - example: arn:aws:iam::490306337630:role/SupportUser - type: string - access_level_name: - description: The ID of the access level requested on the remote system. - example: arn:aws:iam::490306337630:role/SupportUser - type: string - CreateRequestInfo_groups_inner: - example: - access_level_remote_id: arn:aws:iam::490306337630:role/SupportUser - id: f454d283-ca87-4a8a-bdbb-df212eca5353 - access_level_name: arn:aws:iam::490306337630:role/SupportUser - properties: - id: - description: The ID of the group requested. Should not be specified if resource_id - is specified. - example: f454d283-ca87-4a8a-bdbb-df212eca5353 - format: uuid - type: string - access_level_remote_id: - description: The ID of the access level requested on the remote system. - example: arn:aws:iam::490306337630:role/SupportUser - type: string - access_level_name: - description: The ID of the access level requested on the remote system. - example: arn:aws:iam::490306337630:role/SupportUser - type: string - required: - - id - CreateRequestInfo_support_ticket: - example: - ticketing_provider: LINEAR - identifier: identifier - remote_id: remote_id - url: url - properties: - ticketing_provider: - $ref: "#/components/schemas/TicketingProviderEnum" - remote_id: - type: string - identifier: - type: string - url: - type: string - required: - - identifier - - remote_id - - ticketing_provider - - url - CreateRequestInfo_custom_metadata_inner: - example: - name: name - type: SHORT_TEXT - value: value - properties: - name: - type: string - type: - $ref: "#/components/schemas/RequestTemplateCustomFieldTypeEnum" - value: + example: "I need to be out of the office" type: string required: - - name - - type - - value + - delegator_user_id + - delegate_user_id + - start_time + - end_time + - reason securitySchemes: BearerAuth: scheme: bearer diff --git a/api_apps.go b/api_apps.go index 3332c96..205d879 100644 --- a/api_apps.go +++ b/api_apps.go @@ -35,7 +35,7 @@ func (r ApiGetAppRequest) Execute() (*App, *http.Response, error) { } /* -GetApp Method for GetApp +GetApp Get app by ID Returns an `App` object. @@ -151,7 +151,7 @@ func (r ApiGetAppsRequest) Execute() (*AppsList, *http.Response, error) { } /* -GetApps Method for GetApps +GetApps Get apps Returns a list of `App` objects. diff --git a/api_delegations.go b/api_delegations.go index 7c4a244..2f77156 100644 --- a/api_delegations.go +++ b/api_delegations.go @@ -237,7 +237,7 @@ func (r ApiGetDelegationRequest) Execute() (*Delegation, *http.Response, error) } /* -GetDelegation Method for GetDelegation +GetDelegation Get delegation by ID Returns a specific delegation by its ID. @@ -367,7 +367,7 @@ func (r ApiGetDelegationsRequest) Execute() (*PaginatedDelegationsList, *http.Re } /* -GetDelegations Method for GetDelegations +GetDelegations Get delegations Returns a list of request reviewer delegations configured for your organization. diff --git a/api_groups.go b/api_groups.go index 2d81387..36991c6 100644 --- a/api_groups.go +++ b/api_groups.go @@ -2149,6 +2149,13 @@ type ApiRemoveGroupContainingGroupRequest struct { ApiService *GroupsAPIService groupId string containingGroupId string + accessLevelRemoteId *string +} + +// The remote ID of the member group's access level to filter by. +func (r ApiRemoveGroupContainingGroupRequest) AccessLevelRemoteId(accessLevelRemoteId string) ApiRemoveGroupContainingGroupRequest { + r.accessLevelRemoteId = &accessLevelRemoteId + return r } func (r ApiRemoveGroupContainingGroupRequest) Execute() (*http.Response, error) { @@ -2161,7 +2168,7 @@ RemoveGroupContainingGroup Method for RemoveGroupContainingGroup Removes a containing group from a group. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param groupId The ID of the group. + @param groupId The ID of the member group to remove. @param containingGroupId The ID of the containing group. @return ApiRemoveGroupContainingGroupRequest */ @@ -2195,6 +2202,9 @@ func (a *GroupsAPIService) RemoveGroupContainingGroupExecute(r ApiRemoveGroupCon 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/api_resources.go b/api_resources.go index 3c6254a..0385c1d 100644 --- a/api_resources.go +++ b/api_resources.go @@ -793,6 +793,109 @@ func (a *ResourcesAPIService) GetResourceExecute(r ApiGetResourceRequest) (*Reso return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetResourceGroupsRequest struct { + ctx context.Context + ApiService *ResourcesAPIService + resourceId string +} + +func (r ApiGetResourceGroupsRequest) Execute() (*GroupResourceList, *http.Response, error) { + return r.ApiService.GetResourceGroupsExecute(r) +} + +/* +GetResourceGroups Method for GetResourceGroups + +Returns a list of groups that grant access to the resource + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param resourceId The ID of the resource that the groups grant access to. + @return ApiGetResourceGroupsRequest +*/ +func (a *ResourcesAPIService) GetResourceGroups(ctx context.Context, resourceId string) ApiGetResourceGroupsRequest { + return ApiGetResourceGroupsRequest{ + ApiService: a, + ctx: ctx, + resourceId: resourceId, + } +} + +// Execute executes the request +// @return GroupResourceList +func (a *ResourcesAPIService) GetResourceGroupsExecute(r ApiGetResourceGroupsRequest) (*GroupResourceList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupResourceList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourcesAPIService.GetResourceGroups") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/{resource_id}/groups" + localVarPath = strings.Replace(localVarPath, "{"+"resource_id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -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 +} + type ApiGetResourceMessageChannelsRequest struct { ctx context.Context ApiService *ResourcesAPIService diff --git a/client.go b/client.go index 7cdc013..e638802 100644 --- a/client.go +++ b/client.go @@ -547,10 +547,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error { if err != nil { return err } - err = file.Close() - if err != nil { - return err - } + defer file.Close() part, err := w.CreateFormFile(fieldName, filepath.Base(path)) if err != nil { diff --git a/docs/AppTypeEnum.md b/docs/AppTypeEnum.md index bf0e7ad..d346585 100644 --- a/docs/AppTypeEnum.md +++ b/docs/AppTypeEnum.md @@ -5,14 +5,24 @@ * `ACTIVE_DIRECTORY` (value: `"ACTIVE_DIRECTORY"`) +* `ANTHROPIC` (value: `"ANTHROPIC"`) + * `AZURE_AD` (value: `"AZURE_AD"`) * `AWS` (value: `"AWS"`) * `AWS_SSO` (value: `"AWS_SSO"`) +* `COUPA` (value: `"COUPA"`) + +* `CURSOR` (value: `"CURSOR"`) + * `CUSTOM` (value: `"CUSTOM"`) +* `DATABRICKS` (value: `"DATABRICKS"`) + +* `DATASTAX_ASTRA` (value: `"DATASTAX_ASTRA"`) + * `DUO` (value: `"DUO"`) * `GCP` (value: `"GCP"`) @@ -25,6 +35,10 @@ * `GOOGLE_WORKSPACE` (value: `"GOOGLE_WORKSPACE"`) +* `ILEVEL` (value: `"ILEVEL"`) + +* `INCIDENTIO` (value: `"INCIDENTIO"`) + * `LDAP` (value: `"LDAP"`) * `MARIADB` (value: `"MARIADB"`) @@ -37,12 +51,16 @@ * `OKTA_DIRECTORY` (value: `"OKTA_DIRECTORY"`) +* `OPENAI_PLATFORM` (value: `"OPENAI_PLATFORM"`) + * `OPAL` (value: `"OPAL"`) * `PAGERDUTY` (value: `"PAGERDUTY"`) * `SALESFORCE` (value: `"SALESFORCE"`) +* `SNOWFLAKE` (value: `"SNOWFLAKE"`) + * `TAILSCALE` (value: `"TAILSCALE"`) * `TELEPORT` (value: `"TELEPORT"`) diff --git a/docs/AppsAPI.md b/docs/AppsAPI.md index 9574c66..cc8f351 100644 --- a/docs/AppsAPI.md +++ b/docs/AppsAPI.md @@ -4,8 +4,8 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**GetApp**](AppsAPI.md#GetApp) | **Get** /apps/{app_id} | -[**GetApps**](AppsAPI.md#GetApps) | **Get** /apps | +[**GetApp**](AppsAPI.md#GetApp) | **Get** /apps/{app_id} | Get app by ID +[**GetApps**](AppsAPI.md#GetApps) | **Get** /apps | Get apps [**GetSyncErrors**](AppsAPI.md#GetSyncErrors) | **Get** /sync_errors | @@ -14,7 +14,7 @@ Method | HTTP request | Description > App GetApp(ctx, appId).Execute() - +Get app by ID @@ -84,7 +84,7 @@ Name | Type | Description | Notes > AppsList GetApps(ctx).AppTypeFilter(appTypeFilter).OwnerFilter(ownerFilter).Execute() - +Get apps diff --git a/docs/CreateRequestInfoResourcesInner.md b/docs/CreateRequestInfoResourcesInner.md index 86625a8..403ce28 100644 --- a/docs/CreateRequestInfoResourcesInner.md +++ b/docs/CreateRequestInfoResourcesInner.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | Pointer to **string** | The ID of the resource requested. Should not be specified if group_id is specified. | [optional] **AccessLevelRemoteId** | Pointer to **string** | The ID of the access level requested on the remote system. | [optional] -**AccessLevelName** | Pointer to **string** | The ID of the access level requested on the remote system. | [optional] +**AccessLevelName** | Pointer to **string** | The ID of the access level requested on the remote system. This field is deprecated and no longer required. We will populate based on the access_level_remote_id. | [optional] ## Methods diff --git a/docs/CreateUARInfo.md b/docs/CreateUARInfo.md index 997df93..009fb5b 100644 --- a/docs/CreateUARInfo.md +++ b/docs/CreateUARInfo.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Deadline** | **time.Time** | The last day for reviewers to complete their access reviews. | **TimeZone** | **string** | The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. | **SelfReviewAllowed** | **bool** | A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. | +**InstantlyActionReviews** | Pointer to **bool** | A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. | [optional] **ReminderSchedule** | Pointer to **[]int32** | | [optional] **ReminderIncludeManager** | Pointer to **bool** | | [optional] **UarScope** | Pointer to [**UARScope**](UARScope.md) | | [optional] @@ -153,6 +154,31 @@ and a boolean to check if the value has been set. SetSelfReviewAllowed sets SelfReviewAllowed field to given value. +### GetInstantlyActionReviews + +`func (o *CreateUARInfo) GetInstantlyActionReviews() bool` + +GetInstantlyActionReviews returns the InstantlyActionReviews field if non-nil, zero value otherwise. + +### GetInstantlyActionReviewsOk + +`func (o *CreateUARInfo) GetInstantlyActionReviewsOk() (*bool, bool)` + +GetInstantlyActionReviewsOk returns a tuple with the InstantlyActionReviews field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstantlyActionReviews + +`func (o *CreateUARInfo) SetInstantlyActionReviews(v bool)` + +SetInstantlyActionReviews sets InstantlyActionReviews field to given value. + +### HasInstantlyActionReviews + +`func (o *CreateUARInfo) HasInstantlyActionReviews() bool` + +HasInstantlyActionReviews returns a boolean if a field has been set. + ### GetReminderSchedule `func (o *CreateUARInfo) GetReminderSchedule() []int32` diff --git a/docs/DelegationsAPI.md b/docs/DelegationsAPI.md index 342f460..45dfcb9 100644 --- a/docs/DelegationsAPI.md +++ b/docs/DelegationsAPI.md @@ -6,8 +6,8 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateDelegation**](DelegationsAPI.md#CreateDelegation) | **Post** /delegations | [**DeleteDelegation**](DelegationsAPI.md#DeleteDelegation) | **Delete** /delegations/{delegation_id} | -[**GetDelegation**](DelegationsAPI.md#GetDelegation) | **Get** /delegations/{delegation_id} | -[**GetDelegations**](DelegationsAPI.md#GetDelegations) | **Get** /delegations | +[**GetDelegation**](DelegationsAPI.md#GetDelegation) | **Get** /delegations/{delegation_id} | Get delegation by ID +[**GetDelegations**](DelegationsAPI.md#GetDelegations) | **Get** /delegations | Get delegations @@ -150,7 +150,7 @@ Name | Type | Description | Notes > Delegation GetDelegation(ctx, delegationId).Execute() - +Get delegation by ID @@ -220,7 +220,7 @@ Name | Type | Description | Notes > PaginatedDelegationsList GetDelegations(ctx).DelegatorUserId(delegatorUserId).DelegateUserId(delegateUserId).Cursor(cursor).PageSize(pageSize).Execute() - +Get delegations diff --git a/docs/DenyRequestRequest.md b/docs/DenyRequestRequest.md index 722c231..4397217 100644 --- a/docs/DenyRequestRequest.md +++ b/docs/DenyRequestRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Comment** | **string** | Comment for the denial | +**Level** | Pointer to [**RequestApprovalEnum**](RequestApprovalEnum.md) | | [optional] ## Methods @@ -45,6 +46,31 @@ and a boolean to check if the value has been set. SetComment sets Comment field to given value. +### GetLevel + +`func (o *DenyRequestRequest) GetLevel() RequestApprovalEnum` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *DenyRequestRequest) GetLevelOk() (*RequestApprovalEnum, bool)` + +GetLevelOk returns a tuple with the Level field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLevel + +`func (o *DenyRequestRequest) SetLevel(v RequestApprovalEnum)` + +SetLevel sets Level field to given value. + +### HasLevel + +`func (o *DenyRequestRequest) HasLevel() bool` + +HasLevel returns a boolean if a field has been set. + [[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/GroupContainingGroup.md b/docs/GroupContainingGroup.md index ae8dce7..3f9eb39 100644 --- a/docs/GroupContainingGroup.md +++ b/docs/GroupContainingGroup.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ContainingGroupId** | **string** | The groupID of the containing group. | +**DurationMinutes** | Pointer to **int32** | The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite. | [optional] +**AccessLevelRemoteId** | Pointer to **string** | The updated remote ID of the access level granted to this group. | [optional] ## Methods @@ -45,6 +47,56 @@ and a boolean to check if the value has been set. SetContainingGroupId sets ContainingGroupId field to given value. +### GetDurationMinutes + +`func (o *GroupContainingGroup) GetDurationMinutes() int32` + +GetDurationMinutes returns the DurationMinutes field if non-nil, zero value otherwise. + +### GetDurationMinutesOk + +`func (o *GroupContainingGroup) GetDurationMinutesOk() (*int32, bool)` + +GetDurationMinutesOk returns a tuple with the DurationMinutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDurationMinutes + +`func (o *GroupContainingGroup) SetDurationMinutes(v int32)` + +SetDurationMinutes sets DurationMinutes field to given value. + +### HasDurationMinutes + +`func (o *GroupContainingGroup) HasDurationMinutes() bool` + +HasDurationMinutes returns a boolean if a field has been set. + +### GetAccessLevelRemoteId + +`func (o *GroupContainingGroup) GetAccessLevelRemoteId() string` + +GetAccessLevelRemoteId returns the AccessLevelRemoteId field if non-nil, zero value otherwise. + +### GetAccessLevelRemoteIdOk + +`func (o *GroupContainingGroup) GetAccessLevelRemoteIdOk() (*string, bool)` + +GetAccessLevelRemoteIdOk returns a tuple with the AccessLevelRemoteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevelRemoteId + +`func (o *GroupContainingGroup) SetAccessLevelRemoteId(v string)` + +SetAccessLevelRemoteId sets AccessLevelRemoteId field to given value. + +### HasAccessLevelRemoteId + +`func (o *GroupContainingGroup) HasAccessLevelRemoteId() bool` + +HasAccessLevelRemoteId returns a boolean if a field has been set. + [[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/GroupRemoteInfo.md b/docs/GroupRemoteInfo.md index ec272a1..404c202 100644 --- a/docs/GroupRemoteInfo.md +++ b/docs/GroupRemoteInfo.md @@ -5,6 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ActiveDirectoryGroup** | Pointer to [**GroupRemoteInfoActiveDirectoryGroup**](GroupRemoteInfoActiveDirectoryGroup.md) | | [optional] +**TailscaleGroup** | Pointer to [**GroupRemoteInfoTailscaleGroup**](GroupRemoteInfoTailscaleGroup.md) | | [optional] +**AwsSsoGroup** | Pointer to [**GroupRemoteInfoAwsSsoGroup**](GroupRemoteInfoAwsSsoGroup.md) | | [optional] +**DatabricksAccountGroup** | Pointer to [**GroupRemoteInfoDatabricksAccountGroup**](GroupRemoteInfoDatabricksAccountGroup.md) | | [optional] +**ConnectorGroup** | Pointer to [**GroupRemoteInfoConnectorGroup**](GroupRemoteInfoConnectorGroup.md) | | [optional] **GithubTeam** | Pointer to [**GroupRemoteInfoGithubTeam**](GroupRemoteInfoGithubTeam.md) | | [optional] **GitlabGroup** | Pointer to [**GroupRemoteInfoGitlabGroup**](GroupRemoteInfoGitlabGroup.md) | | [optional] **GoogleGroup** | Pointer to [**GroupRemoteInfoGoogleGroup**](GroupRemoteInfoGoogleGroup.md) | | [optional] @@ -16,6 +20,10 @@ Name | Type | Description | Notes **SnowflakeRole** | Pointer to [**GroupRemoteInfoSnowflakeRole**](GroupRemoteInfoSnowflakeRole.md) | | [optional] **OktaGroupRule** | Pointer to [**GroupRemoteInfoOktaGroupRule**](GroupRemoteInfoOktaGroupRule.md) | | [optional] **WorkdayUserSecurityGroup** | Pointer to [**GroupRemoteInfoWorkdayUserSecurityGroup**](GroupRemoteInfoWorkdayUserSecurityGroup.md) | | [optional] +**PagerdutyOnCallSchedule** | Pointer to [**GroupRemoteInfoPagerdutyOnCallSchedule**](GroupRemoteInfoPagerdutyOnCallSchedule.md) | | [optional] +**IncidentioOnCallSchedule** | Pointer to [**GroupRemoteInfoIncidentioOnCallSchedule**](GroupRemoteInfoIncidentioOnCallSchedule.md) | | [optional] +**RootlyOnCallSchedule** | Pointer to [**GroupRemoteInfoRootlyOnCallSchedule**](GroupRemoteInfoRootlyOnCallSchedule.md) | | [optional] +**DevinGroup** | Pointer to [**GroupRemoteInfoDevinGroup**](GroupRemoteInfoDevinGroup.md) | | [optional] ## Methods @@ -61,6 +69,106 @@ SetActiveDirectoryGroup sets ActiveDirectoryGroup field to given value. HasActiveDirectoryGroup returns a boolean if a field has been set. +### GetTailscaleGroup + +`func (o *GroupRemoteInfo) GetTailscaleGroup() GroupRemoteInfoTailscaleGroup` + +GetTailscaleGroup returns the TailscaleGroup field if non-nil, zero value otherwise. + +### GetTailscaleGroupOk + +`func (o *GroupRemoteInfo) GetTailscaleGroupOk() (*GroupRemoteInfoTailscaleGroup, bool)` + +GetTailscaleGroupOk returns a tuple with the TailscaleGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTailscaleGroup + +`func (o *GroupRemoteInfo) SetTailscaleGroup(v GroupRemoteInfoTailscaleGroup)` + +SetTailscaleGroup sets TailscaleGroup field to given value. + +### HasTailscaleGroup + +`func (o *GroupRemoteInfo) HasTailscaleGroup() bool` + +HasTailscaleGroup returns a boolean if a field has been set. + +### GetAwsSsoGroup + +`func (o *GroupRemoteInfo) GetAwsSsoGroup() GroupRemoteInfoAwsSsoGroup` + +GetAwsSsoGroup returns the AwsSsoGroup field if non-nil, zero value otherwise. + +### GetAwsSsoGroupOk + +`func (o *GroupRemoteInfo) GetAwsSsoGroupOk() (*GroupRemoteInfoAwsSsoGroup, bool)` + +GetAwsSsoGroupOk returns a tuple with the AwsSsoGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAwsSsoGroup + +`func (o *GroupRemoteInfo) SetAwsSsoGroup(v GroupRemoteInfoAwsSsoGroup)` + +SetAwsSsoGroup sets AwsSsoGroup field to given value. + +### HasAwsSsoGroup + +`func (o *GroupRemoteInfo) HasAwsSsoGroup() bool` + +HasAwsSsoGroup returns a boolean if a field has been set. + +### GetDatabricksAccountGroup + +`func (o *GroupRemoteInfo) GetDatabricksAccountGroup() GroupRemoteInfoDatabricksAccountGroup` + +GetDatabricksAccountGroup returns the DatabricksAccountGroup field if non-nil, zero value otherwise. + +### GetDatabricksAccountGroupOk + +`func (o *GroupRemoteInfo) GetDatabricksAccountGroupOk() (*GroupRemoteInfoDatabricksAccountGroup, bool)` + +GetDatabricksAccountGroupOk returns a tuple with the DatabricksAccountGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatabricksAccountGroup + +`func (o *GroupRemoteInfo) SetDatabricksAccountGroup(v GroupRemoteInfoDatabricksAccountGroup)` + +SetDatabricksAccountGroup sets DatabricksAccountGroup field to given value. + +### HasDatabricksAccountGroup + +`func (o *GroupRemoteInfo) HasDatabricksAccountGroup() bool` + +HasDatabricksAccountGroup returns a boolean if a field has been set. + +### GetConnectorGroup + +`func (o *GroupRemoteInfo) GetConnectorGroup() GroupRemoteInfoConnectorGroup` + +GetConnectorGroup returns the ConnectorGroup field if non-nil, zero value otherwise. + +### GetConnectorGroupOk + +`func (o *GroupRemoteInfo) GetConnectorGroupOk() (*GroupRemoteInfoConnectorGroup, bool)` + +GetConnectorGroupOk returns a tuple with the ConnectorGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectorGroup + +`func (o *GroupRemoteInfo) SetConnectorGroup(v GroupRemoteInfoConnectorGroup)` + +SetConnectorGroup sets ConnectorGroup field to given value. + +### HasConnectorGroup + +`func (o *GroupRemoteInfo) HasConnectorGroup() bool` + +HasConnectorGroup returns a boolean if a field has been set. + ### GetGithubTeam `func (o *GroupRemoteInfo) GetGithubTeam() GroupRemoteInfoGithubTeam` @@ -336,6 +444,106 @@ SetWorkdayUserSecurityGroup sets WorkdayUserSecurityGroup field to given value. HasWorkdayUserSecurityGroup returns a boolean if a field has been set. +### GetPagerdutyOnCallSchedule + +`func (o *GroupRemoteInfo) GetPagerdutyOnCallSchedule() GroupRemoteInfoPagerdutyOnCallSchedule` + +GetPagerdutyOnCallSchedule returns the PagerdutyOnCallSchedule field if non-nil, zero value otherwise. + +### GetPagerdutyOnCallScheduleOk + +`func (o *GroupRemoteInfo) GetPagerdutyOnCallScheduleOk() (*GroupRemoteInfoPagerdutyOnCallSchedule, bool)` + +GetPagerdutyOnCallScheduleOk returns a tuple with the PagerdutyOnCallSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPagerdutyOnCallSchedule + +`func (o *GroupRemoteInfo) SetPagerdutyOnCallSchedule(v GroupRemoteInfoPagerdutyOnCallSchedule)` + +SetPagerdutyOnCallSchedule sets PagerdutyOnCallSchedule field to given value. + +### HasPagerdutyOnCallSchedule + +`func (o *GroupRemoteInfo) HasPagerdutyOnCallSchedule() bool` + +HasPagerdutyOnCallSchedule returns a boolean if a field has been set. + +### GetIncidentioOnCallSchedule + +`func (o *GroupRemoteInfo) GetIncidentioOnCallSchedule() GroupRemoteInfoIncidentioOnCallSchedule` + +GetIncidentioOnCallSchedule returns the IncidentioOnCallSchedule field if non-nil, zero value otherwise. + +### GetIncidentioOnCallScheduleOk + +`func (o *GroupRemoteInfo) GetIncidentioOnCallScheduleOk() (*GroupRemoteInfoIncidentioOnCallSchedule, bool)` + +GetIncidentioOnCallScheduleOk returns a tuple with the IncidentioOnCallSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIncidentioOnCallSchedule + +`func (o *GroupRemoteInfo) SetIncidentioOnCallSchedule(v GroupRemoteInfoIncidentioOnCallSchedule)` + +SetIncidentioOnCallSchedule sets IncidentioOnCallSchedule field to given value. + +### HasIncidentioOnCallSchedule + +`func (o *GroupRemoteInfo) HasIncidentioOnCallSchedule() bool` + +HasIncidentioOnCallSchedule returns a boolean if a field has been set. + +### GetRootlyOnCallSchedule + +`func (o *GroupRemoteInfo) GetRootlyOnCallSchedule() GroupRemoteInfoRootlyOnCallSchedule` + +GetRootlyOnCallSchedule returns the RootlyOnCallSchedule field if non-nil, zero value otherwise. + +### GetRootlyOnCallScheduleOk + +`func (o *GroupRemoteInfo) GetRootlyOnCallScheduleOk() (*GroupRemoteInfoRootlyOnCallSchedule, bool)` + +GetRootlyOnCallScheduleOk returns a tuple with the RootlyOnCallSchedule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRootlyOnCallSchedule + +`func (o *GroupRemoteInfo) SetRootlyOnCallSchedule(v GroupRemoteInfoRootlyOnCallSchedule)` + +SetRootlyOnCallSchedule sets RootlyOnCallSchedule field to given value. + +### HasRootlyOnCallSchedule + +`func (o *GroupRemoteInfo) HasRootlyOnCallSchedule() bool` + +HasRootlyOnCallSchedule returns a boolean if a field has been set. + +### GetDevinGroup + +`func (o *GroupRemoteInfo) GetDevinGroup() GroupRemoteInfoDevinGroup` + +GetDevinGroup returns the DevinGroup field if non-nil, zero value otherwise. + +### GetDevinGroupOk + +`func (o *GroupRemoteInfo) GetDevinGroupOk() (*GroupRemoteInfoDevinGroup, bool)` + +GetDevinGroupOk returns a tuple with the DevinGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevinGroup + +`func (o *GroupRemoteInfo) SetDevinGroup(v GroupRemoteInfoDevinGroup)` + +SetDevinGroup sets DevinGroup field to given value. + +### HasDevinGroup + +`func (o *GroupRemoteInfo) HasDevinGroup() bool` + +HasDevinGroup returns a boolean if a field has been set. + [[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/GroupRemoteInfoAwsSsoGroup.md b/docs/GroupRemoteInfoAwsSsoGroup.md new file mode 100644 index 0000000..bf94b94 --- /dev/null +++ b/docs/GroupRemoteInfoAwsSsoGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoAwsSsoGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the AWS SSO group. | + +## Methods + +### NewGroupRemoteInfoAwsSsoGroup + +`func NewGroupRemoteInfoAwsSsoGroup(groupId string, ) *GroupRemoteInfoAwsSsoGroup` + +NewGroupRemoteInfoAwsSsoGroup instantiates a new GroupRemoteInfoAwsSsoGroup 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 + +### NewGroupRemoteInfoAwsSsoGroupWithDefaults + +`func NewGroupRemoteInfoAwsSsoGroupWithDefaults() *GroupRemoteInfoAwsSsoGroup` + +NewGroupRemoteInfoAwsSsoGroupWithDefaults instantiates a new GroupRemoteInfoAwsSsoGroup 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 + +### GetGroupId + +`func (o *GroupRemoteInfoAwsSsoGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoAwsSsoGroup) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *GroupRemoteInfoAwsSsoGroup) SetGroupId(v string)` + +SetGroupId sets GroupId 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/GroupRemoteInfoConnectorGroup.md b/docs/GroupRemoteInfoConnectorGroup.md new file mode 100644 index 0000000..e496e40 --- /dev/null +++ b/docs/GroupRemoteInfoConnectorGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoConnectorGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the Connector group. | + +## Methods + +### NewGroupRemoteInfoConnectorGroup + +`func NewGroupRemoteInfoConnectorGroup(groupId string, ) *GroupRemoteInfoConnectorGroup` + +NewGroupRemoteInfoConnectorGroup instantiates a new GroupRemoteInfoConnectorGroup 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 + +### NewGroupRemoteInfoConnectorGroupWithDefaults + +`func NewGroupRemoteInfoConnectorGroupWithDefaults() *GroupRemoteInfoConnectorGroup` + +NewGroupRemoteInfoConnectorGroupWithDefaults instantiates a new GroupRemoteInfoConnectorGroup 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 + +### GetGroupId + +`func (o *GroupRemoteInfoConnectorGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoConnectorGroup) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *GroupRemoteInfoConnectorGroup) SetGroupId(v string)` + +SetGroupId sets GroupId 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/GroupRemoteInfoDatabricksAccountGroup.md b/docs/GroupRemoteInfoDatabricksAccountGroup.md new file mode 100644 index 0000000..6ee480a --- /dev/null +++ b/docs/GroupRemoteInfoDatabricksAccountGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoDatabricksAccountGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the Databricks account group. | + +## Methods + +### NewGroupRemoteInfoDatabricksAccountGroup + +`func NewGroupRemoteInfoDatabricksAccountGroup(groupId string, ) *GroupRemoteInfoDatabricksAccountGroup` + +NewGroupRemoteInfoDatabricksAccountGroup instantiates a new GroupRemoteInfoDatabricksAccountGroup 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 + +### NewGroupRemoteInfoDatabricksAccountGroupWithDefaults + +`func NewGroupRemoteInfoDatabricksAccountGroupWithDefaults() *GroupRemoteInfoDatabricksAccountGroup` + +NewGroupRemoteInfoDatabricksAccountGroupWithDefaults instantiates a new GroupRemoteInfoDatabricksAccountGroup 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 + +### GetGroupId + +`func (o *GroupRemoteInfoDatabricksAccountGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoDatabricksAccountGroup) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *GroupRemoteInfoDatabricksAccountGroup) SetGroupId(v string)` + +SetGroupId sets GroupId 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/GroupRemoteInfoDevinGroup.md b/docs/GroupRemoteInfoDevinGroup.md new file mode 100644 index 0000000..dcb568d --- /dev/null +++ b/docs/GroupRemoteInfoDevinGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoDevinGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupName** | **string** | The name of the Devin group. | + +## Methods + +### NewGroupRemoteInfoDevinGroup + +`func NewGroupRemoteInfoDevinGroup(groupName string, ) *GroupRemoteInfoDevinGroup` + +NewGroupRemoteInfoDevinGroup instantiates a new GroupRemoteInfoDevinGroup 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 + +### NewGroupRemoteInfoDevinGroupWithDefaults + +`func NewGroupRemoteInfoDevinGroupWithDefaults() *GroupRemoteInfoDevinGroup` + +NewGroupRemoteInfoDevinGroupWithDefaults instantiates a new GroupRemoteInfoDevinGroup 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 + +### GetGroupName + +`func (o *GroupRemoteInfoDevinGroup) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *GroupRemoteInfoDevinGroup) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *GroupRemoteInfoDevinGroup) SetGroupName(v string)` + +SetGroupName sets GroupName 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/GroupRemoteInfoIncidentioOnCallSchedule.md b/docs/GroupRemoteInfoIncidentioOnCallSchedule.md new file mode 100644 index 0000000..90ce2bf --- /dev/null +++ b/docs/GroupRemoteInfoIncidentioOnCallSchedule.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoIncidentioOnCallSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScheduleId** | **string** | The id of the Incident.io on-call schedule. | + +## Methods + +### NewGroupRemoteInfoIncidentioOnCallSchedule + +`func NewGroupRemoteInfoIncidentioOnCallSchedule(scheduleId string, ) *GroupRemoteInfoIncidentioOnCallSchedule` + +NewGroupRemoteInfoIncidentioOnCallSchedule instantiates a new GroupRemoteInfoIncidentioOnCallSchedule 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 + +### NewGroupRemoteInfoIncidentioOnCallScheduleWithDefaults + +`func NewGroupRemoteInfoIncidentioOnCallScheduleWithDefaults() *GroupRemoteInfoIncidentioOnCallSchedule` + +NewGroupRemoteInfoIncidentioOnCallScheduleWithDefaults instantiates a new GroupRemoteInfoIncidentioOnCallSchedule 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 + +### GetScheduleId + +`func (o *GroupRemoteInfoIncidentioOnCallSchedule) GetScheduleId() string` + +GetScheduleId returns the ScheduleId field if non-nil, zero value otherwise. + +### GetScheduleIdOk + +`func (o *GroupRemoteInfoIncidentioOnCallSchedule) GetScheduleIdOk() (*string, bool)` + +GetScheduleIdOk returns a tuple with the ScheduleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleId + +`func (o *GroupRemoteInfoIncidentioOnCallSchedule) SetScheduleId(v string)` + +SetScheduleId sets ScheduleId 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/GroupRemoteInfoPagerdutyOnCallSchedule.md b/docs/GroupRemoteInfoPagerdutyOnCallSchedule.md new file mode 100644 index 0000000..8c78d6d --- /dev/null +++ b/docs/GroupRemoteInfoPagerdutyOnCallSchedule.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoPagerdutyOnCallSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScheduleId** | **string** | The id of the PagerDuty on-call schedule. | + +## Methods + +### NewGroupRemoteInfoPagerdutyOnCallSchedule + +`func NewGroupRemoteInfoPagerdutyOnCallSchedule(scheduleId string, ) *GroupRemoteInfoPagerdutyOnCallSchedule` + +NewGroupRemoteInfoPagerdutyOnCallSchedule instantiates a new GroupRemoteInfoPagerdutyOnCallSchedule 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 + +### NewGroupRemoteInfoPagerdutyOnCallScheduleWithDefaults + +`func NewGroupRemoteInfoPagerdutyOnCallScheduleWithDefaults() *GroupRemoteInfoPagerdutyOnCallSchedule` + +NewGroupRemoteInfoPagerdutyOnCallScheduleWithDefaults instantiates a new GroupRemoteInfoPagerdutyOnCallSchedule 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 + +### GetScheduleId + +`func (o *GroupRemoteInfoPagerdutyOnCallSchedule) GetScheduleId() string` + +GetScheduleId returns the ScheduleId field if non-nil, zero value otherwise. + +### GetScheduleIdOk + +`func (o *GroupRemoteInfoPagerdutyOnCallSchedule) GetScheduleIdOk() (*string, bool)` + +GetScheduleIdOk returns a tuple with the ScheduleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleId + +`func (o *GroupRemoteInfoPagerdutyOnCallSchedule) SetScheduleId(v string)` + +SetScheduleId sets ScheduleId 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/GroupRemoteInfoRootlyOnCallSchedule.md b/docs/GroupRemoteInfoRootlyOnCallSchedule.md new file mode 100644 index 0000000..24b15b7 --- /dev/null +++ b/docs/GroupRemoteInfoRootlyOnCallSchedule.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoRootlyOnCallSchedule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ScheduleId** | **string** | The id of the Rootly on-call schedule. | + +## Methods + +### NewGroupRemoteInfoRootlyOnCallSchedule + +`func NewGroupRemoteInfoRootlyOnCallSchedule(scheduleId string, ) *GroupRemoteInfoRootlyOnCallSchedule` + +NewGroupRemoteInfoRootlyOnCallSchedule instantiates a new GroupRemoteInfoRootlyOnCallSchedule 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 + +### NewGroupRemoteInfoRootlyOnCallScheduleWithDefaults + +`func NewGroupRemoteInfoRootlyOnCallScheduleWithDefaults() *GroupRemoteInfoRootlyOnCallSchedule` + +NewGroupRemoteInfoRootlyOnCallScheduleWithDefaults instantiates a new GroupRemoteInfoRootlyOnCallSchedule 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 + +### GetScheduleId + +`func (o *GroupRemoteInfoRootlyOnCallSchedule) GetScheduleId() string` + +GetScheduleId returns the ScheduleId field if non-nil, zero value otherwise. + +### GetScheduleIdOk + +`func (o *GroupRemoteInfoRootlyOnCallSchedule) GetScheduleIdOk() (*string, bool)` + +GetScheduleIdOk returns a tuple with the ScheduleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleId + +`func (o *GroupRemoteInfoRootlyOnCallSchedule) SetScheduleId(v string)` + +SetScheduleId sets ScheduleId 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/GroupRemoteInfoTailscaleGroup.md b/docs/GroupRemoteInfoTailscaleGroup.md new file mode 100644 index 0000000..74dbdcd --- /dev/null +++ b/docs/GroupRemoteInfoTailscaleGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoTailscaleGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the Tailscale group. | + +## Methods + +### NewGroupRemoteInfoTailscaleGroup + +`func NewGroupRemoteInfoTailscaleGroup(groupId string, ) *GroupRemoteInfoTailscaleGroup` + +NewGroupRemoteInfoTailscaleGroup instantiates a new GroupRemoteInfoTailscaleGroup 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 + +### NewGroupRemoteInfoTailscaleGroupWithDefaults + +`func NewGroupRemoteInfoTailscaleGroupWithDefaults() *GroupRemoteInfoTailscaleGroup` + +NewGroupRemoteInfoTailscaleGroupWithDefaults instantiates a new GroupRemoteInfoTailscaleGroup 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 + +### GetGroupId + +`func (o *GroupRemoteInfoTailscaleGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoTailscaleGroup) GetGroupIdOk() (*string, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *GroupRemoteInfoTailscaleGroup) SetGroupId(v string)` + +SetGroupId sets GroupId 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/GroupResource.md b/docs/GroupResource.md index f9c0ae3..59be7c4 100644 --- a/docs/GroupResource.md +++ b/docs/GroupResource.md @@ -6,6 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **GroupId** | **string** | The ID of the group. | **ResourceId** | **string** | The ID of the resource. | +**GroupName** | Pointer to **string** | The name of the group | [optional] +**ResourceName** | Pointer to **string** | The name of the resource | [optional] +**ExpirationDate** | Pointer to **time.Time** | The day and time the group's access will expire. | [optional] **AccessLevel** | [**ResourceAccessLevel**](ResourceAccessLevel.md) | | ## Methods @@ -67,6 +70,81 @@ and a boolean to check if the value has been set. SetResourceId sets ResourceId field to given value. +### GetGroupName + +`func (o *GroupResource) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *GroupResource) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *GroupResource) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + +### HasGroupName + +`func (o *GroupResource) HasGroupName() bool` + +HasGroupName returns a boolean if a field has been set. + +### GetResourceName + +`func (o *GroupResource) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *GroupResource) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *GroupResource) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *GroupResource) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetExpirationDate + +`func (o *GroupResource) GetExpirationDate() time.Time` + +GetExpirationDate returns the ExpirationDate field if non-nil, zero value otherwise. + +### GetExpirationDateOk + +`func (o *GroupResource) GetExpirationDateOk() (*time.Time, bool)` + +GetExpirationDateOk returns a tuple with the ExpirationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpirationDate + +`func (o *GroupResource) SetExpirationDate(v time.Time)` + +SetExpirationDate sets ExpirationDate field to given value. + +### HasExpirationDate + +`func (o *GroupResource) HasExpirationDate() bool` + +HasExpirationDate returns a boolean if a field has been set. + ### GetAccessLevel `func (o *GroupResource) GetAccessLevel() ResourceAccessLevel` diff --git a/docs/GroupTypeEnum.md b/docs/GroupTypeEnum.md index fc6d270..b3f4f07 100644 --- a/docs/GroupTypeEnum.md +++ b/docs/GroupTypeEnum.md @@ -41,6 +41,14 @@ * `WORKDAY_USER_SECURITY_GROUP` (value: `"WORKDAY_USER_SECURITY_GROUP"`) +* `PAGERDUTY_ON_CALL_SCHEDULE` (value: `"PAGERDUTY_ON_CALL_SCHEDULE"`) + +* `INCIDENTIO_ON_CALL_SCHEDULE` (value: `"INCIDENTIO_ON_CALL_SCHEDULE"`) + +* `ROOTLY_ON_CALL_SCHEDULE` (value: `"ROOTLY_ON_CALL_SCHEDULE"`) + +* `DEVIN_GROUP` (value: `"DEVIN_GROUP"`) + [[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/GroupUser.md b/docs/GroupUser.md index ff67404..f21cf23 100644 --- a/docs/GroupUser.md +++ b/docs/GroupUser.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **GroupId** | **string** | The ID of the group. | +**GroupName** | **string** | The name of the group. | +**Description** | **string** | The description of the group. | **UserId** | **string** | The ID of the user. | **AccessLevel** | Pointer to [**GroupAccessLevel**](GroupAccessLevel.md) | | [optional] **FullName** | **string** | The user's full name. | @@ -16,7 +18,7 @@ Name | Type | Description | Notes ### NewGroupUser -`func NewGroupUser(groupId string, userId string, fullName string, email string, ) *GroupUser` +`func NewGroupUser(groupId string, groupName string, description string, userId string, fullName string, email string, ) *GroupUser` NewGroupUser instantiates a new GroupUser object This constructor will assign default values to properties that have it defined, @@ -51,6 +53,46 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetGroupName + +`func (o *GroupUser) GetGroupName() string` + +GetGroupName returns the GroupName field if non-nil, zero value otherwise. + +### GetGroupNameOk + +`func (o *GroupUser) GetGroupNameOk() (*string, bool)` + +GetGroupNameOk returns a tuple with the GroupName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupName + +`func (o *GroupUser) SetGroupName(v string)` + +SetGroupName sets GroupName field to given value. + + +### GetDescription + +`func (o *GroupUser) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *GroupUser) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *GroupUser) SetDescription(v string)` + +SetDescription sets Description field to given value. + + ### GetUserId `func (o *GroupUser) GetUserId() string` diff --git a/docs/GroupsAPI.md b/docs/GroupsAPI.md index 913de32..525d628 100644 --- a/docs/GroupsAPI.md +++ b/docs/GroupsAPI.md @@ -1397,7 +1397,7 @@ Name | Type | Description | Notes ## RemoveGroupContainingGroup -> RemoveGroupContainingGroup(ctx, groupId, containingGroupId).Execute() +> RemoveGroupContainingGroup(ctx, groupId, containingGroupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() @@ -1416,12 +1416,13 @@ import ( ) func main() { - groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. + groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the member group to remove. containingGroupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the containing group. + accessLevelRemoteId := "arn:aws:iam::590304332660:role/AdministratorAccess" // string | The remote ID of the member group's access level to filter by. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.GroupsAPI.RemoveGroupContainingGroup(context.Background(), groupId, containingGroupId).Execute() + r, err := apiClient.GroupsAPI.RemoveGroupContainingGroup(context.Background(), groupId, containingGroupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.RemoveGroupContainingGroup``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1435,7 +1436,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**groupId** | **string** | The ID of the group. | +**groupId** | **string** | The ID of the member group to remove. | **containingGroupId** | **string** | The ID of the containing group. | ### Other Parameters @@ -1447,6 +1448,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **accessLevelRemoteId** | **string** | The remote ID of the member group's access level to filter by. | ### Return type diff --git a/docs/RDSEngineEnum.md b/docs/RDSEngineEnum.md new file mode 100644 index 0000000..a6a98ae --- /dev/null +++ b/docs/RDSEngineEnum.md @@ -0,0 +1,13 @@ +# RDSEngineEnum + +## Enum + + +* `MYSQL` (value: `"MYSQL"`) + +* `POSTGRESQL` (value: `"POSTGRESQL"`) + + +[[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/Request.md b/docs/Request.md index 59a3f43..d7f3b20 100644 --- a/docs/Request.md +++ b/docs/Request.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **RequestedItemsList** | Pointer to [**[]RequestedItem**](RequestedItem.md) | The list of targets for the request. | [optional] **CustomFieldsResponses** | Pointer to [**[]RequestCustomFieldResponse**](RequestCustomFieldResponse.md) | The responses given to the custom fields associated to the request | [optional] **Stages** | Pointer to [**RequestItemStages**](RequestItemStages.md) | The stages configuration for this request | [optional] -**ReviewerStages** | Pointer to [**[]RequestReviewerStages**](RequestReviewerStages.md) | The configured reviewer stages for every item in this request | [optional] +**ReviewerStages** | Pointer to [**RequestReviewerStages**](RequestReviewerStages.md) | | [optional] ## Methods @@ -309,20 +309,20 @@ HasStages returns a boolean if a field has been set. ### GetReviewerStages -`func (o *Request) GetReviewerStages() []RequestReviewerStages` +`func (o *Request) GetReviewerStages() RequestReviewerStages` GetReviewerStages returns the ReviewerStages field if non-nil, zero value otherwise. ### GetReviewerStagesOk -`func (o *Request) GetReviewerStagesOk() (*[]RequestReviewerStages, bool)` +`func (o *Request) GetReviewerStagesOk() (*RequestReviewerStages, bool)` GetReviewerStagesOk returns a tuple with the ReviewerStages field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetReviewerStages -`func (o *Request) SetReviewerStages(v []RequestReviewerStages)` +`func (o *Request) SetReviewerStages(v RequestReviewerStages)` SetReviewerStages sets ReviewerStages field to given value. diff --git a/docs/RequestReviewerStages.md b/docs/RequestReviewerStages.md index 4b6048c..58861a2 100644 --- a/docs/RequestReviewerStages.md +++ b/docs/RequestReviewerStages.md @@ -4,17 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AccessLevelName** | Pointer to **string** | The name of the access level requested. | [optional] -**AccessLevelRemoteId** | Pointer to **string** | The ID of the access level requested on the remote system. | [optional] -**ItemName** | **string** | The name of the requested item | -**ItemId** | **string** | The ID of the resource requested. | -**Stages** | [**[]RequestStage**](RequestStage.md) | The stages of review for this request | ## Methods ### NewRequestReviewerStages -`func NewRequestReviewerStages(itemName string, itemId string, stages []RequestStage, ) *RequestReviewerStages` +`func NewRequestReviewerStages() *RequestReviewerStages` NewRequestReviewerStages instantiates a new RequestReviewerStages object This constructor will assign default values to properties that have it defined, @@ -29,116 +24,6 @@ NewRequestReviewerStagesWithDefaults instantiates a new RequestReviewerStages ob 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 -### GetAccessLevelName - -`func (o *RequestReviewerStages) GetAccessLevelName() string` - -GetAccessLevelName returns the AccessLevelName field if non-nil, zero value otherwise. - -### GetAccessLevelNameOk - -`func (o *RequestReviewerStages) GetAccessLevelNameOk() (*string, bool)` - -GetAccessLevelNameOk returns a tuple with the AccessLevelName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessLevelName - -`func (o *RequestReviewerStages) SetAccessLevelName(v string)` - -SetAccessLevelName sets AccessLevelName field to given value. - -### HasAccessLevelName - -`func (o *RequestReviewerStages) HasAccessLevelName() bool` - -HasAccessLevelName returns a boolean if a field has been set. - -### GetAccessLevelRemoteId - -`func (o *RequestReviewerStages) GetAccessLevelRemoteId() string` - -GetAccessLevelRemoteId returns the AccessLevelRemoteId field if non-nil, zero value otherwise. - -### GetAccessLevelRemoteIdOk - -`func (o *RequestReviewerStages) GetAccessLevelRemoteIdOk() (*string, bool)` - -GetAccessLevelRemoteIdOk returns a tuple with the AccessLevelRemoteId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccessLevelRemoteId - -`func (o *RequestReviewerStages) SetAccessLevelRemoteId(v string)` - -SetAccessLevelRemoteId sets AccessLevelRemoteId field to given value. - -### HasAccessLevelRemoteId - -`func (o *RequestReviewerStages) HasAccessLevelRemoteId() bool` - -HasAccessLevelRemoteId returns a boolean if a field has been set. - -### GetItemName - -`func (o *RequestReviewerStages) GetItemName() string` - -GetItemName returns the ItemName field if non-nil, zero value otherwise. - -### GetItemNameOk - -`func (o *RequestReviewerStages) GetItemNameOk() (*string, bool)` - -GetItemNameOk returns a tuple with the ItemName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItemName - -`func (o *RequestReviewerStages) SetItemName(v string)` - -SetItemName sets ItemName field to given value. - - -### GetItemId - -`func (o *RequestReviewerStages) GetItemId() string` - -GetItemId returns the ItemId field if non-nil, zero value otherwise. - -### GetItemIdOk - -`func (o *RequestReviewerStages) GetItemIdOk() (*string, bool)` - -GetItemIdOk returns a tuple with the ItemId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetItemId - -`func (o *RequestReviewerStages) SetItemId(v string)` - -SetItemId sets ItemId field to given value. - - -### GetStages - -`func (o *RequestReviewerStages) GetStages() []RequestStage` - -GetStages returns the Stages field if non-nil, zero value otherwise. - -### GetStagesOk - -`func (o *RequestReviewerStages) GetStagesOk() (*[]RequestStage, bool)` - -GetStagesOk returns a tuple with the Stages field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStages - -`func (o *RequestReviewerStages) SetStages(v []RequestStage)` - -SetStages sets Stages 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/ResourceAccessUser.md b/docs/ResourceAccessUser.md index 9d1d3cb..67609a5 100644 --- a/docs/ResourceAccessUser.md +++ b/docs/ResourceAccessUser.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ResourceId** | **string** | The ID of the resource. | +**ResourceName** | Pointer to **string** | The name of the resource. | [optional] +**Description** | Pointer to **string** | The description of the resource. | [optional] **UserId** | **string** | The ID of the user. | **AccessLevel** | [**ResourceAccessLevel**](ResourceAccessLevel.md) | | **FullName** | **string** | The user's full name. | @@ -53,6 +55,56 @@ and a boolean to check if the value has been set. SetResourceId sets ResourceId field to given value. +### GetResourceName + +`func (o *ResourceAccessUser) GetResourceName() string` + +GetResourceName returns the ResourceName field if non-nil, zero value otherwise. + +### GetResourceNameOk + +`func (o *ResourceAccessUser) GetResourceNameOk() (*string, bool)` + +GetResourceNameOk returns a tuple with the ResourceName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceName + +`func (o *ResourceAccessUser) SetResourceName(v string)` + +SetResourceName sets ResourceName field to given value. + +### HasResourceName + +`func (o *ResourceAccessUser) HasResourceName() bool` + +HasResourceName returns a boolean if a field has been set. + +### GetDescription + +`func (o *ResourceAccessUser) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ResourceAccessUser) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ResourceAccessUser) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ResourceAccessUser) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + ### GetUserId `func (o *ResourceAccessUser) GetUserId() string` diff --git a/docs/ResourceRemoteInfo.md b/docs/ResourceRemoteInfo.md index 7c5c0d9..87c611c 100644 --- a/docs/ResourceRemoteInfo.md +++ b/docs/ResourceRemoteInfo.md @@ -4,11 +4,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DatabricksAccountServicePrincipal** | Pointer to [**ResourceRemoteInfoDatabricksAccountServicePrincipal**](ResourceRemoteInfoDatabricksAccountServicePrincipal.md) | | [optional] +**AzureSubscription** | Pointer to [**ResourceRemoteInfoAzureSubscription**](ResourceRemoteInfoAzureSubscription.md) | | [optional] +**AzureResourceGroup** | Pointer to [**ResourceRemoteInfoAzureResourceGroup**](ResourceRemoteInfoAzureResourceGroup.md) | | [optional] +**AzureManagementGroup** | Pointer to [**ResourceRemoteInfoAzureManagementGroup**](ResourceRemoteInfoAzureManagementGroup.md) | | [optional] +**AzureVirtualMachine** | Pointer to [**ResourceRemoteInfoAzureVirtualMachine**](ResourceRemoteInfoAzureVirtualMachine.md) | | [optional] +**AzureStorageAccount** | Pointer to [**ResourceRemoteInfoAzureStorageAccount**](ResourceRemoteInfoAzureStorageAccount.md) | | [optional] +**AzureStorageContainer** | Pointer to [**ResourceRemoteInfoAzureStorageContainer**](ResourceRemoteInfoAzureStorageContainer.md) | | [optional] +**AzureSqlServer** | Pointer to [**ResourceRemoteInfoAzureSqlServer**](ResourceRemoteInfoAzureSqlServer.md) | | [optional] +**AzureSqlDatabase** | Pointer to [**ResourceRemoteInfoAzureSqlDatabase**](ResourceRemoteInfoAzureSqlDatabase.md) | | [optional] +**AzureSqlManagedInstance** | Pointer to [**ResourceRemoteInfoAzureSqlManagedInstance**](ResourceRemoteInfoAzureSqlManagedInstance.md) | | [optional] +**AzureSqlManagedDatabase** | Pointer to [**ResourceRemoteInfoAzureSqlManagedDatabase**](ResourceRemoteInfoAzureSqlManagedDatabase.md) | | [optional] +**AzureUserAssignedManagedIdentity** | Pointer to [**ResourceRemoteInfoAzureUserAssignedManagedIdentity**](ResourceRemoteInfoAzureUserAssignedManagedIdentity.md) | | [optional] +**AzureEnterpriseApp** | Pointer to [**ResourceRemoteInfoAzureEnterpriseApp**](ResourceRemoteInfoAzureEnterpriseApp.md) | | [optional] +**AzureEntraIdRole** | Pointer to [**ResourceRemoteInfoAzureEntraIdRole**](ResourceRemoteInfoAzureEntraIdRole.md) | | [optional] **AwsOrganizationalUnit** | Pointer to [**ResourceRemoteInfoAwsOrganizationalUnit**](ResourceRemoteInfoAwsOrganizationalUnit.md) | | [optional] **AwsAccount** | Pointer to [**ResourceRemoteInfoAwsAccount**](ResourceRemoteInfoAwsAccount.md) | | [optional] **AwsPermissionSet** | Pointer to [**ResourceRemoteInfoAwsPermissionSet**](ResourceRemoteInfoAwsPermissionSet.md) | | [optional] **AwsIamRole** | Pointer to [**ResourceRemoteInfoAwsIamRole**](ResourceRemoteInfoAwsIamRole.md) | | [optional] **AwsEc2Instance** | Pointer to [**ResourceRemoteInfoAwsEc2Instance**](ResourceRemoteInfoAwsEc2Instance.md) | | [optional] +**AwsRdsCluster** | Pointer to [**ResourceRemoteInfoAwsRdsCluster**](ResourceRemoteInfoAwsRdsCluster.md) | | [optional] **AwsRdsInstance** | Pointer to [**ResourceRemoteInfoAwsRdsInstance**](ResourceRemoteInfoAwsRdsInstance.md) | | [optional] **AwsEksCluster** | Pointer to [**ResourceRemoteInfoAwsEksCluster**](ResourceRemoteInfoAwsEksCluster.md) | | [optional] **CustomConnector** | Pointer to [**ResourceRemoteInfoCustomConnector**](ResourceRemoteInfoCustomConnector.md) | | [optional] @@ -25,17 +40,31 @@ Name | Type | Description | Notes **GoogleWorkspaceRole** | Pointer to [**ResourceRemoteInfoGoogleWorkspaceRole**](ResourceRemoteInfoGoogleWorkspaceRole.md) | | [optional] **GithubRepo** | Pointer to [**ResourceRemoteInfoGithubRepo**](ResourceRemoteInfoGithubRepo.md) | | [optional] **GithubOrgRole** | Pointer to [**ResourceRemoteInfoGithubOrgRole**](ResourceRemoteInfoGithubOrgRole.md) | | [optional] +**GithubOrg** | Pointer to [**ResourceRemoteInfoGithubOrg**](ResourceRemoteInfoGithubOrg.md) | | [optional] **GitlabProject** | Pointer to [**ResourceRemoteInfoGitlabProject**](ResourceRemoteInfoGitlabProject.md) | | [optional] **OktaApp** | Pointer to [**ResourceRemoteInfoOktaApp**](ResourceRemoteInfoOktaApp.md) | | [optional] **OktaStandardRole** | Pointer to [**ResourceRemoteInfoOktaStandardRole**](ResourceRemoteInfoOktaStandardRole.md) | | [optional] **OktaCustomRole** | Pointer to [**ResourceRemoteInfoOktaCustomRole**](ResourceRemoteInfoOktaCustomRole.md) | | [optional] +**SnowflakeDatabase** | Pointer to [**ResourceRemoteInfoSnowflakeDatabase**](ResourceRemoteInfoSnowflakeDatabase.md) | | [optional] +**SnowflakeSchema** | Pointer to [**ResourceRemoteInfoSnowflakeSchema**](ResourceRemoteInfoSnowflakeSchema.md) | | [optional] +**SnowflakeTable** | Pointer to [**ResourceRemoteInfoSnowflakeTable**](ResourceRemoteInfoSnowflakeTable.md) | | [optional] +**IlevelAdvancedRole** | Pointer to [**ResourceRemoteInfoIlevelAdvancedRole**](ResourceRemoteInfoIlevelAdvancedRole.md) | | [optional] +**TailscaleSsh** | Pointer to [**ResourceRemoteInfoTailscaleSsh**](ResourceRemoteInfoTailscaleSsh.md) | | [optional] **PagerdutyRole** | Pointer to [**ResourceRemoteInfoPagerdutyRole**](ResourceRemoteInfoPagerdutyRole.md) | | [optional] +**WorkdayRole** | Pointer to [**ResourceRemoteInfoWorkdayRole**](ResourceRemoteInfoWorkdayRole.md) | | [optional] **SalesforcePermissionSet** | Pointer to [**ResourceRemoteInfoSalesforcePermissionSet**](ResourceRemoteInfoSalesforcePermissionSet.md) | | [optional] **SalesforceProfile** | Pointer to [**ResourceRemoteInfoSalesforceProfile**](ResourceRemoteInfoSalesforceProfile.md) | | [optional] **SalesforceRole** | Pointer to [**ResourceRemoteInfoSalesforceRole**](ResourceRemoteInfoSalesforceRole.md) | | [optional] **TeleportRole** | Pointer to [**ResourceRemoteInfoTeleportRole**](ResourceRemoteInfoTeleportRole.md) | | [optional] **DatastaxAstraRole** | Pointer to [**ResourceRemoteInfoDatastaxAstraRole**](ResourceRemoteInfoDatastaxAstraRole.md) | | [optional] **CoupaRole** | Pointer to [**ResourceRemoteInfoCoupaRole**](ResourceRemoteInfoCoupaRole.md) | | [optional] +**CursorOrganization** | Pointer to [**ResourceRemoteInfoCursorOrganization**](ResourceRemoteInfoCursorOrganization.md) | | [optional] +**OpenaiPlatformProject** | Pointer to [**ResourceRemoteInfoOpenaiPlatformProject**](ResourceRemoteInfoOpenaiPlatformProject.md) | | [optional] +**OpenaiPlatformServiceAccount** | Pointer to [**ResourceRemoteInfoOpenaiPlatformServiceAccount**](ResourceRemoteInfoOpenaiPlatformServiceAccount.md) | | [optional] +**AnthropicWorkspace** | Pointer to [**ResourceRemoteInfoAnthropicWorkspace**](ResourceRemoteInfoAnthropicWorkspace.md) | | [optional] +**OracleFusionRole** | Pointer to [**ResourceRemoteInfoOracleFusionRole**](ResourceRemoteInfoOracleFusionRole.md) | | [optional] +**DevinOrganization** | Pointer to [**ResourceRemoteInfoDevinOrganization**](ResourceRemoteInfoDevinOrganization.md) | | [optional] +**DevinRole** | Pointer to [**ResourceRemoteInfoDevinRole**](ResourceRemoteInfoDevinRole.md) | | [optional] ## Methods @@ -56,6 +85,356 @@ NewResourceRemoteInfoWithDefaults instantiates a new ResourceRemoteInfo 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 +### GetDatabricksAccountServicePrincipal + +`func (o *ResourceRemoteInfo) GetDatabricksAccountServicePrincipal() ResourceRemoteInfoDatabricksAccountServicePrincipal` + +GetDatabricksAccountServicePrincipal returns the DatabricksAccountServicePrincipal field if non-nil, zero value otherwise. + +### GetDatabricksAccountServicePrincipalOk + +`func (o *ResourceRemoteInfo) GetDatabricksAccountServicePrincipalOk() (*ResourceRemoteInfoDatabricksAccountServicePrincipal, bool)` + +GetDatabricksAccountServicePrincipalOk returns a tuple with the DatabricksAccountServicePrincipal field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatabricksAccountServicePrincipal + +`func (o *ResourceRemoteInfo) SetDatabricksAccountServicePrincipal(v ResourceRemoteInfoDatabricksAccountServicePrincipal)` + +SetDatabricksAccountServicePrincipal sets DatabricksAccountServicePrincipal field to given value. + +### HasDatabricksAccountServicePrincipal + +`func (o *ResourceRemoteInfo) HasDatabricksAccountServicePrincipal() bool` + +HasDatabricksAccountServicePrincipal returns a boolean if a field has been set. + +### GetAzureSubscription + +`func (o *ResourceRemoteInfo) GetAzureSubscription() ResourceRemoteInfoAzureSubscription` + +GetAzureSubscription returns the AzureSubscription field if non-nil, zero value otherwise. + +### GetAzureSubscriptionOk + +`func (o *ResourceRemoteInfo) GetAzureSubscriptionOk() (*ResourceRemoteInfoAzureSubscription, bool)` + +GetAzureSubscriptionOk returns a tuple with the AzureSubscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureSubscription + +`func (o *ResourceRemoteInfo) SetAzureSubscription(v ResourceRemoteInfoAzureSubscription)` + +SetAzureSubscription sets AzureSubscription field to given value. + +### HasAzureSubscription + +`func (o *ResourceRemoteInfo) HasAzureSubscription() bool` + +HasAzureSubscription returns a boolean if a field has been set. + +### GetAzureResourceGroup + +`func (o *ResourceRemoteInfo) GetAzureResourceGroup() ResourceRemoteInfoAzureResourceGroup` + +GetAzureResourceGroup returns the AzureResourceGroup field if non-nil, zero value otherwise. + +### GetAzureResourceGroupOk + +`func (o *ResourceRemoteInfo) GetAzureResourceGroupOk() (*ResourceRemoteInfoAzureResourceGroup, bool)` + +GetAzureResourceGroupOk returns a tuple with the AzureResourceGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureResourceGroup + +`func (o *ResourceRemoteInfo) SetAzureResourceGroup(v ResourceRemoteInfoAzureResourceGroup)` + +SetAzureResourceGroup sets AzureResourceGroup field to given value. + +### HasAzureResourceGroup + +`func (o *ResourceRemoteInfo) HasAzureResourceGroup() bool` + +HasAzureResourceGroup returns a boolean if a field has been set. + +### GetAzureManagementGroup + +`func (o *ResourceRemoteInfo) GetAzureManagementGroup() ResourceRemoteInfoAzureManagementGroup` + +GetAzureManagementGroup returns the AzureManagementGroup field if non-nil, zero value otherwise. + +### GetAzureManagementGroupOk + +`func (o *ResourceRemoteInfo) GetAzureManagementGroupOk() (*ResourceRemoteInfoAzureManagementGroup, bool)` + +GetAzureManagementGroupOk returns a tuple with the AzureManagementGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureManagementGroup + +`func (o *ResourceRemoteInfo) SetAzureManagementGroup(v ResourceRemoteInfoAzureManagementGroup)` + +SetAzureManagementGroup sets AzureManagementGroup field to given value. + +### HasAzureManagementGroup + +`func (o *ResourceRemoteInfo) HasAzureManagementGroup() bool` + +HasAzureManagementGroup returns a boolean if a field has been set. + +### GetAzureVirtualMachine + +`func (o *ResourceRemoteInfo) GetAzureVirtualMachine() ResourceRemoteInfoAzureVirtualMachine` + +GetAzureVirtualMachine returns the AzureVirtualMachine field if non-nil, zero value otherwise. + +### GetAzureVirtualMachineOk + +`func (o *ResourceRemoteInfo) GetAzureVirtualMachineOk() (*ResourceRemoteInfoAzureVirtualMachine, bool)` + +GetAzureVirtualMachineOk returns a tuple with the AzureVirtualMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureVirtualMachine + +`func (o *ResourceRemoteInfo) SetAzureVirtualMachine(v ResourceRemoteInfoAzureVirtualMachine)` + +SetAzureVirtualMachine sets AzureVirtualMachine field to given value. + +### HasAzureVirtualMachine + +`func (o *ResourceRemoteInfo) HasAzureVirtualMachine() bool` + +HasAzureVirtualMachine returns a boolean if a field has been set. + +### GetAzureStorageAccount + +`func (o *ResourceRemoteInfo) GetAzureStorageAccount() ResourceRemoteInfoAzureStorageAccount` + +GetAzureStorageAccount returns the AzureStorageAccount field if non-nil, zero value otherwise. + +### GetAzureStorageAccountOk + +`func (o *ResourceRemoteInfo) GetAzureStorageAccountOk() (*ResourceRemoteInfoAzureStorageAccount, bool)` + +GetAzureStorageAccountOk returns a tuple with the AzureStorageAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureStorageAccount + +`func (o *ResourceRemoteInfo) SetAzureStorageAccount(v ResourceRemoteInfoAzureStorageAccount)` + +SetAzureStorageAccount sets AzureStorageAccount field to given value. + +### HasAzureStorageAccount + +`func (o *ResourceRemoteInfo) HasAzureStorageAccount() bool` + +HasAzureStorageAccount returns a boolean if a field has been set. + +### GetAzureStorageContainer + +`func (o *ResourceRemoteInfo) GetAzureStorageContainer() ResourceRemoteInfoAzureStorageContainer` + +GetAzureStorageContainer returns the AzureStorageContainer field if non-nil, zero value otherwise. + +### GetAzureStorageContainerOk + +`func (o *ResourceRemoteInfo) GetAzureStorageContainerOk() (*ResourceRemoteInfoAzureStorageContainer, bool)` + +GetAzureStorageContainerOk returns a tuple with the AzureStorageContainer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureStorageContainer + +`func (o *ResourceRemoteInfo) SetAzureStorageContainer(v ResourceRemoteInfoAzureStorageContainer)` + +SetAzureStorageContainer sets AzureStorageContainer field to given value. + +### HasAzureStorageContainer + +`func (o *ResourceRemoteInfo) HasAzureStorageContainer() bool` + +HasAzureStorageContainer returns a boolean if a field has been set. + +### GetAzureSqlServer + +`func (o *ResourceRemoteInfo) GetAzureSqlServer() ResourceRemoteInfoAzureSqlServer` + +GetAzureSqlServer returns the AzureSqlServer field if non-nil, zero value otherwise. + +### GetAzureSqlServerOk + +`func (o *ResourceRemoteInfo) GetAzureSqlServerOk() (*ResourceRemoteInfoAzureSqlServer, bool)` + +GetAzureSqlServerOk returns a tuple with the AzureSqlServer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureSqlServer + +`func (o *ResourceRemoteInfo) SetAzureSqlServer(v ResourceRemoteInfoAzureSqlServer)` + +SetAzureSqlServer sets AzureSqlServer field to given value. + +### HasAzureSqlServer + +`func (o *ResourceRemoteInfo) HasAzureSqlServer() bool` + +HasAzureSqlServer returns a boolean if a field has been set. + +### GetAzureSqlDatabase + +`func (o *ResourceRemoteInfo) GetAzureSqlDatabase() ResourceRemoteInfoAzureSqlDatabase` + +GetAzureSqlDatabase returns the AzureSqlDatabase field if non-nil, zero value otherwise. + +### GetAzureSqlDatabaseOk + +`func (o *ResourceRemoteInfo) GetAzureSqlDatabaseOk() (*ResourceRemoteInfoAzureSqlDatabase, bool)` + +GetAzureSqlDatabaseOk returns a tuple with the AzureSqlDatabase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureSqlDatabase + +`func (o *ResourceRemoteInfo) SetAzureSqlDatabase(v ResourceRemoteInfoAzureSqlDatabase)` + +SetAzureSqlDatabase sets AzureSqlDatabase field to given value. + +### HasAzureSqlDatabase + +`func (o *ResourceRemoteInfo) HasAzureSqlDatabase() bool` + +HasAzureSqlDatabase returns a boolean if a field has been set. + +### GetAzureSqlManagedInstance + +`func (o *ResourceRemoteInfo) GetAzureSqlManagedInstance() ResourceRemoteInfoAzureSqlManagedInstance` + +GetAzureSqlManagedInstance returns the AzureSqlManagedInstance field if non-nil, zero value otherwise. + +### GetAzureSqlManagedInstanceOk + +`func (o *ResourceRemoteInfo) GetAzureSqlManagedInstanceOk() (*ResourceRemoteInfoAzureSqlManagedInstance, bool)` + +GetAzureSqlManagedInstanceOk returns a tuple with the AzureSqlManagedInstance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureSqlManagedInstance + +`func (o *ResourceRemoteInfo) SetAzureSqlManagedInstance(v ResourceRemoteInfoAzureSqlManagedInstance)` + +SetAzureSqlManagedInstance sets AzureSqlManagedInstance field to given value. + +### HasAzureSqlManagedInstance + +`func (o *ResourceRemoteInfo) HasAzureSqlManagedInstance() bool` + +HasAzureSqlManagedInstance returns a boolean if a field has been set. + +### GetAzureSqlManagedDatabase + +`func (o *ResourceRemoteInfo) GetAzureSqlManagedDatabase() ResourceRemoteInfoAzureSqlManagedDatabase` + +GetAzureSqlManagedDatabase returns the AzureSqlManagedDatabase field if non-nil, zero value otherwise. + +### GetAzureSqlManagedDatabaseOk + +`func (o *ResourceRemoteInfo) GetAzureSqlManagedDatabaseOk() (*ResourceRemoteInfoAzureSqlManagedDatabase, bool)` + +GetAzureSqlManagedDatabaseOk returns a tuple with the AzureSqlManagedDatabase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureSqlManagedDatabase + +`func (o *ResourceRemoteInfo) SetAzureSqlManagedDatabase(v ResourceRemoteInfoAzureSqlManagedDatabase)` + +SetAzureSqlManagedDatabase sets AzureSqlManagedDatabase field to given value. + +### HasAzureSqlManagedDatabase + +`func (o *ResourceRemoteInfo) HasAzureSqlManagedDatabase() bool` + +HasAzureSqlManagedDatabase returns a boolean if a field has been set. + +### GetAzureUserAssignedManagedIdentity + +`func (o *ResourceRemoteInfo) GetAzureUserAssignedManagedIdentity() ResourceRemoteInfoAzureUserAssignedManagedIdentity` + +GetAzureUserAssignedManagedIdentity returns the AzureUserAssignedManagedIdentity field if non-nil, zero value otherwise. + +### GetAzureUserAssignedManagedIdentityOk + +`func (o *ResourceRemoteInfo) GetAzureUserAssignedManagedIdentityOk() (*ResourceRemoteInfoAzureUserAssignedManagedIdentity, bool)` + +GetAzureUserAssignedManagedIdentityOk returns a tuple with the AzureUserAssignedManagedIdentity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureUserAssignedManagedIdentity + +`func (o *ResourceRemoteInfo) SetAzureUserAssignedManagedIdentity(v ResourceRemoteInfoAzureUserAssignedManagedIdentity)` + +SetAzureUserAssignedManagedIdentity sets AzureUserAssignedManagedIdentity field to given value. + +### HasAzureUserAssignedManagedIdentity + +`func (o *ResourceRemoteInfo) HasAzureUserAssignedManagedIdentity() bool` + +HasAzureUserAssignedManagedIdentity returns a boolean if a field has been set. + +### GetAzureEnterpriseApp + +`func (o *ResourceRemoteInfo) GetAzureEnterpriseApp() ResourceRemoteInfoAzureEnterpriseApp` + +GetAzureEnterpriseApp returns the AzureEnterpriseApp field if non-nil, zero value otherwise. + +### GetAzureEnterpriseAppOk + +`func (o *ResourceRemoteInfo) GetAzureEnterpriseAppOk() (*ResourceRemoteInfoAzureEnterpriseApp, bool)` + +GetAzureEnterpriseAppOk returns a tuple with the AzureEnterpriseApp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureEnterpriseApp + +`func (o *ResourceRemoteInfo) SetAzureEnterpriseApp(v ResourceRemoteInfoAzureEnterpriseApp)` + +SetAzureEnterpriseApp sets AzureEnterpriseApp field to given value. + +### HasAzureEnterpriseApp + +`func (o *ResourceRemoteInfo) HasAzureEnterpriseApp() bool` + +HasAzureEnterpriseApp returns a boolean if a field has been set. + +### GetAzureEntraIdRole + +`func (o *ResourceRemoteInfo) GetAzureEntraIdRole() ResourceRemoteInfoAzureEntraIdRole` + +GetAzureEntraIdRole returns the AzureEntraIdRole field if non-nil, zero value otherwise. + +### GetAzureEntraIdRoleOk + +`func (o *ResourceRemoteInfo) GetAzureEntraIdRoleOk() (*ResourceRemoteInfoAzureEntraIdRole, bool)` + +GetAzureEntraIdRoleOk returns a tuple with the AzureEntraIdRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAzureEntraIdRole + +`func (o *ResourceRemoteInfo) SetAzureEntraIdRole(v ResourceRemoteInfoAzureEntraIdRole)` + +SetAzureEntraIdRole sets AzureEntraIdRole field to given value. + +### HasAzureEntraIdRole + +`func (o *ResourceRemoteInfo) HasAzureEntraIdRole() bool` + +HasAzureEntraIdRole returns a boolean if a field has been set. + ### GetAwsOrganizationalUnit `func (o *ResourceRemoteInfo) GetAwsOrganizationalUnit() ResourceRemoteInfoAwsOrganizationalUnit` @@ -181,6 +560,31 @@ SetAwsEc2Instance sets AwsEc2Instance field to given value. HasAwsEc2Instance returns a boolean if a field has been set. +### GetAwsRdsCluster + +`func (o *ResourceRemoteInfo) GetAwsRdsCluster() ResourceRemoteInfoAwsRdsCluster` + +GetAwsRdsCluster returns the AwsRdsCluster field if non-nil, zero value otherwise. + +### GetAwsRdsClusterOk + +`func (o *ResourceRemoteInfo) GetAwsRdsClusterOk() (*ResourceRemoteInfoAwsRdsCluster, bool)` + +GetAwsRdsClusterOk returns a tuple with the AwsRdsCluster field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAwsRdsCluster + +`func (o *ResourceRemoteInfo) SetAwsRdsCluster(v ResourceRemoteInfoAwsRdsCluster)` + +SetAwsRdsCluster sets AwsRdsCluster field to given value. + +### HasAwsRdsCluster + +`func (o *ResourceRemoteInfo) HasAwsRdsCluster() bool` + +HasAwsRdsCluster returns a boolean if a field has been set. + ### GetAwsRdsInstance `func (o *ResourceRemoteInfo) GetAwsRdsInstance() ResourceRemoteInfoAwsRdsInstance` @@ -581,6 +985,31 @@ SetGithubOrgRole sets GithubOrgRole field to given value. HasGithubOrgRole returns a boolean if a field has been set. +### GetGithubOrg + +`func (o *ResourceRemoteInfo) GetGithubOrg() ResourceRemoteInfoGithubOrg` + +GetGithubOrg returns the GithubOrg field if non-nil, zero value otherwise. + +### GetGithubOrgOk + +`func (o *ResourceRemoteInfo) GetGithubOrgOk() (*ResourceRemoteInfoGithubOrg, bool)` + +GetGithubOrgOk returns a tuple with the GithubOrg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGithubOrg + +`func (o *ResourceRemoteInfo) SetGithubOrg(v ResourceRemoteInfoGithubOrg)` + +SetGithubOrg sets GithubOrg field to given value. + +### HasGithubOrg + +`func (o *ResourceRemoteInfo) HasGithubOrg() bool` + +HasGithubOrg returns a boolean if a field has been set. + ### GetGitlabProject `func (o *ResourceRemoteInfo) GetGitlabProject() ResourceRemoteInfoGitlabProject` @@ -681,6 +1110,131 @@ SetOktaCustomRole sets OktaCustomRole field to given value. HasOktaCustomRole returns a boolean if a field has been set. +### GetSnowflakeDatabase + +`func (o *ResourceRemoteInfo) GetSnowflakeDatabase() ResourceRemoteInfoSnowflakeDatabase` + +GetSnowflakeDatabase returns the SnowflakeDatabase field if non-nil, zero value otherwise. + +### GetSnowflakeDatabaseOk + +`func (o *ResourceRemoteInfo) GetSnowflakeDatabaseOk() (*ResourceRemoteInfoSnowflakeDatabase, bool)` + +GetSnowflakeDatabaseOk returns a tuple with the SnowflakeDatabase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSnowflakeDatabase + +`func (o *ResourceRemoteInfo) SetSnowflakeDatabase(v ResourceRemoteInfoSnowflakeDatabase)` + +SetSnowflakeDatabase sets SnowflakeDatabase field to given value. + +### HasSnowflakeDatabase + +`func (o *ResourceRemoteInfo) HasSnowflakeDatabase() bool` + +HasSnowflakeDatabase returns a boolean if a field has been set. + +### GetSnowflakeSchema + +`func (o *ResourceRemoteInfo) GetSnowflakeSchema() ResourceRemoteInfoSnowflakeSchema` + +GetSnowflakeSchema returns the SnowflakeSchema field if non-nil, zero value otherwise. + +### GetSnowflakeSchemaOk + +`func (o *ResourceRemoteInfo) GetSnowflakeSchemaOk() (*ResourceRemoteInfoSnowflakeSchema, bool)` + +GetSnowflakeSchemaOk returns a tuple with the SnowflakeSchema field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSnowflakeSchema + +`func (o *ResourceRemoteInfo) SetSnowflakeSchema(v ResourceRemoteInfoSnowflakeSchema)` + +SetSnowflakeSchema sets SnowflakeSchema field to given value. + +### HasSnowflakeSchema + +`func (o *ResourceRemoteInfo) HasSnowflakeSchema() bool` + +HasSnowflakeSchema returns a boolean if a field has been set. + +### GetSnowflakeTable + +`func (o *ResourceRemoteInfo) GetSnowflakeTable() ResourceRemoteInfoSnowflakeTable` + +GetSnowflakeTable returns the SnowflakeTable field if non-nil, zero value otherwise. + +### GetSnowflakeTableOk + +`func (o *ResourceRemoteInfo) GetSnowflakeTableOk() (*ResourceRemoteInfoSnowflakeTable, bool)` + +GetSnowflakeTableOk returns a tuple with the SnowflakeTable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSnowflakeTable + +`func (o *ResourceRemoteInfo) SetSnowflakeTable(v ResourceRemoteInfoSnowflakeTable)` + +SetSnowflakeTable sets SnowflakeTable field to given value. + +### HasSnowflakeTable + +`func (o *ResourceRemoteInfo) HasSnowflakeTable() bool` + +HasSnowflakeTable returns a boolean if a field has been set. + +### GetIlevelAdvancedRole + +`func (o *ResourceRemoteInfo) GetIlevelAdvancedRole() ResourceRemoteInfoIlevelAdvancedRole` + +GetIlevelAdvancedRole returns the IlevelAdvancedRole field if non-nil, zero value otherwise. + +### GetIlevelAdvancedRoleOk + +`func (o *ResourceRemoteInfo) GetIlevelAdvancedRoleOk() (*ResourceRemoteInfoIlevelAdvancedRole, bool)` + +GetIlevelAdvancedRoleOk returns a tuple with the IlevelAdvancedRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIlevelAdvancedRole + +`func (o *ResourceRemoteInfo) SetIlevelAdvancedRole(v ResourceRemoteInfoIlevelAdvancedRole)` + +SetIlevelAdvancedRole sets IlevelAdvancedRole field to given value. + +### HasIlevelAdvancedRole + +`func (o *ResourceRemoteInfo) HasIlevelAdvancedRole() bool` + +HasIlevelAdvancedRole returns a boolean if a field has been set. + +### GetTailscaleSsh + +`func (o *ResourceRemoteInfo) GetTailscaleSsh() ResourceRemoteInfoTailscaleSsh` + +GetTailscaleSsh returns the TailscaleSsh field if non-nil, zero value otherwise. + +### GetTailscaleSshOk + +`func (o *ResourceRemoteInfo) GetTailscaleSshOk() (*ResourceRemoteInfoTailscaleSsh, bool)` + +GetTailscaleSshOk returns a tuple with the TailscaleSsh field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTailscaleSsh + +`func (o *ResourceRemoteInfo) SetTailscaleSsh(v ResourceRemoteInfoTailscaleSsh)` + +SetTailscaleSsh sets TailscaleSsh field to given value. + +### HasTailscaleSsh + +`func (o *ResourceRemoteInfo) HasTailscaleSsh() bool` + +HasTailscaleSsh returns a boolean if a field has been set. + ### GetPagerdutyRole `func (o *ResourceRemoteInfo) GetPagerdutyRole() ResourceRemoteInfoPagerdutyRole` @@ -706,6 +1260,31 @@ SetPagerdutyRole sets PagerdutyRole field to given value. HasPagerdutyRole returns a boolean if a field has been set. +### GetWorkdayRole + +`func (o *ResourceRemoteInfo) GetWorkdayRole() ResourceRemoteInfoWorkdayRole` + +GetWorkdayRole returns the WorkdayRole field if non-nil, zero value otherwise. + +### GetWorkdayRoleOk + +`func (o *ResourceRemoteInfo) GetWorkdayRoleOk() (*ResourceRemoteInfoWorkdayRole, bool)` + +GetWorkdayRoleOk returns a tuple with the WorkdayRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkdayRole + +`func (o *ResourceRemoteInfo) SetWorkdayRole(v ResourceRemoteInfoWorkdayRole)` + +SetWorkdayRole sets WorkdayRole field to given value. + +### HasWorkdayRole + +`func (o *ResourceRemoteInfo) HasWorkdayRole() bool` + +HasWorkdayRole returns a boolean if a field has been set. + ### GetSalesforcePermissionSet `func (o *ResourceRemoteInfo) GetSalesforcePermissionSet() ResourceRemoteInfoSalesforcePermissionSet` @@ -856,6 +1435,181 @@ SetCoupaRole sets CoupaRole field to given value. HasCoupaRole returns a boolean if a field has been set. +### GetCursorOrganization + +`func (o *ResourceRemoteInfo) GetCursorOrganization() ResourceRemoteInfoCursorOrganization` + +GetCursorOrganization returns the CursorOrganization field if non-nil, zero value otherwise. + +### GetCursorOrganizationOk + +`func (o *ResourceRemoteInfo) GetCursorOrganizationOk() (*ResourceRemoteInfoCursorOrganization, bool)` + +GetCursorOrganizationOk returns a tuple with the CursorOrganization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursorOrganization + +`func (o *ResourceRemoteInfo) SetCursorOrganization(v ResourceRemoteInfoCursorOrganization)` + +SetCursorOrganization sets CursorOrganization field to given value. + +### HasCursorOrganization + +`func (o *ResourceRemoteInfo) HasCursorOrganization() bool` + +HasCursorOrganization returns a boolean if a field has been set. + +### GetOpenaiPlatformProject + +`func (o *ResourceRemoteInfo) GetOpenaiPlatformProject() ResourceRemoteInfoOpenaiPlatformProject` + +GetOpenaiPlatformProject returns the OpenaiPlatformProject field if non-nil, zero value otherwise. + +### GetOpenaiPlatformProjectOk + +`func (o *ResourceRemoteInfo) GetOpenaiPlatformProjectOk() (*ResourceRemoteInfoOpenaiPlatformProject, bool)` + +GetOpenaiPlatformProjectOk returns a tuple with the OpenaiPlatformProject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOpenaiPlatformProject + +`func (o *ResourceRemoteInfo) SetOpenaiPlatformProject(v ResourceRemoteInfoOpenaiPlatformProject)` + +SetOpenaiPlatformProject sets OpenaiPlatformProject field to given value. + +### HasOpenaiPlatformProject + +`func (o *ResourceRemoteInfo) HasOpenaiPlatformProject() bool` + +HasOpenaiPlatformProject returns a boolean if a field has been set. + +### GetOpenaiPlatformServiceAccount + +`func (o *ResourceRemoteInfo) GetOpenaiPlatformServiceAccount() ResourceRemoteInfoOpenaiPlatformServiceAccount` + +GetOpenaiPlatformServiceAccount returns the OpenaiPlatformServiceAccount field if non-nil, zero value otherwise. + +### GetOpenaiPlatformServiceAccountOk + +`func (o *ResourceRemoteInfo) GetOpenaiPlatformServiceAccountOk() (*ResourceRemoteInfoOpenaiPlatformServiceAccount, bool)` + +GetOpenaiPlatformServiceAccountOk returns a tuple with the OpenaiPlatformServiceAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOpenaiPlatformServiceAccount + +`func (o *ResourceRemoteInfo) SetOpenaiPlatformServiceAccount(v ResourceRemoteInfoOpenaiPlatformServiceAccount)` + +SetOpenaiPlatformServiceAccount sets OpenaiPlatformServiceAccount field to given value. + +### HasOpenaiPlatformServiceAccount + +`func (o *ResourceRemoteInfo) HasOpenaiPlatformServiceAccount() bool` + +HasOpenaiPlatformServiceAccount returns a boolean if a field has been set. + +### GetAnthropicWorkspace + +`func (o *ResourceRemoteInfo) GetAnthropicWorkspace() ResourceRemoteInfoAnthropicWorkspace` + +GetAnthropicWorkspace returns the AnthropicWorkspace field if non-nil, zero value otherwise. + +### GetAnthropicWorkspaceOk + +`func (o *ResourceRemoteInfo) GetAnthropicWorkspaceOk() (*ResourceRemoteInfoAnthropicWorkspace, bool)` + +GetAnthropicWorkspaceOk returns a tuple with the AnthropicWorkspace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnthropicWorkspace + +`func (o *ResourceRemoteInfo) SetAnthropicWorkspace(v ResourceRemoteInfoAnthropicWorkspace)` + +SetAnthropicWorkspace sets AnthropicWorkspace field to given value. + +### HasAnthropicWorkspace + +`func (o *ResourceRemoteInfo) HasAnthropicWorkspace() bool` + +HasAnthropicWorkspace returns a boolean if a field has been set. + +### GetOracleFusionRole + +`func (o *ResourceRemoteInfo) GetOracleFusionRole() ResourceRemoteInfoOracleFusionRole` + +GetOracleFusionRole returns the OracleFusionRole field if non-nil, zero value otherwise. + +### GetOracleFusionRoleOk + +`func (o *ResourceRemoteInfo) GetOracleFusionRoleOk() (*ResourceRemoteInfoOracleFusionRole, bool)` + +GetOracleFusionRoleOk returns a tuple with the OracleFusionRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOracleFusionRole + +`func (o *ResourceRemoteInfo) SetOracleFusionRole(v ResourceRemoteInfoOracleFusionRole)` + +SetOracleFusionRole sets OracleFusionRole field to given value. + +### HasOracleFusionRole + +`func (o *ResourceRemoteInfo) HasOracleFusionRole() bool` + +HasOracleFusionRole returns a boolean if a field has been set. + +### GetDevinOrganization + +`func (o *ResourceRemoteInfo) GetDevinOrganization() ResourceRemoteInfoDevinOrganization` + +GetDevinOrganization returns the DevinOrganization field if non-nil, zero value otherwise. + +### GetDevinOrganizationOk + +`func (o *ResourceRemoteInfo) GetDevinOrganizationOk() (*ResourceRemoteInfoDevinOrganization, bool)` + +GetDevinOrganizationOk returns a tuple with the DevinOrganization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevinOrganization + +`func (o *ResourceRemoteInfo) SetDevinOrganization(v ResourceRemoteInfoDevinOrganization)` + +SetDevinOrganization sets DevinOrganization field to given value. + +### HasDevinOrganization + +`func (o *ResourceRemoteInfo) HasDevinOrganization() bool` + +HasDevinOrganization returns a boolean if a field has been set. + +### GetDevinRole + +`func (o *ResourceRemoteInfo) GetDevinRole() ResourceRemoteInfoDevinRole` + +GetDevinRole returns the DevinRole field if non-nil, zero value otherwise. + +### GetDevinRoleOk + +`func (o *ResourceRemoteInfo) GetDevinRoleOk() (*ResourceRemoteInfoDevinRole, bool)` + +GetDevinRoleOk returns a tuple with the DevinRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevinRole + +`func (o *ResourceRemoteInfo) SetDevinRole(v ResourceRemoteInfoDevinRole)` + +SetDevinRole sets DevinRole field to given value. + +### HasDevinRole + +`func (o *ResourceRemoteInfo) HasDevinRole() bool` + +HasDevinRole returns a boolean if a field has been set. + [[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/ResourceRemoteInfoAnthropicWorkspace.md b/docs/ResourceRemoteInfoAnthropicWorkspace.md new file mode 100644 index 0000000..969e3d4 --- /dev/null +++ b/docs/ResourceRemoteInfoAnthropicWorkspace.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAnthropicWorkspace + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**WorkspaceId** | **string** | The id of the workspace. | + +## Methods + +### NewResourceRemoteInfoAnthropicWorkspace + +`func NewResourceRemoteInfoAnthropicWorkspace(workspaceId string, ) *ResourceRemoteInfoAnthropicWorkspace` + +NewResourceRemoteInfoAnthropicWorkspace instantiates a new ResourceRemoteInfoAnthropicWorkspace 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 + +### NewResourceRemoteInfoAnthropicWorkspaceWithDefaults + +`func NewResourceRemoteInfoAnthropicWorkspaceWithDefaults() *ResourceRemoteInfoAnthropicWorkspace` + +NewResourceRemoteInfoAnthropicWorkspaceWithDefaults instantiates a new ResourceRemoteInfoAnthropicWorkspace 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 + +### GetWorkspaceId + +`func (o *ResourceRemoteInfoAnthropicWorkspace) GetWorkspaceId() string` + +GetWorkspaceId returns the WorkspaceId field if non-nil, zero value otherwise. + +### GetWorkspaceIdOk + +`func (o *ResourceRemoteInfoAnthropicWorkspace) GetWorkspaceIdOk() (*string, bool)` + +GetWorkspaceIdOk returns a tuple with the WorkspaceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkspaceId + +`func (o *ResourceRemoteInfoAnthropicWorkspace) SetWorkspaceId(v string)` + +SetWorkspaceId sets WorkspaceId 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/ResourceRemoteInfoAwsRdsCluster.md b/docs/ResourceRemoteInfoAwsRdsCluster.md new file mode 100644 index 0000000..3cc1d2c --- /dev/null +++ b/docs/ResourceRemoteInfoAwsRdsCluster.md @@ -0,0 +1,156 @@ +# ResourceRemoteInfoAwsRdsCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ClusterId** | **string** | The clusterId of the RDS cluster. | +**Region** | **string** | The region of the RDS cluster. | +**ResourceId** | **string** | The resourceId of the RDS cluster. | +**AccountId** | **string** | The id of the AWS account. Required for AWS Organizations. | +**DatabaseName** | **string** | The name of the database in the RDS cluster. This can be the value of the tag `opal:database-name` or the database name. | +**Engine** | [**RDSEngineEnum**](RDSEngineEnum.md) | | + +## Methods + +### NewResourceRemoteInfoAwsRdsCluster + +`func NewResourceRemoteInfoAwsRdsCluster(clusterId string, region string, resourceId string, accountId string, databaseName string, engine RDSEngineEnum, ) *ResourceRemoteInfoAwsRdsCluster` + +NewResourceRemoteInfoAwsRdsCluster instantiates a new ResourceRemoteInfoAwsRdsCluster 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 + +### NewResourceRemoteInfoAwsRdsClusterWithDefaults + +`func NewResourceRemoteInfoAwsRdsClusterWithDefaults() *ResourceRemoteInfoAwsRdsCluster` + +NewResourceRemoteInfoAwsRdsClusterWithDefaults instantiates a new ResourceRemoteInfoAwsRdsCluster 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 + +### GetClusterId + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetClusterId() string` + +GetClusterId returns the ClusterId field if non-nil, zero value otherwise. + +### GetClusterIdOk + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetClusterIdOk() (*string, bool)` + +GetClusterIdOk returns a tuple with the ClusterId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterId + +`func (o *ResourceRemoteInfoAwsRdsCluster) SetClusterId(v string)` + +SetClusterId sets ClusterId field to given value. + + +### GetRegion + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *ResourceRemoteInfoAwsRdsCluster) SetRegion(v string)` + +SetRegion sets Region field to given value. + + +### GetResourceId + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAwsRdsCluster) SetResourceId(v string)` + +SetResourceId sets ResourceId field to given value. + + +### GetAccountId + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetAccountId() string` + +GetAccountId returns the AccountId field if non-nil, zero value otherwise. + +### GetAccountIdOk + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetAccountIdOk() (*string, bool)` + +GetAccountIdOk returns a tuple with the AccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountId + +`func (o *ResourceRemoteInfoAwsRdsCluster) SetAccountId(v string)` + +SetAccountId sets AccountId field to given value. + + +### GetDatabaseName + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetDatabaseName() string` + +GetDatabaseName returns the DatabaseName field if non-nil, zero value otherwise. + +### GetDatabaseNameOk + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetDatabaseNameOk() (*string, bool)` + +GetDatabaseNameOk returns a tuple with the DatabaseName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatabaseName + +`func (o *ResourceRemoteInfoAwsRdsCluster) SetDatabaseName(v string)` + +SetDatabaseName sets DatabaseName field to given value. + + +### GetEngine + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetEngine() RDSEngineEnum` + +GetEngine returns the Engine field if non-nil, zero value otherwise. + +### GetEngineOk + +`func (o *ResourceRemoteInfoAwsRdsCluster) GetEngineOk() (*RDSEngineEnum, bool)` + +GetEngineOk returns a tuple with the Engine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEngine + +`func (o *ResourceRemoteInfoAwsRdsCluster) SetEngine(v RDSEngineEnum)` + +SetEngine sets Engine 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/ResourceRemoteInfoAzureEnterpriseApp.md b/docs/ResourceRemoteInfoAzureEnterpriseApp.md new file mode 100644 index 0000000..08f3754 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureEnterpriseApp.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureEnterpriseApp + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The remote application identifier (service principal or application object ID). | + +## Methods + +### NewResourceRemoteInfoAzureEnterpriseApp + +`func NewResourceRemoteInfoAzureEnterpriseApp(resourceId string, ) *ResourceRemoteInfoAzureEnterpriseApp` + +NewResourceRemoteInfoAzureEnterpriseApp instantiates a new ResourceRemoteInfoAzureEnterpriseApp 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 + +### NewResourceRemoteInfoAzureEnterpriseAppWithDefaults + +`func NewResourceRemoteInfoAzureEnterpriseAppWithDefaults() *ResourceRemoteInfoAzureEnterpriseApp` + +NewResourceRemoteInfoAzureEnterpriseAppWithDefaults instantiates a new ResourceRemoteInfoAzureEnterpriseApp 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureEnterpriseApp) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureEnterpriseApp) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureEnterpriseApp) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureEntraIdRole.md b/docs/ResourceRemoteInfoAzureEntraIdRole.md new file mode 100644 index 0000000..bbcdce7 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureEntraIdRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureEntraIdRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The remote role identifier from Entra (object ID). | + +## Methods + +### NewResourceRemoteInfoAzureEntraIdRole + +`func NewResourceRemoteInfoAzureEntraIdRole(resourceId string, ) *ResourceRemoteInfoAzureEntraIdRole` + +NewResourceRemoteInfoAzureEntraIdRole instantiates a new ResourceRemoteInfoAzureEntraIdRole 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 + +### NewResourceRemoteInfoAzureEntraIdRoleWithDefaults + +`func NewResourceRemoteInfoAzureEntraIdRoleWithDefaults() *ResourceRemoteInfoAzureEntraIdRole` + +NewResourceRemoteInfoAzureEntraIdRoleWithDefaults instantiates a new ResourceRemoteInfoAzureEntraIdRole 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureEntraIdRole) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureEntraIdRole) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureEntraIdRole) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureManagementGroup.md b/docs/ResourceRemoteInfoAzureManagementGroup.md new file mode 100644 index 0000000..20fe07b --- /dev/null +++ b/docs/ResourceRemoteInfoAzureManagementGroup.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureManagementGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the management group. | + +## Methods + +### NewResourceRemoteInfoAzureManagementGroup + +`func NewResourceRemoteInfoAzureManagementGroup(resourceId string, ) *ResourceRemoteInfoAzureManagementGroup` + +NewResourceRemoteInfoAzureManagementGroup instantiates a new ResourceRemoteInfoAzureManagementGroup 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 + +### NewResourceRemoteInfoAzureManagementGroupWithDefaults + +`func NewResourceRemoteInfoAzureManagementGroupWithDefaults() *ResourceRemoteInfoAzureManagementGroup` + +NewResourceRemoteInfoAzureManagementGroupWithDefaults instantiates a new ResourceRemoteInfoAzureManagementGroup 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureManagementGroup) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureManagementGroup) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureManagementGroup) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureResourceGroup.md b/docs/ResourceRemoteInfoAzureResourceGroup.md new file mode 100644 index 0000000..7483a74 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureResourceGroup.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureResourceGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the resource group. | + +## Methods + +### NewResourceRemoteInfoAzureResourceGroup + +`func NewResourceRemoteInfoAzureResourceGroup(resourceId string, ) *ResourceRemoteInfoAzureResourceGroup` + +NewResourceRemoteInfoAzureResourceGroup instantiates a new ResourceRemoteInfoAzureResourceGroup 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 + +### NewResourceRemoteInfoAzureResourceGroupWithDefaults + +`func NewResourceRemoteInfoAzureResourceGroupWithDefaults() *ResourceRemoteInfoAzureResourceGroup` + +NewResourceRemoteInfoAzureResourceGroupWithDefaults instantiates a new ResourceRemoteInfoAzureResourceGroup 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureResourceGroup) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureResourceGroup) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureResourceGroup) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureSqlDatabase.md b/docs/ResourceRemoteInfoAzureSqlDatabase.md new file mode 100644 index 0000000..5a1daa7 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureSqlDatabase.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureSqlDatabase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the SQL database. | + +## Methods + +### NewResourceRemoteInfoAzureSqlDatabase + +`func NewResourceRemoteInfoAzureSqlDatabase(resourceId string, ) *ResourceRemoteInfoAzureSqlDatabase` + +NewResourceRemoteInfoAzureSqlDatabase instantiates a new ResourceRemoteInfoAzureSqlDatabase 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 + +### NewResourceRemoteInfoAzureSqlDatabaseWithDefaults + +`func NewResourceRemoteInfoAzureSqlDatabaseWithDefaults() *ResourceRemoteInfoAzureSqlDatabase` + +NewResourceRemoteInfoAzureSqlDatabaseWithDefaults instantiates a new ResourceRemoteInfoAzureSqlDatabase 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureSqlDatabase) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureSqlDatabase) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureSqlDatabase) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureSqlManagedDatabase.md b/docs/ResourceRemoteInfoAzureSqlManagedDatabase.md new file mode 100644 index 0000000..19ad8f5 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureSqlManagedDatabase.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureSqlManagedDatabase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the SQL managed database. | + +## Methods + +### NewResourceRemoteInfoAzureSqlManagedDatabase + +`func NewResourceRemoteInfoAzureSqlManagedDatabase(resourceId string, ) *ResourceRemoteInfoAzureSqlManagedDatabase` + +NewResourceRemoteInfoAzureSqlManagedDatabase instantiates a new ResourceRemoteInfoAzureSqlManagedDatabase 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 + +### NewResourceRemoteInfoAzureSqlManagedDatabaseWithDefaults + +`func NewResourceRemoteInfoAzureSqlManagedDatabaseWithDefaults() *ResourceRemoteInfoAzureSqlManagedDatabase` + +NewResourceRemoteInfoAzureSqlManagedDatabaseWithDefaults instantiates a new ResourceRemoteInfoAzureSqlManagedDatabase 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureSqlManagedDatabase) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureSqlManagedDatabase) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureSqlManagedDatabase) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureSqlManagedInstance.md b/docs/ResourceRemoteInfoAzureSqlManagedInstance.md new file mode 100644 index 0000000..cf6a0f3 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureSqlManagedInstance.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureSqlManagedInstance + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the SQL managed instance. | + +## Methods + +### NewResourceRemoteInfoAzureSqlManagedInstance + +`func NewResourceRemoteInfoAzureSqlManagedInstance(resourceId string, ) *ResourceRemoteInfoAzureSqlManagedInstance` + +NewResourceRemoteInfoAzureSqlManagedInstance instantiates a new ResourceRemoteInfoAzureSqlManagedInstance 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 + +### NewResourceRemoteInfoAzureSqlManagedInstanceWithDefaults + +`func NewResourceRemoteInfoAzureSqlManagedInstanceWithDefaults() *ResourceRemoteInfoAzureSqlManagedInstance` + +NewResourceRemoteInfoAzureSqlManagedInstanceWithDefaults instantiates a new ResourceRemoteInfoAzureSqlManagedInstance 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureSqlManagedInstance) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureSqlManagedInstance) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureSqlManagedInstance) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureSqlServer.md b/docs/ResourceRemoteInfoAzureSqlServer.md new file mode 100644 index 0000000..571a745 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureSqlServer.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureSqlServer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the SQL server. | + +## Methods + +### NewResourceRemoteInfoAzureSqlServer + +`func NewResourceRemoteInfoAzureSqlServer(resourceId string, ) *ResourceRemoteInfoAzureSqlServer` + +NewResourceRemoteInfoAzureSqlServer instantiates a new ResourceRemoteInfoAzureSqlServer 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 + +### NewResourceRemoteInfoAzureSqlServerWithDefaults + +`func NewResourceRemoteInfoAzureSqlServerWithDefaults() *ResourceRemoteInfoAzureSqlServer` + +NewResourceRemoteInfoAzureSqlServerWithDefaults instantiates a new ResourceRemoteInfoAzureSqlServer 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureSqlServer) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureSqlServer) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureSqlServer) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureStorageAccount.md b/docs/ResourceRemoteInfoAzureStorageAccount.md new file mode 100644 index 0000000..b09efe4 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureStorageAccount.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureStorageAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the storage account. | + +## Methods + +### NewResourceRemoteInfoAzureStorageAccount + +`func NewResourceRemoteInfoAzureStorageAccount(resourceId string, ) *ResourceRemoteInfoAzureStorageAccount` + +NewResourceRemoteInfoAzureStorageAccount instantiates a new ResourceRemoteInfoAzureStorageAccount 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 + +### NewResourceRemoteInfoAzureStorageAccountWithDefaults + +`func NewResourceRemoteInfoAzureStorageAccountWithDefaults() *ResourceRemoteInfoAzureStorageAccount` + +NewResourceRemoteInfoAzureStorageAccountWithDefaults instantiates a new ResourceRemoteInfoAzureStorageAccount 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureStorageAccount) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureStorageAccount) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureStorageAccount) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureStorageContainer.md b/docs/ResourceRemoteInfoAzureStorageContainer.md new file mode 100644 index 0000000..158d8ac --- /dev/null +++ b/docs/ResourceRemoteInfoAzureStorageContainer.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureStorageContainer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the storage container. | + +## Methods + +### NewResourceRemoteInfoAzureStorageContainer + +`func NewResourceRemoteInfoAzureStorageContainer(resourceId string, ) *ResourceRemoteInfoAzureStorageContainer` + +NewResourceRemoteInfoAzureStorageContainer instantiates a new ResourceRemoteInfoAzureStorageContainer 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 + +### NewResourceRemoteInfoAzureStorageContainerWithDefaults + +`func NewResourceRemoteInfoAzureStorageContainerWithDefaults() *ResourceRemoteInfoAzureStorageContainer` + +NewResourceRemoteInfoAzureStorageContainerWithDefaults instantiates a new ResourceRemoteInfoAzureStorageContainer 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureStorageContainer) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureStorageContainer) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureStorageContainer) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureSubscription.md b/docs/ResourceRemoteInfoAzureSubscription.md new file mode 100644 index 0000000..aebf1ab --- /dev/null +++ b/docs/ResourceRemoteInfoAzureSubscription.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureSubscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the subscription. | + +## Methods + +### NewResourceRemoteInfoAzureSubscription + +`func NewResourceRemoteInfoAzureSubscription(resourceId string, ) *ResourceRemoteInfoAzureSubscription` + +NewResourceRemoteInfoAzureSubscription instantiates a new ResourceRemoteInfoAzureSubscription 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 + +### NewResourceRemoteInfoAzureSubscriptionWithDefaults + +`func NewResourceRemoteInfoAzureSubscriptionWithDefaults() *ResourceRemoteInfoAzureSubscription` + +NewResourceRemoteInfoAzureSubscriptionWithDefaults instantiates a new ResourceRemoteInfoAzureSubscription 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureSubscription) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureSubscription) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureSubscription) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureUserAssignedManagedIdentity.md b/docs/ResourceRemoteInfoAzureUserAssignedManagedIdentity.md new file mode 100644 index 0000000..e0aacb2 --- /dev/null +++ b/docs/ResourceRemoteInfoAzureUserAssignedManagedIdentity.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureUserAssignedManagedIdentity + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the user assigned managed identity. | + +## Methods + +### NewResourceRemoteInfoAzureUserAssignedManagedIdentity + +`func NewResourceRemoteInfoAzureUserAssignedManagedIdentity(resourceId string, ) *ResourceRemoteInfoAzureUserAssignedManagedIdentity` + +NewResourceRemoteInfoAzureUserAssignedManagedIdentity instantiates a new ResourceRemoteInfoAzureUserAssignedManagedIdentity 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 + +### NewResourceRemoteInfoAzureUserAssignedManagedIdentityWithDefaults + +`func NewResourceRemoteInfoAzureUserAssignedManagedIdentityWithDefaults() *ResourceRemoteInfoAzureUserAssignedManagedIdentity` + +NewResourceRemoteInfoAzureUserAssignedManagedIdentityWithDefaults instantiates a new ResourceRemoteInfoAzureUserAssignedManagedIdentity 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureUserAssignedManagedIdentity) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureUserAssignedManagedIdentity) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureUserAssignedManagedIdentity) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoAzureVirtualMachine.md b/docs/ResourceRemoteInfoAzureVirtualMachine.md new file mode 100644 index 0000000..f4f4f8f --- /dev/null +++ b/docs/ResourceRemoteInfoAzureVirtualMachine.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoAzureVirtualMachine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The ARM resource ID of the virtual machine. | + +## Methods + +### NewResourceRemoteInfoAzureVirtualMachine + +`func NewResourceRemoteInfoAzureVirtualMachine(resourceId string, ) *ResourceRemoteInfoAzureVirtualMachine` + +NewResourceRemoteInfoAzureVirtualMachine instantiates a new ResourceRemoteInfoAzureVirtualMachine 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 + +### NewResourceRemoteInfoAzureVirtualMachineWithDefaults + +`func NewResourceRemoteInfoAzureVirtualMachineWithDefaults() *ResourceRemoteInfoAzureVirtualMachine` + +NewResourceRemoteInfoAzureVirtualMachineWithDefaults instantiates a new ResourceRemoteInfoAzureVirtualMachine 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 + +### GetResourceId + +`func (o *ResourceRemoteInfoAzureVirtualMachine) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoAzureVirtualMachine) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoAzureVirtualMachine) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoCursorOrganization.md b/docs/ResourceRemoteInfoCursorOrganization.md new file mode 100644 index 0000000..c112ac6 --- /dev/null +++ b/docs/ResourceRemoteInfoCursorOrganization.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoCursorOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | The id of the organization. | + +## Methods + +### NewResourceRemoteInfoCursorOrganization + +`func NewResourceRemoteInfoCursorOrganization(orgId string, ) *ResourceRemoteInfoCursorOrganization` + +NewResourceRemoteInfoCursorOrganization instantiates a new ResourceRemoteInfoCursorOrganization 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 + +### NewResourceRemoteInfoCursorOrganizationWithDefaults + +`func NewResourceRemoteInfoCursorOrganizationWithDefaults() *ResourceRemoteInfoCursorOrganization` + +NewResourceRemoteInfoCursorOrganizationWithDefaults instantiates a new ResourceRemoteInfoCursorOrganization 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 + +### GetOrgId + +`func (o *ResourceRemoteInfoCursorOrganization) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *ResourceRemoteInfoCursorOrganization) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *ResourceRemoteInfoCursorOrganization) SetOrgId(v string)` + +SetOrgId sets OrgId 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/ResourceRemoteInfoDatabricksAccountServicePrincipal.md b/docs/ResourceRemoteInfoDatabricksAccountServicePrincipal.md new file mode 100644 index 0000000..8bc3600 --- /dev/null +++ b/docs/ResourceRemoteInfoDatabricksAccountServicePrincipal.md @@ -0,0 +1,72 @@ +# ResourceRemoteInfoDatabricksAccountServicePrincipal + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ApplicationId** | **string** | The application ID of the service principal. | +**ResourceId** | **string** | The resource ID of the service principal. | + +## Methods + +### NewResourceRemoteInfoDatabricksAccountServicePrincipal + +`func NewResourceRemoteInfoDatabricksAccountServicePrincipal(applicationId string, resourceId string, ) *ResourceRemoteInfoDatabricksAccountServicePrincipal` + +NewResourceRemoteInfoDatabricksAccountServicePrincipal instantiates a new ResourceRemoteInfoDatabricksAccountServicePrincipal 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 + +### NewResourceRemoteInfoDatabricksAccountServicePrincipalWithDefaults + +`func NewResourceRemoteInfoDatabricksAccountServicePrincipalWithDefaults() *ResourceRemoteInfoDatabricksAccountServicePrincipal` + +NewResourceRemoteInfoDatabricksAccountServicePrincipalWithDefaults instantiates a new ResourceRemoteInfoDatabricksAccountServicePrincipal 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 + +### GetApplicationId + +`func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetApplicationId() string` + +GetApplicationId returns the ApplicationId field if non-nil, zero value otherwise. + +### GetApplicationIdOk + +`func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetApplicationIdOk() (*string, bool)` + +GetApplicationIdOk returns a tuple with the ApplicationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApplicationId + +`func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) SetApplicationId(v string)` + +SetApplicationId sets ApplicationId field to given value. + + +### GetResourceId + +`func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetResourceIdOk() (*string, bool)` + +GetResourceIdOk returns a tuple with the ResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceId + +`func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) SetResourceId(v string)` + +SetResourceId sets ResourceId 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/ResourceRemoteInfoDevinOrganization.md b/docs/ResourceRemoteInfoDevinOrganization.md new file mode 100644 index 0000000..33472d0 --- /dev/null +++ b/docs/ResourceRemoteInfoDevinOrganization.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoDevinOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgId** | **string** | The id of the organization. | + +## Methods + +### NewResourceRemoteInfoDevinOrganization + +`func NewResourceRemoteInfoDevinOrganization(orgId string, ) *ResourceRemoteInfoDevinOrganization` + +NewResourceRemoteInfoDevinOrganization instantiates a new ResourceRemoteInfoDevinOrganization 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 + +### NewResourceRemoteInfoDevinOrganizationWithDefaults + +`func NewResourceRemoteInfoDevinOrganizationWithDefaults() *ResourceRemoteInfoDevinOrganization` + +NewResourceRemoteInfoDevinOrganizationWithDefaults instantiates a new ResourceRemoteInfoDevinOrganization 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 + +### GetOrgId + +`func (o *ResourceRemoteInfoDevinOrganization) GetOrgId() string` + +GetOrgId returns the OrgId field if non-nil, zero value otherwise. + +### GetOrgIdOk + +`func (o *ResourceRemoteInfoDevinOrganization) GetOrgIdOk() (*string, bool)` + +GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgId + +`func (o *ResourceRemoteInfoDevinOrganization) SetOrgId(v string)` + +SetOrgId sets OrgId 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/ResourceRemoteInfoDevinRole.md b/docs/ResourceRemoteInfoDevinRole.md new file mode 100644 index 0000000..fe088f0 --- /dev/null +++ b/docs/ResourceRemoteInfoDevinRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoDevinRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoDevinRole + +`func NewResourceRemoteInfoDevinRole(roleId string, ) *ResourceRemoteInfoDevinRole` + +NewResourceRemoteInfoDevinRole instantiates a new ResourceRemoteInfoDevinRole 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 + +### NewResourceRemoteInfoDevinRoleWithDefaults + +`func NewResourceRemoteInfoDevinRoleWithDefaults() *ResourceRemoteInfoDevinRole` + +NewResourceRemoteInfoDevinRoleWithDefaults instantiates a new ResourceRemoteInfoDevinRole 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 *ResourceRemoteInfoDevinRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoDevinRole) 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 *ResourceRemoteInfoDevinRole) 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/ResourceRemoteInfoGithubOrg.md b/docs/ResourceRemoteInfoGithubOrg.md new file mode 100644 index 0000000..78d9b05 --- /dev/null +++ b/docs/ResourceRemoteInfoGithubOrg.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoGithubOrg + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrgName** | **string** | The name of the organization. | + +## Methods + +### NewResourceRemoteInfoGithubOrg + +`func NewResourceRemoteInfoGithubOrg(orgName string, ) *ResourceRemoteInfoGithubOrg` + +NewResourceRemoteInfoGithubOrg instantiates a new ResourceRemoteInfoGithubOrg 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 + +### NewResourceRemoteInfoGithubOrgWithDefaults + +`func NewResourceRemoteInfoGithubOrgWithDefaults() *ResourceRemoteInfoGithubOrg` + +NewResourceRemoteInfoGithubOrgWithDefaults instantiates a new ResourceRemoteInfoGithubOrg 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 + +### GetOrgName + +`func (o *ResourceRemoteInfoGithubOrg) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *ResourceRemoteInfoGithubOrg) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *ResourceRemoteInfoGithubOrg) SetOrgName(v string)` + +SetOrgName sets OrgName 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/ResourceRemoteInfoIlevelAdvancedRole.md b/docs/ResourceRemoteInfoIlevelAdvancedRole.md new file mode 100644 index 0000000..7192d90 --- /dev/null +++ b/docs/ResourceRemoteInfoIlevelAdvancedRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoIlevelAdvancedRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleName** | **string** | The name of the role. | + +## Methods + +### NewResourceRemoteInfoIlevelAdvancedRole + +`func NewResourceRemoteInfoIlevelAdvancedRole(roleName string, ) *ResourceRemoteInfoIlevelAdvancedRole` + +NewResourceRemoteInfoIlevelAdvancedRole instantiates a new ResourceRemoteInfoIlevelAdvancedRole 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 + +### NewResourceRemoteInfoIlevelAdvancedRoleWithDefaults + +`func NewResourceRemoteInfoIlevelAdvancedRoleWithDefaults() *ResourceRemoteInfoIlevelAdvancedRole` + +NewResourceRemoteInfoIlevelAdvancedRoleWithDefaults instantiates a new ResourceRemoteInfoIlevelAdvancedRole 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 + +### GetRoleName + +`func (o *ResourceRemoteInfoIlevelAdvancedRole) GetRoleName() string` + +GetRoleName returns the RoleName field if non-nil, zero value otherwise. + +### GetRoleNameOk + +`func (o *ResourceRemoteInfoIlevelAdvancedRole) GetRoleNameOk() (*string, bool)` + +GetRoleNameOk returns a tuple with the RoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleName + +`func (o *ResourceRemoteInfoIlevelAdvancedRole) SetRoleName(v string)` + +SetRoleName sets RoleName 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/ResourceRemoteInfoOpenaiPlatformProject.md b/docs/ResourceRemoteInfoOpenaiPlatformProject.md new file mode 100644 index 0000000..a87710f --- /dev/null +++ b/docs/ResourceRemoteInfoOpenaiPlatformProject.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoOpenaiPlatformProject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectId** | **string** | The id of the project. | + +## Methods + +### NewResourceRemoteInfoOpenaiPlatformProject + +`func NewResourceRemoteInfoOpenaiPlatformProject(projectId string, ) *ResourceRemoteInfoOpenaiPlatformProject` + +NewResourceRemoteInfoOpenaiPlatformProject instantiates a new ResourceRemoteInfoOpenaiPlatformProject 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 + +### NewResourceRemoteInfoOpenaiPlatformProjectWithDefaults + +`func NewResourceRemoteInfoOpenaiPlatformProjectWithDefaults() *ResourceRemoteInfoOpenaiPlatformProject` + +NewResourceRemoteInfoOpenaiPlatformProjectWithDefaults instantiates a new ResourceRemoteInfoOpenaiPlatformProject 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 + +### GetProjectId + +`func (o *ResourceRemoteInfoOpenaiPlatformProject) GetProjectId() string` + +GetProjectId returns the ProjectId field if non-nil, zero value otherwise. + +### GetProjectIdOk + +`func (o *ResourceRemoteInfoOpenaiPlatformProject) GetProjectIdOk() (*string, bool)` + +GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectId + +`func (o *ResourceRemoteInfoOpenaiPlatformProject) SetProjectId(v string)` + +SetProjectId sets ProjectId 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/ResourceRemoteInfoOpenaiPlatformServiceAccount.md b/docs/ResourceRemoteInfoOpenaiPlatformServiceAccount.md new file mode 100644 index 0000000..218c0d1 --- /dev/null +++ b/docs/ResourceRemoteInfoOpenaiPlatformServiceAccount.md @@ -0,0 +1,72 @@ +# ResourceRemoteInfoOpenaiPlatformServiceAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectId** | **string** | The id of the project for the service account. | +**ServiceAccountId** | **string** | The id of the service account. | + +## Methods + +### NewResourceRemoteInfoOpenaiPlatformServiceAccount + +`func NewResourceRemoteInfoOpenaiPlatformServiceAccount(projectId string, serviceAccountId string, ) *ResourceRemoteInfoOpenaiPlatformServiceAccount` + +NewResourceRemoteInfoOpenaiPlatformServiceAccount instantiates a new ResourceRemoteInfoOpenaiPlatformServiceAccount 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 + +### NewResourceRemoteInfoOpenaiPlatformServiceAccountWithDefaults + +`func NewResourceRemoteInfoOpenaiPlatformServiceAccountWithDefaults() *ResourceRemoteInfoOpenaiPlatformServiceAccount` + +NewResourceRemoteInfoOpenaiPlatformServiceAccountWithDefaults instantiates a new ResourceRemoteInfoOpenaiPlatformServiceAccount 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 + +### GetProjectId + +`func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetProjectId() string` + +GetProjectId returns the ProjectId field if non-nil, zero value otherwise. + +### GetProjectIdOk + +`func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetProjectIdOk() (*string, bool)` + +GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectId + +`func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) SetProjectId(v string)` + +SetProjectId sets ProjectId field to given value. + + +### GetServiceAccountId + +`func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetServiceAccountId() string` + +GetServiceAccountId returns the ServiceAccountId field if non-nil, zero value otherwise. + +### GetServiceAccountIdOk + +`func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetServiceAccountIdOk() (*string, bool)` + +GetServiceAccountIdOk returns a tuple with the ServiceAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceAccountId + +`func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) SetServiceAccountId(v string)` + +SetServiceAccountId sets ServiceAccountId 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/ResourceRemoteInfoOracleFusionRole.md b/docs/ResourceRemoteInfoOracleFusionRole.md new file mode 100644 index 0000000..2f699d3 --- /dev/null +++ b/docs/ResourceRemoteInfoOracleFusionRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoOracleFusionRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoOracleFusionRole + +`func NewResourceRemoteInfoOracleFusionRole(roleId string, ) *ResourceRemoteInfoOracleFusionRole` + +NewResourceRemoteInfoOracleFusionRole instantiates a new ResourceRemoteInfoOracleFusionRole 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 + +### NewResourceRemoteInfoOracleFusionRoleWithDefaults + +`func NewResourceRemoteInfoOracleFusionRoleWithDefaults() *ResourceRemoteInfoOracleFusionRole` + +NewResourceRemoteInfoOracleFusionRoleWithDefaults instantiates a new ResourceRemoteInfoOracleFusionRole 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 *ResourceRemoteInfoOracleFusionRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoOracleFusionRole) 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 *ResourceRemoteInfoOracleFusionRole) 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/ResourceRemoteInfoSnowflakeDatabase.md b/docs/ResourceRemoteInfoSnowflakeDatabase.md new file mode 100644 index 0000000..a4bc0d0 --- /dev/null +++ b/docs/ResourceRemoteInfoSnowflakeDatabase.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoSnowflakeDatabase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DatabaseName** | **string** | The name of the database. | + +## Methods + +### NewResourceRemoteInfoSnowflakeDatabase + +`func NewResourceRemoteInfoSnowflakeDatabase(databaseName string, ) *ResourceRemoteInfoSnowflakeDatabase` + +NewResourceRemoteInfoSnowflakeDatabase instantiates a new ResourceRemoteInfoSnowflakeDatabase 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 + +### NewResourceRemoteInfoSnowflakeDatabaseWithDefaults + +`func NewResourceRemoteInfoSnowflakeDatabaseWithDefaults() *ResourceRemoteInfoSnowflakeDatabase` + +NewResourceRemoteInfoSnowflakeDatabaseWithDefaults instantiates a new ResourceRemoteInfoSnowflakeDatabase 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 + +### GetDatabaseName + +`func (o *ResourceRemoteInfoSnowflakeDatabase) GetDatabaseName() string` + +GetDatabaseName returns the DatabaseName field if non-nil, zero value otherwise. + +### GetDatabaseNameOk + +`func (o *ResourceRemoteInfoSnowflakeDatabase) GetDatabaseNameOk() (*string, bool)` + +GetDatabaseNameOk returns a tuple with the DatabaseName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatabaseName + +`func (o *ResourceRemoteInfoSnowflakeDatabase) SetDatabaseName(v string)` + +SetDatabaseName sets DatabaseName 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/ResourceRemoteInfoSnowflakeSchema.md b/docs/ResourceRemoteInfoSnowflakeSchema.md new file mode 100644 index 0000000..c2f750e --- /dev/null +++ b/docs/ResourceRemoteInfoSnowflakeSchema.md @@ -0,0 +1,72 @@ +# ResourceRemoteInfoSnowflakeSchema + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DatabaseName** | **string** | The name of the database the schema is in. | +**SchemaName** | **string** | The name of the schema. | + +## Methods + +### NewResourceRemoteInfoSnowflakeSchema + +`func NewResourceRemoteInfoSnowflakeSchema(databaseName string, schemaName string, ) *ResourceRemoteInfoSnowflakeSchema` + +NewResourceRemoteInfoSnowflakeSchema instantiates a new ResourceRemoteInfoSnowflakeSchema 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 + +### NewResourceRemoteInfoSnowflakeSchemaWithDefaults + +`func NewResourceRemoteInfoSnowflakeSchemaWithDefaults() *ResourceRemoteInfoSnowflakeSchema` + +NewResourceRemoteInfoSnowflakeSchemaWithDefaults instantiates a new ResourceRemoteInfoSnowflakeSchema 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 + +### GetDatabaseName + +`func (o *ResourceRemoteInfoSnowflakeSchema) GetDatabaseName() string` + +GetDatabaseName returns the DatabaseName field if non-nil, zero value otherwise. + +### GetDatabaseNameOk + +`func (o *ResourceRemoteInfoSnowflakeSchema) GetDatabaseNameOk() (*string, bool)` + +GetDatabaseNameOk returns a tuple with the DatabaseName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatabaseName + +`func (o *ResourceRemoteInfoSnowflakeSchema) SetDatabaseName(v string)` + +SetDatabaseName sets DatabaseName field to given value. + + +### GetSchemaName + +`func (o *ResourceRemoteInfoSnowflakeSchema) GetSchemaName() string` + +GetSchemaName returns the SchemaName field if non-nil, zero value otherwise. + +### GetSchemaNameOk + +`func (o *ResourceRemoteInfoSnowflakeSchema) GetSchemaNameOk() (*string, bool)` + +GetSchemaNameOk returns a tuple with the SchemaName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchemaName + +`func (o *ResourceRemoteInfoSnowflakeSchema) SetSchemaName(v string)` + +SetSchemaName sets SchemaName 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/ResourceRemoteInfoSnowflakeTable.md b/docs/ResourceRemoteInfoSnowflakeTable.md new file mode 100644 index 0000000..a2fd028 --- /dev/null +++ b/docs/ResourceRemoteInfoSnowflakeTable.md @@ -0,0 +1,93 @@ +# ResourceRemoteInfoSnowflakeTable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DatabaseName** | **string** | The name of the database the table is in. | +**SchemaName** | **string** | The name of the schema the table is in. | +**TableName** | **string** | The name of the table. | + +## Methods + +### NewResourceRemoteInfoSnowflakeTable + +`func NewResourceRemoteInfoSnowflakeTable(databaseName string, schemaName string, tableName string, ) *ResourceRemoteInfoSnowflakeTable` + +NewResourceRemoteInfoSnowflakeTable instantiates a new ResourceRemoteInfoSnowflakeTable 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 + +### NewResourceRemoteInfoSnowflakeTableWithDefaults + +`func NewResourceRemoteInfoSnowflakeTableWithDefaults() *ResourceRemoteInfoSnowflakeTable` + +NewResourceRemoteInfoSnowflakeTableWithDefaults instantiates a new ResourceRemoteInfoSnowflakeTable 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 + +### GetDatabaseName + +`func (o *ResourceRemoteInfoSnowflakeTable) GetDatabaseName() string` + +GetDatabaseName returns the DatabaseName field if non-nil, zero value otherwise. + +### GetDatabaseNameOk + +`func (o *ResourceRemoteInfoSnowflakeTable) GetDatabaseNameOk() (*string, bool)` + +GetDatabaseNameOk returns a tuple with the DatabaseName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatabaseName + +`func (o *ResourceRemoteInfoSnowflakeTable) SetDatabaseName(v string)` + +SetDatabaseName sets DatabaseName field to given value. + + +### GetSchemaName + +`func (o *ResourceRemoteInfoSnowflakeTable) GetSchemaName() string` + +GetSchemaName returns the SchemaName field if non-nil, zero value otherwise. + +### GetSchemaNameOk + +`func (o *ResourceRemoteInfoSnowflakeTable) GetSchemaNameOk() (*string, bool)` + +GetSchemaNameOk returns a tuple with the SchemaName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSchemaName + +`func (o *ResourceRemoteInfoSnowflakeTable) SetSchemaName(v string)` + +SetSchemaName sets SchemaName field to given value. + + +### GetTableName + +`func (o *ResourceRemoteInfoSnowflakeTable) GetTableName() string` + +GetTableName returns the TableName field if non-nil, zero value otherwise. + +### GetTableNameOk + +`func (o *ResourceRemoteInfoSnowflakeTable) GetTableNameOk() (*string, bool)` + +GetTableNameOk returns a tuple with the TableName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTableName + +`func (o *ResourceRemoteInfoSnowflakeTable) SetTableName(v string)` + +SetTableName sets TableName 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/ResourceRemoteInfoTailscaleSsh.md b/docs/ResourceRemoteInfoTailscaleSsh.md new file mode 100644 index 0000000..4e90a0b --- /dev/null +++ b/docs/ResourceRemoteInfoTailscaleSsh.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoTailscaleSsh + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TagName** | **string** | The name of the tag. | + +## Methods + +### NewResourceRemoteInfoTailscaleSsh + +`func NewResourceRemoteInfoTailscaleSsh(tagName string, ) *ResourceRemoteInfoTailscaleSsh` + +NewResourceRemoteInfoTailscaleSsh instantiates a new ResourceRemoteInfoTailscaleSsh 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 + +### NewResourceRemoteInfoTailscaleSshWithDefaults + +`func NewResourceRemoteInfoTailscaleSshWithDefaults() *ResourceRemoteInfoTailscaleSsh` + +NewResourceRemoteInfoTailscaleSshWithDefaults instantiates a new ResourceRemoteInfoTailscaleSsh 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 + +### GetTagName + +`func (o *ResourceRemoteInfoTailscaleSsh) GetTagName() string` + +GetTagName returns the TagName field if non-nil, zero value otherwise. + +### GetTagNameOk + +`func (o *ResourceRemoteInfoTailscaleSsh) GetTagNameOk() (*string, bool)` + +GetTagNameOk returns a tuple with the TagName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagName + +`func (o *ResourceRemoteInfoTailscaleSsh) SetTagName(v string)` + +SetTagName sets TagName 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/ResourceRemoteInfoWorkdayRole.md b/docs/ResourceRemoteInfoWorkdayRole.md new file mode 100644 index 0000000..65df42b --- /dev/null +++ b/docs/ResourceRemoteInfoWorkdayRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoWorkdayRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoWorkdayRole + +`func NewResourceRemoteInfoWorkdayRole(roleId string, ) *ResourceRemoteInfoWorkdayRole` + +NewResourceRemoteInfoWorkdayRole instantiates a new ResourceRemoteInfoWorkdayRole 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 + +### NewResourceRemoteInfoWorkdayRoleWithDefaults + +`func NewResourceRemoteInfoWorkdayRoleWithDefaults() *ResourceRemoteInfoWorkdayRole` + +NewResourceRemoteInfoWorkdayRoleWithDefaults instantiates a new ResourceRemoteInfoWorkdayRole 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 *ResourceRemoteInfoWorkdayRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoWorkdayRole) 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 *ResourceRemoteInfoWorkdayRole) 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 69aa534..a14efc1 100644 --- a/docs/ResourceTypeEnum.md +++ b/docs/ResourceTypeEnum.md @@ -129,6 +129,28 @@ * `COUPA_ROLE` (value: `"COUPA_ROLE"`) +* `CURSOR_ORGANIZATION` (value: `"CURSOR_ORGANIZATION"`) + +* `OPENAI_PLATFORM_PROJECT` (value: `"OPENAI_PLATFORM_PROJECT"`) + +* `OPENAI_PLATFORM_SERVICE_ACCOUNT` (value: `"OPENAI_PLATFORM_SERVICE_ACCOUNT"`) + +* `ANTHROPIC_WORKSPACE` (value: `"ANTHROPIC_WORKSPACE"`) + +* `GIT_HUB_ORG` (value: `"GIT_HUB_ORG"`) + +* `ORACLE_FUSION_ROLE` (value: `"ORACLE_FUSION_ROLE"`) + +* `DEVIN_ORGANIZATION` (value: `"DEVIN_ORGANIZATION"`) + +* `DEVIN_ROLE` (value: `"DEVIN_ROLE"`) + +* `VAULT_SECRET` (value: `"VAULT_SECRET"`) + +* `VAULT_POLICY` (value: `"VAULT_POLICY"`) + +* `VAULT_OIDC_ROLE` (value: `"VAULT_OIDC_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/ResourcesAPI.md b/docs/ResourcesAPI.md index f818e80..0c5e26a 100644 --- a/docs/ResourcesAPI.md +++ b/docs/ResourcesAPI.md @@ -11,6 +11,7 @@ Method | HTTP request | Description [**DeleteResourceNhi**](ResourcesAPI.md#DeleteResourceNhi) | **Delete** /resources/{resource_id}/non-human-identities/{non_human_identity_id} | [**DeleteResourceUser**](ResourcesAPI.md#DeleteResourceUser) | **Delete** /resources/{resource_id}/users/{user_id} | [**GetResource**](ResourcesAPI.md#GetResource) | **Get** /resources/{resource_id} | Get resource by ID +[**GetResourceGroups**](ResourcesAPI.md#GetResourceGroups) | **Get** /resources/{resource_id}/groups | [**GetResourceMessageChannels**](ResourcesAPI.md#GetResourceMessageChannels) | **Get** /resources/{resource_id}/message-channels | [**GetResourceNhis**](ResourcesAPI.md#GetResourceNhis) | **Get** /resources/{resource_id}/non-human-identities | [**GetResourceReviewerStages**](ResourcesAPI.md#GetResourceReviewerStages) | **Get** /resources/{resource_id}/reviewer-stages | @@ -537,6 +538,76 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetResourceGroups + +> GroupResourceList GetResourceGroups(ctx, resourceId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + resourceId := "1b978423-db0a-4037-a4cf-f79c60cb67b3" // string | The ID of the resource that the groups grant access to. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourcesAPI.GetResourceGroups(context.Background(), resourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.GetResourceGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetResourceGroups`: GroupResourceList + fmt.Fprintf(os.Stdout, "Response from `ResourcesAPI.GetResourceGroups`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**resourceId** | **string** | The ID of the resource that the groups grant access to. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetResourceGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**GroupResourceList**](GroupResourceList.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) + + ## GetResourceMessageChannels > MessageChannelList GetResourceMessageChannels(ctx, resourceId).Execute() diff --git a/docs/RolePermissionTargetTypeEnum.md b/docs/RolePermissionTargetTypeEnum.md index 579e2c4..ed03850 100644 --- a/docs/RolePermissionTargetTypeEnum.md +++ b/docs/RolePermissionTargetTypeEnum.md @@ -15,6 +15,8 @@ * `ACCESS_REVIEW` (value: `"ACCESS_REVIEW"`) +* `OWNER` (value: `"OWNER"`) + [[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 51d3467..47bbb1c 100644 --- a/docs/ThirdPartyProviderEnum.md +++ b/docs/ThirdPartyProviderEnum.md @@ -15,6 +15,10 @@ * `SERVICE_NOW` (value: `"SERVICE_NOW"`) +* `FRESH_SERVICE` (value: `"FRESH_SERVICE"`) + +* `SHORTCUT` (value: `"SHORTCUT"`) + * `PAGER_DUTY` (value: `"PAGER_DUTY"`) * `OPSGENIE` (value: `"OPSGENIE"`) @@ -27,6 +31,8 @@ * `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/docs/UAR.md b/docs/UAR.md index 53f691a..25d95da 100644 --- a/docs/UAR.md +++ b/docs/UAR.md @@ -11,13 +11,14 @@ Name | Type | Description | Notes **Deadline** | **time.Time** | The last day for reviewers to complete their access reviews. | **TimeZone** | **string** | The time zone name (as defined by the IANA Time Zone database) used in the access review deadline and exported audit report. Default is America/Los_Angeles. | **SelfReviewAllowed** | **bool** | A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. | +**InstantlyActionReviews** | **bool** | A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. | **UarScope** | Pointer to [**UARScope**](UARScope.md) | | [optional] ## Methods ### NewUAR -`func NewUAR(uarId string, name string, reviewerAssignmentPolicy UARReviewerAssignmentPolicyEnum, sendReviewerAssignmentNotification bool, deadline time.Time, timeZone string, selfReviewAllowed bool, ) *UAR` +`func NewUAR(uarId string, name string, reviewerAssignmentPolicy UARReviewerAssignmentPolicyEnum, sendReviewerAssignmentNotification bool, deadline time.Time, timeZone string, selfReviewAllowed bool, instantlyActionReviews bool, ) *UAR` NewUAR instantiates a new UAR object This constructor will assign default values to properties that have it defined, @@ -172,6 +173,26 @@ and a boolean to check if the value has been set. SetSelfReviewAllowed sets SelfReviewAllowed field to given value. +### GetInstantlyActionReviews + +`func (o *UAR) GetInstantlyActionReviews() bool` + +GetInstantlyActionReviews returns the InstantlyActionReviews field if non-nil, zero value otherwise. + +### GetInstantlyActionReviewsOk + +`func (o *UAR) GetInstantlyActionReviewsOk() (*bool, bool)` + +GetInstantlyActionReviewsOk returns a tuple with the InstantlyActionReviews field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstantlyActionReviews + +`func (o *UAR) SetInstantlyActionReviews(v bool)` + +SetInstantlyActionReviews sets InstantlyActionReviews field to given value. + + ### GetUarScope `func (o *UAR) GetUarScope() UARScope` diff --git a/docs/UARReviewerAssignmentPolicyEnum.md b/docs/UARReviewerAssignmentPolicyEnum.md index a11dbf4..806b0ee 100644 --- a/docs/UARReviewerAssignmentPolicyEnum.md +++ b/docs/UARReviewerAssignmentPolicyEnum.md @@ -7,8 +7,14 @@ * `BY_OWNING_TEAM_ADMIN` (value: `"BY_OWNING_TEAM_ADMIN"`) +* `BY_OWNING_TEAM_ADMIN_ALL` (value: `"BY_OWNING_TEAM_ADMIN_ALL"`) + * `BY_MANAGER` (value: `"BY_MANAGER"`) +* `BY_APPROVERS` (value: `"BY_APPROVERS"`) + +* `BY_APPROVERS_ALL` (value: `"BY_APPROVERS_ALL"`) + [[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_app_type_enum.go b/model_app_type_enum.go index fae753a..205fe9c 100644 --- a/model_app_type_enum.go +++ b/model_app_type_enum.go @@ -22,25 +22,34 @@ type AppTypeEnum string // List of AppTypeEnum const ( APPTYPEENUM_ACTIVE_DIRECTORY AppTypeEnum = "ACTIVE_DIRECTORY" + APPTYPEENUM_ANTHROPIC AppTypeEnum = "ANTHROPIC" APPTYPEENUM_AZURE_AD AppTypeEnum = "AZURE_AD" APPTYPEENUM_AWS AppTypeEnum = "AWS" APPTYPEENUM_AWS_SSO AppTypeEnum = "AWS_SSO" + APPTYPEENUM_COUPA AppTypeEnum = "COUPA" + APPTYPEENUM_CURSOR AppTypeEnum = "CURSOR" APPTYPEENUM_CUSTOM AppTypeEnum = "CUSTOM" + APPTYPEENUM_DATABRICKS AppTypeEnum = "DATABRICKS" + APPTYPEENUM_DATASTAX_ASTRA AppTypeEnum = "DATASTAX_ASTRA" APPTYPEENUM_DUO AppTypeEnum = "DUO" APPTYPEENUM_GCP AppTypeEnum = "GCP" APPTYPEENUM_GIT_HUB AppTypeEnum = "GIT_HUB" APPTYPEENUM_GIT_LAB AppTypeEnum = "GIT_LAB" APPTYPEENUM_GOOGLE_GROUPS AppTypeEnum = "GOOGLE_GROUPS" APPTYPEENUM_GOOGLE_WORKSPACE AppTypeEnum = "GOOGLE_WORKSPACE" + APPTYPEENUM_ILEVEL AppTypeEnum = "ILEVEL" + APPTYPEENUM_INCIDENTIO AppTypeEnum = "INCIDENTIO" APPTYPEENUM_LDAP AppTypeEnum = "LDAP" APPTYPEENUM_MARIADB AppTypeEnum = "MARIADB" APPTYPEENUM_MONGO AppTypeEnum = "MONGO" APPTYPEENUM_MONGO_ATLAS AppTypeEnum = "MONGO_ATLAS" APPTYPEENUM_MYSQL AppTypeEnum = "MYSQL" APPTYPEENUM_OKTA_DIRECTORY AppTypeEnum = "OKTA_DIRECTORY" + APPTYPEENUM_OPENAI_PLATFORM AppTypeEnum = "OPENAI_PLATFORM" APPTYPEENUM_OPAL AppTypeEnum = "OPAL" APPTYPEENUM_PAGERDUTY AppTypeEnum = "PAGERDUTY" APPTYPEENUM_SALESFORCE AppTypeEnum = "SALESFORCE" + APPTYPEENUM_SNOWFLAKE AppTypeEnum = "SNOWFLAKE" APPTYPEENUM_TAILSCALE AppTypeEnum = "TAILSCALE" APPTYPEENUM_TELEPORT AppTypeEnum = "TELEPORT" APPTYPEENUM_WORKDAY AppTypeEnum = "WORKDAY" @@ -49,25 +58,34 @@ const ( // All allowed values of AppTypeEnum enum var AllowedAppTypeEnumEnumValues = []AppTypeEnum{ "ACTIVE_DIRECTORY", + "ANTHROPIC", "AZURE_AD", "AWS", "AWS_SSO", + "COUPA", + "CURSOR", "CUSTOM", + "DATABRICKS", + "DATASTAX_ASTRA", "DUO", "GCP", "GIT_HUB", "GIT_LAB", "GOOGLE_GROUPS", "GOOGLE_WORKSPACE", + "ILEVEL", + "INCIDENTIO", "LDAP", "MARIADB", "MONGO", "MONGO_ATLAS", "MYSQL", "OKTA_DIRECTORY", + "OPENAI_PLATFORM", "OPAL", "PAGERDUTY", "SALESFORCE", + "SNOWFLAKE", "TAILSCALE", "TELEPORT", "WORKDAY", diff --git a/model_configuration_template.go b/model_configuration_template.go index c231eb3..f82b2f3 100644 --- a/model_configuration_template.go +++ b/model_configuration_template.go @@ -26,6 +26,7 @@ type ConfigurationTemplate struct { Name *string `json:"name,omitempty"` // The ID of the owner of the configuration template. AdminOwnerId *string `json:"admin_owner_id,omitempty"` + // The visibility info of the configuration template. Visibility *VisibilityInfo `json:"visibility,omitempty"` // The IDs of the audit message channels linked to the configuration template. LinkedAuditMessageChannelIds []string `json:"linked_audit_message_channel_ids,omitempty"` diff --git a/model_create_configuration_template_info.go b/model_create_configuration_template_info.go index 002479a..3405778 100644 --- a/model_create_configuration_template_info.go +++ b/model_create_configuration_template_info.go @@ -23,6 +23,7 @@ var _ MappedNullable = &CreateConfigurationTemplateInfo{} type CreateConfigurationTemplateInfo struct { // The ID of the owner of the configuration template. AdminOwnerId string `json:"admin_owner_id"` + // The visibility info of the configuration template. Visibility VisibilityInfo `json:"visibility"` // The IDs of the audit message channels linked to the configuration template. LinkedAuditMessageChannelIds []string `json:"linked_audit_message_channel_ids,omitempty"` @@ -38,6 +39,8 @@ type CreateConfigurationTemplateInfo struct { Name string `json:"name"` // The request configuration list of the configuration template. If not provided, the default request configuration will be used. RequestConfigurations []RequestConfiguration `json:"request_configurations,omitempty"` + // The request configuration list of the configuration template. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. + // Deprecated RequestConfigurationList *CreateRequestConfigurationInfoList `json:"request_configuration_list,omitempty"` TicketPropagation *TicketPropagationConfiguration `json:"ticket_propagation,omitempty"` // Custom request notification sent upon request approval for this configuration template. @@ -318,6 +321,7 @@ func (o *CreateConfigurationTemplateInfo) SetRequestConfigurations(v []RequestCo } // GetRequestConfigurationList returns the RequestConfigurationList field value if set, zero value otherwise. +// Deprecated func (o *CreateConfigurationTemplateInfo) GetRequestConfigurationList() CreateRequestConfigurationInfoList { if o == nil || IsNil(o.RequestConfigurationList) { var ret CreateRequestConfigurationInfoList @@ -328,6 +332,7 @@ func (o *CreateConfigurationTemplateInfo) GetRequestConfigurationList() CreateRe // GetRequestConfigurationListOk returns a tuple with the RequestConfigurationList field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *CreateConfigurationTemplateInfo) GetRequestConfigurationListOk() (*CreateRequestConfigurationInfoList, bool) { if o == nil || IsNil(o.RequestConfigurationList) { return nil, false @@ -345,6 +350,7 @@ func (o *CreateConfigurationTemplateInfo) HasRequestConfigurationList() bool { } // SetRequestConfigurationList gets a reference to the given CreateRequestConfigurationInfoList and assigns it to the RequestConfigurationList field. +// Deprecated func (o *CreateConfigurationTemplateInfo) SetRequestConfigurationList(v CreateRequestConfigurationInfoList) { o.RequestConfigurationList = &v } diff --git a/model_create_request_info_resources_inner.go b/model_create_request_info_resources_inner.go index d49fb75..1e5f925 100644 --- a/model_create_request_info_resources_inner.go +++ b/model_create_request_info_resources_inner.go @@ -24,7 +24,8 @@ type CreateRequestInfoResourcesInner struct { Id *string `json:"id,omitempty"` // The ID of the access level requested on the remote system. AccessLevelRemoteId *string `json:"access_level_remote_id,omitempty"` - // The ID of the access level requested on the remote system. + // The ID of the access level requested on the remote system. This field is deprecated and no longer required. We will populate based on the access_level_remote_id. + // Deprecated AccessLevelName *string `json:"access_level_name,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,6 +114,7 @@ func (o *CreateRequestInfoResourcesInner) SetAccessLevelRemoteId(v string) { } // GetAccessLevelName returns the AccessLevelName field value if set, zero value otherwise. +// Deprecated func (o *CreateRequestInfoResourcesInner) GetAccessLevelName() string { if o == nil || IsNil(o.AccessLevelName) { var ret string @@ -123,6 +125,7 @@ func (o *CreateRequestInfoResourcesInner) GetAccessLevelName() string { // GetAccessLevelNameOk returns a tuple with the AccessLevelName field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *CreateRequestInfoResourcesInner) GetAccessLevelNameOk() (*string, bool) { if o == nil || IsNil(o.AccessLevelName) { return nil, false @@ -140,6 +143,7 @@ func (o *CreateRequestInfoResourcesInner) HasAccessLevelName() bool { } // SetAccessLevelName gets a reference to the given string and assigns it to the AccessLevelName field. +// Deprecated func (o *CreateRequestInfoResourcesInner) SetAccessLevelName(v string) { o.AccessLevelName = &v } diff --git a/model_create_uar_info.go b/model_create_uar_info.go index c07006a..636a199 100644 --- a/model_create_uar_info.go +++ b/model_create_uar_info.go @@ -33,6 +33,8 @@ type CreateUARInfo struct { TimeZone string `json:"time_zone"` // A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. SelfReviewAllowed bool `json:"self_review_allowed"` + // A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + InstantlyActionReviews *bool `json:"instantly_action_reviews,omitempty"` ReminderSchedule []int32 `json:"reminder_schedule,omitempty"` ReminderIncludeManager *bool `json:"reminder_include_manager,omitempty"` UarScope *UARScope `json:"uar_scope,omitempty"` @@ -208,6 +210,38 @@ func (o *CreateUARInfo) SetSelfReviewAllowed(v bool) { o.SelfReviewAllowed = v } +// GetInstantlyActionReviews returns the InstantlyActionReviews field value if set, zero value otherwise. +func (o *CreateUARInfo) GetInstantlyActionReviews() bool { + if o == nil || IsNil(o.InstantlyActionReviews) { + var ret bool + return ret + } + return *o.InstantlyActionReviews +} + +// GetInstantlyActionReviewsOk returns a tuple with the InstantlyActionReviews field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateUARInfo) GetInstantlyActionReviewsOk() (*bool, bool) { + if o == nil || IsNil(o.InstantlyActionReviews) { + return nil, false + } + return o.InstantlyActionReviews, true +} + +// HasInstantlyActionReviews returns a boolean if a field has been set. +func (o *CreateUARInfo) HasInstantlyActionReviews() bool { + if o != nil && !IsNil(o.InstantlyActionReviews) { + return true + } + + return false +} + +// SetInstantlyActionReviews gets a reference to the given bool and assigns it to the InstantlyActionReviews field. +func (o *CreateUARInfo) SetInstantlyActionReviews(v bool) { + o.InstantlyActionReviews = &v +} + // GetReminderSchedule returns the ReminderSchedule field value if set, zero value otherwise. func (o *CreateUARInfo) GetReminderSchedule() []int32 { if o == nil || IsNil(o.ReminderSchedule) { @@ -320,6 +354,9 @@ func (o CreateUARInfo) ToMap() (map[string]interface{}, error) { toSerialize["deadline"] = o.Deadline toSerialize["time_zone"] = o.TimeZone toSerialize["self_review_allowed"] = o.SelfReviewAllowed + if !IsNil(o.InstantlyActionReviews) { + toSerialize["instantly_action_reviews"] = o.InstantlyActionReviews + } if !IsNil(o.ReminderSchedule) { toSerialize["reminder_schedule"] = o.ReminderSchedule } @@ -383,6 +420,7 @@ func (o *CreateUARInfo) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "deadline") delete(additionalProperties, "time_zone") delete(additionalProperties, "self_review_allowed") + delete(additionalProperties, "instantly_action_reviews") delete(additionalProperties, "reminder_schedule") delete(additionalProperties, "reminder_include_manager") delete(additionalProperties, "uar_scope") diff --git a/model_deny_request_request.go b/model_deny_request_request.go index 7406bbb..bd8a3c4 100644 --- a/model_deny_request_request.go +++ b/model_deny_request_request.go @@ -23,6 +23,7 @@ var _ MappedNullable = &DenyRequestRequest{} type DenyRequestRequest struct { // Comment for the denial Comment string `json:"comment"` + Level *RequestApprovalEnum `json:"level,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,6 +71,38 @@ func (o *DenyRequestRequest) SetComment(v string) { o.Comment = v } +// GetLevel returns the Level field value if set, zero value otherwise. +func (o *DenyRequestRequest) GetLevel() RequestApprovalEnum { + if o == nil || IsNil(o.Level) { + var ret RequestApprovalEnum + return ret + } + return *o.Level +} + +// GetLevelOk returns a tuple with the Level field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DenyRequestRequest) GetLevelOk() (*RequestApprovalEnum, bool) { + if o == nil || IsNil(o.Level) { + return nil, false + } + return o.Level, true +} + +// HasLevel returns a boolean if a field has been set. +func (o *DenyRequestRequest) HasLevel() bool { + if o != nil && !IsNil(o.Level) { + return true + } + + return false +} + +// SetLevel gets a reference to the given RequestApprovalEnum and assigns it to the Level field. +func (o *DenyRequestRequest) SetLevel(v RequestApprovalEnum) { + o.Level = &v +} + func (o DenyRequestRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -81,6 +114,9 @@ func (o DenyRequestRequest) MarshalJSON() ([]byte, error) { func (o DenyRequestRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["comment"] = o.Comment + if !IsNil(o.Level) { + toSerialize["level"] = o.Level + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -125,6 +161,7 @@ func (o *DenyRequestRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "comment") + delete(additionalProperties, "level") o.AdditionalProperties = additionalProperties } diff --git a/model_group.go b/model_group.go index 6f13833..45a55ca 100644 --- a/model_group.go +++ b/model_group.go @@ -76,6 +76,7 @@ type Group struct { // The risk sensitivity level for the group. When an override is set, this field will match that. RiskSensitivity *RiskSensitivityEnum `json:"risk_sensitivity,omitempty"` RiskSensitivityOverride *RiskSensitivityEnum `json:"risk_sensitivity_override,omitempty"` + // Information about the last successful sync of this group. LastSuccessfulSync *SyncTask `json:"last_successful_sync,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/model_group_containing_group.go b/model_group_containing_group.go index 6df2bf6..ab224e0 100644 --- a/model_group_containing_group.go +++ b/model_group_containing_group.go @@ -23,6 +23,10 @@ var _ MappedNullable = &GroupContainingGroup{} type GroupContainingGroup struct { // The groupID of the containing group. ContainingGroupId string `json:"containing_group_id"` + // The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite. + DurationMinutes *int32 `json:"duration_minutes,omitempty"` + // The updated remote ID of the access level granted to this group. + AccessLevelRemoteId *string `json:"access_level_remote_id,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,6 +74,70 @@ func (o *GroupContainingGroup) SetContainingGroupId(v string) { o.ContainingGroupId = v } +// GetDurationMinutes returns the DurationMinutes field value if set, zero value otherwise. +func (o *GroupContainingGroup) GetDurationMinutes() int32 { + if o == nil || IsNil(o.DurationMinutes) { + var ret int32 + return ret + } + return *o.DurationMinutes +} + +// GetDurationMinutesOk returns a tuple with the DurationMinutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupContainingGroup) GetDurationMinutesOk() (*int32, bool) { + if o == nil || IsNil(o.DurationMinutes) { + return nil, false + } + return o.DurationMinutes, true +} + +// HasDurationMinutes returns a boolean if a field has been set. +func (o *GroupContainingGroup) HasDurationMinutes() bool { + if o != nil && !IsNil(o.DurationMinutes) { + return true + } + + return false +} + +// SetDurationMinutes gets a reference to the given int32 and assigns it to the DurationMinutes field. +func (o *GroupContainingGroup) SetDurationMinutes(v int32) { + o.DurationMinutes = &v +} + +// GetAccessLevelRemoteId returns the AccessLevelRemoteId field value if set, zero value otherwise. +func (o *GroupContainingGroup) GetAccessLevelRemoteId() string { + if o == nil || IsNil(o.AccessLevelRemoteId) { + var ret string + return ret + } + return *o.AccessLevelRemoteId +} + +// GetAccessLevelRemoteIdOk returns a tuple with the AccessLevelRemoteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupContainingGroup) GetAccessLevelRemoteIdOk() (*string, bool) { + if o == nil || IsNil(o.AccessLevelRemoteId) { + return nil, false + } + return o.AccessLevelRemoteId, true +} + +// HasAccessLevelRemoteId returns a boolean if a field has been set. +func (o *GroupContainingGroup) HasAccessLevelRemoteId() bool { + if o != nil && !IsNil(o.AccessLevelRemoteId) { + return true + } + + return false +} + +// SetAccessLevelRemoteId gets a reference to the given string and assigns it to the AccessLevelRemoteId field. +func (o *GroupContainingGroup) SetAccessLevelRemoteId(v string) { + o.AccessLevelRemoteId = &v +} + func (o GroupContainingGroup) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -81,6 +149,12 @@ func (o GroupContainingGroup) MarshalJSON() ([]byte, error) { func (o GroupContainingGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["containing_group_id"] = o.ContainingGroupId + if !IsNil(o.DurationMinutes) { + toSerialize["duration_minutes"] = o.DurationMinutes + } + if !IsNil(o.AccessLevelRemoteId) { + toSerialize["access_level_remote_id"] = o.AccessLevelRemoteId + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -125,6 +199,8 @@ func (o *GroupContainingGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "containing_group_id") + delete(additionalProperties, "duration_minutes") + delete(additionalProperties, "access_level_remote_id") o.AdditionalProperties = additionalProperties } diff --git a/model_group_remote_info.go b/model_group_remote_info.go index 577b832..30e82df 100644 --- a/model_group_remote_info.go +++ b/model_group_remote_info.go @@ -21,6 +21,10 @@ var _ MappedNullable = &GroupRemoteInfo{} // GroupRemoteInfo Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. If remote_info is provided, a group will be imported into Opal. For group types that support group creation through Opal, a new group will be created if remote_info is not provided. type GroupRemoteInfo struct { ActiveDirectoryGroup *GroupRemoteInfoActiveDirectoryGroup `json:"active_directory_group,omitempty"` + TailscaleGroup *GroupRemoteInfoTailscaleGroup `json:"tailscale_group,omitempty"` + AwsSsoGroup *GroupRemoteInfoAwsSsoGroup `json:"aws_sso_group,omitempty"` + DatabricksAccountGroup *GroupRemoteInfoDatabricksAccountGroup `json:"databricks_account_group,omitempty"` + ConnectorGroup *GroupRemoteInfoConnectorGroup `json:"connector_group,omitempty"` GithubTeam *GroupRemoteInfoGithubTeam `json:"github_team,omitempty"` GitlabGroup *GroupRemoteInfoGitlabGroup `json:"gitlab_group,omitempty"` GoogleGroup *GroupRemoteInfoGoogleGroup `json:"google_group,omitempty"` @@ -32,6 +36,10 @@ type GroupRemoteInfo struct { SnowflakeRole *GroupRemoteInfoSnowflakeRole `json:"snowflake_role,omitempty"` OktaGroupRule *GroupRemoteInfoOktaGroupRule `json:"okta_group_rule,omitempty"` WorkdayUserSecurityGroup *GroupRemoteInfoWorkdayUserSecurityGroup `json:"workday_user_security_group,omitempty"` + PagerdutyOnCallSchedule *GroupRemoteInfoPagerdutyOnCallSchedule `json:"pagerduty_on_call_schedule,omitempty"` + IncidentioOnCallSchedule *GroupRemoteInfoIncidentioOnCallSchedule `json:"incidentio_on_call_schedule,omitempty"` + RootlyOnCallSchedule *GroupRemoteInfoRootlyOnCallSchedule `json:"rootly_on_call_schedule,omitempty"` + DevinGroup *GroupRemoteInfoDevinGroup `json:"devin_group,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,6 +94,134 @@ func (o *GroupRemoteInfo) SetActiveDirectoryGroup(v GroupRemoteInfoActiveDirecto o.ActiveDirectoryGroup = &v } +// GetTailscaleGroup returns the TailscaleGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetTailscaleGroup() GroupRemoteInfoTailscaleGroup { + if o == nil || IsNil(o.TailscaleGroup) { + var ret GroupRemoteInfoTailscaleGroup + return ret + } + return *o.TailscaleGroup +} + +// GetTailscaleGroupOk returns a tuple with the TailscaleGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetTailscaleGroupOk() (*GroupRemoteInfoTailscaleGroup, bool) { + if o == nil || IsNil(o.TailscaleGroup) { + return nil, false + } + return o.TailscaleGroup, true +} + +// HasTailscaleGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasTailscaleGroup() bool { + if o != nil && !IsNil(o.TailscaleGroup) { + return true + } + + return false +} + +// SetTailscaleGroup gets a reference to the given GroupRemoteInfoTailscaleGroup and assigns it to the TailscaleGroup field. +func (o *GroupRemoteInfo) SetTailscaleGroup(v GroupRemoteInfoTailscaleGroup) { + o.TailscaleGroup = &v +} + +// GetAwsSsoGroup returns the AwsSsoGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetAwsSsoGroup() GroupRemoteInfoAwsSsoGroup { + if o == nil || IsNil(o.AwsSsoGroup) { + var ret GroupRemoteInfoAwsSsoGroup + return ret + } + return *o.AwsSsoGroup +} + +// GetAwsSsoGroupOk returns a tuple with the AwsSsoGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetAwsSsoGroupOk() (*GroupRemoteInfoAwsSsoGroup, bool) { + if o == nil || IsNil(o.AwsSsoGroup) { + return nil, false + } + return o.AwsSsoGroup, true +} + +// HasAwsSsoGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasAwsSsoGroup() bool { + if o != nil && !IsNil(o.AwsSsoGroup) { + return true + } + + return false +} + +// SetAwsSsoGroup gets a reference to the given GroupRemoteInfoAwsSsoGroup and assigns it to the AwsSsoGroup field. +func (o *GroupRemoteInfo) SetAwsSsoGroup(v GroupRemoteInfoAwsSsoGroup) { + o.AwsSsoGroup = &v +} + +// GetDatabricksAccountGroup returns the DatabricksAccountGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetDatabricksAccountGroup() GroupRemoteInfoDatabricksAccountGroup { + if o == nil || IsNil(o.DatabricksAccountGroup) { + var ret GroupRemoteInfoDatabricksAccountGroup + return ret + } + return *o.DatabricksAccountGroup +} + +// GetDatabricksAccountGroupOk returns a tuple with the DatabricksAccountGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetDatabricksAccountGroupOk() (*GroupRemoteInfoDatabricksAccountGroup, bool) { + if o == nil || IsNil(o.DatabricksAccountGroup) { + return nil, false + } + return o.DatabricksAccountGroup, true +} + +// HasDatabricksAccountGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasDatabricksAccountGroup() bool { + if o != nil && !IsNil(o.DatabricksAccountGroup) { + return true + } + + return false +} + +// SetDatabricksAccountGroup gets a reference to the given GroupRemoteInfoDatabricksAccountGroup and assigns it to the DatabricksAccountGroup field. +func (o *GroupRemoteInfo) SetDatabricksAccountGroup(v GroupRemoteInfoDatabricksAccountGroup) { + o.DatabricksAccountGroup = &v +} + +// GetConnectorGroup returns the ConnectorGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetConnectorGroup() GroupRemoteInfoConnectorGroup { + if o == nil || IsNil(o.ConnectorGroup) { + var ret GroupRemoteInfoConnectorGroup + return ret + } + return *o.ConnectorGroup +} + +// GetConnectorGroupOk returns a tuple with the ConnectorGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetConnectorGroupOk() (*GroupRemoteInfoConnectorGroup, bool) { + if o == nil || IsNil(o.ConnectorGroup) { + return nil, false + } + return o.ConnectorGroup, true +} + +// HasConnectorGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasConnectorGroup() bool { + if o != nil && !IsNil(o.ConnectorGroup) { + return true + } + + return false +} + +// SetConnectorGroup gets a reference to the given GroupRemoteInfoConnectorGroup and assigns it to the ConnectorGroup field. +func (o *GroupRemoteInfo) SetConnectorGroup(v GroupRemoteInfoConnectorGroup) { + o.ConnectorGroup = &v +} + // GetGithubTeam returns the GithubTeam field value if set, zero value otherwise. func (o *GroupRemoteInfo) GetGithubTeam() GroupRemoteInfoGithubTeam { if o == nil || IsNil(o.GithubTeam) { @@ -438,6 +574,134 @@ func (o *GroupRemoteInfo) SetWorkdayUserSecurityGroup(v GroupRemoteInfoWorkdayUs o.WorkdayUserSecurityGroup = &v } +// GetPagerdutyOnCallSchedule returns the PagerdutyOnCallSchedule field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetPagerdutyOnCallSchedule() GroupRemoteInfoPagerdutyOnCallSchedule { + if o == nil || IsNil(o.PagerdutyOnCallSchedule) { + var ret GroupRemoteInfoPagerdutyOnCallSchedule + return ret + } + return *o.PagerdutyOnCallSchedule +} + +// GetPagerdutyOnCallScheduleOk returns a tuple with the PagerdutyOnCallSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetPagerdutyOnCallScheduleOk() (*GroupRemoteInfoPagerdutyOnCallSchedule, bool) { + if o == nil || IsNil(o.PagerdutyOnCallSchedule) { + return nil, false + } + return o.PagerdutyOnCallSchedule, true +} + +// HasPagerdutyOnCallSchedule returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasPagerdutyOnCallSchedule() bool { + if o != nil && !IsNil(o.PagerdutyOnCallSchedule) { + return true + } + + return false +} + +// SetPagerdutyOnCallSchedule gets a reference to the given GroupRemoteInfoPagerdutyOnCallSchedule and assigns it to the PagerdutyOnCallSchedule field. +func (o *GroupRemoteInfo) SetPagerdutyOnCallSchedule(v GroupRemoteInfoPagerdutyOnCallSchedule) { + o.PagerdutyOnCallSchedule = &v +} + +// GetIncidentioOnCallSchedule returns the IncidentioOnCallSchedule field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetIncidentioOnCallSchedule() GroupRemoteInfoIncidentioOnCallSchedule { + if o == nil || IsNil(o.IncidentioOnCallSchedule) { + var ret GroupRemoteInfoIncidentioOnCallSchedule + return ret + } + return *o.IncidentioOnCallSchedule +} + +// GetIncidentioOnCallScheduleOk returns a tuple with the IncidentioOnCallSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetIncidentioOnCallScheduleOk() (*GroupRemoteInfoIncidentioOnCallSchedule, bool) { + if o == nil || IsNil(o.IncidentioOnCallSchedule) { + return nil, false + } + return o.IncidentioOnCallSchedule, true +} + +// HasIncidentioOnCallSchedule returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasIncidentioOnCallSchedule() bool { + if o != nil && !IsNil(o.IncidentioOnCallSchedule) { + return true + } + + return false +} + +// SetIncidentioOnCallSchedule gets a reference to the given GroupRemoteInfoIncidentioOnCallSchedule and assigns it to the IncidentioOnCallSchedule field. +func (o *GroupRemoteInfo) SetIncidentioOnCallSchedule(v GroupRemoteInfoIncidentioOnCallSchedule) { + o.IncidentioOnCallSchedule = &v +} + +// GetRootlyOnCallSchedule returns the RootlyOnCallSchedule field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetRootlyOnCallSchedule() GroupRemoteInfoRootlyOnCallSchedule { + if o == nil || IsNil(o.RootlyOnCallSchedule) { + var ret GroupRemoteInfoRootlyOnCallSchedule + return ret + } + return *o.RootlyOnCallSchedule +} + +// GetRootlyOnCallScheduleOk returns a tuple with the RootlyOnCallSchedule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetRootlyOnCallScheduleOk() (*GroupRemoteInfoRootlyOnCallSchedule, bool) { + if o == nil || IsNil(o.RootlyOnCallSchedule) { + return nil, false + } + return o.RootlyOnCallSchedule, true +} + +// HasRootlyOnCallSchedule returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasRootlyOnCallSchedule() bool { + if o != nil && !IsNil(o.RootlyOnCallSchedule) { + return true + } + + return false +} + +// SetRootlyOnCallSchedule gets a reference to the given GroupRemoteInfoRootlyOnCallSchedule and assigns it to the RootlyOnCallSchedule field. +func (o *GroupRemoteInfo) SetRootlyOnCallSchedule(v GroupRemoteInfoRootlyOnCallSchedule) { + o.RootlyOnCallSchedule = &v +} + +// GetDevinGroup returns the DevinGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetDevinGroup() GroupRemoteInfoDevinGroup { + if o == nil || IsNil(o.DevinGroup) { + var ret GroupRemoteInfoDevinGroup + return ret + } + return *o.DevinGroup +} + +// GetDevinGroupOk returns a tuple with the DevinGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetDevinGroupOk() (*GroupRemoteInfoDevinGroup, bool) { + if o == nil || IsNil(o.DevinGroup) { + return nil, false + } + return o.DevinGroup, true +} + +// HasDevinGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasDevinGroup() bool { + if o != nil && !IsNil(o.DevinGroup) { + return true + } + + return false +} + +// SetDevinGroup gets a reference to the given GroupRemoteInfoDevinGroup and assigns it to the DevinGroup field. +func (o *GroupRemoteInfo) SetDevinGroup(v GroupRemoteInfoDevinGroup) { + o.DevinGroup = &v +} + func (o GroupRemoteInfo) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -451,6 +715,18 @@ func (o GroupRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.ActiveDirectoryGroup) { toSerialize["active_directory_group"] = o.ActiveDirectoryGroup } + if !IsNil(o.TailscaleGroup) { + toSerialize["tailscale_group"] = o.TailscaleGroup + } + if !IsNil(o.AwsSsoGroup) { + toSerialize["aws_sso_group"] = o.AwsSsoGroup + } + if !IsNil(o.DatabricksAccountGroup) { + toSerialize["databricks_account_group"] = o.DatabricksAccountGroup + } + if !IsNil(o.ConnectorGroup) { + toSerialize["connector_group"] = o.ConnectorGroup + } if !IsNil(o.GithubTeam) { toSerialize["github_team"] = o.GithubTeam } @@ -484,6 +760,18 @@ func (o GroupRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.WorkdayUserSecurityGroup) { toSerialize["workday_user_security_group"] = o.WorkdayUserSecurityGroup } + if !IsNil(o.PagerdutyOnCallSchedule) { + toSerialize["pagerduty_on_call_schedule"] = o.PagerdutyOnCallSchedule + } + if !IsNil(o.IncidentioOnCallSchedule) { + toSerialize["incidentio_on_call_schedule"] = o.IncidentioOnCallSchedule + } + if !IsNil(o.RootlyOnCallSchedule) { + toSerialize["rootly_on_call_schedule"] = o.RootlyOnCallSchedule + } + if !IsNil(o.DevinGroup) { + toSerialize["devin_group"] = o.DevinGroup + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -507,6 +795,10 @@ func (o *GroupRemoteInfo) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "active_directory_group") + delete(additionalProperties, "tailscale_group") + delete(additionalProperties, "aws_sso_group") + delete(additionalProperties, "databricks_account_group") + delete(additionalProperties, "connector_group") delete(additionalProperties, "github_team") delete(additionalProperties, "gitlab_group") delete(additionalProperties, "google_group") @@ -518,6 +810,10 @@ func (o *GroupRemoteInfo) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "snowflake_role") delete(additionalProperties, "okta_group_rule") delete(additionalProperties, "workday_user_security_group") + delete(additionalProperties, "pagerduty_on_call_schedule") + delete(additionalProperties, "incidentio_on_call_schedule") + delete(additionalProperties, "rootly_on_call_schedule") + delete(additionalProperties, "devin_group") o.AdditionalProperties = additionalProperties } diff --git a/model_group_remote_info_aws_sso_group.go b/model_group_remote_info_aws_sso_group.go new file mode 100644 index 0000000..d7e4a27 --- /dev/null +++ b/model_group_remote_info_aws_sso_group.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 GroupRemoteInfoAwsSsoGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoAwsSsoGroup{} + +// GroupRemoteInfoAwsSsoGroup Remote info for AWS SSO group. +type GroupRemoteInfoAwsSsoGroup struct { + // The id of the AWS SSO group. + GroupId string `json:"group_id"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoAwsSsoGroup GroupRemoteInfoAwsSsoGroup + +// NewGroupRemoteInfoAwsSsoGroup instantiates a new GroupRemoteInfoAwsSsoGroup 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 NewGroupRemoteInfoAwsSsoGroup(groupId string) *GroupRemoteInfoAwsSsoGroup { + this := GroupRemoteInfoAwsSsoGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoAwsSsoGroupWithDefaults instantiates a new GroupRemoteInfoAwsSsoGroup 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 NewGroupRemoteInfoAwsSsoGroupWithDefaults() *GroupRemoteInfoAwsSsoGroup { + this := GroupRemoteInfoAwsSsoGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoAwsSsoGroup) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoAwsSsoGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoAwsSsoGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoAwsSsoGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoAwsSsoGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoAwsSsoGroup) 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{ + "group_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) + } + } + + varGroupRemoteInfoAwsSsoGroup := _GroupRemoteInfoAwsSsoGroup{} + + err = json.Unmarshal(data, &varGroupRemoteInfoAwsSsoGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoAwsSsoGroup(varGroupRemoteInfoAwsSsoGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoAwsSsoGroup struct { + value *GroupRemoteInfoAwsSsoGroup + isSet bool +} + +func (v NullableGroupRemoteInfoAwsSsoGroup) Get() *GroupRemoteInfoAwsSsoGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoAwsSsoGroup) Set(val *GroupRemoteInfoAwsSsoGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoAwsSsoGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoAwsSsoGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoAwsSsoGroup(val *GroupRemoteInfoAwsSsoGroup) *NullableGroupRemoteInfoAwsSsoGroup { + return &NullableGroupRemoteInfoAwsSsoGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoAwsSsoGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoAwsSsoGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_connector_group.go b/model_group_remote_info_connector_group.go new file mode 100644 index 0000000..46b79d1 --- /dev/null +++ b/model_group_remote_info_connector_group.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 GroupRemoteInfoConnectorGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoConnectorGroup{} + +// GroupRemoteInfoConnectorGroup Remote info for Connector group. +type GroupRemoteInfoConnectorGroup struct { + // The id of the Connector group. + GroupId string `json:"group_id"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoConnectorGroup GroupRemoteInfoConnectorGroup + +// NewGroupRemoteInfoConnectorGroup instantiates a new GroupRemoteInfoConnectorGroup 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 NewGroupRemoteInfoConnectorGroup(groupId string) *GroupRemoteInfoConnectorGroup { + this := GroupRemoteInfoConnectorGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoConnectorGroupWithDefaults instantiates a new GroupRemoteInfoConnectorGroup 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 NewGroupRemoteInfoConnectorGroupWithDefaults() *GroupRemoteInfoConnectorGroup { + this := GroupRemoteInfoConnectorGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoConnectorGroup) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoConnectorGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoConnectorGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoConnectorGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoConnectorGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoConnectorGroup) 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{ + "group_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) + } + } + + varGroupRemoteInfoConnectorGroup := _GroupRemoteInfoConnectorGroup{} + + err = json.Unmarshal(data, &varGroupRemoteInfoConnectorGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoConnectorGroup(varGroupRemoteInfoConnectorGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoConnectorGroup struct { + value *GroupRemoteInfoConnectorGroup + isSet bool +} + +func (v NullableGroupRemoteInfoConnectorGroup) Get() *GroupRemoteInfoConnectorGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoConnectorGroup) Set(val *GroupRemoteInfoConnectorGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoConnectorGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoConnectorGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoConnectorGroup(val *GroupRemoteInfoConnectorGroup) *NullableGroupRemoteInfoConnectorGroup { + return &NullableGroupRemoteInfoConnectorGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoConnectorGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoConnectorGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_databricks_account_group.go b/model_group_remote_info_databricks_account_group.go new file mode 100644 index 0000000..edc88aa --- /dev/null +++ b/model_group_remote_info_databricks_account_group.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 GroupRemoteInfoDatabricksAccountGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoDatabricksAccountGroup{} + +// GroupRemoteInfoDatabricksAccountGroup Remote info for Databricks account group. +type GroupRemoteInfoDatabricksAccountGroup struct { + // The id of the Databricks account group. + GroupId string `json:"group_id"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoDatabricksAccountGroup GroupRemoteInfoDatabricksAccountGroup + +// NewGroupRemoteInfoDatabricksAccountGroup instantiates a new GroupRemoteInfoDatabricksAccountGroup 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 NewGroupRemoteInfoDatabricksAccountGroup(groupId string) *GroupRemoteInfoDatabricksAccountGroup { + this := GroupRemoteInfoDatabricksAccountGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoDatabricksAccountGroupWithDefaults instantiates a new GroupRemoteInfoDatabricksAccountGroup 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 NewGroupRemoteInfoDatabricksAccountGroupWithDefaults() *GroupRemoteInfoDatabricksAccountGroup { + this := GroupRemoteInfoDatabricksAccountGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoDatabricksAccountGroup) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoDatabricksAccountGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoDatabricksAccountGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoDatabricksAccountGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoDatabricksAccountGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoDatabricksAccountGroup) 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{ + "group_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) + } + } + + varGroupRemoteInfoDatabricksAccountGroup := _GroupRemoteInfoDatabricksAccountGroup{} + + err = json.Unmarshal(data, &varGroupRemoteInfoDatabricksAccountGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoDatabricksAccountGroup(varGroupRemoteInfoDatabricksAccountGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoDatabricksAccountGroup struct { + value *GroupRemoteInfoDatabricksAccountGroup + isSet bool +} + +func (v NullableGroupRemoteInfoDatabricksAccountGroup) Get() *GroupRemoteInfoDatabricksAccountGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoDatabricksAccountGroup) Set(val *GroupRemoteInfoDatabricksAccountGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoDatabricksAccountGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoDatabricksAccountGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoDatabricksAccountGroup(val *GroupRemoteInfoDatabricksAccountGroup) *NullableGroupRemoteInfoDatabricksAccountGroup { + return &NullableGroupRemoteInfoDatabricksAccountGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoDatabricksAccountGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoDatabricksAccountGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_devin_group.go b/model_group_remote_info_devin_group.go new file mode 100644 index 0000000..1259a7e --- /dev/null +++ b/model_group_remote_info_devin_group.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 GroupRemoteInfoDevinGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoDevinGroup{} + +// GroupRemoteInfoDevinGroup Remote info for Devin group. +type GroupRemoteInfoDevinGroup struct { + // The name of the Devin group. + GroupName string `json:"group_name"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoDevinGroup GroupRemoteInfoDevinGroup + +// NewGroupRemoteInfoDevinGroup instantiates a new GroupRemoteInfoDevinGroup 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 NewGroupRemoteInfoDevinGroup(groupName string) *GroupRemoteInfoDevinGroup { + this := GroupRemoteInfoDevinGroup{} + this.GroupName = groupName + return &this +} + +// NewGroupRemoteInfoDevinGroupWithDefaults instantiates a new GroupRemoteInfoDevinGroup 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 NewGroupRemoteInfoDevinGroupWithDefaults() *GroupRemoteInfoDevinGroup { + this := GroupRemoteInfoDevinGroup{} + return &this +} + +// GetGroupName returns the GroupName field value +func (o *GroupRemoteInfoDevinGroup) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoDevinGroup) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *GroupRemoteInfoDevinGroup) SetGroupName(v string) { + o.GroupName = v +} + +func (o GroupRemoteInfoDevinGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoDevinGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_name"] = o.GroupName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoDevinGroup) 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{ + "group_name", + } + + 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) + } + } + + varGroupRemoteInfoDevinGroup := _GroupRemoteInfoDevinGroup{} + + err = json.Unmarshal(data, &varGroupRemoteInfoDevinGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoDevinGroup(varGroupRemoteInfoDevinGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoDevinGroup struct { + value *GroupRemoteInfoDevinGroup + isSet bool +} + +func (v NullableGroupRemoteInfoDevinGroup) Get() *GroupRemoteInfoDevinGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoDevinGroup) Set(val *GroupRemoteInfoDevinGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoDevinGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoDevinGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoDevinGroup(val *GroupRemoteInfoDevinGroup) *NullableGroupRemoteInfoDevinGroup { + return &NullableGroupRemoteInfoDevinGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoDevinGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoDevinGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_incidentio_on_call_schedule.go b/model_group_remote_info_incidentio_on_call_schedule.go new file mode 100644 index 0000000..20ec643 --- /dev/null +++ b/model_group_remote_info_incidentio_on_call_schedule.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 GroupRemoteInfoIncidentioOnCallSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoIncidentioOnCallSchedule{} + +// GroupRemoteInfoIncidentioOnCallSchedule Remote info for Incident.io on-call schedule group. +type GroupRemoteInfoIncidentioOnCallSchedule struct { + // The id of the Incident.io on-call schedule. + ScheduleId string `json:"schedule_id"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoIncidentioOnCallSchedule GroupRemoteInfoIncidentioOnCallSchedule + +// NewGroupRemoteInfoIncidentioOnCallSchedule instantiates a new GroupRemoteInfoIncidentioOnCallSchedule 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 NewGroupRemoteInfoIncidentioOnCallSchedule(scheduleId string) *GroupRemoteInfoIncidentioOnCallSchedule { + this := GroupRemoteInfoIncidentioOnCallSchedule{} + this.ScheduleId = scheduleId + return &this +} + +// NewGroupRemoteInfoIncidentioOnCallScheduleWithDefaults instantiates a new GroupRemoteInfoIncidentioOnCallSchedule 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 NewGroupRemoteInfoIncidentioOnCallScheduleWithDefaults() *GroupRemoteInfoIncidentioOnCallSchedule { + this := GroupRemoteInfoIncidentioOnCallSchedule{} + return &this +} + +// GetScheduleId returns the ScheduleId field value +func (o *GroupRemoteInfoIncidentioOnCallSchedule) GetScheduleId() string { + if o == nil { + var ret string + return ret + } + + return o.ScheduleId +} + +// GetScheduleIdOk returns a tuple with the ScheduleId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoIncidentioOnCallSchedule) GetScheduleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScheduleId, true +} + +// SetScheduleId sets field value +func (o *GroupRemoteInfoIncidentioOnCallSchedule) SetScheduleId(v string) { + o.ScheduleId = v +} + +func (o GroupRemoteInfoIncidentioOnCallSchedule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoIncidentioOnCallSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["schedule_id"] = o.ScheduleId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoIncidentioOnCallSchedule) 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{ + "schedule_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) + } + } + + varGroupRemoteInfoIncidentioOnCallSchedule := _GroupRemoteInfoIncidentioOnCallSchedule{} + + err = json.Unmarshal(data, &varGroupRemoteInfoIncidentioOnCallSchedule) + + if err != nil { + return err + } + + *o = GroupRemoteInfoIncidentioOnCallSchedule(varGroupRemoteInfoIncidentioOnCallSchedule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "schedule_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoIncidentioOnCallSchedule struct { + value *GroupRemoteInfoIncidentioOnCallSchedule + isSet bool +} + +func (v NullableGroupRemoteInfoIncidentioOnCallSchedule) Get() *GroupRemoteInfoIncidentioOnCallSchedule { + return v.value +} + +func (v *NullableGroupRemoteInfoIncidentioOnCallSchedule) Set(val *GroupRemoteInfoIncidentioOnCallSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoIncidentioOnCallSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoIncidentioOnCallSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoIncidentioOnCallSchedule(val *GroupRemoteInfoIncidentioOnCallSchedule) *NullableGroupRemoteInfoIncidentioOnCallSchedule { + return &NullableGroupRemoteInfoIncidentioOnCallSchedule{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoIncidentioOnCallSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoIncidentioOnCallSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_pagerduty_on_call_schedule.go b/model_group_remote_info_pagerduty_on_call_schedule.go new file mode 100644 index 0000000..411b2bc --- /dev/null +++ b/model_group_remote_info_pagerduty_on_call_schedule.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 GroupRemoteInfoPagerdutyOnCallSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoPagerdutyOnCallSchedule{} + +// GroupRemoteInfoPagerdutyOnCallSchedule Remote info for PagerDuty on-call schedule group. +type GroupRemoteInfoPagerdutyOnCallSchedule struct { + // The id of the PagerDuty on-call schedule. + ScheduleId string `json:"schedule_id"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoPagerdutyOnCallSchedule GroupRemoteInfoPagerdutyOnCallSchedule + +// NewGroupRemoteInfoPagerdutyOnCallSchedule instantiates a new GroupRemoteInfoPagerdutyOnCallSchedule 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 NewGroupRemoteInfoPagerdutyOnCallSchedule(scheduleId string) *GroupRemoteInfoPagerdutyOnCallSchedule { + this := GroupRemoteInfoPagerdutyOnCallSchedule{} + this.ScheduleId = scheduleId + return &this +} + +// NewGroupRemoteInfoPagerdutyOnCallScheduleWithDefaults instantiates a new GroupRemoteInfoPagerdutyOnCallSchedule 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 NewGroupRemoteInfoPagerdutyOnCallScheduleWithDefaults() *GroupRemoteInfoPagerdutyOnCallSchedule { + this := GroupRemoteInfoPagerdutyOnCallSchedule{} + return &this +} + +// GetScheduleId returns the ScheduleId field value +func (o *GroupRemoteInfoPagerdutyOnCallSchedule) GetScheduleId() string { + if o == nil { + var ret string + return ret + } + + return o.ScheduleId +} + +// GetScheduleIdOk returns a tuple with the ScheduleId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoPagerdutyOnCallSchedule) GetScheduleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScheduleId, true +} + +// SetScheduleId sets field value +func (o *GroupRemoteInfoPagerdutyOnCallSchedule) SetScheduleId(v string) { + o.ScheduleId = v +} + +func (o GroupRemoteInfoPagerdutyOnCallSchedule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoPagerdutyOnCallSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["schedule_id"] = o.ScheduleId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoPagerdutyOnCallSchedule) 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{ + "schedule_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) + } + } + + varGroupRemoteInfoPagerdutyOnCallSchedule := _GroupRemoteInfoPagerdutyOnCallSchedule{} + + err = json.Unmarshal(data, &varGroupRemoteInfoPagerdutyOnCallSchedule) + + if err != nil { + return err + } + + *o = GroupRemoteInfoPagerdutyOnCallSchedule(varGroupRemoteInfoPagerdutyOnCallSchedule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "schedule_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoPagerdutyOnCallSchedule struct { + value *GroupRemoteInfoPagerdutyOnCallSchedule + isSet bool +} + +func (v NullableGroupRemoteInfoPagerdutyOnCallSchedule) Get() *GroupRemoteInfoPagerdutyOnCallSchedule { + return v.value +} + +func (v *NullableGroupRemoteInfoPagerdutyOnCallSchedule) Set(val *GroupRemoteInfoPagerdutyOnCallSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoPagerdutyOnCallSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoPagerdutyOnCallSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoPagerdutyOnCallSchedule(val *GroupRemoteInfoPagerdutyOnCallSchedule) *NullableGroupRemoteInfoPagerdutyOnCallSchedule { + return &NullableGroupRemoteInfoPagerdutyOnCallSchedule{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoPagerdutyOnCallSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoPagerdutyOnCallSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_rootly_on_call_schedule.go b/model_group_remote_info_rootly_on_call_schedule.go new file mode 100644 index 0000000..f684b2b --- /dev/null +++ b/model_group_remote_info_rootly_on_call_schedule.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 GroupRemoteInfoRootlyOnCallSchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoRootlyOnCallSchedule{} + +// GroupRemoteInfoRootlyOnCallSchedule Remote info for Rootly on-call schedule group. +type GroupRemoteInfoRootlyOnCallSchedule struct { + // The id of the Rootly on-call schedule. + ScheduleId string `json:"schedule_id"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoRootlyOnCallSchedule GroupRemoteInfoRootlyOnCallSchedule + +// NewGroupRemoteInfoRootlyOnCallSchedule instantiates a new GroupRemoteInfoRootlyOnCallSchedule 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 NewGroupRemoteInfoRootlyOnCallSchedule(scheduleId string) *GroupRemoteInfoRootlyOnCallSchedule { + this := GroupRemoteInfoRootlyOnCallSchedule{} + this.ScheduleId = scheduleId + return &this +} + +// NewGroupRemoteInfoRootlyOnCallScheduleWithDefaults instantiates a new GroupRemoteInfoRootlyOnCallSchedule 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 NewGroupRemoteInfoRootlyOnCallScheduleWithDefaults() *GroupRemoteInfoRootlyOnCallSchedule { + this := GroupRemoteInfoRootlyOnCallSchedule{} + return &this +} + +// GetScheduleId returns the ScheduleId field value +func (o *GroupRemoteInfoRootlyOnCallSchedule) GetScheduleId() string { + if o == nil { + var ret string + return ret + } + + return o.ScheduleId +} + +// GetScheduleIdOk returns a tuple with the ScheduleId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoRootlyOnCallSchedule) GetScheduleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ScheduleId, true +} + +// SetScheduleId sets field value +func (o *GroupRemoteInfoRootlyOnCallSchedule) SetScheduleId(v string) { + o.ScheduleId = v +} + +func (o GroupRemoteInfoRootlyOnCallSchedule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoRootlyOnCallSchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["schedule_id"] = o.ScheduleId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoRootlyOnCallSchedule) 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{ + "schedule_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) + } + } + + varGroupRemoteInfoRootlyOnCallSchedule := _GroupRemoteInfoRootlyOnCallSchedule{} + + err = json.Unmarshal(data, &varGroupRemoteInfoRootlyOnCallSchedule) + + if err != nil { + return err + } + + *o = GroupRemoteInfoRootlyOnCallSchedule(varGroupRemoteInfoRootlyOnCallSchedule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "schedule_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoRootlyOnCallSchedule struct { + value *GroupRemoteInfoRootlyOnCallSchedule + isSet bool +} + +func (v NullableGroupRemoteInfoRootlyOnCallSchedule) Get() *GroupRemoteInfoRootlyOnCallSchedule { + return v.value +} + +func (v *NullableGroupRemoteInfoRootlyOnCallSchedule) Set(val *GroupRemoteInfoRootlyOnCallSchedule) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoRootlyOnCallSchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoRootlyOnCallSchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoRootlyOnCallSchedule(val *GroupRemoteInfoRootlyOnCallSchedule) *NullableGroupRemoteInfoRootlyOnCallSchedule { + return &NullableGroupRemoteInfoRootlyOnCallSchedule{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoRootlyOnCallSchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoRootlyOnCallSchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_tailscale_group.go b/model_group_remote_info_tailscale_group.go new file mode 100644 index 0000000..dea5371 --- /dev/null +++ b/model_group_remote_info_tailscale_group.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 GroupRemoteInfoTailscaleGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoTailscaleGroup{} + +// GroupRemoteInfoTailscaleGroup Remote info for Tailscale group. +type GroupRemoteInfoTailscaleGroup struct { + // The id of the Tailscale group. + GroupId string `json:"group_id"` + AdditionalProperties map[string]interface{} +} + +type _GroupRemoteInfoTailscaleGroup GroupRemoteInfoTailscaleGroup + +// NewGroupRemoteInfoTailscaleGroup instantiates a new GroupRemoteInfoTailscaleGroup 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 NewGroupRemoteInfoTailscaleGroup(groupId string) *GroupRemoteInfoTailscaleGroup { + this := GroupRemoteInfoTailscaleGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoTailscaleGroupWithDefaults instantiates a new GroupRemoteInfoTailscaleGroup 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 NewGroupRemoteInfoTailscaleGroupWithDefaults() *GroupRemoteInfoTailscaleGroup { + this := GroupRemoteInfoTailscaleGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoTailscaleGroup) GetGroupId() string { + if o == nil { + var ret string + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoTailscaleGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoTailscaleGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoTailscaleGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoTailscaleGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GroupRemoteInfoTailscaleGroup) 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{ + "group_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) + } + } + + varGroupRemoteInfoTailscaleGroup := _GroupRemoteInfoTailscaleGroup{} + + err = json.Unmarshal(data, &varGroupRemoteInfoTailscaleGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoTailscaleGroup(varGroupRemoteInfoTailscaleGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGroupRemoteInfoTailscaleGroup struct { + value *GroupRemoteInfoTailscaleGroup + isSet bool +} + +func (v NullableGroupRemoteInfoTailscaleGroup) Get() *GroupRemoteInfoTailscaleGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoTailscaleGroup) Set(val *GroupRemoteInfoTailscaleGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoTailscaleGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoTailscaleGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoTailscaleGroup(val *GroupRemoteInfoTailscaleGroup) *NullableGroupRemoteInfoTailscaleGroup { + return &NullableGroupRemoteInfoTailscaleGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoTailscaleGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoTailscaleGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_resource.go b/model_group_resource.go index f6f6429..5fc3fb4 100644 --- a/model_group_resource.go +++ b/model_group_resource.go @@ -13,6 +13,7 @@ package opal import ( "encoding/json" + "time" "fmt" ) @@ -25,6 +26,12 @@ type GroupResource struct { GroupId string `json:"group_id"` // The ID of the resource. ResourceId string `json:"resource_id"` + // The name of the group + GroupName *string `json:"group_name,omitempty"` + // The name of the resource + ResourceName *string `json:"resource_name,omitempty"` + // The day and time the group's access will expire. + ExpirationDate *time.Time `json:"expiration_date,omitempty"` AccessLevel ResourceAccessLevel `json:"access_level"` AdditionalProperties map[string]interface{} } @@ -99,6 +106,102 @@ func (o *GroupResource) SetResourceId(v string) { o.ResourceId = v } +// GetGroupName returns the GroupName field value if set, zero value otherwise. +func (o *GroupResource) GetGroupName() string { + if o == nil || IsNil(o.GroupName) { + var ret string + return ret + } + return *o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupResource) GetGroupNameOk() (*string, bool) { + if o == nil || IsNil(o.GroupName) { + return nil, false + } + return o.GroupName, true +} + +// HasGroupName returns a boolean if a field has been set. +func (o *GroupResource) HasGroupName() bool { + if o != nil && !IsNil(o.GroupName) { + return true + } + + return false +} + +// SetGroupName gets a reference to the given string and assigns it to the GroupName field. +func (o *GroupResource) SetGroupName(v string) { + o.GroupName = &v +} + +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *GroupResource) GetResourceName() string { + if o == nil || IsNil(o.ResourceName) { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupResource) GetResourceNameOk() (*string, bool) { + if o == nil || IsNil(o.ResourceName) { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *GroupResource) HasResourceName() bool { + if o != nil && !IsNil(o.ResourceName) { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *GroupResource) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetExpirationDate returns the ExpirationDate field value if set, zero value otherwise. +func (o *GroupResource) GetExpirationDate() time.Time { + if o == nil || IsNil(o.ExpirationDate) { + var ret time.Time + return ret + } + return *o.ExpirationDate +} + +// GetExpirationDateOk returns a tuple with the ExpirationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupResource) GetExpirationDateOk() (*time.Time, bool) { + if o == nil || IsNil(o.ExpirationDate) { + return nil, false + } + return o.ExpirationDate, true +} + +// HasExpirationDate returns a boolean if a field has been set. +func (o *GroupResource) HasExpirationDate() bool { + if o != nil && !IsNil(o.ExpirationDate) { + return true + } + + return false +} + +// SetExpirationDate gets a reference to the given time.Time and assigns it to the ExpirationDate field. +func (o *GroupResource) SetExpirationDate(v time.Time) { + o.ExpirationDate = &v +} + // GetAccessLevel returns the AccessLevel field value func (o *GroupResource) GetAccessLevel() ResourceAccessLevel { if o == nil { @@ -135,6 +238,15 @@ func (o GroupResource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["group_id"] = o.GroupId toSerialize["resource_id"] = o.ResourceId + if !IsNil(o.GroupName) { + toSerialize["group_name"] = o.GroupName + } + if !IsNil(o.ResourceName) { + toSerialize["resource_name"] = o.ResourceName + } + if !IsNil(o.ExpirationDate) { + toSerialize["expiration_date"] = o.ExpirationDate + } toSerialize["access_level"] = o.AccessLevel for key, value := range o.AdditionalProperties { @@ -183,6 +295,9 @@ func (o *GroupResource) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "group_id") delete(additionalProperties, "resource_id") + delete(additionalProperties, "group_name") + delete(additionalProperties, "resource_name") + delete(additionalProperties, "expiration_date") delete(additionalProperties, "access_level") o.AdditionalProperties = additionalProperties } diff --git a/model_group_type_enum.go b/model_group_type_enum.go index 000f92e..b423cc3 100644 --- a/model_group_type_enum.go +++ b/model_group_type_enum.go @@ -40,6 +40,10 @@ const ( GROUPTYPEENUM_CONNECTOR_GROUP GroupTypeEnum = "CONNECTOR_GROUP" GROUPTYPEENUM_SNOWFLAKE_ROLE GroupTypeEnum = "SNOWFLAKE_ROLE" GROUPTYPEENUM_WORKDAY_USER_SECURITY_GROUP GroupTypeEnum = "WORKDAY_USER_SECURITY_GROUP" + GROUPTYPEENUM_PAGERDUTY_ON_CALL_SCHEDULE GroupTypeEnum = "PAGERDUTY_ON_CALL_SCHEDULE" + 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" ) // All allowed values of GroupTypeEnum enum @@ -63,6 +67,10 @@ var AllowedGroupTypeEnumEnumValues = []GroupTypeEnum{ "CONNECTOR_GROUP", "SNOWFLAKE_ROLE", "WORKDAY_USER_SECURITY_GROUP", + "PAGERDUTY_ON_CALL_SCHEDULE", + "INCIDENTIO_ON_CALL_SCHEDULE", + "ROOTLY_ON_CALL_SCHEDULE", + "DEVIN_GROUP", } func (v *GroupTypeEnum) UnmarshalJSON(src []byte) error { diff --git a/model_group_user.go b/model_group_user.go index a587914..78467bd 100644 --- a/model_group_user.go +++ b/model_group_user.go @@ -24,6 +24,10 @@ var _ MappedNullable = &GroupUser{} type GroupUser struct { // The ID of the group. GroupId string `json:"group_id"` + // The name of the group. + GroupName string `json:"group_name"` + // The description of the group. + Description string `json:"description"` // The ID of the user. UserId string `json:"user_id"` AccessLevel *GroupAccessLevel `json:"access_level,omitempty"` @@ -43,9 +47,11 @@ type _GroupUser GroupUser // 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 NewGroupUser(groupId string, userId string, fullName string, email string) *GroupUser { +func NewGroupUser(groupId string, groupName string, description string, userId string, fullName string, email string) *GroupUser { this := GroupUser{} this.GroupId = groupId + this.GroupName = groupName + this.Description = description this.UserId = userId this.FullName = fullName this.Email = email @@ -84,6 +90,54 @@ func (o *GroupUser) SetGroupId(v string) { o.GroupId = v } +// GetGroupName returns the GroupName field value +func (o *GroupUser) GetGroupName() string { + if o == nil { + var ret string + return ret + } + + return o.GroupName +} + +// GetGroupNameOk returns a tuple with the GroupName field value +// and a boolean to check if the value has been set. +func (o *GroupUser) GetGroupNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupName, true +} + +// SetGroupName sets field value +func (o *GroupUser) SetGroupName(v string) { + o.GroupName = v +} + +// GetDescription returns the Description field value +func (o *GroupUser) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *GroupUser) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *GroupUser) SetDescription(v string) { + o.Description = v +} + // GetUserId returns the UserId field value func (o *GroupUser) GetUserId() string { if o == nil { @@ -263,6 +317,8 @@ func (o GroupUser) MarshalJSON() ([]byte, error) { func (o GroupUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["group_id"] = o.GroupId + toSerialize["group_name"] = o.GroupName + toSerialize["description"] = o.Description toSerialize["user_id"] = o.UserId if !IsNil(o.AccessLevel) { toSerialize["access_level"] = o.AccessLevel @@ -289,6 +345,8 @@ func (o *GroupUser) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "group_id", + "group_name", + "description", "user_id", "full_name", "email", @@ -322,6 +380,8 @@ func (o *GroupUser) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "group_id") + delete(additionalProperties, "group_name") + delete(additionalProperties, "description") delete(additionalProperties, "user_id") delete(additionalProperties, "access_level") delete(additionalProperties, "full_name") diff --git a/model_rds_engine_enum.go b/model_rds_engine_enum.go new file mode 100644 index 0000000..1dba288 --- /dev/null +++ b/model_rds_engine_enum.go @@ -0,0 +1,112 @@ +/* +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" +) + +// RDSEngineEnum The database engine for the RDS instance. +type RDSEngineEnum string + +// List of RDSEngineEnum +const ( + RDSENGINEENUM_MYSQL RDSEngineEnum = "MYSQL" + RDSENGINEENUM_POSTGRESQL RDSEngineEnum = "POSTGRESQL" +) + +// All allowed values of RDSEngineEnum enum +var AllowedRDSEngineEnumEnumValues = []RDSEngineEnum{ + "MYSQL", + "POSTGRESQL", +} + +func (v *RDSEngineEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RDSEngineEnum(value) + for _, existing := range AllowedRDSEngineEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RDSEngineEnum", value) +} + +// NewRDSEngineEnumFromValue returns a pointer to a valid RDSEngineEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRDSEngineEnumFromValue(v string) (*RDSEngineEnum, error) { + ev := RDSEngineEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RDSEngineEnum: valid values are %v", v, AllowedRDSEngineEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RDSEngineEnum) IsValid() bool { + for _, existing := range AllowedRDSEngineEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RDSEngineEnum value +func (v RDSEngineEnum) Ptr() *RDSEngineEnum { + return &v +} + +type NullableRDSEngineEnum struct { + value *RDSEngineEnum + isSet bool +} + +func (v NullableRDSEngineEnum) Get() *RDSEngineEnum { + return v.value +} + +func (v *NullableRDSEngineEnum) Set(val *RDSEngineEnum) { + v.value = val + v.isSet = true +} + +func (v NullableRDSEngineEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableRDSEngineEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRDSEngineEnum(val *RDSEngineEnum) *NullableRDSEngineEnum { + return &NullableRDSEngineEnum{value: val, isSet: true} +} + +func (v NullableRDSEngineEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRDSEngineEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_remote_user.go b/model_remote_user.go index d6bf4d9..46c9a68 100644 --- a/model_remote_user.go +++ b/model_remote_user.go @@ -25,6 +25,7 @@ type RemoteUser struct { UserId string `json:"user_id"` // The ID of the remote user. RemoteId string `json:"remote_id"` + // The third party provider of the remote user. ThirdPartyProvider ThirdPartyProviderEnum `json:"third_party_provider"` AdditionalProperties map[string]interface{} } diff --git a/model_request.go b/model_request.go index 0efe6f1..09fce3e 100644 --- a/model_request.go +++ b/model_request.go @@ -34,6 +34,7 @@ type Request struct { TargetUserId *string `json:"target_user_id,omitempty"` // The unique identifier of the group who is the target of the request. TargetGroupId *string `json:"target_group_id,omitempty"` + // The status of the request. Status RequestStatusEnum `json:"status"` // The reason for the request. Reason string `json:"reason"` @@ -43,10 +44,10 @@ type Request struct { RequestedItemsList []RequestedItem `json:"requested_items_list,omitempty"` // The responses given to the custom fields associated to the request CustomFieldsResponses []RequestCustomFieldResponse `json:"custom_fields_responses,omitempty"` + // The stages configuration for this request // Deprecated Stages *RequestItemStages `json:"stages,omitempty"` - // The configured reviewer stages for every item in this request - ReviewerStages []RequestReviewerStages `json:"reviewer_stages,omitempty"` + ReviewerStages *RequestReviewerStages `json:"reviewer_stages,omitempty"` AdditionalProperties map[string]interface{} } @@ -415,17 +416,17 @@ func (o *Request) SetStages(v RequestItemStages) { } // GetReviewerStages returns the ReviewerStages field value if set, zero value otherwise. -func (o *Request) GetReviewerStages() []RequestReviewerStages { +func (o *Request) GetReviewerStages() RequestReviewerStages { if o == nil || IsNil(o.ReviewerStages) { - var ret []RequestReviewerStages + var ret RequestReviewerStages return ret } - return o.ReviewerStages + return *o.ReviewerStages } // GetReviewerStagesOk returns a tuple with the ReviewerStages field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Request) GetReviewerStagesOk() ([]RequestReviewerStages, bool) { +func (o *Request) GetReviewerStagesOk() (*RequestReviewerStages, bool) { if o == nil || IsNil(o.ReviewerStages) { return nil, false } @@ -441,9 +442,9 @@ func (o *Request) HasReviewerStages() bool { return false } -// SetReviewerStages gets a reference to the given []RequestReviewerStages and assigns it to the ReviewerStages field. -func (o *Request) SetReviewerStages(v []RequestReviewerStages) { - o.ReviewerStages = v +// SetReviewerStages gets a reference to the given RequestReviewerStages and assigns it to the ReviewerStages field. +func (o *Request) SetReviewerStages(v RequestReviewerStages) { + o.ReviewerStages = &v } func (o Request) MarshalJSON() ([]byte, error) { diff --git a/model_request_configuration.go b/model_request_configuration.go index 84f0eb8..75bb343 100644 --- a/model_request_configuration.go +++ b/model_request_configuration.go @@ -21,6 +21,7 @@ var _ MappedNullable = &RequestConfiguration{} // RequestConfiguration # Request Configuration Object ### Description The `RequestConfiguration` object is used to represent a request configuration. ### Usage Example Returned from the `GET Request Configurations` endpoint. type RequestConfiguration struct { + // The condition for the request configuration. Condition *Condition `json:"condition,omitempty"` // A bool representing whether or not to allow requests for this resource. AllowRequests bool `json:"allow_requests"` diff --git a/model_request_reviewer_stages.go b/model_request_reviewer_stages.go index a320e25..02fa6d8 100644 --- a/model_request_reviewer_stages.go +++ b/model_request_reviewer_stages.go @@ -14,257 +14,123 @@ package opal import ( "encoding/json" "fmt" + "gopkg.in/validator.v2" ) -// checks if the RequestReviewerStages type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &RequestReviewerStages{} - -// RequestReviewerStages The stages configuration for a request item +// RequestReviewerStages - The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded type RequestReviewerStages struct { - // The name of the access level requested. - AccessLevelName *string `json:"access_level_name,omitempty"` - // The ID of the access level requested on the remote system. - AccessLevelRemoteId *string `json:"access_level_remote_id,omitempty"` - // The name of the requested item - ItemName string `json:"item_name"` - // The ID of the resource requested. - ItemId string `json:"item_id"` - // The stages of review for this request - Stages []RequestStage `json:"stages"` - AdditionalProperties map[string]interface{} -} - -type _RequestReviewerStages RequestReviewerStages - -// NewRequestReviewerStages instantiates a new RequestReviewerStages 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 NewRequestReviewerStages(itemName string, itemId string, stages []RequestStage) *RequestReviewerStages { - this := RequestReviewerStages{} - this.ItemName = itemName - this.ItemId = itemId - this.Stages = stages - return &this -} - -// NewRequestReviewerStagesWithDefaults instantiates a new RequestReviewerStages 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 NewRequestReviewerStagesWithDefaults() *RequestReviewerStages { - this := RequestReviewerStages{} - return &this -} - -// GetAccessLevelName returns the AccessLevelName field value if set, zero value otherwise. -func (o *RequestReviewerStages) GetAccessLevelName() string { - if o == nil || IsNil(o.AccessLevelName) { - var ret string - return ret - } - return *o.AccessLevelName -} - -// GetAccessLevelNameOk returns a tuple with the AccessLevelName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RequestReviewerStages) GetAccessLevelNameOk() (*string, bool) { - if o == nil || IsNil(o.AccessLevelName) { - return nil, false - } - return o.AccessLevelName, true -} - -// HasAccessLevelName returns a boolean if a field has been set. -func (o *RequestReviewerStages) HasAccessLevelName() bool { - if o != nil && !IsNil(o.AccessLevelName) { - return true - } - - return false -} - -// SetAccessLevelName gets a reference to the given string and assigns it to the AccessLevelName field. -func (o *RequestReviewerStages) SetAccessLevelName(v string) { - o.AccessLevelName = &v + ArrayOfRequestReviewerStages *[]RequestReviewerStages + String *string } -// GetAccessLevelRemoteId returns the AccessLevelRemoteId field value if set, zero value otherwise. -func (o *RequestReviewerStages) GetAccessLevelRemoteId() string { - if o == nil || IsNil(o.AccessLevelRemoteId) { - var ret string - return ret +// []RequestReviewerStagesAsRequestReviewerStages is a convenience function that returns []RequestReviewerStages wrapped in RequestReviewerStages +func ArrayOfRequestReviewerStagesAsRequestReviewerStages(v *[]RequestReviewerStages) RequestReviewerStages { + return RequestReviewerStages{ + ArrayOfRequestReviewerStages: v, } - return *o.AccessLevelRemoteId } -// GetAccessLevelRemoteIdOk returns a tuple with the AccessLevelRemoteId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RequestReviewerStages) GetAccessLevelRemoteIdOk() (*string, bool) { - if o == nil || IsNil(o.AccessLevelRemoteId) { - return nil, false +// stringAsRequestReviewerStages is a convenience function that returns string wrapped in RequestReviewerStages +func StringAsRequestReviewerStages(v *string) RequestReviewerStages { + return RequestReviewerStages{ + String: v, } - return o.AccessLevelRemoteId, true -} - -// HasAccessLevelRemoteId returns a boolean if a field has been set. -func (o *RequestReviewerStages) HasAccessLevelRemoteId() bool { - if o != nil && !IsNil(o.AccessLevelRemoteId) { - return true - } - - return false } -// SetAccessLevelRemoteId gets a reference to the given string and assigns it to the AccessLevelRemoteId field. -func (o *RequestReviewerStages) SetAccessLevelRemoteId(v string) { - o.AccessLevelRemoteId = &v -} - -// GetItemName returns the ItemName field value -func (o *RequestReviewerStages) GetItemName() string { - if o == nil { - var ret string - return ret - } - return o.ItemName -} - -// GetItemNameOk returns a tuple with the ItemName field value -// and a boolean to check if the value has been set. -func (o *RequestReviewerStages) GetItemNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ItemName, true -} - -// SetItemName sets field value -func (o *RequestReviewerStages) SetItemName(v string) { - o.ItemName = v -} - -// GetItemId returns the ItemId field value -func (o *RequestReviewerStages) GetItemId() string { - if o == nil { - var ret string - return ret +// Unmarshal JSON data into one of the pointers in the struct +func (dst *RequestReviewerStages) UnmarshalJSON(data []byte) error { + var err error + match := 0 + // try to unmarshal data into ArrayOfRequestReviewerStages + err = newStrictDecoder(data).Decode(&dst.ArrayOfRequestReviewerStages) + if err == nil { + jsonArrayOfRequestReviewerStages, _ := json.Marshal(dst.ArrayOfRequestReviewerStages) + if string(jsonArrayOfRequestReviewerStages) == "{}" { // empty struct + dst.ArrayOfRequestReviewerStages = nil + } else { + if err = validator.Validate(dst.ArrayOfRequestReviewerStages); err != nil { + dst.ArrayOfRequestReviewerStages = nil + } else { + match++ + } + } + } else { + dst.ArrayOfRequestReviewerStages = nil + } + + // try to unmarshal data into String + err = newStrictDecoder(data).Decode(&dst.String) + if err == nil { + jsonString, _ := json.Marshal(dst.String) + if string(jsonString) == "{}" { // empty struct + dst.String = nil + } else { + if err = validator.Validate(dst.String); err != nil { + dst.String = nil + } else { + match++ + } + } + } else { + dst.String = nil } - return o.ItemId -} + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfRequestReviewerStages = nil + dst.String = nil -// GetItemIdOk returns a tuple with the ItemId field value -// and a boolean to check if the value has been set. -func (o *RequestReviewerStages) GetItemIdOk() (*string, bool) { - if o == nil { - return nil, false + return fmt.Errorf("data matches more than one schema in oneOf(RequestReviewerStages)") + } else if match == 1 { + return nil // exactly one match + } else { // no match + return fmt.Errorf("data failed to match schemas in oneOf(RequestReviewerStages)") } - return &o.ItemId, true -} - -// SetItemId sets field value -func (o *RequestReviewerStages) SetItemId(v string) { - o.ItemId = v } -// GetStages returns the Stages field value -func (o *RequestReviewerStages) GetStages() []RequestStage { - if o == nil { - var ret []RequestStage - return ret +// Marshal data from the first non-nil pointers in the struct to JSON +func (src RequestReviewerStages) MarshalJSON() ([]byte, error) { + if src.ArrayOfRequestReviewerStages != nil { + return json.Marshal(&src.ArrayOfRequestReviewerStages) } - return o.Stages -} - -// GetStagesOk returns a tuple with the Stages field value -// and a boolean to check if the value has been set. -func (o *RequestReviewerStages) GetStagesOk() ([]RequestStage, bool) { - if o == nil { - return nil, false + if src.String != nil { + return json.Marshal(&src.String) } - return o.Stages, true -} -// SetStages sets field value -func (o *RequestReviewerStages) SetStages(v []RequestStage) { - o.Stages = v -} - -func (o RequestReviewerStages) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) + return nil, nil // no data in oneOf schemas } -func (o RequestReviewerStages) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.AccessLevelName) { - toSerialize["access_level_name"] = o.AccessLevelName +// Get the actual instance +func (obj *RequestReviewerStages) GetActualInstance() (interface{}) { + if obj == nil { + return nil } - if !IsNil(o.AccessLevelRemoteId) { - toSerialize["access_level_remote_id"] = o.AccessLevelRemoteId + if obj.ArrayOfRequestReviewerStages != nil { + return obj.ArrayOfRequestReviewerStages } - toSerialize["item_name"] = o.ItemName - toSerialize["item_id"] = o.ItemId - toSerialize["stages"] = o.Stages - for key, value := range o.AdditionalProperties { - toSerialize[key] = value + if obj.String != nil { + return obj.String } - return toSerialize, nil + // all schemas are nil + return nil } -func (o *RequestReviewerStages) 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{ - "item_name", - "item_id", - "stages", +// Get the actual instance value +func (obj RequestReviewerStages) GetActualInstanceValue() (interface{}) { + if obj.ArrayOfRequestReviewerStages != nil { + return *obj.ArrayOfRequestReviewerStages } - 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) - } - } - - varRequestReviewerStages := _RequestReviewerStages{} - - err = json.Unmarshal(data, &varRequestReviewerStages) - - if err != nil { - return err - } - - *o = RequestReviewerStages(varRequestReviewerStages) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "access_level_name") - delete(additionalProperties, "access_level_remote_id") - delete(additionalProperties, "item_name") - delete(additionalProperties, "item_id") - delete(additionalProperties, "stages") - o.AdditionalProperties = additionalProperties + if obj.String != nil { + return *obj.String } - return err + // all schemas are nil + return nil } type NullableRequestReviewerStages struct { diff --git a/model_request_stage.go b/model_request_stage.go index 27eea2c..465b101 100644 --- a/model_request_stage.go +++ b/model_request_stage.go @@ -23,6 +23,7 @@ var _ MappedNullable = &RequestStage{} type RequestStage struct { // The stage number Stage int32 `json:"stage"` + // The operator to apply to reviewers in this stage Operator ReviewStageOperator `json:"operator"` // The reviewers for this stage Reviewers []RequestReviewer `json:"reviewers"` diff --git a/model_resource.go b/model_resource.go index 7a8442f..40c4743 100644 --- a/model_resource.go +++ b/model_resource.go @@ -81,6 +81,7 @@ type Resource struct { AncestorResourceIds []string `json:"ancestor_resource_ids,omitempty"` // List of resource IDs that are descendants of this resource. DescendantResourceIds []string `json:"descendant_resource_ids,omitempty"` + // Information about the last successful sync of this resource. LastSuccessfulSync *SyncTask `json:"last_successful_sync,omitempty"` AdditionalProperties map[string]interface{} } diff --git a/model_resource_access_user.go b/model_resource_access_user.go index 253b65b..a00347c 100644 --- a/model_resource_access_user.go +++ b/model_resource_access_user.go @@ -24,6 +24,10 @@ var _ MappedNullable = &ResourceAccessUser{} type ResourceAccessUser struct { // The ID of the resource. ResourceId string `json:"resource_id"` + // The name of the resource. + ResourceName *string `json:"resource_name,omitempty"` + // The description of the resource. + Description *string `json:"description,omitempty"` // The ID of the user. UserId string `json:"user_id"` AccessLevel ResourceAccessLevel `json:"access_level"` @@ -91,6 +95,70 @@ func (o *ResourceAccessUser) SetResourceId(v string) { o.ResourceId = v } +// GetResourceName returns the ResourceName field value if set, zero value otherwise. +func (o *ResourceAccessUser) GetResourceName() string { + if o == nil || IsNil(o.ResourceName) { + var ret string + return ret + } + return *o.ResourceName +} + +// GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceAccessUser) GetResourceNameOk() (*string, bool) { + if o == nil || IsNil(o.ResourceName) { + return nil, false + } + return o.ResourceName, true +} + +// HasResourceName returns a boolean if a field has been set. +func (o *ResourceAccessUser) HasResourceName() bool { + if o != nil && !IsNil(o.ResourceName) { + return true + } + + return false +} + +// SetResourceName gets a reference to the given string and assigns it to the ResourceName field. +func (o *ResourceAccessUser) SetResourceName(v string) { + o.ResourceName = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ResourceAccessUser) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceAccessUser) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ResourceAccessUser) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ResourceAccessUser) SetDescription(v string) { + o.Description = &v +} + // GetUserId returns the UserId field value func (o *ResourceAccessUser) GetUserId() string { if o == nil { @@ -310,6 +378,12 @@ func (o ResourceAccessUser) MarshalJSON() ([]byte, error) { func (o ResourceAccessUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["resource_id"] = o.ResourceId + if !IsNil(o.ResourceName) { + toSerialize["resource_name"] = o.ResourceName + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } toSerialize["user_id"] = o.UserId toSerialize["access_level"] = o.AccessLevel toSerialize["full_name"] = o.FullName @@ -372,6 +446,8 @@ func (o *ResourceAccessUser) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "resource_id") + delete(additionalProperties, "resource_name") + delete(additionalProperties, "description") delete(additionalProperties, "user_id") delete(additionalProperties, "access_level") delete(additionalProperties, "full_name") diff --git a/model_resource_remote_info.go b/model_resource_remote_info.go index 0eb46cb..bea40d2 100644 --- a/model_resource_remote_info.go +++ b/model_resource_remote_info.go @@ -20,11 +20,26 @@ var _ MappedNullable = &ResourceRemoteInfo{} // ResourceRemoteInfo Information that defines the remote resource. This replaces the deprecated remote_id and metadata fields. type ResourceRemoteInfo struct { + DatabricksAccountServicePrincipal *ResourceRemoteInfoDatabricksAccountServicePrincipal `json:"databricks_account_service_principal,omitempty"` + AzureSubscription *ResourceRemoteInfoAzureSubscription `json:"azure_subscription,omitempty"` + AzureResourceGroup *ResourceRemoteInfoAzureResourceGroup `json:"azure_resource_group,omitempty"` + AzureManagementGroup *ResourceRemoteInfoAzureManagementGroup `json:"azure_management_group,omitempty"` + AzureVirtualMachine *ResourceRemoteInfoAzureVirtualMachine `json:"azure_virtual_machine,omitempty"` + AzureStorageAccount *ResourceRemoteInfoAzureStorageAccount `json:"azure_storage_account,omitempty"` + AzureStorageContainer *ResourceRemoteInfoAzureStorageContainer `json:"azure_storage_container,omitempty"` + AzureSqlServer *ResourceRemoteInfoAzureSqlServer `json:"azure_sql_server,omitempty"` + AzureSqlDatabase *ResourceRemoteInfoAzureSqlDatabase `json:"azure_sql_database,omitempty"` + AzureSqlManagedInstance *ResourceRemoteInfoAzureSqlManagedInstance `json:"azure_sql_managed_instance,omitempty"` + AzureSqlManagedDatabase *ResourceRemoteInfoAzureSqlManagedDatabase `json:"azure_sql_managed_database,omitempty"` + AzureUserAssignedManagedIdentity *ResourceRemoteInfoAzureUserAssignedManagedIdentity `json:"azure_user_assigned_managed_identity,omitempty"` + AzureEnterpriseApp *ResourceRemoteInfoAzureEnterpriseApp `json:"azure_enterprise_app,omitempty"` + AzureEntraIdRole *ResourceRemoteInfoAzureEntraIdRole `json:"azure_entra_id_role,omitempty"` AwsOrganizationalUnit *ResourceRemoteInfoAwsOrganizationalUnit `json:"aws_organizational_unit,omitempty"` AwsAccount *ResourceRemoteInfoAwsAccount `json:"aws_account,omitempty"` AwsPermissionSet *ResourceRemoteInfoAwsPermissionSet `json:"aws_permission_set,omitempty"` AwsIamRole *ResourceRemoteInfoAwsIamRole `json:"aws_iam_role,omitempty"` AwsEc2Instance *ResourceRemoteInfoAwsEc2Instance `json:"aws_ec2_instance,omitempty"` + AwsRdsCluster *ResourceRemoteInfoAwsRdsCluster `json:"aws_rds_cluster,omitempty"` AwsRdsInstance *ResourceRemoteInfoAwsRdsInstance `json:"aws_rds_instance,omitempty"` AwsEksCluster *ResourceRemoteInfoAwsEksCluster `json:"aws_eks_cluster,omitempty"` CustomConnector *ResourceRemoteInfoCustomConnector `json:"custom_connector,omitempty"` @@ -41,17 +56,31 @@ type ResourceRemoteInfo struct { GoogleWorkspaceRole *ResourceRemoteInfoGoogleWorkspaceRole `json:"google_workspace_role,omitempty"` GithubRepo *ResourceRemoteInfoGithubRepo `json:"github_repo,omitempty"` GithubOrgRole *ResourceRemoteInfoGithubOrgRole `json:"github_org_role,omitempty"` + GithubOrg *ResourceRemoteInfoGithubOrg `json:"github_org,omitempty"` GitlabProject *ResourceRemoteInfoGitlabProject `json:"gitlab_project,omitempty"` OktaApp *ResourceRemoteInfoOktaApp `json:"okta_app,omitempty"` OktaStandardRole *ResourceRemoteInfoOktaStandardRole `json:"okta_standard_role,omitempty"` OktaCustomRole *ResourceRemoteInfoOktaCustomRole `json:"okta_custom_role,omitempty"` + SnowflakeDatabase *ResourceRemoteInfoSnowflakeDatabase `json:"snowflake_database,omitempty"` + SnowflakeSchema *ResourceRemoteInfoSnowflakeSchema `json:"snowflake_schema,omitempty"` + SnowflakeTable *ResourceRemoteInfoSnowflakeTable `json:"snowflake_table,omitempty"` + IlevelAdvancedRole *ResourceRemoteInfoIlevelAdvancedRole `json:"ilevel_advanced_role,omitempty"` + TailscaleSsh *ResourceRemoteInfoTailscaleSsh `json:"tailscale_ssh,omitempty"` PagerdutyRole *ResourceRemoteInfoPagerdutyRole `json:"pagerduty_role,omitempty"` + WorkdayRole *ResourceRemoteInfoWorkdayRole `json:"workday_role,omitempty"` SalesforcePermissionSet *ResourceRemoteInfoSalesforcePermissionSet `json:"salesforce_permission_set,omitempty"` SalesforceProfile *ResourceRemoteInfoSalesforceProfile `json:"salesforce_profile,omitempty"` SalesforceRole *ResourceRemoteInfoSalesforceRole `json:"salesforce_role,omitempty"` TeleportRole *ResourceRemoteInfoTeleportRole `json:"teleport_role,omitempty"` DatastaxAstraRole *ResourceRemoteInfoDatastaxAstraRole `json:"datastax_astra_role,omitempty"` CoupaRole *ResourceRemoteInfoCoupaRole `json:"coupa_role,omitempty"` + CursorOrganization *ResourceRemoteInfoCursorOrganization `json:"cursor_organization,omitempty"` + OpenaiPlatformProject *ResourceRemoteInfoOpenaiPlatformProject `json:"openai_platform_project,omitempty"` + OpenaiPlatformServiceAccount *ResourceRemoteInfoOpenaiPlatformServiceAccount `json:"openai_platform_service_account,omitempty"` + AnthropicWorkspace *ResourceRemoteInfoAnthropicWorkspace `json:"anthropic_workspace,omitempty"` + OracleFusionRole *ResourceRemoteInfoOracleFusionRole `json:"oracle_fusion_role,omitempty"` + DevinOrganization *ResourceRemoteInfoDevinOrganization `json:"devin_organization,omitempty"` + DevinRole *ResourceRemoteInfoDevinRole `json:"devin_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +103,454 @@ func NewResourceRemoteInfoWithDefaults() *ResourceRemoteInfo { return &this } +// GetDatabricksAccountServicePrincipal returns the DatabricksAccountServicePrincipal field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetDatabricksAccountServicePrincipal() ResourceRemoteInfoDatabricksAccountServicePrincipal { + if o == nil || IsNil(o.DatabricksAccountServicePrincipal) { + var ret ResourceRemoteInfoDatabricksAccountServicePrincipal + return ret + } + return *o.DatabricksAccountServicePrincipal +} + +// GetDatabricksAccountServicePrincipalOk returns a tuple with the DatabricksAccountServicePrincipal field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetDatabricksAccountServicePrincipalOk() (*ResourceRemoteInfoDatabricksAccountServicePrincipal, bool) { + if o == nil || IsNil(o.DatabricksAccountServicePrincipal) { + return nil, false + } + return o.DatabricksAccountServicePrincipal, true +} + +// HasDatabricksAccountServicePrincipal returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasDatabricksAccountServicePrincipal() bool { + if o != nil && !IsNil(o.DatabricksAccountServicePrincipal) { + return true + } + + return false +} + +// SetDatabricksAccountServicePrincipal gets a reference to the given ResourceRemoteInfoDatabricksAccountServicePrincipal and assigns it to the DatabricksAccountServicePrincipal field. +func (o *ResourceRemoteInfo) SetDatabricksAccountServicePrincipal(v ResourceRemoteInfoDatabricksAccountServicePrincipal) { + o.DatabricksAccountServicePrincipal = &v +} + +// GetAzureSubscription returns the AzureSubscription field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureSubscription() ResourceRemoteInfoAzureSubscription { + if o == nil || IsNil(o.AzureSubscription) { + var ret ResourceRemoteInfoAzureSubscription + return ret + } + return *o.AzureSubscription +} + +// GetAzureSubscriptionOk returns a tuple with the AzureSubscription field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureSubscriptionOk() (*ResourceRemoteInfoAzureSubscription, bool) { + if o == nil || IsNil(o.AzureSubscription) { + return nil, false + } + return o.AzureSubscription, true +} + +// HasAzureSubscription returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureSubscription() bool { + if o != nil && !IsNil(o.AzureSubscription) { + return true + } + + return false +} + +// SetAzureSubscription gets a reference to the given ResourceRemoteInfoAzureSubscription and assigns it to the AzureSubscription field. +func (o *ResourceRemoteInfo) SetAzureSubscription(v ResourceRemoteInfoAzureSubscription) { + o.AzureSubscription = &v +} + +// GetAzureResourceGroup returns the AzureResourceGroup field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureResourceGroup() ResourceRemoteInfoAzureResourceGroup { + if o == nil || IsNil(o.AzureResourceGroup) { + var ret ResourceRemoteInfoAzureResourceGroup + return ret + } + return *o.AzureResourceGroup +} + +// GetAzureResourceGroupOk returns a tuple with the AzureResourceGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureResourceGroupOk() (*ResourceRemoteInfoAzureResourceGroup, bool) { + if o == nil || IsNil(o.AzureResourceGroup) { + return nil, false + } + return o.AzureResourceGroup, true +} + +// HasAzureResourceGroup returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureResourceGroup() bool { + if o != nil && !IsNil(o.AzureResourceGroup) { + return true + } + + return false +} + +// SetAzureResourceGroup gets a reference to the given ResourceRemoteInfoAzureResourceGroup and assigns it to the AzureResourceGroup field. +func (o *ResourceRemoteInfo) SetAzureResourceGroup(v ResourceRemoteInfoAzureResourceGroup) { + o.AzureResourceGroup = &v +} + +// GetAzureManagementGroup returns the AzureManagementGroup field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureManagementGroup() ResourceRemoteInfoAzureManagementGroup { + if o == nil || IsNil(o.AzureManagementGroup) { + var ret ResourceRemoteInfoAzureManagementGroup + return ret + } + return *o.AzureManagementGroup +} + +// GetAzureManagementGroupOk returns a tuple with the AzureManagementGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureManagementGroupOk() (*ResourceRemoteInfoAzureManagementGroup, bool) { + if o == nil || IsNil(o.AzureManagementGroup) { + return nil, false + } + return o.AzureManagementGroup, true +} + +// HasAzureManagementGroup returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureManagementGroup() bool { + if o != nil && !IsNil(o.AzureManagementGroup) { + return true + } + + return false +} + +// SetAzureManagementGroup gets a reference to the given ResourceRemoteInfoAzureManagementGroup and assigns it to the AzureManagementGroup field. +func (o *ResourceRemoteInfo) SetAzureManagementGroup(v ResourceRemoteInfoAzureManagementGroup) { + o.AzureManagementGroup = &v +} + +// GetAzureVirtualMachine returns the AzureVirtualMachine field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureVirtualMachine() ResourceRemoteInfoAzureVirtualMachine { + if o == nil || IsNil(o.AzureVirtualMachine) { + var ret ResourceRemoteInfoAzureVirtualMachine + return ret + } + return *o.AzureVirtualMachine +} + +// GetAzureVirtualMachineOk returns a tuple with the AzureVirtualMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureVirtualMachineOk() (*ResourceRemoteInfoAzureVirtualMachine, bool) { + if o == nil || IsNil(o.AzureVirtualMachine) { + return nil, false + } + return o.AzureVirtualMachine, true +} + +// HasAzureVirtualMachine returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureVirtualMachine() bool { + if o != nil && !IsNil(o.AzureVirtualMachine) { + return true + } + + return false +} + +// SetAzureVirtualMachine gets a reference to the given ResourceRemoteInfoAzureVirtualMachine and assigns it to the AzureVirtualMachine field. +func (o *ResourceRemoteInfo) SetAzureVirtualMachine(v ResourceRemoteInfoAzureVirtualMachine) { + o.AzureVirtualMachine = &v +} + +// GetAzureStorageAccount returns the AzureStorageAccount field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureStorageAccount() ResourceRemoteInfoAzureStorageAccount { + if o == nil || IsNil(o.AzureStorageAccount) { + var ret ResourceRemoteInfoAzureStorageAccount + return ret + } + return *o.AzureStorageAccount +} + +// GetAzureStorageAccountOk returns a tuple with the AzureStorageAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureStorageAccountOk() (*ResourceRemoteInfoAzureStorageAccount, bool) { + if o == nil || IsNil(o.AzureStorageAccount) { + return nil, false + } + return o.AzureStorageAccount, true +} + +// HasAzureStorageAccount returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureStorageAccount() bool { + if o != nil && !IsNil(o.AzureStorageAccount) { + return true + } + + return false +} + +// SetAzureStorageAccount gets a reference to the given ResourceRemoteInfoAzureStorageAccount and assigns it to the AzureStorageAccount field. +func (o *ResourceRemoteInfo) SetAzureStorageAccount(v ResourceRemoteInfoAzureStorageAccount) { + o.AzureStorageAccount = &v +} + +// GetAzureStorageContainer returns the AzureStorageContainer field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureStorageContainer() ResourceRemoteInfoAzureStorageContainer { + if o == nil || IsNil(o.AzureStorageContainer) { + var ret ResourceRemoteInfoAzureStorageContainer + return ret + } + return *o.AzureStorageContainer +} + +// GetAzureStorageContainerOk returns a tuple with the AzureStorageContainer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureStorageContainerOk() (*ResourceRemoteInfoAzureStorageContainer, bool) { + if o == nil || IsNil(o.AzureStorageContainer) { + return nil, false + } + return o.AzureStorageContainer, true +} + +// HasAzureStorageContainer returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureStorageContainer() bool { + if o != nil && !IsNil(o.AzureStorageContainer) { + return true + } + + return false +} + +// SetAzureStorageContainer gets a reference to the given ResourceRemoteInfoAzureStorageContainer and assigns it to the AzureStorageContainer field. +func (o *ResourceRemoteInfo) SetAzureStorageContainer(v ResourceRemoteInfoAzureStorageContainer) { + o.AzureStorageContainer = &v +} + +// GetAzureSqlServer returns the AzureSqlServer field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureSqlServer() ResourceRemoteInfoAzureSqlServer { + if o == nil || IsNil(o.AzureSqlServer) { + var ret ResourceRemoteInfoAzureSqlServer + return ret + } + return *o.AzureSqlServer +} + +// GetAzureSqlServerOk returns a tuple with the AzureSqlServer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureSqlServerOk() (*ResourceRemoteInfoAzureSqlServer, bool) { + if o == nil || IsNil(o.AzureSqlServer) { + return nil, false + } + return o.AzureSqlServer, true +} + +// HasAzureSqlServer returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureSqlServer() bool { + if o != nil && !IsNil(o.AzureSqlServer) { + return true + } + + return false +} + +// SetAzureSqlServer gets a reference to the given ResourceRemoteInfoAzureSqlServer and assigns it to the AzureSqlServer field. +func (o *ResourceRemoteInfo) SetAzureSqlServer(v ResourceRemoteInfoAzureSqlServer) { + o.AzureSqlServer = &v +} + +// GetAzureSqlDatabase returns the AzureSqlDatabase field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureSqlDatabase() ResourceRemoteInfoAzureSqlDatabase { + if o == nil || IsNil(o.AzureSqlDatabase) { + var ret ResourceRemoteInfoAzureSqlDatabase + return ret + } + return *o.AzureSqlDatabase +} + +// GetAzureSqlDatabaseOk returns a tuple with the AzureSqlDatabase field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureSqlDatabaseOk() (*ResourceRemoteInfoAzureSqlDatabase, bool) { + if o == nil || IsNil(o.AzureSqlDatabase) { + return nil, false + } + return o.AzureSqlDatabase, true +} + +// HasAzureSqlDatabase returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureSqlDatabase() bool { + if o != nil && !IsNil(o.AzureSqlDatabase) { + return true + } + + return false +} + +// SetAzureSqlDatabase gets a reference to the given ResourceRemoteInfoAzureSqlDatabase and assigns it to the AzureSqlDatabase field. +func (o *ResourceRemoteInfo) SetAzureSqlDatabase(v ResourceRemoteInfoAzureSqlDatabase) { + o.AzureSqlDatabase = &v +} + +// GetAzureSqlManagedInstance returns the AzureSqlManagedInstance field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureSqlManagedInstance() ResourceRemoteInfoAzureSqlManagedInstance { + if o == nil || IsNil(o.AzureSqlManagedInstance) { + var ret ResourceRemoteInfoAzureSqlManagedInstance + return ret + } + return *o.AzureSqlManagedInstance +} + +// GetAzureSqlManagedInstanceOk returns a tuple with the AzureSqlManagedInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureSqlManagedInstanceOk() (*ResourceRemoteInfoAzureSqlManagedInstance, bool) { + if o == nil || IsNil(o.AzureSqlManagedInstance) { + return nil, false + } + return o.AzureSqlManagedInstance, true +} + +// HasAzureSqlManagedInstance returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureSqlManagedInstance() bool { + if o != nil && !IsNil(o.AzureSqlManagedInstance) { + return true + } + + return false +} + +// SetAzureSqlManagedInstance gets a reference to the given ResourceRemoteInfoAzureSqlManagedInstance and assigns it to the AzureSqlManagedInstance field. +func (o *ResourceRemoteInfo) SetAzureSqlManagedInstance(v ResourceRemoteInfoAzureSqlManagedInstance) { + o.AzureSqlManagedInstance = &v +} + +// GetAzureSqlManagedDatabase returns the AzureSqlManagedDatabase field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureSqlManagedDatabase() ResourceRemoteInfoAzureSqlManagedDatabase { + if o == nil || IsNil(o.AzureSqlManagedDatabase) { + var ret ResourceRemoteInfoAzureSqlManagedDatabase + return ret + } + return *o.AzureSqlManagedDatabase +} + +// GetAzureSqlManagedDatabaseOk returns a tuple with the AzureSqlManagedDatabase field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureSqlManagedDatabaseOk() (*ResourceRemoteInfoAzureSqlManagedDatabase, bool) { + if o == nil || IsNil(o.AzureSqlManagedDatabase) { + return nil, false + } + return o.AzureSqlManagedDatabase, true +} + +// HasAzureSqlManagedDatabase returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureSqlManagedDatabase() bool { + if o != nil && !IsNil(o.AzureSqlManagedDatabase) { + return true + } + + return false +} + +// SetAzureSqlManagedDatabase gets a reference to the given ResourceRemoteInfoAzureSqlManagedDatabase and assigns it to the AzureSqlManagedDatabase field. +func (o *ResourceRemoteInfo) SetAzureSqlManagedDatabase(v ResourceRemoteInfoAzureSqlManagedDatabase) { + o.AzureSqlManagedDatabase = &v +} + +// GetAzureUserAssignedManagedIdentity returns the AzureUserAssignedManagedIdentity field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureUserAssignedManagedIdentity() ResourceRemoteInfoAzureUserAssignedManagedIdentity { + if o == nil || IsNil(o.AzureUserAssignedManagedIdentity) { + var ret ResourceRemoteInfoAzureUserAssignedManagedIdentity + return ret + } + return *o.AzureUserAssignedManagedIdentity +} + +// GetAzureUserAssignedManagedIdentityOk returns a tuple with the AzureUserAssignedManagedIdentity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureUserAssignedManagedIdentityOk() (*ResourceRemoteInfoAzureUserAssignedManagedIdentity, bool) { + if o == nil || IsNil(o.AzureUserAssignedManagedIdentity) { + return nil, false + } + return o.AzureUserAssignedManagedIdentity, true +} + +// HasAzureUserAssignedManagedIdentity returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureUserAssignedManagedIdentity() bool { + if o != nil && !IsNil(o.AzureUserAssignedManagedIdentity) { + return true + } + + return false +} + +// SetAzureUserAssignedManagedIdentity gets a reference to the given ResourceRemoteInfoAzureUserAssignedManagedIdentity and assigns it to the AzureUserAssignedManagedIdentity field. +func (o *ResourceRemoteInfo) SetAzureUserAssignedManagedIdentity(v ResourceRemoteInfoAzureUserAssignedManagedIdentity) { + o.AzureUserAssignedManagedIdentity = &v +} + +// GetAzureEnterpriseApp returns the AzureEnterpriseApp field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureEnterpriseApp() ResourceRemoteInfoAzureEnterpriseApp { + if o == nil || IsNil(o.AzureEnterpriseApp) { + var ret ResourceRemoteInfoAzureEnterpriseApp + return ret + } + return *o.AzureEnterpriseApp +} + +// GetAzureEnterpriseAppOk returns a tuple with the AzureEnterpriseApp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureEnterpriseAppOk() (*ResourceRemoteInfoAzureEnterpriseApp, bool) { + if o == nil || IsNil(o.AzureEnterpriseApp) { + return nil, false + } + return o.AzureEnterpriseApp, true +} + +// HasAzureEnterpriseApp returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureEnterpriseApp() bool { + if o != nil && !IsNil(o.AzureEnterpriseApp) { + return true + } + + return false +} + +// SetAzureEnterpriseApp gets a reference to the given ResourceRemoteInfoAzureEnterpriseApp and assigns it to the AzureEnterpriseApp field. +func (o *ResourceRemoteInfo) SetAzureEnterpriseApp(v ResourceRemoteInfoAzureEnterpriseApp) { + o.AzureEnterpriseApp = &v +} + +// GetAzureEntraIdRole returns the AzureEntraIdRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAzureEntraIdRole() ResourceRemoteInfoAzureEntraIdRole { + if o == nil || IsNil(o.AzureEntraIdRole) { + var ret ResourceRemoteInfoAzureEntraIdRole + return ret + } + return *o.AzureEntraIdRole +} + +// GetAzureEntraIdRoleOk returns a tuple with the AzureEntraIdRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAzureEntraIdRoleOk() (*ResourceRemoteInfoAzureEntraIdRole, bool) { + if o == nil || IsNil(o.AzureEntraIdRole) { + return nil, false + } + return o.AzureEntraIdRole, true +} + +// HasAzureEntraIdRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAzureEntraIdRole() bool { + if o != nil && !IsNil(o.AzureEntraIdRole) { + return true + } + + return false +} + +// SetAzureEntraIdRole gets a reference to the given ResourceRemoteInfoAzureEntraIdRole and assigns it to the AzureEntraIdRole field. +func (o *ResourceRemoteInfo) SetAzureEntraIdRole(v ResourceRemoteInfoAzureEntraIdRole) { + o.AzureEntraIdRole = &v +} + // GetAwsOrganizationalUnit returns the AwsOrganizationalUnit field value if set, zero value otherwise. func (o *ResourceRemoteInfo) GetAwsOrganizationalUnit() ResourceRemoteInfoAwsOrganizationalUnit { if o == nil || IsNil(o.AwsOrganizationalUnit) { @@ -234,6 +711,38 @@ func (o *ResourceRemoteInfo) SetAwsEc2Instance(v ResourceRemoteInfoAwsEc2Instanc o.AwsEc2Instance = &v } +// GetAwsRdsCluster returns the AwsRdsCluster field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAwsRdsCluster() ResourceRemoteInfoAwsRdsCluster { + if o == nil || IsNil(o.AwsRdsCluster) { + var ret ResourceRemoteInfoAwsRdsCluster + return ret + } + return *o.AwsRdsCluster +} + +// GetAwsRdsClusterOk returns a tuple with the AwsRdsCluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsRdsClusterOk() (*ResourceRemoteInfoAwsRdsCluster, bool) { + if o == nil || IsNil(o.AwsRdsCluster) { + return nil, false + } + return o.AwsRdsCluster, true +} + +// HasAwsRdsCluster returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsRdsCluster() bool { + if o != nil && !IsNil(o.AwsRdsCluster) { + return true + } + + return false +} + +// SetAwsRdsCluster gets a reference to the given ResourceRemoteInfoAwsRdsCluster and assigns it to the AwsRdsCluster field. +func (o *ResourceRemoteInfo) SetAwsRdsCluster(v ResourceRemoteInfoAwsRdsCluster) { + o.AwsRdsCluster = &v +} + // GetAwsRdsInstance returns the AwsRdsInstance field value if set, zero value otherwise. func (o *ResourceRemoteInfo) GetAwsRdsInstance() ResourceRemoteInfoAwsRdsInstance { if o == nil || IsNil(o.AwsRdsInstance) { @@ -746,7 +1255,39 @@ func (o *ResourceRemoteInfo) SetGithubOrgRole(v ResourceRemoteInfoGithubOrgRole) o.GithubOrgRole = &v } -// GetGitlabProject returns the GitlabProject field value if set, zero value otherwise. +// GetGithubOrg returns the GithubOrg field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGithubOrg() ResourceRemoteInfoGithubOrg { + if o == nil || IsNil(o.GithubOrg) { + var ret ResourceRemoteInfoGithubOrg + return ret + } + return *o.GithubOrg +} + +// GetGithubOrgOk returns a tuple with the GithubOrg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGithubOrgOk() (*ResourceRemoteInfoGithubOrg, bool) { + if o == nil || IsNil(o.GithubOrg) { + return nil, false + } + return o.GithubOrg, true +} + +// HasGithubOrg returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGithubOrg() bool { + if o != nil && !IsNil(o.GithubOrg) { + return true + } + + return false +} + +// SetGithubOrg gets a reference to the given ResourceRemoteInfoGithubOrg and assigns it to the GithubOrg field. +func (o *ResourceRemoteInfo) SetGithubOrg(v ResourceRemoteInfoGithubOrg) { + o.GithubOrg = &v +} + +// GetGitlabProject returns the GitlabProject field value if set, zero value otherwise. func (o *ResourceRemoteInfo) GetGitlabProject() ResourceRemoteInfoGitlabProject { if o == nil || IsNil(o.GitlabProject) { var ret ResourceRemoteInfoGitlabProject @@ -874,6 +1415,166 @@ func (o *ResourceRemoteInfo) SetOktaCustomRole(v ResourceRemoteInfoOktaCustomRol o.OktaCustomRole = &v } +// GetSnowflakeDatabase returns the SnowflakeDatabase field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetSnowflakeDatabase() ResourceRemoteInfoSnowflakeDatabase { + if o == nil || IsNil(o.SnowflakeDatabase) { + var ret ResourceRemoteInfoSnowflakeDatabase + return ret + } + return *o.SnowflakeDatabase +} + +// GetSnowflakeDatabaseOk returns a tuple with the SnowflakeDatabase field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetSnowflakeDatabaseOk() (*ResourceRemoteInfoSnowflakeDatabase, bool) { + if o == nil || IsNil(o.SnowflakeDatabase) { + return nil, false + } + return o.SnowflakeDatabase, true +} + +// HasSnowflakeDatabase returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasSnowflakeDatabase() bool { + if o != nil && !IsNil(o.SnowflakeDatabase) { + return true + } + + return false +} + +// SetSnowflakeDatabase gets a reference to the given ResourceRemoteInfoSnowflakeDatabase and assigns it to the SnowflakeDatabase field. +func (o *ResourceRemoteInfo) SetSnowflakeDatabase(v ResourceRemoteInfoSnowflakeDatabase) { + o.SnowflakeDatabase = &v +} + +// GetSnowflakeSchema returns the SnowflakeSchema field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetSnowflakeSchema() ResourceRemoteInfoSnowflakeSchema { + if o == nil || IsNil(o.SnowflakeSchema) { + var ret ResourceRemoteInfoSnowflakeSchema + return ret + } + return *o.SnowflakeSchema +} + +// GetSnowflakeSchemaOk returns a tuple with the SnowflakeSchema field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetSnowflakeSchemaOk() (*ResourceRemoteInfoSnowflakeSchema, bool) { + if o == nil || IsNil(o.SnowflakeSchema) { + return nil, false + } + return o.SnowflakeSchema, true +} + +// HasSnowflakeSchema returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasSnowflakeSchema() bool { + if o != nil && !IsNil(o.SnowflakeSchema) { + return true + } + + return false +} + +// SetSnowflakeSchema gets a reference to the given ResourceRemoteInfoSnowflakeSchema and assigns it to the SnowflakeSchema field. +func (o *ResourceRemoteInfo) SetSnowflakeSchema(v ResourceRemoteInfoSnowflakeSchema) { + o.SnowflakeSchema = &v +} + +// GetSnowflakeTable returns the SnowflakeTable field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetSnowflakeTable() ResourceRemoteInfoSnowflakeTable { + if o == nil || IsNil(o.SnowflakeTable) { + var ret ResourceRemoteInfoSnowflakeTable + return ret + } + return *o.SnowflakeTable +} + +// GetSnowflakeTableOk returns a tuple with the SnowflakeTable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetSnowflakeTableOk() (*ResourceRemoteInfoSnowflakeTable, bool) { + if o == nil || IsNil(o.SnowflakeTable) { + return nil, false + } + return o.SnowflakeTable, true +} + +// HasSnowflakeTable returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasSnowflakeTable() bool { + if o != nil && !IsNil(o.SnowflakeTable) { + return true + } + + return false +} + +// SetSnowflakeTable gets a reference to the given ResourceRemoteInfoSnowflakeTable and assigns it to the SnowflakeTable field. +func (o *ResourceRemoteInfo) SetSnowflakeTable(v ResourceRemoteInfoSnowflakeTable) { + o.SnowflakeTable = &v +} + +// GetIlevelAdvancedRole returns the IlevelAdvancedRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetIlevelAdvancedRole() ResourceRemoteInfoIlevelAdvancedRole { + if o == nil || IsNil(o.IlevelAdvancedRole) { + var ret ResourceRemoteInfoIlevelAdvancedRole + return ret + } + return *o.IlevelAdvancedRole +} + +// GetIlevelAdvancedRoleOk returns a tuple with the IlevelAdvancedRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetIlevelAdvancedRoleOk() (*ResourceRemoteInfoIlevelAdvancedRole, bool) { + if o == nil || IsNil(o.IlevelAdvancedRole) { + return nil, false + } + return o.IlevelAdvancedRole, true +} + +// HasIlevelAdvancedRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasIlevelAdvancedRole() bool { + if o != nil && !IsNil(o.IlevelAdvancedRole) { + return true + } + + return false +} + +// SetIlevelAdvancedRole gets a reference to the given ResourceRemoteInfoIlevelAdvancedRole and assigns it to the IlevelAdvancedRole field. +func (o *ResourceRemoteInfo) SetIlevelAdvancedRole(v ResourceRemoteInfoIlevelAdvancedRole) { + o.IlevelAdvancedRole = &v +} + +// GetTailscaleSsh returns the TailscaleSsh field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetTailscaleSsh() ResourceRemoteInfoTailscaleSsh { + if o == nil || IsNil(o.TailscaleSsh) { + var ret ResourceRemoteInfoTailscaleSsh + return ret + } + return *o.TailscaleSsh +} + +// GetTailscaleSshOk returns a tuple with the TailscaleSsh field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetTailscaleSshOk() (*ResourceRemoteInfoTailscaleSsh, bool) { + if o == nil || IsNil(o.TailscaleSsh) { + return nil, false + } + return o.TailscaleSsh, true +} + +// HasTailscaleSsh returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasTailscaleSsh() bool { + if o != nil && !IsNil(o.TailscaleSsh) { + return true + } + + return false +} + +// SetTailscaleSsh gets a reference to the given ResourceRemoteInfoTailscaleSsh and assigns it to the TailscaleSsh field. +func (o *ResourceRemoteInfo) SetTailscaleSsh(v ResourceRemoteInfoTailscaleSsh) { + o.TailscaleSsh = &v +} + // GetPagerdutyRole returns the PagerdutyRole field value if set, zero value otherwise. func (o *ResourceRemoteInfo) GetPagerdutyRole() ResourceRemoteInfoPagerdutyRole { if o == nil || IsNil(o.PagerdutyRole) { @@ -906,6 +1607,38 @@ func (o *ResourceRemoteInfo) SetPagerdutyRole(v ResourceRemoteInfoPagerdutyRole) o.PagerdutyRole = &v } +// GetWorkdayRole returns the WorkdayRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetWorkdayRole() ResourceRemoteInfoWorkdayRole { + if o == nil || IsNil(o.WorkdayRole) { + var ret ResourceRemoteInfoWorkdayRole + return ret + } + return *o.WorkdayRole +} + +// GetWorkdayRoleOk returns a tuple with the WorkdayRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetWorkdayRoleOk() (*ResourceRemoteInfoWorkdayRole, bool) { + if o == nil || IsNil(o.WorkdayRole) { + return nil, false + } + return o.WorkdayRole, true +} + +// HasWorkdayRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasWorkdayRole() bool { + if o != nil && !IsNil(o.WorkdayRole) { + return true + } + + return false +} + +// SetWorkdayRole gets a reference to the given ResourceRemoteInfoWorkdayRole and assigns it to the WorkdayRole field. +func (o *ResourceRemoteInfo) SetWorkdayRole(v ResourceRemoteInfoWorkdayRole) { + o.WorkdayRole = &v +} + // GetSalesforcePermissionSet returns the SalesforcePermissionSet field value if set, zero value otherwise. func (o *ResourceRemoteInfo) GetSalesforcePermissionSet() ResourceRemoteInfoSalesforcePermissionSet { if o == nil || IsNil(o.SalesforcePermissionSet) { @@ -1098,6 +1831,230 @@ func (o *ResourceRemoteInfo) SetCoupaRole(v ResourceRemoteInfoCoupaRole) { o.CoupaRole = &v } +// GetCursorOrganization returns the CursorOrganization field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetCursorOrganization() ResourceRemoteInfoCursorOrganization { + if o == nil || IsNil(o.CursorOrganization) { + var ret ResourceRemoteInfoCursorOrganization + return ret + } + return *o.CursorOrganization +} + +// GetCursorOrganizationOk returns a tuple with the CursorOrganization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetCursorOrganizationOk() (*ResourceRemoteInfoCursorOrganization, bool) { + if o == nil || IsNil(o.CursorOrganization) { + return nil, false + } + return o.CursorOrganization, true +} + +// HasCursorOrganization returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasCursorOrganization() bool { + if o != nil && !IsNil(o.CursorOrganization) { + return true + } + + return false +} + +// SetCursorOrganization gets a reference to the given ResourceRemoteInfoCursorOrganization and assigns it to the CursorOrganization field. +func (o *ResourceRemoteInfo) SetCursorOrganization(v ResourceRemoteInfoCursorOrganization) { + o.CursorOrganization = &v +} + +// GetOpenaiPlatformProject returns the OpenaiPlatformProject field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetOpenaiPlatformProject() ResourceRemoteInfoOpenaiPlatformProject { + if o == nil || IsNil(o.OpenaiPlatformProject) { + var ret ResourceRemoteInfoOpenaiPlatformProject + return ret + } + return *o.OpenaiPlatformProject +} + +// GetOpenaiPlatformProjectOk returns a tuple with the OpenaiPlatformProject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetOpenaiPlatformProjectOk() (*ResourceRemoteInfoOpenaiPlatformProject, bool) { + if o == nil || IsNil(o.OpenaiPlatformProject) { + return nil, false + } + return o.OpenaiPlatformProject, true +} + +// HasOpenaiPlatformProject returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasOpenaiPlatformProject() bool { + if o != nil && !IsNil(o.OpenaiPlatformProject) { + return true + } + + return false +} + +// SetOpenaiPlatformProject gets a reference to the given ResourceRemoteInfoOpenaiPlatformProject and assigns it to the OpenaiPlatformProject field. +func (o *ResourceRemoteInfo) SetOpenaiPlatformProject(v ResourceRemoteInfoOpenaiPlatformProject) { + o.OpenaiPlatformProject = &v +} + +// GetOpenaiPlatformServiceAccount returns the OpenaiPlatformServiceAccount field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetOpenaiPlatformServiceAccount() ResourceRemoteInfoOpenaiPlatformServiceAccount { + if o == nil || IsNil(o.OpenaiPlatformServiceAccount) { + var ret ResourceRemoteInfoOpenaiPlatformServiceAccount + return ret + } + return *o.OpenaiPlatformServiceAccount +} + +// GetOpenaiPlatformServiceAccountOk returns a tuple with the OpenaiPlatformServiceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetOpenaiPlatformServiceAccountOk() (*ResourceRemoteInfoOpenaiPlatformServiceAccount, bool) { + if o == nil || IsNil(o.OpenaiPlatformServiceAccount) { + return nil, false + } + return o.OpenaiPlatformServiceAccount, true +} + +// HasOpenaiPlatformServiceAccount returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasOpenaiPlatformServiceAccount() bool { + if o != nil && !IsNil(o.OpenaiPlatformServiceAccount) { + return true + } + + return false +} + +// SetOpenaiPlatformServiceAccount gets a reference to the given ResourceRemoteInfoOpenaiPlatformServiceAccount and assigns it to the OpenaiPlatformServiceAccount field. +func (o *ResourceRemoteInfo) SetOpenaiPlatformServiceAccount(v ResourceRemoteInfoOpenaiPlatformServiceAccount) { + o.OpenaiPlatformServiceAccount = &v +} + +// GetAnthropicWorkspace returns the AnthropicWorkspace field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAnthropicWorkspace() ResourceRemoteInfoAnthropicWorkspace { + if o == nil || IsNil(o.AnthropicWorkspace) { + var ret ResourceRemoteInfoAnthropicWorkspace + return ret + } + return *o.AnthropicWorkspace +} + +// GetAnthropicWorkspaceOk returns a tuple with the AnthropicWorkspace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAnthropicWorkspaceOk() (*ResourceRemoteInfoAnthropicWorkspace, bool) { + if o == nil || IsNil(o.AnthropicWorkspace) { + return nil, false + } + return o.AnthropicWorkspace, true +} + +// HasAnthropicWorkspace returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAnthropicWorkspace() bool { + if o != nil && !IsNil(o.AnthropicWorkspace) { + return true + } + + return false +} + +// SetAnthropicWorkspace gets a reference to the given ResourceRemoteInfoAnthropicWorkspace and assigns it to the AnthropicWorkspace field. +func (o *ResourceRemoteInfo) SetAnthropicWorkspace(v ResourceRemoteInfoAnthropicWorkspace) { + o.AnthropicWorkspace = &v +} + +// GetOracleFusionRole returns the OracleFusionRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetOracleFusionRole() ResourceRemoteInfoOracleFusionRole { + if o == nil || IsNil(o.OracleFusionRole) { + var ret ResourceRemoteInfoOracleFusionRole + return ret + } + return *o.OracleFusionRole +} + +// GetOracleFusionRoleOk returns a tuple with the OracleFusionRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetOracleFusionRoleOk() (*ResourceRemoteInfoOracleFusionRole, bool) { + if o == nil || IsNil(o.OracleFusionRole) { + return nil, false + } + return o.OracleFusionRole, true +} + +// HasOracleFusionRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasOracleFusionRole() bool { + if o != nil && !IsNil(o.OracleFusionRole) { + return true + } + + return false +} + +// SetOracleFusionRole gets a reference to the given ResourceRemoteInfoOracleFusionRole and assigns it to the OracleFusionRole field. +func (o *ResourceRemoteInfo) SetOracleFusionRole(v ResourceRemoteInfoOracleFusionRole) { + o.OracleFusionRole = &v +} + +// GetDevinOrganization returns the DevinOrganization field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetDevinOrganization() ResourceRemoteInfoDevinOrganization { + if o == nil || IsNil(o.DevinOrganization) { + var ret ResourceRemoteInfoDevinOrganization + return ret + } + return *o.DevinOrganization +} + +// GetDevinOrganizationOk returns a tuple with the DevinOrganization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetDevinOrganizationOk() (*ResourceRemoteInfoDevinOrganization, bool) { + if o == nil || IsNil(o.DevinOrganization) { + return nil, false + } + return o.DevinOrganization, true +} + +// HasDevinOrganization returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasDevinOrganization() bool { + if o != nil && !IsNil(o.DevinOrganization) { + return true + } + + return false +} + +// SetDevinOrganization gets a reference to the given ResourceRemoteInfoDevinOrganization and assigns it to the DevinOrganization field. +func (o *ResourceRemoteInfo) SetDevinOrganization(v ResourceRemoteInfoDevinOrganization) { + o.DevinOrganization = &v +} + +// GetDevinRole returns the DevinRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetDevinRole() ResourceRemoteInfoDevinRole { + if o == nil || IsNil(o.DevinRole) { + var ret ResourceRemoteInfoDevinRole + return ret + } + return *o.DevinRole +} + +// GetDevinRoleOk returns a tuple with the DevinRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetDevinRoleOk() (*ResourceRemoteInfoDevinRole, bool) { + if o == nil || IsNil(o.DevinRole) { + return nil, false + } + return o.DevinRole, true +} + +// HasDevinRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasDevinRole() bool { + if o != nil && !IsNil(o.DevinRole) { + return true + } + + return false +} + +// SetDevinRole gets a reference to the given ResourceRemoteInfoDevinRole and assigns it to the DevinRole field. +func (o *ResourceRemoteInfo) SetDevinRole(v ResourceRemoteInfoDevinRole) { + o.DevinRole = &v +} + func (o ResourceRemoteInfo) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -1108,6 +2065,48 @@ func (o ResourceRemoteInfo) MarshalJSON() ([]byte, error) { func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.DatabricksAccountServicePrincipal) { + toSerialize["databricks_account_service_principal"] = o.DatabricksAccountServicePrincipal + } + if !IsNil(o.AzureSubscription) { + toSerialize["azure_subscription"] = o.AzureSubscription + } + if !IsNil(o.AzureResourceGroup) { + toSerialize["azure_resource_group"] = o.AzureResourceGroup + } + if !IsNil(o.AzureManagementGroup) { + toSerialize["azure_management_group"] = o.AzureManagementGroup + } + if !IsNil(o.AzureVirtualMachine) { + toSerialize["azure_virtual_machine"] = o.AzureVirtualMachine + } + if !IsNil(o.AzureStorageAccount) { + toSerialize["azure_storage_account"] = o.AzureStorageAccount + } + if !IsNil(o.AzureStorageContainer) { + toSerialize["azure_storage_container"] = o.AzureStorageContainer + } + if !IsNil(o.AzureSqlServer) { + toSerialize["azure_sql_server"] = o.AzureSqlServer + } + if !IsNil(o.AzureSqlDatabase) { + toSerialize["azure_sql_database"] = o.AzureSqlDatabase + } + if !IsNil(o.AzureSqlManagedInstance) { + toSerialize["azure_sql_managed_instance"] = o.AzureSqlManagedInstance + } + if !IsNil(o.AzureSqlManagedDatabase) { + toSerialize["azure_sql_managed_database"] = o.AzureSqlManagedDatabase + } + if !IsNil(o.AzureUserAssignedManagedIdentity) { + toSerialize["azure_user_assigned_managed_identity"] = o.AzureUserAssignedManagedIdentity + } + if !IsNil(o.AzureEnterpriseApp) { + toSerialize["azure_enterprise_app"] = o.AzureEnterpriseApp + } + if !IsNil(o.AzureEntraIdRole) { + toSerialize["azure_entra_id_role"] = o.AzureEntraIdRole + } if !IsNil(o.AwsOrganizationalUnit) { toSerialize["aws_organizational_unit"] = o.AwsOrganizationalUnit } @@ -1123,6 +2122,9 @@ func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.AwsEc2Instance) { toSerialize["aws_ec2_instance"] = o.AwsEc2Instance } + if !IsNil(o.AwsRdsCluster) { + toSerialize["aws_rds_cluster"] = o.AwsRdsCluster + } if !IsNil(o.AwsRdsInstance) { toSerialize["aws_rds_instance"] = o.AwsRdsInstance } @@ -1171,6 +2173,9 @@ func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.GithubOrgRole) { toSerialize["github_org_role"] = o.GithubOrgRole } + if !IsNil(o.GithubOrg) { + toSerialize["github_org"] = o.GithubOrg + } if !IsNil(o.GitlabProject) { toSerialize["gitlab_project"] = o.GitlabProject } @@ -1183,9 +2188,27 @@ func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.OktaCustomRole) { toSerialize["okta_custom_role"] = o.OktaCustomRole } + if !IsNil(o.SnowflakeDatabase) { + toSerialize["snowflake_database"] = o.SnowflakeDatabase + } + if !IsNil(o.SnowflakeSchema) { + toSerialize["snowflake_schema"] = o.SnowflakeSchema + } + if !IsNil(o.SnowflakeTable) { + toSerialize["snowflake_table"] = o.SnowflakeTable + } + if !IsNil(o.IlevelAdvancedRole) { + toSerialize["ilevel_advanced_role"] = o.IlevelAdvancedRole + } + if !IsNil(o.TailscaleSsh) { + toSerialize["tailscale_ssh"] = o.TailscaleSsh + } if !IsNil(o.PagerdutyRole) { toSerialize["pagerduty_role"] = o.PagerdutyRole } + if !IsNil(o.WorkdayRole) { + toSerialize["workday_role"] = o.WorkdayRole + } if !IsNil(o.SalesforcePermissionSet) { toSerialize["salesforce_permission_set"] = o.SalesforcePermissionSet } @@ -1204,6 +2227,27 @@ func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.CoupaRole) { toSerialize["coupa_role"] = o.CoupaRole } + if !IsNil(o.CursorOrganization) { + toSerialize["cursor_organization"] = o.CursorOrganization + } + if !IsNil(o.OpenaiPlatformProject) { + toSerialize["openai_platform_project"] = o.OpenaiPlatformProject + } + if !IsNil(o.OpenaiPlatformServiceAccount) { + toSerialize["openai_platform_service_account"] = o.OpenaiPlatformServiceAccount + } + if !IsNil(o.AnthropicWorkspace) { + toSerialize["anthropic_workspace"] = o.AnthropicWorkspace + } + if !IsNil(o.OracleFusionRole) { + toSerialize["oracle_fusion_role"] = o.OracleFusionRole + } + if !IsNil(o.DevinOrganization) { + toSerialize["devin_organization"] = o.DevinOrganization + } + if !IsNil(o.DevinRole) { + toSerialize["devin_role"] = o.DevinRole + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1226,11 +2270,26 @@ func (o *ResourceRemoteInfo) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "databricks_account_service_principal") + delete(additionalProperties, "azure_subscription") + delete(additionalProperties, "azure_resource_group") + delete(additionalProperties, "azure_management_group") + delete(additionalProperties, "azure_virtual_machine") + delete(additionalProperties, "azure_storage_account") + delete(additionalProperties, "azure_storage_container") + delete(additionalProperties, "azure_sql_server") + delete(additionalProperties, "azure_sql_database") + delete(additionalProperties, "azure_sql_managed_instance") + delete(additionalProperties, "azure_sql_managed_database") + delete(additionalProperties, "azure_user_assigned_managed_identity") + delete(additionalProperties, "azure_enterprise_app") + delete(additionalProperties, "azure_entra_id_role") delete(additionalProperties, "aws_organizational_unit") delete(additionalProperties, "aws_account") delete(additionalProperties, "aws_permission_set") delete(additionalProperties, "aws_iam_role") delete(additionalProperties, "aws_ec2_instance") + delete(additionalProperties, "aws_rds_cluster") delete(additionalProperties, "aws_rds_instance") delete(additionalProperties, "aws_eks_cluster") delete(additionalProperties, "custom_connector") @@ -1247,17 +2306,31 @@ func (o *ResourceRemoteInfo) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "google_workspace_role") delete(additionalProperties, "github_repo") delete(additionalProperties, "github_org_role") + delete(additionalProperties, "github_org") delete(additionalProperties, "gitlab_project") delete(additionalProperties, "okta_app") delete(additionalProperties, "okta_standard_role") delete(additionalProperties, "okta_custom_role") + delete(additionalProperties, "snowflake_database") + delete(additionalProperties, "snowflake_schema") + delete(additionalProperties, "snowflake_table") + delete(additionalProperties, "ilevel_advanced_role") + delete(additionalProperties, "tailscale_ssh") delete(additionalProperties, "pagerduty_role") + delete(additionalProperties, "workday_role") delete(additionalProperties, "salesforce_permission_set") delete(additionalProperties, "salesforce_profile") delete(additionalProperties, "salesforce_role") delete(additionalProperties, "teleport_role") delete(additionalProperties, "datastax_astra_role") delete(additionalProperties, "coupa_role") + delete(additionalProperties, "cursor_organization") + delete(additionalProperties, "openai_platform_project") + delete(additionalProperties, "openai_platform_service_account") + delete(additionalProperties, "anthropic_workspace") + delete(additionalProperties, "oracle_fusion_role") + delete(additionalProperties, "devin_organization") + delete(additionalProperties, "devin_role") o.AdditionalProperties = additionalProperties } diff --git a/model_resource_remote_info_anthropic_workspace.go b/model_resource_remote_info_anthropic_workspace.go new file mode 100644 index 0000000..50a0141 --- /dev/null +++ b/model_resource_remote_info_anthropic_workspace.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 ResourceRemoteInfoAnthropicWorkspace type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAnthropicWorkspace{} + +// ResourceRemoteInfoAnthropicWorkspace Remote info for Anthropic workspace. +type ResourceRemoteInfoAnthropicWorkspace struct { + // The id of the workspace. + WorkspaceId string `json:"workspace_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAnthropicWorkspace ResourceRemoteInfoAnthropicWorkspace + +// NewResourceRemoteInfoAnthropicWorkspace instantiates a new ResourceRemoteInfoAnthropicWorkspace 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 NewResourceRemoteInfoAnthropicWorkspace(workspaceId string) *ResourceRemoteInfoAnthropicWorkspace { + this := ResourceRemoteInfoAnthropicWorkspace{} + this.WorkspaceId = workspaceId + return &this +} + +// NewResourceRemoteInfoAnthropicWorkspaceWithDefaults instantiates a new ResourceRemoteInfoAnthropicWorkspace 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 NewResourceRemoteInfoAnthropicWorkspaceWithDefaults() *ResourceRemoteInfoAnthropicWorkspace { + this := ResourceRemoteInfoAnthropicWorkspace{} + return &this +} + +// GetWorkspaceId returns the WorkspaceId field value +func (o *ResourceRemoteInfoAnthropicWorkspace) GetWorkspaceId() string { + if o == nil { + var ret string + return ret + } + + return o.WorkspaceId +} + +// GetWorkspaceIdOk returns a tuple with the WorkspaceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAnthropicWorkspace) GetWorkspaceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.WorkspaceId, true +} + +// SetWorkspaceId sets field value +func (o *ResourceRemoteInfoAnthropicWorkspace) SetWorkspaceId(v string) { + o.WorkspaceId = v +} + +func (o ResourceRemoteInfoAnthropicWorkspace) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAnthropicWorkspace) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["workspace_id"] = o.WorkspaceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAnthropicWorkspace) 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{ + "workspace_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) + } + } + + varResourceRemoteInfoAnthropicWorkspace := _ResourceRemoteInfoAnthropicWorkspace{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAnthropicWorkspace) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAnthropicWorkspace(varResourceRemoteInfoAnthropicWorkspace) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "workspace_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAnthropicWorkspace struct { + value *ResourceRemoteInfoAnthropicWorkspace + isSet bool +} + +func (v NullableResourceRemoteInfoAnthropicWorkspace) Get() *ResourceRemoteInfoAnthropicWorkspace { + return v.value +} + +func (v *NullableResourceRemoteInfoAnthropicWorkspace) Set(val *ResourceRemoteInfoAnthropicWorkspace) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAnthropicWorkspace) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAnthropicWorkspace) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAnthropicWorkspace(val *ResourceRemoteInfoAnthropicWorkspace) *NullableResourceRemoteInfoAnthropicWorkspace { + return &NullableResourceRemoteInfoAnthropicWorkspace{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAnthropicWorkspace) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAnthropicWorkspace) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_aws_rds_cluster.go b/model_resource_remote_info_aws_rds_cluster.go new file mode 100644 index 0000000..ab46e85 --- /dev/null +++ b/model_resource_remote_info_aws_rds_cluster.go @@ -0,0 +1,319 @@ +/* +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 ResourceRemoteInfoAwsRdsCluster type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAwsRdsCluster{} + +// ResourceRemoteInfoAwsRdsCluster Remote info for AWS RDS cluster. +type ResourceRemoteInfoAwsRdsCluster struct { + // The clusterId of the RDS cluster. + ClusterId string `json:"cluster_id"` + // The region of the RDS cluster. + Region string `json:"region"` + // The resourceId of the RDS cluster. + ResourceId string `json:"resource_id"` + // The id of the AWS account. Required for AWS Organizations. + AccountId string `json:"account_id"` + // The name of the database in the RDS cluster. This can be the value of the tag `opal:database-name` or the database name. + DatabaseName string `json:"database_name"` + Engine RDSEngineEnum `json:"engine"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAwsRdsCluster ResourceRemoteInfoAwsRdsCluster + +// NewResourceRemoteInfoAwsRdsCluster instantiates a new ResourceRemoteInfoAwsRdsCluster 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 NewResourceRemoteInfoAwsRdsCluster(clusterId string, region string, resourceId string, accountId string, databaseName string, engine RDSEngineEnum) *ResourceRemoteInfoAwsRdsCluster { + this := ResourceRemoteInfoAwsRdsCluster{} + this.ClusterId = clusterId + this.Region = region + this.ResourceId = resourceId + this.AccountId = accountId + this.DatabaseName = databaseName + this.Engine = engine + return &this +} + +// NewResourceRemoteInfoAwsRdsClusterWithDefaults instantiates a new ResourceRemoteInfoAwsRdsCluster 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 NewResourceRemoteInfoAwsRdsClusterWithDefaults() *ResourceRemoteInfoAwsRdsCluster { + this := ResourceRemoteInfoAwsRdsCluster{} + return &this +} + +// GetClusterId returns the ClusterId field value +func (o *ResourceRemoteInfoAwsRdsCluster) GetClusterId() string { + if o == nil { + var ret string + return ret + } + + return o.ClusterId +} + +// GetClusterIdOk returns a tuple with the ClusterId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsRdsCluster) GetClusterIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ClusterId, true +} + +// SetClusterId sets field value +func (o *ResourceRemoteInfoAwsRdsCluster) SetClusterId(v string) { + o.ClusterId = v +} + +// GetRegion returns the Region field value +func (o *ResourceRemoteInfoAwsRdsCluster) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsRdsCluster) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *ResourceRemoteInfoAwsRdsCluster) SetRegion(v string) { + o.Region = v +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAwsRdsCluster) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsRdsCluster) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAwsRdsCluster) SetResourceId(v string) { + o.ResourceId = v +} + +// GetAccountId returns the AccountId field value +func (o *ResourceRemoteInfoAwsRdsCluster) GetAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.AccountId +} + +// GetAccountIdOk returns a tuple with the AccountId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsRdsCluster) GetAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccountId, true +} + +// SetAccountId sets field value +func (o *ResourceRemoteInfoAwsRdsCluster) SetAccountId(v string) { + o.AccountId = v +} + +// GetDatabaseName returns the DatabaseName field value +func (o *ResourceRemoteInfoAwsRdsCluster) GetDatabaseName() string { + if o == nil { + var ret string + return ret + } + + return o.DatabaseName +} + +// GetDatabaseNameOk returns a tuple with the DatabaseName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsRdsCluster) GetDatabaseNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DatabaseName, true +} + +// SetDatabaseName sets field value +func (o *ResourceRemoteInfoAwsRdsCluster) SetDatabaseName(v string) { + o.DatabaseName = v +} + +// GetEngine returns the Engine field value +func (o *ResourceRemoteInfoAwsRdsCluster) GetEngine() RDSEngineEnum { + if o == nil { + var ret RDSEngineEnum + return ret + } + + return o.Engine +} + +// GetEngineOk returns a tuple with the Engine field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsRdsCluster) GetEngineOk() (*RDSEngineEnum, bool) { + if o == nil { + return nil, false + } + return &o.Engine, true +} + +// SetEngine sets field value +func (o *ResourceRemoteInfoAwsRdsCluster) SetEngine(v RDSEngineEnum) { + o.Engine = v +} + +func (o ResourceRemoteInfoAwsRdsCluster) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAwsRdsCluster) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cluster_id"] = o.ClusterId + toSerialize["region"] = o.Region + toSerialize["resource_id"] = o.ResourceId + toSerialize["account_id"] = o.AccountId + toSerialize["database_name"] = o.DatabaseName + toSerialize["engine"] = o.Engine + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAwsRdsCluster) 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{ + "cluster_id", + "region", + "resource_id", + "account_id", + "database_name", + "engine", + } + + 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) + } + } + + varResourceRemoteInfoAwsRdsCluster := _ResourceRemoteInfoAwsRdsCluster{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAwsRdsCluster) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAwsRdsCluster(varResourceRemoteInfoAwsRdsCluster) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cluster_id") + delete(additionalProperties, "region") + delete(additionalProperties, "resource_id") + delete(additionalProperties, "account_id") + delete(additionalProperties, "database_name") + delete(additionalProperties, "engine") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAwsRdsCluster struct { + value *ResourceRemoteInfoAwsRdsCluster + isSet bool +} + +func (v NullableResourceRemoteInfoAwsRdsCluster) Get() *ResourceRemoteInfoAwsRdsCluster { + return v.value +} + +func (v *NullableResourceRemoteInfoAwsRdsCluster) Set(val *ResourceRemoteInfoAwsRdsCluster) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAwsRdsCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAwsRdsCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAwsRdsCluster(val *ResourceRemoteInfoAwsRdsCluster) *NullableResourceRemoteInfoAwsRdsCluster { + return &NullableResourceRemoteInfoAwsRdsCluster{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAwsRdsCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAwsRdsCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_enterprise_app.go b/model_resource_remote_info_azure_enterprise_app.go new file mode 100644 index 0000000..bc44427 --- /dev/null +++ b/model_resource_remote_info_azure_enterprise_app.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 ResourceRemoteInfoAzureEnterpriseApp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureEnterpriseApp{} + +// ResourceRemoteInfoAzureEnterpriseApp Remote info for Azure Enterprise App. +type ResourceRemoteInfoAzureEnterpriseApp struct { + // The remote application identifier (service principal or application object ID). + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureEnterpriseApp ResourceRemoteInfoAzureEnterpriseApp + +// NewResourceRemoteInfoAzureEnterpriseApp instantiates a new ResourceRemoteInfoAzureEnterpriseApp 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 NewResourceRemoteInfoAzureEnterpriseApp(resourceId string) *ResourceRemoteInfoAzureEnterpriseApp { + this := ResourceRemoteInfoAzureEnterpriseApp{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureEnterpriseAppWithDefaults instantiates a new ResourceRemoteInfoAzureEnterpriseApp 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 NewResourceRemoteInfoAzureEnterpriseAppWithDefaults() *ResourceRemoteInfoAzureEnterpriseApp { + this := ResourceRemoteInfoAzureEnterpriseApp{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureEnterpriseApp) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureEnterpriseApp) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureEnterpriseApp) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureEnterpriseApp) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureEnterpriseApp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureEnterpriseApp) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureEnterpriseApp := _ResourceRemoteInfoAzureEnterpriseApp{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureEnterpriseApp) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureEnterpriseApp(varResourceRemoteInfoAzureEnterpriseApp) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureEnterpriseApp struct { + value *ResourceRemoteInfoAzureEnterpriseApp + isSet bool +} + +func (v NullableResourceRemoteInfoAzureEnterpriseApp) Get() *ResourceRemoteInfoAzureEnterpriseApp { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureEnterpriseApp) Set(val *ResourceRemoteInfoAzureEnterpriseApp) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureEnterpriseApp) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureEnterpriseApp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureEnterpriseApp(val *ResourceRemoteInfoAzureEnterpriseApp) *NullableResourceRemoteInfoAzureEnterpriseApp { + return &NullableResourceRemoteInfoAzureEnterpriseApp{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureEnterpriseApp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureEnterpriseApp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_entra_id_role.go b/model_resource_remote_info_azure_entra_id_role.go new file mode 100644 index 0000000..3d5522b --- /dev/null +++ b/model_resource_remote_info_azure_entra_id_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 ResourceRemoteInfoAzureEntraIdRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureEntraIdRole{} + +// ResourceRemoteInfoAzureEntraIdRole Remote info for Azure Entra ID role. +type ResourceRemoteInfoAzureEntraIdRole struct { + // The remote role identifier from Entra (object ID). + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureEntraIdRole ResourceRemoteInfoAzureEntraIdRole + +// NewResourceRemoteInfoAzureEntraIdRole instantiates a new ResourceRemoteInfoAzureEntraIdRole 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 NewResourceRemoteInfoAzureEntraIdRole(resourceId string) *ResourceRemoteInfoAzureEntraIdRole { + this := ResourceRemoteInfoAzureEntraIdRole{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureEntraIdRoleWithDefaults instantiates a new ResourceRemoteInfoAzureEntraIdRole 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 NewResourceRemoteInfoAzureEntraIdRoleWithDefaults() *ResourceRemoteInfoAzureEntraIdRole { + this := ResourceRemoteInfoAzureEntraIdRole{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureEntraIdRole) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureEntraIdRole) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureEntraIdRole) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureEntraIdRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureEntraIdRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureEntraIdRole) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureEntraIdRole := _ResourceRemoteInfoAzureEntraIdRole{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureEntraIdRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureEntraIdRole(varResourceRemoteInfoAzureEntraIdRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureEntraIdRole struct { + value *ResourceRemoteInfoAzureEntraIdRole + isSet bool +} + +func (v NullableResourceRemoteInfoAzureEntraIdRole) Get() *ResourceRemoteInfoAzureEntraIdRole { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureEntraIdRole) Set(val *ResourceRemoteInfoAzureEntraIdRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureEntraIdRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureEntraIdRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureEntraIdRole(val *ResourceRemoteInfoAzureEntraIdRole) *NullableResourceRemoteInfoAzureEntraIdRole { + return &NullableResourceRemoteInfoAzureEntraIdRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureEntraIdRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureEntraIdRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_management_group.go b/model_resource_remote_info_azure_management_group.go new file mode 100644 index 0000000..b92699a --- /dev/null +++ b/model_resource_remote_info_azure_management_group.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 ResourceRemoteInfoAzureManagementGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureManagementGroup{} + +// ResourceRemoteInfoAzureManagementGroup Remote info for Azure management group. +type ResourceRemoteInfoAzureManagementGroup struct { + // The ARM resource ID of the management group. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureManagementGroup ResourceRemoteInfoAzureManagementGroup + +// NewResourceRemoteInfoAzureManagementGroup instantiates a new ResourceRemoteInfoAzureManagementGroup 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 NewResourceRemoteInfoAzureManagementGroup(resourceId string) *ResourceRemoteInfoAzureManagementGroup { + this := ResourceRemoteInfoAzureManagementGroup{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureManagementGroupWithDefaults instantiates a new ResourceRemoteInfoAzureManagementGroup 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 NewResourceRemoteInfoAzureManagementGroupWithDefaults() *ResourceRemoteInfoAzureManagementGroup { + this := ResourceRemoteInfoAzureManagementGroup{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureManagementGroup) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureManagementGroup) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureManagementGroup) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureManagementGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureManagementGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureManagementGroup) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureManagementGroup := _ResourceRemoteInfoAzureManagementGroup{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureManagementGroup) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureManagementGroup(varResourceRemoteInfoAzureManagementGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureManagementGroup struct { + value *ResourceRemoteInfoAzureManagementGroup + isSet bool +} + +func (v NullableResourceRemoteInfoAzureManagementGroup) Get() *ResourceRemoteInfoAzureManagementGroup { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureManagementGroup) Set(val *ResourceRemoteInfoAzureManagementGroup) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureManagementGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureManagementGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureManagementGroup(val *ResourceRemoteInfoAzureManagementGroup) *NullableResourceRemoteInfoAzureManagementGroup { + return &NullableResourceRemoteInfoAzureManagementGroup{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureManagementGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureManagementGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_resource_group.go b/model_resource_remote_info_azure_resource_group.go new file mode 100644 index 0000000..0348852 --- /dev/null +++ b/model_resource_remote_info_azure_resource_group.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 ResourceRemoteInfoAzureResourceGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureResourceGroup{} + +// ResourceRemoteInfoAzureResourceGroup Remote info for Azure resource group. +type ResourceRemoteInfoAzureResourceGroup struct { + // The ARM resource ID of the resource group. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureResourceGroup ResourceRemoteInfoAzureResourceGroup + +// NewResourceRemoteInfoAzureResourceGroup instantiates a new ResourceRemoteInfoAzureResourceGroup 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 NewResourceRemoteInfoAzureResourceGroup(resourceId string) *ResourceRemoteInfoAzureResourceGroup { + this := ResourceRemoteInfoAzureResourceGroup{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureResourceGroupWithDefaults instantiates a new ResourceRemoteInfoAzureResourceGroup 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 NewResourceRemoteInfoAzureResourceGroupWithDefaults() *ResourceRemoteInfoAzureResourceGroup { + this := ResourceRemoteInfoAzureResourceGroup{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureResourceGroup) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureResourceGroup) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureResourceGroup) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureResourceGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureResourceGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureResourceGroup) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureResourceGroup := _ResourceRemoteInfoAzureResourceGroup{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureResourceGroup) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureResourceGroup(varResourceRemoteInfoAzureResourceGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureResourceGroup struct { + value *ResourceRemoteInfoAzureResourceGroup + isSet bool +} + +func (v NullableResourceRemoteInfoAzureResourceGroup) Get() *ResourceRemoteInfoAzureResourceGroup { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureResourceGroup) Set(val *ResourceRemoteInfoAzureResourceGroup) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureResourceGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureResourceGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureResourceGroup(val *ResourceRemoteInfoAzureResourceGroup) *NullableResourceRemoteInfoAzureResourceGroup { + return &NullableResourceRemoteInfoAzureResourceGroup{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureResourceGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureResourceGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_sql_database.go b/model_resource_remote_info_azure_sql_database.go new file mode 100644 index 0000000..a5ac8e7 --- /dev/null +++ b/model_resource_remote_info_azure_sql_database.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 ResourceRemoteInfoAzureSqlDatabase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureSqlDatabase{} + +// ResourceRemoteInfoAzureSqlDatabase Remote info for Azure SQL database. +type ResourceRemoteInfoAzureSqlDatabase struct { + // The ARM resource ID of the SQL database. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureSqlDatabase ResourceRemoteInfoAzureSqlDatabase + +// NewResourceRemoteInfoAzureSqlDatabase instantiates a new ResourceRemoteInfoAzureSqlDatabase 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 NewResourceRemoteInfoAzureSqlDatabase(resourceId string) *ResourceRemoteInfoAzureSqlDatabase { + this := ResourceRemoteInfoAzureSqlDatabase{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureSqlDatabaseWithDefaults instantiates a new ResourceRemoteInfoAzureSqlDatabase 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 NewResourceRemoteInfoAzureSqlDatabaseWithDefaults() *ResourceRemoteInfoAzureSqlDatabase { + this := ResourceRemoteInfoAzureSqlDatabase{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureSqlDatabase) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureSqlDatabase) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureSqlDatabase) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureSqlDatabase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureSqlDatabase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureSqlDatabase) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureSqlDatabase := _ResourceRemoteInfoAzureSqlDatabase{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureSqlDatabase) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlDatabase(varResourceRemoteInfoAzureSqlDatabase) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureSqlDatabase struct { + value *ResourceRemoteInfoAzureSqlDatabase + isSet bool +} + +func (v NullableResourceRemoteInfoAzureSqlDatabase) Get() *ResourceRemoteInfoAzureSqlDatabase { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureSqlDatabase) Set(val *ResourceRemoteInfoAzureSqlDatabase) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureSqlDatabase) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureSqlDatabase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureSqlDatabase(val *ResourceRemoteInfoAzureSqlDatabase) *NullableResourceRemoteInfoAzureSqlDatabase { + return &NullableResourceRemoteInfoAzureSqlDatabase{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureSqlDatabase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureSqlDatabase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_sql_managed_database.go b/model_resource_remote_info_azure_sql_managed_database.go new file mode 100644 index 0000000..266bbc6 --- /dev/null +++ b/model_resource_remote_info_azure_sql_managed_database.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 ResourceRemoteInfoAzureSqlManagedDatabase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureSqlManagedDatabase{} + +// ResourceRemoteInfoAzureSqlManagedDatabase Remote info for Azure SQL managed database. +type ResourceRemoteInfoAzureSqlManagedDatabase struct { + // The ARM resource ID of the SQL managed database. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureSqlManagedDatabase ResourceRemoteInfoAzureSqlManagedDatabase + +// NewResourceRemoteInfoAzureSqlManagedDatabase instantiates a new ResourceRemoteInfoAzureSqlManagedDatabase 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 NewResourceRemoteInfoAzureSqlManagedDatabase(resourceId string) *ResourceRemoteInfoAzureSqlManagedDatabase { + this := ResourceRemoteInfoAzureSqlManagedDatabase{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureSqlManagedDatabaseWithDefaults instantiates a new ResourceRemoteInfoAzureSqlManagedDatabase 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 NewResourceRemoteInfoAzureSqlManagedDatabaseWithDefaults() *ResourceRemoteInfoAzureSqlManagedDatabase { + this := ResourceRemoteInfoAzureSqlManagedDatabase{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureSqlManagedDatabase) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureSqlManagedDatabase) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureSqlManagedDatabase) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureSqlManagedDatabase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureSqlManagedDatabase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureSqlManagedDatabase) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureSqlManagedDatabase := _ResourceRemoteInfoAzureSqlManagedDatabase{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureSqlManagedDatabase) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlManagedDatabase(varResourceRemoteInfoAzureSqlManagedDatabase) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureSqlManagedDatabase struct { + value *ResourceRemoteInfoAzureSqlManagedDatabase + isSet bool +} + +func (v NullableResourceRemoteInfoAzureSqlManagedDatabase) Get() *ResourceRemoteInfoAzureSqlManagedDatabase { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureSqlManagedDatabase) Set(val *ResourceRemoteInfoAzureSqlManagedDatabase) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureSqlManagedDatabase) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureSqlManagedDatabase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureSqlManagedDatabase(val *ResourceRemoteInfoAzureSqlManagedDatabase) *NullableResourceRemoteInfoAzureSqlManagedDatabase { + return &NullableResourceRemoteInfoAzureSqlManagedDatabase{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureSqlManagedDatabase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureSqlManagedDatabase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_sql_managed_instance.go b/model_resource_remote_info_azure_sql_managed_instance.go new file mode 100644 index 0000000..ffbed7a --- /dev/null +++ b/model_resource_remote_info_azure_sql_managed_instance.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 ResourceRemoteInfoAzureSqlManagedInstance type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureSqlManagedInstance{} + +// ResourceRemoteInfoAzureSqlManagedInstance Remote info for Azure SQL managed instance. +type ResourceRemoteInfoAzureSqlManagedInstance struct { + // The ARM resource ID of the SQL managed instance. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureSqlManagedInstance ResourceRemoteInfoAzureSqlManagedInstance + +// NewResourceRemoteInfoAzureSqlManagedInstance instantiates a new ResourceRemoteInfoAzureSqlManagedInstance 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 NewResourceRemoteInfoAzureSqlManagedInstance(resourceId string) *ResourceRemoteInfoAzureSqlManagedInstance { + this := ResourceRemoteInfoAzureSqlManagedInstance{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureSqlManagedInstanceWithDefaults instantiates a new ResourceRemoteInfoAzureSqlManagedInstance 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 NewResourceRemoteInfoAzureSqlManagedInstanceWithDefaults() *ResourceRemoteInfoAzureSqlManagedInstance { + this := ResourceRemoteInfoAzureSqlManagedInstance{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureSqlManagedInstance) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureSqlManagedInstance) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureSqlManagedInstance) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureSqlManagedInstance) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureSqlManagedInstance) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureSqlManagedInstance) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureSqlManagedInstance := _ResourceRemoteInfoAzureSqlManagedInstance{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureSqlManagedInstance) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlManagedInstance(varResourceRemoteInfoAzureSqlManagedInstance) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureSqlManagedInstance struct { + value *ResourceRemoteInfoAzureSqlManagedInstance + isSet bool +} + +func (v NullableResourceRemoteInfoAzureSqlManagedInstance) Get() *ResourceRemoteInfoAzureSqlManagedInstance { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureSqlManagedInstance) Set(val *ResourceRemoteInfoAzureSqlManagedInstance) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureSqlManagedInstance) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureSqlManagedInstance) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureSqlManagedInstance(val *ResourceRemoteInfoAzureSqlManagedInstance) *NullableResourceRemoteInfoAzureSqlManagedInstance { + return &NullableResourceRemoteInfoAzureSqlManagedInstance{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureSqlManagedInstance) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureSqlManagedInstance) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_sql_server.go b/model_resource_remote_info_azure_sql_server.go new file mode 100644 index 0000000..c899962 --- /dev/null +++ b/model_resource_remote_info_azure_sql_server.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 ResourceRemoteInfoAzureSqlServer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureSqlServer{} + +// ResourceRemoteInfoAzureSqlServer Remote info for Azure SQL server. +type ResourceRemoteInfoAzureSqlServer struct { + // The ARM resource ID of the SQL server. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureSqlServer ResourceRemoteInfoAzureSqlServer + +// NewResourceRemoteInfoAzureSqlServer instantiates a new ResourceRemoteInfoAzureSqlServer 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 NewResourceRemoteInfoAzureSqlServer(resourceId string) *ResourceRemoteInfoAzureSqlServer { + this := ResourceRemoteInfoAzureSqlServer{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureSqlServerWithDefaults instantiates a new ResourceRemoteInfoAzureSqlServer 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 NewResourceRemoteInfoAzureSqlServerWithDefaults() *ResourceRemoteInfoAzureSqlServer { + this := ResourceRemoteInfoAzureSqlServer{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureSqlServer) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureSqlServer) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureSqlServer) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureSqlServer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureSqlServer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureSqlServer) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureSqlServer := _ResourceRemoteInfoAzureSqlServer{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureSqlServer) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlServer(varResourceRemoteInfoAzureSqlServer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureSqlServer struct { + value *ResourceRemoteInfoAzureSqlServer + isSet bool +} + +func (v NullableResourceRemoteInfoAzureSqlServer) Get() *ResourceRemoteInfoAzureSqlServer { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureSqlServer) Set(val *ResourceRemoteInfoAzureSqlServer) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureSqlServer) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureSqlServer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureSqlServer(val *ResourceRemoteInfoAzureSqlServer) *NullableResourceRemoteInfoAzureSqlServer { + return &NullableResourceRemoteInfoAzureSqlServer{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureSqlServer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureSqlServer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_storage_account.go b/model_resource_remote_info_azure_storage_account.go new file mode 100644 index 0000000..8c218bd --- /dev/null +++ b/model_resource_remote_info_azure_storage_account.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 ResourceRemoteInfoAzureStorageAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureStorageAccount{} + +// ResourceRemoteInfoAzureStorageAccount Remote info for Azure storage account. +type ResourceRemoteInfoAzureStorageAccount struct { + // The ARM resource ID of the storage account. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureStorageAccount ResourceRemoteInfoAzureStorageAccount + +// NewResourceRemoteInfoAzureStorageAccount instantiates a new ResourceRemoteInfoAzureStorageAccount 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 NewResourceRemoteInfoAzureStorageAccount(resourceId string) *ResourceRemoteInfoAzureStorageAccount { + this := ResourceRemoteInfoAzureStorageAccount{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureStorageAccountWithDefaults instantiates a new ResourceRemoteInfoAzureStorageAccount 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 NewResourceRemoteInfoAzureStorageAccountWithDefaults() *ResourceRemoteInfoAzureStorageAccount { + this := ResourceRemoteInfoAzureStorageAccount{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureStorageAccount) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureStorageAccount) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureStorageAccount) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureStorageAccount) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureStorageAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureStorageAccount) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureStorageAccount := _ResourceRemoteInfoAzureStorageAccount{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureStorageAccount) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureStorageAccount(varResourceRemoteInfoAzureStorageAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureStorageAccount struct { + value *ResourceRemoteInfoAzureStorageAccount + isSet bool +} + +func (v NullableResourceRemoteInfoAzureStorageAccount) Get() *ResourceRemoteInfoAzureStorageAccount { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureStorageAccount) Set(val *ResourceRemoteInfoAzureStorageAccount) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureStorageAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureStorageAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureStorageAccount(val *ResourceRemoteInfoAzureStorageAccount) *NullableResourceRemoteInfoAzureStorageAccount { + return &NullableResourceRemoteInfoAzureStorageAccount{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureStorageAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureStorageAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_storage_container.go b/model_resource_remote_info_azure_storage_container.go new file mode 100644 index 0000000..a2b01c0 --- /dev/null +++ b/model_resource_remote_info_azure_storage_container.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 ResourceRemoteInfoAzureStorageContainer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureStorageContainer{} + +// ResourceRemoteInfoAzureStorageContainer Remote info for Azure storage container. +type ResourceRemoteInfoAzureStorageContainer struct { + // The ARM resource ID of the storage container. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureStorageContainer ResourceRemoteInfoAzureStorageContainer + +// NewResourceRemoteInfoAzureStorageContainer instantiates a new ResourceRemoteInfoAzureStorageContainer 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 NewResourceRemoteInfoAzureStorageContainer(resourceId string) *ResourceRemoteInfoAzureStorageContainer { + this := ResourceRemoteInfoAzureStorageContainer{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureStorageContainerWithDefaults instantiates a new ResourceRemoteInfoAzureStorageContainer 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 NewResourceRemoteInfoAzureStorageContainerWithDefaults() *ResourceRemoteInfoAzureStorageContainer { + this := ResourceRemoteInfoAzureStorageContainer{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureStorageContainer) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureStorageContainer) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureStorageContainer) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureStorageContainer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureStorageContainer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureStorageContainer) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureStorageContainer := _ResourceRemoteInfoAzureStorageContainer{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureStorageContainer) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureStorageContainer(varResourceRemoteInfoAzureStorageContainer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureStorageContainer struct { + value *ResourceRemoteInfoAzureStorageContainer + isSet bool +} + +func (v NullableResourceRemoteInfoAzureStorageContainer) Get() *ResourceRemoteInfoAzureStorageContainer { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureStorageContainer) Set(val *ResourceRemoteInfoAzureStorageContainer) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureStorageContainer) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureStorageContainer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureStorageContainer(val *ResourceRemoteInfoAzureStorageContainer) *NullableResourceRemoteInfoAzureStorageContainer { + return &NullableResourceRemoteInfoAzureStorageContainer{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureStorageContainer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureStorageContainer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_subscription.go b/model_resource_remote_info_azure_subscription.go new file mode 100644 index 0000000..6c745f1 --- /dev/null +++ b/model_resource_remote_info_azure_subscription.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 ResourceRemoteInfoAzureSubscription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureSubscription{} + +// ResourceRemoteInfoAzureSubscription Remote info for Azure subscription. +type ResourceRemoteInfoAzureSubscription struct { + // The ARM resource ID of the subscription. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureSubscription ResourceRemoteInfoAzureSubscription + +// NewResourceRemoteInfoAzureSubscription instantiates a new ResourceRemoteInfoAzureSubscription 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 NewResourceRemoteInfoAzureSubscription(resourceId string) *ResourceRemoteInfoAzureSubscription { + this := ResourceRemoteInfoAzureSubscription{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureSubscriptionWithDefaults instantiates a new ResourceRemoteInfoAzureSubscription 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 NewResourceRemoteInfoAzureSubscriptionWithDefaults() *ResourceRemoteInfoAzureSubscription { + this := ResourceRemoteInfoAzureSubscription{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureSubscription) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureSubscription) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureSubscription) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureSubscription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureSubscription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureSubscription) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureSubscription := _ResourceRemoteInfoAzureSubscription{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureSubscription) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSubscription(varResourceRemoteInfoAzureSubscription) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureSubscription struct { + value *ResourceRemoteInfoAzureSubscription + isSet bool +} + +func (v NullableResourceRemoteInfoAzureSubscription) Get() *ResourceRemoteInfoAzureSubscription { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureSubscription) Set(val *ResourceRemoteInfoAzureSubscription) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureSubscription(val *ResourceRemoteInfoAzureSubscription) *NullableResourceRemoteInfoAzureSubscription { + return &NullableResourceRemoteInfoAzureSubscription{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_user_assigned_managed_identity.go b/model_resource_remote_info_azure_user_assigned_managed_identity.go new file mode 100644 index 0000000..30b5d71 --- /dev/null +++ b/model_resource_remote_info_azure_user_assigned_managed_identity.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 ResourceRemoteInfoAzureUserAssignedManagedIdentity type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureUserAssignedManagedIdentity{} + +// ResourceRemoteInfoAzureUserAssignedManagedIdentity Remote info for Azure user assigned managed identity. +type ResourceRemoteInfoAzureUserAssignedManagedIdentity struct { + // The ARM resource ID of the user assigned managed identity. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureUserAssignedManagedIdentity ResourceRemoteInfoAzureUserAssignedManagedIdentity + +// NewResourceRemoteInfoAzureUserAssignedManagedIdentity instantiates a new ResourceRemoteInfoAzureUserAssignedManagedIdentity 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 NewResourceRemoteInfoAzureUserAssignedManagedIdentity(resourceId string) *ResourceRemoteInfoAzureUserAssignedManagedIdentity { + this := ResourceRemoteInfoAzureUserAssignedManagedIdentity{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureUserAssignedManagedIdentityWithDefaults instantiates a new ResourceRemoteInfoAzureUserAssignedManagedIdentity 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 NewResourceRemoteInfoAzureUserAssignedManagedIdentityWithDefaults() *ResourceRemoteInfoAzureUserAssignedManagedIdentity { + this := ResourceRemoteInfoAzureUserAssignedManagedIdentity{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureUserAssignedManagedIdentity) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureUserAssignedManagedIdentity) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureUserAssignedManagedIdentity) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureUserAssignedManagedIdentity) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureUserAssignedManagedIdentity) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureUserAssignedManagedIdentity) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureUserAssignedManagedIdentity := _ResourceRemoteInfoAzureUserAssignedManagedIdentity{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureUserAssignedManagedIdentity) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureUserAssignedManagedIdentity(varResourceRemoteInfoAzureUserAssignedManagedIdentity) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureUserAssignedManagedIdentity struct { + value *ResourceRemoteInfoAzureUserAssignedManagedIdentity + isSet bool +} + +func (v NullableResourceRemoteInfoAzureUserAssignedManagedIdentity) Get() *ResourceRemoteInfoAzureUserAssignedManagedIdentity { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureUserAssignedManagedIdentity) Set(val *ResourceRemoteInfoAzureUserAssignedManagedIdentity) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureUserAssignedManagedIdentity) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureUserAssignedManagedIdentity) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureUserAssignedManagedIdentity(val *ResourceRemoteInfoAzureUserAssignedManagedIdentity) *NullableResourceRemoteInfoAzureUserAssignedManagedIdentity { + return &NullableResourceRemoteInfoAzureUserAssignedManagedIdentity{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureUserAssignedManagedIdentity) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureUserAssignedManagedIdentity) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_azure_virtual_machine.go b/model_resource_remote_info_azure_virtual_machine.go new file mode 100644 index 0000000..1720054 --- /dev/null +++ b/model_resource_remote_info_azure_virtual_machine.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 ResourceRemoteInfoAzureVirtualMachine type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAzureVirtualMachine{} + +// ResourceRemoteInfoAzureVirtualMachine Remote info for Azure virtual machine. +type ResourceRemoteInfoAzureVirtualMachine struct { + // The ARM resource ID of the virtual machine. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoAzureVirtualMachine ResourceRemoteInfoAzureVirtualMachine + +// NewResourceRemoteInfoAzureVirtualMachine instantiates a new ResourceRemoteInfoAzureVirtualMachine 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 NewResourceRemoteInfoAzureVirtualMachine(resourceId string) *ResourceRemoteInfoAzureVirtualMachine { + this := ResourceRemoteInfoAzureVirtualMachine{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoAzureVirtualMachineWithDefaults instantiates a new ResourceRemoteInfoAzureVirtualMachine 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 NewResourceRemoteInfoAzureVirtualMachineWithDefaults() *ResourceRemoteInfoAzureVirtualMachine { + this := ResourceRemoteInfoAzureVirtualMachine{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoAzureVirtualMachine) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAzureVirtualMachine) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoAzureVirtualMachine) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoAzureVirtualMachine) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAzureVirtualMachine) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAzureVirtualMachine) 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{ + "resource_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) + } + } + + varResourceRemoteInfoAzureVirtualMachine := _ResourceRemoteInfoAzureVirtualMachine{} + + err = json.Unmarshal(data, &varResourceRemoteInfoAzureVirtualMachine) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureVirtualMachine(varResourceRemoteInfoAzureVirtualMachine) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoAzureVirtualMachine struct { + value *ResourceRemoteInfoAzureVirtualMachine + isSet bool +} + +func (v NullableResourceRemoteInfoAzureVirtualMachine) Get() *ResourceRemoteInfoAzureVirtualMachine { + return v.value +} + +func (v *NullableResourceRemoteInfoAzureVirtualMachine) Set(val *ResourceRemoteInfoAzureVirtualMachine) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAzureVirtualMachine) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAzureVirtualMachine) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAzureVirtualMachine(val *ResourceRemoteInfoAzureVirtualMachine) *NullableResourceRemoteInfoAzureVirtualMachine { + return &NullableResourceRemoteInfoAzureVirtualMachine{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAzureVirtualMachine) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAzureVirtualMachine) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_cursor_organization.go b/model_resource_remote_info_cursor_organization.go new file mode 100644 index 0000000..7fbc334 --- /dev/null +++ b/model_resource_remote_info_cursor_organization.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 ResourceRemoteInfoCursorOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoCursorOrganization{} + +// ResourceRemoteInfoCursorOrganization Remote info for a Cursor organization. +type ResourceRemoteInfoCursorOrganization struct { + // The id of the organization. + OrgId string `json:"org_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoCursorOrganization ResourceRemoteInfoCursorOrganization + +// NewResourceRemoteInfoCursorOrganization instantiates a new ResourceRemoteInfoCursorOrganization 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 NewResourceRemoteInfoCursorOrganization(orgId string) *ResourceRemoteInfoCursorOrganization { + this := ResourceRemoteInfoCursorOrganization{} + this.OrgId = orgId + return &this +} + +// NewResourceRemoteInfoCursorOrganizationWithDefaults instantiates a new ResourceRemoteInfoCursorOrganization 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 NewResourceRemoteInfoCursorOrganizationWithDefaults() *ResourceRemoteInfoCursorOrganization { + this := ResourceRemoteInfoCursorOrganization{} + return &this +} + +// GetOrgId returns the OrgId field value +func (o *ResourceRemoteInfoCursorOrganization) GetOrgId() string { + if o == nil { + var ret string + return ret + } + + return o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoCursorOrganization) GetOrgIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgId, true +} + +// SetOrgId sets field value +func (o *ResourceRemoteInfoCursorOrganization) SetOrgId(v string) { + o.OrgId = v +} + +func (o ResourceRemoteInfoCursorOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoCursorOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["org_id"] = o.OrgId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoCursorOrganization) 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{ + "org_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) + } + } + + varResourceRemoteInfoCursorOrganization := _ResourceRemoteInfoCursorOrganization{} + + err = json.Unmarshal(data, &varResourceRemoteInfoCursorOrganization) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoCursorOrganization(varResourceRemoteInfoCursorOrganization) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "org_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoCursorOrganization struct { + value *ResourceRemoteInfoCursorOrganization + isSet bool +} + +func (v NullableResourceRemoteInfoCursorOrganization) Get() *ResourceRemoteInfoCursorOrganization { + return v.value +} + +func (v *NullableResourceRemoteInfoCursorOrganization) Set(val *ResourceRemoteInfoCursorOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoCursorOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoCursorOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoCursorOrganization(val *ResourceRemoteInfoCursorOrganization) *NullableResourceRemoteInfoCursorOrganization { + return &NullableResourceRemoteInfoCursorOrganization{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoCursorOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoCursorOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_databricks_account_service_principal.go b/model_resource_remote_info_databricks_account_service_principal.go new file mode 100644 index 0000000..7f58cb5 --- /dev/null +++ b/model_resource_remote_info_databricks_account_service_principal.go @@ -0,0 +1,200 @@ +/* +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 ResourceRemoteInfoDatabricksAccountServicePrincipal type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoDatabricksAccountServicePrincipal{} + +// ResourceRemoteInfoDatabricksAccountServicePrincipal Remote info for Databricks account service principal. +type ResourceRemoteInfoDatabricksAccountServicePrincipal struct { + // The application ID of the service principal. + ApplicationId string `json:"application_id"` + // The resource ID of the service principal. + ResourceId string `json:"resource_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoDatabricksAccountServicePrincipal ResourceRemoteInfoDatabricksAccountServicePrincipal + +// NewResourceRemoteInfoDatabricksAccountServicePrincipal instantiates a new ResourceRemoteInfoDatabricksAccountServicePrincipal 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 NewResourceRemoteInfoDatabricksAccountServicePrincipal(applicationId string, resourceId string) *ResourceRemoteInfoDatabricksAccountServicePrincipal { + this := ResourceRemoteInfoDatabricksAccountServicePrincipal{} + this.ApplicationId = applicationId + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoDatabricksAccountServicePrincipalWithDefaults instantiates a new ResourceRemoteInfoDatabricksAccountServicePrincipal 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 NewResourceRemoteInfoDatabricksAccountServicePrincipalWithDefaults() *ResourceRemoteInfoDatabricksAccountServicePrincipal { + this := ResourceRemoteInfoDatabricksAccountServicePrincipal{} + return &this +} + +// GetApplicationId returns the ApplicationId field value +func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetApplicationId() string { + if o == nil { + var ret string + return ret + } + + return o.ApplicationId +} + +// GetApplicationIdOk returns a tuple with the ApplicationId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetApplicationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ApplicationId, true +} + +// SetApplicationId sets field value +func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) SetApplicationId(v string) { + o.ApplicationId = v +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.ResourceId +} + +// GetResourceIdOk returns a tuple with the ResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoDatabricksAccountServicePrincipal) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoDatabricksAccountServicePrincipal) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["application_id"] = o.ApplicationId + toSerialize["resource_id"] = o.ResourceId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoDatabricksAccountServicePrincipal) 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{ + "application_id", + "resource_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) + } + } + + varResourceRemoteInfoDatabricksAccountServicePrincipal := _ResourceRemoteInfoDatabricksAccountServicePrincipal{} + + err = json.Unmarshal(data, &varResourceRemoteInfoDatabricksAccountServicePrincipal) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDatabricksAccountServicePrincipal(varResourceRemoteInfoDatabricksAccountServicePrincipal) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "application_id") + delete(additionalProperties, "resource_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoDatabricksAccountServicePrincipal struct { + value *ResourceRemoteInfoDatabricksAccountServicePrincipal + isSet bool +} + +func (v NullableResourceRemoteInfoDatabricksAccountServicePrincipal) Get() *ResourceRemoteInfoDatabricksAccountServicePrincipal { + return v.value +} + +func (v *NullableResourceRemoteInfoDatabricksAccountServicePrincipal) Set(val *ResourceRemoteInfoDatabricksAccountServicePrincipal) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoDatabricksAccountServicePrincipal) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoDatabricksAccountServicePrincipal) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoDatabricksAccountServicePrincipal(val *ResourceRemoteInfoDatabricksAccountServicePrincipal) *NullableResourceRemoteInfoDatabricksAccountServicePrincipal { + return &NullableResourceRemoteInfoDatabricksAccountServicePrincipal{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoDatabricksAccountServicePrincipal) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoDatabricksAccountServicePrincipal) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_devin_organization.go b/model_resource_remote_info_devin_organization.go new file mode 100644 index 0000000..4ac4b47 --- /dev/null +++ b/model_resource_remote_info_devin_organization.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 ResourceRemoteInfoDevinOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoDevinOrganization{} + +// ResourceRemoteInfoDevinOrganization Remote info for Devin organization. +type ResourceRemoteInfoDevinOrganization struct { + // The id of the organization. + OrgId string `json:"org_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoDevinOrganization ResourceRemoteInfoDevinOrganization + +// NewResourceRemoteInfoDevinOrganization instantiates a new ResourceRemoteInfoDevinOrganization 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 NewResourceRemoteInfoDevinOrganization(orgId string) *ResourceRemoteInfoDevinOrganization { + this := ResourceRemoteInfoDevinOrganization{} + this.OrgId = orgId + return &this +} + +// NewResourceRemoteInfoDevinOrganizationWithDefaults instantiates a new ResourceRemoteInfoDevinOrganization 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 NewResourceRemoteInfoDevinOrganizationWithDefaults() *ResourceRemoteInfoDevinOrganization { + this := ResourceRemoteInfoDevinOrganization{} + return &this +} + +// GetOrgId returns the OrgId field value +func (o *ResourceRemoteInfoDevinOrganization) GetOrgId() string { + if o == nil { + var ret string + return ret + } + + return o.OrgId +} + +// GetOrgIdOk returns a tuple with the OrgId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoDevinOrganization) GetOrgIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgId, true +} + +// SetOrgId sets field value +func (o *ResourceRemoteInfoDevinOrganization) SetOrgId(v string) { + o.OrgId = v +} + +func (o ResourceRemoteInfoDevinOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoDevinOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["org_id"] = o.OrgId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoDevinOrganization) 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{ + "org_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) + } + } + + varResourceRemoteInfoDevinOrganization := _ResourceRemoteInfoDevinOrganization{} + + err = json.Unmarshal(data, &varResourceRemoteInfoDevinOrganization) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDevinOrganization(varResourceRemoteInfoDevinOrganization) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "org_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoDevinOrganization struct { + value *ResourceRemoteInfoDevinOrganization + isSet bool +} + +func (v NullableResourceRemoteInfoDevinOrganization) Get() *ResourceRemoteInfoDevinOrganization { + return v.value +} + +func (v *NullableResourceRemoteInfoDevinOrganization) Set(val *ResourceRemoteInfoDevinOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoDevinOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoDevinOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoDevinOrganization(val *ResourceRemoteInfoDevinOrganization) *NullableResourceRemoteInfoDevinOrganization { + return &NullableResourceRemoteInfoDevinOrganization{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoDevinOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoDevinOrganization) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_devin_role.go b/model_resource_remote_info_devin_role.go new file mode 100644 index 0000000..7935b04 --- /dev/null +++ b/model_resource_remote_info_devin_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 ResourceRemoteInfoDevinRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoDevinRole{} + +// ResourceRemoteInfoDevinRole Remote info for Devin role. +type ResourceRemoteInfoDevinRole struct { + // The id of the role. + RoleId string `json:"role_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoDevinRole ResourceRemoteInfoDevinRole + +// NewResourceRemoteInfoDevinRole instantiates a new ResourceRemoteInfoDevinRole 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 NewResourceRemoteInfoDevinRole(roleId string) *ResourceRemoteInfoDevinRole { + this := ResourceRemoteInfoDevinRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoDevinRoleWithDefaults instantiates a new ResourceRemoteInfoDevinRole 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 NewResourceRemoteInfoDevinRoleWithDefaults() *ResourceRemoteInfoDevinRole { + this := ResourceRemoteInfoDevinRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoDevinRole) 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 *ResourceRemoteInfoDevinRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoDevinRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoDevinRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoDevinRole) 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 *ResourceRemoteInfoDevinRole) 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) + } + } + + varResourceRemoteInfoDevinRole := _ResourceRemoteInfoDevinRole{} + + err = json.Unmarshal(data, &varResourceRemoteInfoDevinRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDevinRole(varResourceRemoteInfoDevinRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoDevinRole struct { + value *ResourceRemoteInfoDevinRole + isSet bool +} + +func (v NullableResourceRemoteInfoDevinRole) Get() *ResourceRemoteInfoDevinRole { + return v.value +} + +func (v *NullableResourceRemoteInfoDevinRole) Set(val *ResourceRemoteInfoDevinRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoDevinRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoDevinRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoDevinRole(val *ResourceRemoteInfoDevinRole) *NullableResourceRemoteInfoDevinRole { + return &NullableResourceRemoteInfoDevinRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoDevinRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoDevinRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_github_org.go b/model_resource_remote_info_github_org.go new file mode 100644 index 0000000..108a86b --- /dev/null +++ b/model_resource_remote_info_github_org.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 ResourceRemoteInfoGithubOrg type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGithubOrg{} + +// ResourceRemoteInfoGithubOrg Remote info for GitHub organization. +type ResourceRemoteInfoGithubOrg struct { + // The name of the organization. + OrgName string `json:"org_name"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoGithubOrg ResourceRemoteInfoGithubOrg + +// NewResourceRemoteInfoGithubOrg instantiates a new ResourceRemoteInfoGithubOrg 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 NewResourceRemoteInfoGithubOrg(orgName string) *ResourceRemoteInfoGithubOrg { + this := ResourceRemoteInfoGithubOrg{} + this.OrgName = orgName + return &this +} + +// NewResourceRemoteInfoGithubOrgWithDefaults instantiates a new ResourceRemoteInfoGithubOrg 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 NewResourceRemoteInfoGithubOrgWithDefaults() *ResourceRemoteInfoGithubOrg { + this := ResourceRemoteInfoGithubOrg{} + return &this +} + +// GetOrgName returns the OrgName field value +func (o *ResourceRemoteInfoGithubOrg) GetOrgName() string { + if o == nil { + var ret string + return ret + } + + return o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGithubOrg) GetOrgNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrgName, true +} + +// SetOrgName sets field value +func (o *ResourceRemoteInfoGithubOrg) SetOrgName(v string) { + o.OrgName = v +} + +func (o ResourceRemoteInfoGithubOrg) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGithubOrg) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["org_name"] = o.OrgName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGithubOrg) 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{ + "org_name", + } + + 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) + } + } + + varResourceRemoteInfoGithubOrg := _ResourceRemoteInfoGithubOrg{} + + err = json.Unmarshal(data, &varResourceRemoteInfoGithubOrg) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGithubOrg(varResourceRemoteInfoGithubOrg) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "org_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoGithubOrg struct { + value *ResourceRemoteInfoGithubOrg + isSet bool +} + +func (v NullableResourceRemoteInfoGithubOrg) Get() *ResourceRemoteInfoGithubOrg { + return v.value +} + +func (v *NullableResourceRemoteInfoGithubOrg) Set(val *ResourceRemoteInfoGithubOrg) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGithubOrg) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGithubOrg) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGithubOrg(val *ResourceRemoteInfoGithubOrg) *NullableResourceRemoteInfoGithubOrg { + return &NullableResourceRemoteInfoGithubOrg{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGithubOrg) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGithubOrg) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_ilevel_advanced_role.go b/model_resource_remote_info_ilevel_advanced_role.go new file mode 100644 index 0000000..2e3398f --- /dev/null +++ b/model_resource_remote_info_ilevel_advanced_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 ResourceRemoteInfoIlevelAdvancedRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoIlevelAdvancedRole{} + +// ResourceRemoteInfoIlevelAdvancedRole Remote info for iLevel Advanced role. +type ResourceRemoteInfoIlevelAdvancedRole struct { + // The name of the role. + RoleName string `json:"role_name"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoIlevelAdvancedRole ResourceRemoteInfoIlevelAdvancedRole + +// NewResourceRemoteInfoIlevelAdvancedRole instantiates a new ResourceRemoteInfoIlevelAdvancedRole 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 NewResourceRemoteInfoIlevelAdvancedRole(roleName string) *ResourceRemoteInfoIlevelAdvancedRole { + this := ResourceRemoteInfoIlevelAdvancedRole{} + this.RoleName = roleName + return &this +} + +// NewResourceRemoteInfoIlevelAdvancedRoleWithDefaults instantiates a new ResourceRemoteInfoIlevelAdvancedRole 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 NewResourceRemoteInfoIlevelAdvancedRoleWithDefaults() *ResourceRemoteInfoIlevelAdvancedRole { + this := ResourceRemoteInfoIlevelAdvancedRole{} + return &this +} + +// GetRoleName returns the RoleName field value +func (o *ResourceRemoteInfoIlevelAdvancedRole) GetRoleName() string { + if o == nil { + var ret string + return ret + } + + return o.RoleName +} + +// GetRoleNameOk returns a tuple with the RoleName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoIlevelAdvancedRole) GetRoleNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleName, true +} + +// SetRoleName sets field value +func (o *ResourceRemoteInfoIlevelAdvancedRole) SetRoleName(v string) { + o.RoleName = v +} + +func (o ResourceRemoteInfoIlevelAdvancedRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoIlevelAdvancedRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_name"] = o.RoleName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoIlevelAdvancedRole) 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_name", + } + + 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) + } + } + + varResourceRemoteInfoIlevelAdvancedRole := _ResourceRemoteInfoIlevelAdvancedRole{} + + err = json.Unmarshal(data, &varResourceRemoteInfoIlevelAdvancedRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoIlevelAdvancedRole(varResourceRemoteInfoIlevelAdvancedRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoIlevelAdvancedRole struct { + value *ResourceRemoteInfoIlevelAdvancedRole + isSet bool +} + +func (v NullableResourceRemoteInfoIlevelAdvancedRole) Get() *ResourceRemoteInfoIlevelAdvancedRole { + return v.value +} + +func (v *NullableResourceRemoteInfoIlevelAdvancedRole) Set(val *ResourceRemoteInfoIlevelAdvancedRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoIlevelAdvancedRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoIlevelAdvancedRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoIlevelAdvancedRole(val *ResourceRemoteInfoIlevelAdvancedRole) *NullableResourceRemoteInfoIlevelAdvancedRole { + return &NullableResourceRemoteInfoIlevelAdvancedRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoIlevelAdvancedRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoIlevelAdvancedRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_openai_platform_project.go b/model_resource_remote_info_openai_platform_project.go new file mode 100644 index 0000000..d097576 --- /dev/null +++ b/model_resource_remote_info_openai_platform_project.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 ResourceRemoteInfoOpenaiPlatformProject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoOpenaiPlatformProject{} + +// ResourceRemoteInfoOpenaiPlatformProject Remote info for OpenAI Platform project. +type ResourceRemoteInfoOpenaiPlatformProject struct { + // The id of the project. + ProjectId string `json:"project_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoOpenaiPlatformProject ResourceRemoteInfoOpenaiPlatformProject + +// NewResourceRemoteInfoOpenaiPlatformProject instantiates a new ResourceRemoteInfoOpenaiPlatformProject 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 NewResourceRemoteInfoOpenaiPlatformProject(projectId string) *ResourceRemoteInfoOpenaiPlatformProject { + this := ResourceRemoteInfoOpenaiPlatformProject{} + this.ProjectId = projectId + return &this +} + +// NewResourceRemoteInfoOpenaiPlatformProjectWithDefaults instantiates a new ResourceRemoteInfoOpenaiPlatformProject 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 NewResourceRemoteInfoOpenaiPlatformProjectWithDefaults() *ResourceRemoteInfoOpenaiPlatformProject { + this := ResourceRemoteInfoOpenaiPlatformProject{} + return &this +} + +// GetProjectId returns the ProjectId field value +func (o *ResourceRemoteInfoOpenaiPlatformProject) GetProjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoOpenaiPlatformProject) GetProjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectId, true +} + +// SetProjectId sets field value +func (o *ResourceRemoteInfoOpenaiPlatformProject) SetProjectId(v string) { + o.ProjectId = v +} + +func (o ResourceRemoteInfoOpenaiPlatformProject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoOpenaiPlatformProject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["project_id"] = o.ProjectId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoOpenaiPlatformProject) 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{ + "project_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) + } + } + + varResourceRemoteInfoOpenaiPlatformProject := _ResourceRemoteInfoOpenaiPlatformProject{} + + err = json.Unmarshal(data, &varResourceRemoteInfoOpenaiPlatformProject) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoOpenaiPlatformProject(varResourceRemoteInfoOpenaiPlatformProject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "project_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoOpenaiPlatformProject struct { + value *ResourceRemoteInfoOpenaiPlatformProject + isSet bool +} + +func (v NullableResourceRemoteInfoOpenaiPlatformProject) Get() *ResourceRemoteInfoOpenaiPlatformProject { + return v.value +} + +func (v *NullableResourceRemoteInfoOpenaiPlatformProject) Set(val *ResourceRemoteInfoOpenaiPlatformProject) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoOpenaiPlatformProject) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoOpenaiPlatformProject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoOpenaiPlatformProject(val *ResourceRemoteInfoOpenaiPlatformProject) *NullableResourceRemoteInfoOpenaiPlatformProject { + return &NullableResourceRemoteInfoOpenaiPlatformProject{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoOpenaiPlatformProject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoOpenaiPlatformProject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_openai_platform_service_account.go b/model_resource_remote_info_openai_platform_service_account.go new file mode 100644 index 0000000..24860e0 --- /dev/null +++ b/model_resource_remote_info_openai_platform_service_account.go @@ -0,0 +1,200 @@ +/* +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 ResourceRemoteInfoOpenaiPlatformServiceAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoOpenaiPlatformServiceAccount{} + +// ResourceRemoteInfoOpenaiPlatformServiceAccount Remote info for OpenAI Platform service account. +type ResourceRemoteInfoOpenaiPlatformServiceAccount struct { + // The id of the project for the service account. + ProjectId string `json:"project_id"` + // The id of the service account. + ServiceAccountId string `json:"service_account_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoOpenaiPlatformServiceAccount ResourceRemoteInfoOpenaiPlatformServiceAccount + +// NewResourceRemoteInfoOpenaiPlatformServiceAccount instantiates a new ResourceRemoteInfoOpenaiPlatformServiceAccount 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 NewResourceRemoteInfoOpenaiPlatformServiceAccount(projectId string, serviceAccountId string) *ResourceRemoteInfoOpenaiPlatformServiceAccount { + this := ResourceRemoteInfoOpenaiPlatformServiceAccount{} + this.ProjectId = projectId + this.ServiceAccountId = serviceAccountId + return &this +} + +// NewResourceRemoteInfoOpenaiPlatformServiceAccountWithDefaults instantiates a new ResourceRemoteInfoOpenaiPlatformServiceAccount 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 NewResourceRemoteInfoOpenaiPlatformServiceAccountWithDefaults() *ResourceRemoteInfoOpenaiPlatformServiceAccount { + this := ResourceRemoteInfoOpenaiPlatformServiceAccount{} + return &this +} + +// GetProjectId returns the ProjectId field value +func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetProjectId() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetProjectIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectId, true +} + +// SetProjectId sets field value +func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) SetProjectId(v string) { + o.ProjectId = v +} + +// GetServiceAccountId returns the ServiceAccountId field value +func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetServiceAccountId() string { + if o == nil { + var ret string + return ret + } + + return o.ServiceAccountId +} + +// GetServiceAccountIdOk returns a tuple with the ServiceAccountId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) GetServiceAccountIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ServiceAccountId, true +} + +// SetServiceAccountId sets field value +func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) SetServiceAccountId(v string) { + o.ServiceAccountId = v +} + +func (o ResourceRemoteInfoOpenaiPlatformServiceAccount) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoOpenaiPlatformServiceAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["project_id"] = o.ProjectId + toSerialize["service_account_id"] = o.ServiceAccountId + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoOpenaiPlatformServiceAccount) 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{ + "project_id", + "service_account_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) + } + } + + varResourceRemoteInfoOpenaiPlatformServiceAccount := _ResourceRemoteInfoOpenaiPlatformServiceAccount{} + + err = json.Unmarshal(data, &varResourceRemoteInfoOpenaiPlatformServiceAccount) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoOpenaiPlatformServiceAccount(varResourceRemoteInfoOpenaiPlatformServiceAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "project_id") + delete(additionalProperties, "service_account_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoOpenaiPlatformServiceAccount struct { + value *ResourceRemoteInfoOpenaiPlatformServiceAccount + isSet bool +} + +func (v NullableResourceRemoteInfoOpenaiPlatformServiceAccount) Get() *ResourceRemoteInfoOpenaiPlatformServiceAccount { + return v.value +} + +func (v *NullableResourceRemoteInfoOpenaiPlatformServiceAccount) Set(val *ResourceRemoteInfoOpenaiPlatformServiceAccount) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoOpenaiPlatformServiceAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoOpenaiPlatformServiceAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoOpenaiPlatformServiceAccount(val *ResourceRemoteInfoOpenaiPlatformServiceAccount) *NullableResourceRemoteInfoOpenaiPlatformServiceAccount { + return &NullableResourceRemoteInfoOpenaiPlatformServiceAccount{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoOpenaiPlatformServiceAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoOpenaiPlatformServiceAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_oracle_fusion_role.go b/model_resource_remote_info_oracle_fusion_role.go new file mode 100644 index 0000000..942ca48 --- /dev/null +++ b/model_resource_remote_info_oracle_fusion_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 ResourceRemoteInfoOracleFusionRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoOracleFusionRole{} + +// ResourceRemoteInfoOracleFusionRole Remote info for Oracle Fusion role. +type ResourceRemoteInfoOracleFusionRole struct { + // The id of the role. + RoleId string `json:"role_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoOracleFusionRole ResourceRemoteInfoOracleFusionRole + +// NewResourceRemoteInfoOracleFusionRole instantiates a new ResourceRemoteInfoOracleFusionRole 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 NewResourceRemoteInfoOracleFusionRole(roleId string) *ResourceRemoteInfoOracleFusionRole { + this := ResourceRemoteInfoOracleFusionRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoOracleFusionRoleWithDefaults instantiates a new ResourceRemoteInfoOracleFusionRole 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 NewResourceRemoteInfoOracleFusionRoleWithDefaults() *ResourceRemoteInfoOracleFusionRole { + this := ResourceRemoteInfoOracleFusionRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoOracleFusionRole) 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 *ResourceRemoteInfoOracleFusionRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoOracleFusionRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoOracleFusionRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoOracleFusionRole) 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 *ResourceRemoteInfoOracleFusionRole) 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) + } + } + + varResourceRemoteInfoOracleFusionRole := _ResourceRemoteInfoOracleFusionRole{} + + err = json.Unmarshal(data, &varResourceRemoteInfoOracleFusionRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoOracleFusionRole(varResourceRemoteInfoOracleFusionRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoOracleFusionRole struct { + value *ResourceRemoteInfoOracleFusionRole + isSet bool +} + +func (v NullableResourceRemoteInfoOracleFusionRole) Get() *ResourceRemoteInfoOracleFusionRole { + return v.value +} + +func (v *NullableResourceRemoteInfoOracleFusionRole) Set(val *ResourceRemoteInfoOracleFusionRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoOracleFusionRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoOracleFusionRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoOracleFusionRole(val *ResourceRemoteInfoOracleFusionRole) *NullableResourceRemoteInfoOracleFusionRole { + return &NullableResourceRemoteInfoOracleFusionRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoOracleFusionRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoOracleFusionRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_snowflake_database.go b/model_resource_remote_info_snowflake_database.go new file mode 100644 index 0000000..8b8e6f0 --- /dev/null +++ b/model_resource_remote_info_snowflake_database.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 ResourceRemoteInfoSnowflakeDatabase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoSnowflakeDatabase{} + +// ResourceRemoteInfoSnowflakeDatabase Remote info for Snowflake database. +type ResourceRemoteInfoSnowflakeDatabase struct { + // The name of the database. + DatabaseName string `json:"database_name"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoSnowflakeDatabase ResourceRemoteInfoSnowflakeDatabase + +// NewResourceRemoteInfoSnowflakeDatabase instantiates a new ResourceRemoteInfoSnowflakeDatabase 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 NewResourceRemoteInfoSnowflakeDatabase(databaseName string) *ResourceRemoteInfoSnowflakeDatabase { + this := ResourceRemoteInfoSnowflakeDatabase{} + this.DatabaseName = databaseName + return &this +} + +// NewResourceRemoteInfoSnowflakeDatabaseWithDefaults instantiates a new ResourceRemoteInfoSnowflakeDatabase 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 NewResourceRemoteInfoSnowflakeDatabaseWithDefaults() *ResourceRemoteInfoSnowflakeDatabase { + this := ResourceRemoteInfoSnowflakeDatabase{} + return &this +} + +// GetDatabaseName returns the DatabaseName field value +func (o *ResourceRemoteInfoSnowflakeDatabase) GetDatabaseName() string { + if o == nil { + var ret string + return ret + } + + return o.DatabaseName +} + +// GetDatabaseNameOk returns a tuple with the DatabaseName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoSnowflakeDatabase) GetDatabaseNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DatabaseName, true +} + +// SetDatabaseName sets field value +func (o *ResourceRemoteInfoSnowflakeDatabase) SetDatabaseName(v string) { + o.DatabaseName = v +} + +func (o ResourceRemoteInfoSnowflakeDatabase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoSnowflakeDatabase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["database_name"] = o.DatabaseName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoSnowflakeDatabase) 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{ + "database_name", + } + + 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) + } + } + + varResourceRemoteInfoSnowflakeDatabase := _ResourceRemoteInfoSnowflakeDatabase{} + + err = json.Unmarshal(data, &varResourceRemoteInfoSnowflakeDatabase) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoSnowflakeDatabase(varResourceRemoteInfoSnowflakeDatabase) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "database_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoSnowflakeDatabase struct { + value *ResourceRemoteInfoSnowflakeDatabase + isSet bool +} + +func (v NullableResourceRemoteInfoSnowflakeDatabase) Get() *ResourceRemoteInfoSnowflakeDatabase { + return v.value +} + +func (v *NullableResourceRemoteInfoSnowflakeDatabase) Set(val *ResourceRemoteInfoSnowflakeDatabase) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoSnowflakeDatabase) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoSnowflakeDatabase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoSnowflakeDatabase(val *ResourceRemoteInfoSnowflakeDatabase) *NullableResourceRemoteInfoSnowflakeDatabase { + return &NullableResourceRemoteInfoSnowflakeDatabase{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoSnowflakeDatabase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoSnowflakeDatabase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_snowflake_schema.go b/model_resource_remote_info_snowflake_schema.go new file mode 100644 index 0000000..44c125d --- /dev/null +++ b/model_resource_remote_info_snowflake_schema.go @@ -0,0 +1,200 @@ +/* +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 ResourceRemoteInfoSnowflakeSchema type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoSnowflakeSchema{} + +// ResourceRemoteInfoSnowflakeSchema Remote info for Snowflake schema. +type ResourceRemoteInfoSnowflakeSchema struct { + // The name of the database the schema is in. + DatabaseName string `json:"database_name"` + // The name of the schema. + SchemaName string `json:"schema_name"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoSnowflakeSchema ResourceRemoteInfoSnowflakeSchema + +// NewResourceRemoteInfoSnowflakeSchema instantiates a new ResourceRemoteInfoSnowflakeSchema 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 NewResourceRemoteInfoSnowflakeSchema(databaseName string, schemaName string) *ResourceRemoteInfoSnowflakeSchema { + this := ResourceRemoteInfoSnowflakeSchema{} + this.DatabaseName = databaseName + this.SchemaName = schemaName + return &this +} + +// NewResourceRemoteInfoSnowflakeSchemaWithDefaults instantiates a new ResourceRemoteInfoSnowflakeSchema 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 NewResourceRemoteInfoSnowflakeSchemaWithDefaults() *ResourceRemoteInfoSnowflakeSchema { + this := ResourceRemoteInfoSnowflakeSchema{} + return &this +} + +// GetDatabaseName returns the DatabaseName field value +func (o *ResourceRemoteInfoSnowflakeSchema) GetDatabaseName() string { + if o == nil { + var ret string + return ret + } + + return o.DatabaseName +} + +// GetDatabaseNameOk returns a tuple with the DatabaseName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoSnowflakeSchema) GetDatabaseNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DatabaseName, true +} + +// SetDatabaseName sets field value +func (o *ResourceRemoteInfoSnowflakeSchema) SetDatabaseName(v string) { + o.DatabaseName = v +} + +// GetSchemaName returns the SchemaName field value +func (o *ResourceRemoteInfoSnowflakeSchema) GetSchemaName() string { + if o == nil { + var ret string + return ret + } + + return o.SchemaName +} + +// GetSchemaNameOk returns a tuple with the SchemaName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoSnowflakeSchema) GetSchemaNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SchemaName, true +} + +// SetSchemaName sets field value +func (o *ResourceRemoteInfoSnowflakeSchema) SetSchemaName(v string) { + o.SchemaName = v +} + +func (o ResourceRemoteInfoSnowflakeSchema) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoSnowflakeSchema) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["database_name"] = o.DatabaseName + toSerialize["schema_name"] = o.SchemaName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoSnowflakeSchema) 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{ + "database_name", + "schema_name", + } + + 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) + } + } + + varResourceRemoteInfoSnowflakeSchema := _ResourceRemoteInfoSnowflakeSchema{} + + err = json.Unmarshal(data, &varResourceRemoteInfoSnowflakeSchema) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoSnowflakeSchema(varResourceRemoteInfoSnowflakeSchema) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "database_name") + delete(additionalProperties, "schema_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoSnowflakeSchema struct { + value *ResourceRemoteInfoSnowflakeSchema + isSet bool +} + +func (v NullableResourceRemoteInfoSnowflakeSchema) Get() *ResourceRemoteInfoSnowflakeSchema { + return v.value +} + +func (v *NullableResourceRemoteInfoSnowflakeSchema) Set(val *ResourceRemoteInfoSnowflakeSchema) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoSnowflakeSchema) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoSnowflakeSchema) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoSnowflakeSchema(val *ResourceRemoteInfoSnowflakeSchema) *NullableResourceRemoteInfoSnowflakeSchema { + return &NullableResourceRemoteInfoSnowflakeSchema{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoSnowflakeSchema) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoSnowflakeSchema) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_snowflake_table.go b/model_resource_remote_info_snowflake_table.go new file mode 100644 index 0000000..d913ed8 --- /dev/null +++ b/model_resource_remote_info_snowflake_table.go @@ -0,0 +1,230 @@ +/* +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 ResourceRemoteInfoSnowflakeTable type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoSnowflakeTable{} + +// ResourceRemoteInfoSnowflakeTable Remote info for Snowflake table. +type ResourceRemoteInfoSnowflakeTable struct { + // The name of the database the table is in. + DatabaseName string `json:"database_name"` + // The name of the schema the table is in. + SchemaName string `json:"schema_name"` + // The name of the table. + TableName string `json:"table_name"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoSnowflakeTable ResourceRemoteInfoSnowflakeTable + +// NewResourceRemoteInfoSnowflakeTable instantiates a new ResourceRemoteInfoSnowflakeTable 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 NewResourceRemoteInfoSnowflakeTable(databaseName string, schemaName string, tableName string) *ResourceRemoteInfoSnowflakeTable { + this := ResourceRemoteInfoSnowflakeTable{} + this.DatabaseName = databaseName + this.SchemaName = schemaName + this.TableName = tableName + return &this +} + +// NewResourceRemoteInfoSnowflakeTableWithDefaults instantiates a new ResourceRemoteInfoSnowflakeTable 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 NewResourceRemoteInfoSnowflakeTableWithDefaults() *ResourceRemoteInfoSnowflakeTable { + this := ResourceRemoteInfoSnowflakeTable{} + return &this +} + +// GetDatabaseName returns the DatabaseName field value +func (o *ResourceRemoteInfoSnowflakeTable) GetDatabaseName() string { + if o == nil { + var ret string + return ret + } + + return o.DatabaseName +} + +// GetDatabaseNameOk returns a tuple with the DatabaseName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoSnowflakeTable) GetDatabaseNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DatabaseName, true +} + +// SetDatabaseName sets field value +func (o *ResourceRemoteInfoSnowflakeTable) SetDatabaseName(v string) { + o.DatabaseName = v +} + +// GetSchemaName returns the SchemaName field value +func (o *ResourceRemoteInfoSnowflakeTable) GetSchemaName() string { + if o == nil { + var ret string + return ret + } + + return o.SchemaName +} + +// GetSchemaNameOk returns a tuple with the SchemaName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoSnowflakeTable) GetSchemaNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SchemaName, true +} + +// SetSchemaName sets field value +func (o *ResourceRemoteInfoSnowflakeTable) SetSchemaName(v string) { + o.SchemaName = v +} + +// GetTableName returns the TableName field value +func (o *ResourceRemoteInfoSnowflakeTable) GetTableName() string { + if o == nil { + var ret string + return ret + } + + return o.TableName +} + +// GetTableNameOk returns a tuple with the TableName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoSnowflakeTable) GetTableNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TableName, true +} + +// SetTableName sets field value +func (o *ResourceRemoteInfoSnowflakeTable) SetTableName(v string) { + o.TableName = v +} + +func (o ResourceRemoteInfoSnowflakeTable) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoSnowflakeTable) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["database_name"] = o.DatabaseName + toSerialize["schema_name"] = o.SchemaName + toSerialize["table_name"] = o.TableName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoSnowflakeTable) 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{ + "database_name", + "schema_name", + "table_name", + } + + 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) + } + } + + varResourceRemoteInfoSnowflakeTable := _ResourceRemoteInfoSnowflakeTable{} + + err = json.Unmarshal(data, &varResourceRemoteInfoSnowflakeTable) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoSnowflakeTable(varResourceRemoteInfoSnowflakeTable) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "database_name") + delete(additionalProperties, "schema_name") + delete(additionalProperties, "table_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoSnowflakeTable struct { + value *ResourceRemoteInfoSnowflakeTable + isSet bool +} + +func (v NullableResourceRemoteInfoSnowflakeTable) Get() *ResourceRemoteInfoSnowflakeTable { + return v.value +} + +func (v *NullableResourceRemoteInfoSnowflakeTable) Set(val *ResourceRemoteInfoSnowflakeTable) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoSnowflakeTable) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoSnowflakeTable) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoSnowflakeTable(val *ResourceRemoteInfoSnowflakeTable) *NullableResourceRemoteInfoSnowflakeTable { + return &NullableResourceRemoteInfoSnowflakeTable{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoSnowflakeTable) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoSnowflakeTable) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_tailscale_ssh.go b/model_resource_remote_info_tailscale_ssh.go new file mode 100644 index 0000000..47ec14c --- /dev/null +++ b/model_resource_remote_info_tailscale_ssh.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 ResourceRemoteInfoTailscaleSsh type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoTailscaleSsh{} + +// ResourceRemoteInfoTailscaleSsh Remote info for Tailscale SSH tag. +type ResourceRemoteInfoTailscaleSsh struct { + // The name of the tag. + TagName string `json:"tag_name"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoTailscaleSsh ResourceRemoteInfoTailscaleSsh + +// NewResourceRemoteInfoTailscaleSsh instantiates a new ResourceRemoteInfoTailscaleSsh 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 NewResourceRemoteInfoTailscaleSsh(tagName string) *ResourceRemoteInfoTailscaleSsh { + this := ResourceRemoteInfoTailscaleSsh{} + this.TagName = tagName + return &this +} + +// NewResourceRemoteInfoTailscaleSshWithDefaults instantiates a new ResourceRemoteInfoTailscaleSsh 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 NewResourceRemoteInfoTailscaleSshWithDefaults() *ResourceRemoteInfoTailscaleSsh { + this := ResourceRemoteInfoTailscaleSsh{} + return &this +} + +// GetTagName returns the TagName field value +func (o *ResourceRemoteInfoTailscaleSsh) GetTagName() string { + if o == nil { + var ret string + return ret + } + + return o.TagName +} + +// GetTagNameOk returns a tuple with the TagName field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoTailscaleSsh) GetTagNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TagName, true +} + +// SetTagName sets field value +func (o *ResourceRemoteInfoTailscaleSsh) SetTagName(v string) { + o.TagName = v +} + +func (o ResourceRemoteInfoTailscaleSsh) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoTailscaleSsh) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["tag_name"] = o.TagName + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ResourceRemoteInfoTailscaleSsh) 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{ + "tag_name", + } + + 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) + } + } + + varResourceRemoteInfoTailscaleSsh := _ResourceRemoteInfoTailscaleSsh{} + + err = json.Unmarshal(data, &varResourceRemoteInfoTailscaleSsh) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoTailscaleSsh(varResourceRemoteInfoTailscaleSsh) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "tag_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoTailscaleSsh struct { + value *ResourceRemoteInfoTailscaleSsh + isSet bool +} + +func (v NullableResourceRemoteInfoTailscaleSsh) Get() *ResourceRemoteInfoTailscaleSsh { + return v.value +} + +func (v *NullableResourceRemoteInfoTailscaleSsh) Set(val *ResourceRemoteInfoTailscaleSsh) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoTailscaleSsh) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoTailscaleSsh) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoTailscaleSsh(val *ResourceRemoteInfoTailscaleSsh) *NullableResourceRemoteInfoTailscaleSsh { + return &NullableResourceRemoteInfoTailscaleSsh{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoTailscaleSsh) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoTailscaleSsh) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_workday_role.go b/model_resource_remote_info_workday_role.go new file mode 100644 index 0000000..669d1d5 --- /dev/null +++ b/model_resource_remote_info_workday_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 ResourceRemoteInfoWorkdayRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoWorkdayRole{} + +// ResourceRemoteInfoWorkdayRole Remote info for Workday role. +type ResourceRemoteInfoWorkdayRole struct { + // The id of the role. + RoleId string `json:"role_id"` + AdditionalProperties map[string]interface{} +} + +type _ResourceRemoteInfoWorkdayRole ResourceRemoteInfoWorkdayRole + +// NewResourceRemoteInfoWorkdayRole instantiates a new ResourceRemoteInfoWorkdayRole 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 NewResourceRemoteInfoWorkdayRole(roleId string) *ResourceRemoteInfoWorkdayRole { + this := ResourceRemoteInfoWorkdayRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoWorkdayRoleWithDefaults instantiates a new ResourceRemoteInfoWorkdayRole 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 NewResourceRemoteInfoWorkdayRoleWithDefaults() *ResourceRemoteInfoWorkdayRole { + this := ResourceRemoteInfoWorkdayRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoWorkdayRole) 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 *ResourceRemoteInfoWorkdayRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoWorkdayRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoWorkdayRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoWorkdayRole) 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 *ResourceRemoteInfoWorkdayRole) 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) + } + } + + varResourceRemoteInfoWorkdayRole := _ResourceRemoteInfoWorkdayRole{} + + err = json.Unmarshal(data, &varResourceRemoteInfoWorkdayRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoWorkdayRole(varResourceRemoteInfoWorkdayRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "role_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableResourceRemoteInfoWorkdayRole struct { + value *ResourceRemoteInfoWorkdayRole + isSet bool +} + +func (v NullableResourceRemoteInfoWorkdayRole) Get() *ResourceRemoteInfoWorkdayRole { + return v.value +} + +func (v *NullableResourceRemoteInfoWorkdayRole) Set(val *ResourceRemoteInfoWorkdayRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoWorkdayRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoWorkdayRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoWorkdayRole(val *ResourceRemoteInfoWorkdayRole) *NullableResourceRemoteInfoWorkdayRole { + return &NullableResourceRemoteInfoWorkdayRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoWorkdayRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoWorkdayRole) 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 c2d0a5d..e04f789 100644 --- a/model_resource_type_enum.go +++ b/model_resource_type_enum.go @@ -84,6 +84,17 @@ const ( RESOURCETYPEENUM_ILEVEL_ADVANCED_ROLE ResourceTypeEnum = "ILEVEL_ADVANCED_ROLE" RESOURCETYPEENUM_DATASTAX_ASTRA_ROLE ResourceTypeEnum = "DATASTAX_ASTRA_ROLE" RESOURCETYPEENUM_COUPA_ROLE ResourceTypeEnum = "COUPA_ROLE" + RESOURCETYPEENUM_CURSOR_ORGANIZATION ResourceTypeEnum = "CURSOR_ORGANIZATION" + RESOURCETYPEENUM_OPENAI_PLATFORM_PROJECT ResourceTypeEnum = "OPENAI_PLATFORM_PROJECT" + RESOURCETYPEENUM_OPENAI_PLATFORM_SERVICE_ACCOUNT ResourceTypeEnum = "OPENAI_PLATFORM_SERVICE_ACCOUNT" + RESOURCETYPEENUM_ANTHROPIC_WORKSPACE ResourceTypeEnum = "ANTHROPIC_WORKSPACE" + RESOURCETYPEENUM_GIT_HUB_ORG ResourceTypeEnum = "GIT_HUB_ORG" + RESOURCETYPEENUM_ORACLE_FUSION_ROLE ResourceTypeEnum = "ORACLE_FUSION_ROLE" + RESOURCETYPEENUM_DEVIN_ORGANIZATION ResourceTypeEnum = "DEVIN_ORGANIZATION" + RESOURCETYPEENUM_DEVIN_ROLE ResourceTypeEnum = "DEVIN_ROLE" + RESOURCETYPEENUM_VAULT_SECRET ResourceTypeEnum = "VAULT_SECRET" + RESOURCETYPEENUM_VAULT_POLICY ResourceTypeEnum = "VAULT_POLICY" + RESOURCETYPEENUM_VAULT_OIDC_ROLE ResourceTypeEnum = "VAULT_OIDC_ROLE" ) // All allowed values of ResourceTypeEnum enum @@ -151,6 +162,17 @@ var AllowedResourceTypeEnumEnumValues = []ResourceTypeEnum{ "ILEVEL_ADVANCED_ROLE", "DATASTAX_ASTRA_ROLE", "COUPA_ROLE", + "CURSOR_ORGANIZATION", + "OPENAI_PLATFORM_PROJECT", + "OPENAI_PLATFORM_SERVICE_ACCOUNT", + "ANTHROPIC_WORKSPACE", + "GIT_HUB_ORG", + "ORACLE_FUSION_ROLE", + "DEVIN_ORGANIZATION", + "DEVIN_ROLE", + "VAULT_SECRET", + "VAULT_POLICY", + "VAULT_OIDC_ROLE", } func (v *ResourceTypeEnum) UnmarshalJSON(src []byte) error { diff --git a/model_role_permission_target_type_enum.go b/model_role_permission_target_type_enum.go index d1dafb2..d5b410d 100644 --- a/model_role_permission_target_type_enum.go +++ b/model_role_permission_target_type_enum.go @@ -27,6 +27,7 @@ const ( ROLEPERMISSIONTARGETTYPEENUM_BUNDLE RolePermissionTargetTypeEnum = "BUNDLE" ROLEPERMISSIONTARGETTYPEENUM_USER RolePermissionTargetTypeEnum = "USER" ROLEPERMISSIONTARGETTYPEENUM_ACCESS_REVIEW RolePermissionTargetTypeEnum = "ACCESS_REVIEW" + ROLEPERMISSIONTARGETTYPEENUM_OWNER RolePermissionTargetTypeEnum = "OWNER" ) // All allowed values of RolePermissionTargetTypeEnum enum @@ -37,6 +38,7 @@ var AllowedRolePermissionTargetTypeEnumEnumValues = []RolePermissionTargetTypeEn "BUNDLE", "USER", "ACCESS_REVIEW", + "OWNER", } func (v *RolePermissionTargetTypeEnum) UnmarshalJSON(src []byte) error { diff --git a/model_third_party_provider_enum.go b/model_third_party_provider_enum.go index 07679b0..cd85118 100644 --- a/model_third_party_provider_enum.go +++ b/model_third_party_provider_enum.go @@ -27,12 +27,15 @@ const ( THIRDPARTYPROVIDERENUM_JIRA ThirdPartyProviderEnum = "JIRA" THIRDPARTYPROVIDERENUM_LINEAR ThirdPartyProviderEnum = "LINEAR" THIRDPARTYPROVIDERENUM_SERVICE_NOW ThirdPartyProviderEnum = "SERVICE_NOW" + THIRDPARTYPROVIDERENUM_FRESH_SERVICE ThirdPartyProviderEnum = "FRESH_SERVICE" + THIRDPARTYPROVIDERENUM_SHORTCUT ThirdPartyProviderEnum = "SHORTCUT" THIRDPARTYPROVIDERENUM_PAGER_DUTY ThirdPartyProviderEnum = "PAGER_DUTY" THIRDPARTYPROVIDERENUM_OPSGENIE ThirdPartyProviderEnum = "OPSGENIE" THIRDPARTYPROVIDERENUM_GIT_HUB ThirdPartyProviderEnum = "GIT_HUB" 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 @@ -43,12 +46,15 @@ var AllowedThirdPartyProviderEnumEnumValues = []ThirdPartyProviderEnum{ "JIRA", "LINEAR", "SERVICE_NOW", + "FRESH_SERVICE", + "SHORTCUT", "PAGER_DUTY", "OPSGENIE", "GIT_HUB", "GIT_LAB", "GIT_LAB_CONNECTION", "TELEPORT", + "SLACK", } func (v *ThirdPartyProviderEnum) UnmarshalJSON(src []byte) error { diff --git a/model_uar.go b/model_uar.go index 3638f41..a5f90b0 100644 --- a/model_uar.go +++ b/model_uar.go @@ -35,6 +35,8 @@ type UAR struct { TimeZone string `json:"time_zone"` // A bool representing whether to present a warning when a user is the only reviewer for themself. Default is False. SelfReviewAllowed bool `json:"self_review_allowed"` + // A bool representing whether to instantly action changes when reviewers submit their decision. Default is False. + InstantlyActionReviews bool `json:"instantly_action_reviews"` UarScope *UARScope `json:"uar_scope,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,7 +47,7 @@ type _UAR UAR // 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 NewUAR(uarId string, name string, reviewerAssignmentPolicy UARReviewerAssignmentPolicyEnum, sendReviewerAssignmentNotification bool, deadline time.Time, timeZone string, selfReviewAllowed bool) *UAR { +func NewUAR(uarId string, name string, reviewerAssignmentPolicy UARReviewerAssignmentPolicyEnum, sendReviewerAssignmentNotification bool, deadline time.Time, timeZone string, selfReviewAllowed bool, instantlyActionReviews bool) *UAR { this := UAR{} this.UarId = uarId this.Name = name @@ -54,6 +56,7 @@ func NewUAR(uarId string, name string, reviewerAssignmentPolicy UARReviewerAssig this.Deadline = deadline this.TimeZone = timeZone this.SelfReviewAllowed = selfReviewAllowed + this.InstantlyActionReviews = instantlyActionReviews return &this } @@ -233,6 +236,30 @@ func (o *UAR) SetSelfReviewAllowed(v bool) { o.SelfReviewAllowed = v } +// GetInstantlyActionReviews returns the InstantlyActionReviews field value +func (o *UAR) GetInstantlyActionReviews() bool { + if o == nil { + var ret bool + return ret + } + + return o.InstantlyActionReviews +} + +// GetInstantlyActionReviewsOk returns a tuple with the InstantlyActionReviews field value +// and a boolean to check if the value has been set. +func (o *UAR) GetInstantlyActionReviewsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.InstantlyActionReviews, true +} + +// SetInstantlyActionReviews sets field value +func (o *UAR) SetInstantlyActionReviews(v bool) { + o.InstantlyActionReviews = v +} + // GetUarScope returns the UarScope field value if set, zero value otherwise. func (o *UAR) GetUarScope() UARScope { if o == nil || IsNil(o.UarScope) { @@ -282,6 +309,7 @@ func (o UAR) ToMap() (map[string]interface{}, error) { toSerialize["deadline"] = o.Deadline toSerialize["time_zone"] = o.TimeZone toSerialize["self_review_allowed"] = o.SelfReviewAllowed + toSerialize["instantly_action_reviews"] = o.InstantlyActionReviews if !IsNil(o.UarScope) { toSerialize["uar_scope"] = o.UarScope } @@ -305,6 +333,7 @@ func (o *UAR) UnmarshalJSON(data []byte) (err error) { "deadline", "time_zone", "self_review_allowed", + "instantly_action_reviews", } allProperties := make(map[string]interface{}) @@ -341,6 +370,7 @@ func (o *UAR) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "deadline") delete(additionalProperties, "time_zone") delete(additionalProperties, "self_review_allowed") + delete(additionalProperties, "instantly_action_reviews") delete(additionalProperties, "uar_scope") o.AdditionalProperties = additionalProperties } diff --git a/model_uar_reviewer_assignment_policy_enum.go b/model_uar_reviewer_assignment_policy_enum.go index fc9e7b4..7843e52 100644 --- a/model_uar_reviewer_assignment_policy_enum.go +++ b/model_uar_reviewer_assignment_policy_enum.go @@ -16,21 +16,27 @@ import ( "fmt" ) -// UARReviewerAssignmentPolicyEnum A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. +// UARReviewerAssignmentPolicyEnum A policy for auto-assigning reviewers. If auto-assignment is on, specific assignments can still be manually adjusted after the access review is started. Default is Manually. BY_OWNING_TEAM_ADMIN assigns reviews to resource admins in round-robin fashion. BY_OWNING_TEAM_ADMIN_ALL assigns reviews to all resource admins. BY_APPROVERS assigns reviews to resource approvers in round-robin fashion. BY_APPROVERS_ALL assigns reviews to all resource approvers. type UARReviewerAssignmentPolicyEnum string // List of UARReviewerAssignmentPolicyEnum const ( UARREVIEWERASSIGNMENTPOLICYENUM_MANUALLY UARReviewerAssignmentPolicyEnum = "MANUALLY" UARREVIEWERASSIGNMENTPOLICYENUM_BY_OWNING_TEAM_ADMIN UARReviewerAssignmentPolicyEnum = "BY_OWNING_TEAM_ADMIN" + UARREVIEWERASSIGNMENTPOLICYENUM_BY_OWNING_TEAM_ADMIN_ALL UARReviewerAssignmentPolicyEnum = "BY_OWNING_TEAM_ADMIN_ALL" UARREVIEWERASSIGNMENTPOLICYENUM_BY_MANAGER UARReviewerAssignmentPolicyEnum = "BY_MANAGER" + UARREVIEWERASSIGNMENTPOLICYENUM_BY_APPROVERS UARReviewerAssignmentPolicyEnum = "BY_APPROVERS" + UARREVIEWERASSIGNMENTPOLICYENUM_BY_APPROVERS_ALL UARReviewerAssignmentPolicyEnum = "BY_APPROVERS_ALL" ) // All allowed values of UARReviewerAssignmentPolicyEnum enum var AllowedUARReviewerAssignmentPolicyEnumEnumValues = []UARReviewerAssignmentPolicyEnum{ "MANUALLY", "BY_OWNING_TEAM_ADMIN", + "BY_OWNING_TEAM_ADMIN_ALL", "BY_MANAGER", + "BY_APPROVERS", + "BY_APPROVERS_ALL", } func (v *UARReviewerAssignmentPolicyEnum) UnmarshalJSON(src []byte) error { diff --git a/model_update_configuration_template_info.go b/model_update_configuration_template_info.go index 5ddbfec..10243b3 100644 --- a/model_update_configuration_template_info.go +++ b/model_update_configuration_template_info.go @@ -27,11 +27,14 @@ type UpdateConfigurationTemplateInfo struct { Name *string `json:"name,omitempty"` // The ID of the owner of the configuration template. AdminOwnerId *string `json:"admin_owner_id,omitempty"` + // The visibility info of the configuration template. Visibility *VisibilityInfo `json:"visibility,omitempty"` // The IDs of the audit message channels linked to the configuration template. LinkedAuditMessageChannelIds []string `json:"linked_audit_message_channel_ids,omitempty"` // The request configuration list linked to the configuration template. RequestConfigurations []RequestConfiguration `json:"request_configurations,omitempty"` + // The request configuration list linked to the configuration template. Deprecated in favor of `request_configurations`. + // Deprecated RequestConfigurationList *CreateRequestConfigurationInfoList `json:"request_configuration_list,omitempty"` // The IDs of the on-call schedules linked to the configuration template. MemberOncallScheduleIds []string `json:"member_oncall_schedule_ids,omitempty"` @@ -252,6 +255,7 @@ func (o *UpdateConfigurationTemplateInfo) SetRequestConfigurations(v []RequestCo } // GetRequestConfigurationList returns the RequestConfigurationList field value if set, zero value otherwise. +// Deprecated func (o *UpdateConfigurationTemplateInfo) GetRequestConfigurationList() CreateRequestConfigurationInfoList { if o == nil || IsNil(o.RequestConfigurationList) { var ret CreateRequestConfigurationInfoList @@ -262,6 +266,7 @@ func (o *UpdateConfigurationTemplateInfo) GetRequestConfigurationList() CreateRe // GetRequestConfigurationListOk returns a tuple with the RequestConfigurationList field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *UpdateConfigurationTemplateInfo) GetRequestConfigurationListOk() (*CreateRequestConfigurationInfoList, bool) { if o == nil || IsNil(o.RequestConfigurationList) { return nil, false @@ -279,6 +284,7 @@ func (o *UpdateConfigurationTemplateInfo) HasRequestConfigurationList() bool { } // SetRequestConfigurationList gets a reference to the given CreateRequestConfigurationInfoList and assigns it to the RequestConfigurationList field. +// Deprecated func (o *UpdateConfigurationTemplateInfo) SetRequestConfigurationList(v CreateRequestConfigurationInfoList) { o.RequestConfigurationList = &v } diff --git a/model_update_group_info.go b/model_update_group_info.go index 3afcd14..a9ebe1e 100644 --- a/model_update_group_info.go +++ b/model_update_group_info.go @@ -67,6 +67,8 @@ type UpdateGroupInfo struct { ExtensionsDurationInMinutes *int32 `json:"extensions_duration_in_minutes,omitempty"` // The request configuration list of the configuration template. If not provided, the default request configuration will be used. RequestConfigurations []RequestConfiguration `json:"request_configurations,omitempty"` + // The request configuration list of the configuration template. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. + // Deprecated RequestConfigurationList *CreateRequestConfigurationInfoList `json:"request_configuration_list,omitempty"` // Custom request notification sent to the requester when the request is approved. CustomRequestNotification *string `json:"custom_request_notification,omitempty"` @@ -693,6 +695,7 @@ func (o *UpdateGroupInfo) SetRequestConfigurations(v []RequestConfiguration) { } // GetRequestConfigurationList returns the RequestConfigurationList field value if set, zero value otherwise. +// Deprecated func (o *UpdateGroupInfo) GetRequestConfigurationList() CreateRequestConfigurationInfoList { if o == nil || IsNil(o.RequestConfigurationList) { var ret CreateRequestConfigurationInfoList @@ -703,6 +706,7 @@ func (o *UpdateGroupInfo) GetRequestConfigurationList() CreateRequestConfigurati // GetRequestConfigurationListOk returns a tuple with the RequestConfigurationList field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *UpdateGroupInfo) GetRequestConfigurationListOk() (*CreateRequestConfigurationInfoList, bool) { if o == nil || IsNil(o.RequestConfigurationList) { return nil, false @@ -720,6 +724,7 @@ func (o *UpdateGroupInfo) HasRequestConfigurationList() bool { } // SetRequestConfigurationList gets a reference to the given CreateRequestConfigurationInfoList and assigns it to the RequestConfigurationList field. +// Deprecated func (o *UpdateGroupInfo) SetRequestConfigurationList(v CreateRequestConfigurationInfoList) { o.RequestConfigurationList = &v } diff --git a/model_update_resource_info.go b/model_update_resource_info.go index 2ce3ed1..4756690 100644 --- a/model_update_resource_info.go +++ b/model_update_resource_info.go @@ -71,6 +71,8 @@ type UpdateResourceInfo struct { ExtensionsDurationInMinutes *int32 `json:"extensions_duration_in_minutes,omitempty"` // A list of configurations for requests to this resource. If not provided, the default request configuration will be used. RequestConfigurations []RequestConfiguration `json:"request_configurations,omitempty"` + // A list of configurations for requests to this resource. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. + // Deprecated RequestConfigurationList *CreateRequestConfigurationInfoList `json:"request_configuration_list,omitempty"` AdditionalProperties map[string]interface{} } @@ -790,6 +792,7 @@ func (o *UpdateResourceInfo) SetRequestConfigurations(v []RequestConfiguration) } // GetRequestConfigurationList returns the RequestConfigurationList field value if set, zero value otherwise. +// Deprecated func (o *UpdateResourceInfo) GetRequestConfigurationList() CreateRequestConfigurationInfoList { if o == nil || IsNil(o.RequestConfigurationList) { var ret CreateRequestConfigurationInfoList @@ -800,6 +803,7 @@ func (o *UpdateResourceInfo) GetRequestConfigurationList() CreateRequestConfigur // GetRequestConfigurationListOk returns a tuple with the RequestConfigurationList field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *UpdateResourceInfo) GetRequestConfigurationListOk() (*CreateRequestConfigurationInfoList, bool) { if o == nil || IsNil(o.RequestConfigurationList) { return nil, false @@ -817,6 +821,7 @@ func (o *UpdateResourceInfo) HasRequestConfigurationList() bool { } // SetRequestConfigurationList gets a reference to the given CreateRequestConfigurationInfoList and assigns it to the RequestConfigurationList field. +// Deprecated func (o *UpdateResourceInfo) SetRequestConfigurationList(v CreateRequestConfigurationInfoList) { o.RequestConfigurationList = &v }