diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index dd144a2..98d591a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,6 +5,8 @@ api_access_rules.go api_apps.go api_bundles.go api_configuration_templates.go +api_delegations.go +api_event_streams.go api_events.go api_group_bindings.go api_groups.go @@ -12,18 +14,22 @@ api_idp_group_mappings.go api_message_channels.go api_non_human_identities.go api_on_call_schedules.go +api_opal_queries.go api_owners.go api_requests.go api_resources.go api_sessions.go api_tags.go +api_tokens.go api_uars.go api_users.go client.go configuration.go docs/Access.md +docs/AccessEntityFilters.md docs/AccessList.md -docs/AccessRuleCondition.md +docs/AccessRelationshipFilters.md +docs/AccessRule.md docs/AccessRulesAPI.md docs/AddBundleGroupRequest.md docs/AddBundleResourceRequest.md @@ -31,11 +37,14 @@ docs/AddGroupResourceRequest.md docs/AddGroupUserRequest.md docs/AddResourceNhiRequest.md docs/AddResourceUserRequest.md +docs/ApiAccessLevelEnum.md docs/App.md docs/AppTypeEnum.md docs/AppValidation.md docs/AppValidationSeverityEnum.md docs/AppValidationStatusEnum.md +docs/ApproveRequest200Response.md +docs/ApproveRequestRequest.md docs/AppsAPI.md docs/AppsList.md docs/AwsPermissionSetMetadata.md @@ -49,13 +58,17 @@ docs/ConfigurationTemplate.md docs/ConfigurationTemplatesAPI.md docs/CreateBundleInfo.md docs/CreateConfigurationTemplateInfo.md +docs/CreateDelegationRequest.md +docs/CreateEventStreamInfo.md docs/CreateGroupBindingInfo.md docs/CreateGroupBindingInfoGroupsInner.md docs/CreateGroupInfo.md +docs/CreateIdpGroupMappingRequest.md docs/CreateMessageChannelInfo.md docs/CreateOnCallScheduleInfo.md docs/CreateOwnerInfo.md docs/CreateRequest200Response.md +docs/CreateRequestCommentRequest.md docs/CreateRequestConfigurationInfoList.md docs/CreateRequestInfo.md docs/CreateRequestInfoCustomMetadataInner.md @@ -65,9 +78,21 @@ docs/CreateRequestInfoSupportTicket.md docs/CreateResourceInfo.md docs/CreateTagInfo.md docs/CreateUARInfo.md +docs/Delegation.md +docs/DelegationsAPI.md +docs/DenyRequestRequest.md +docs/EntityItemTypeEnum.md +docs/EntityNameFilter.md +docs/EntityTagFilter.md docs/EntityTypeEnum.md docs/Event.md +docs/EventStream.md +docs/EventStreamConnection.md +docs/EventStreamConnectionTypeEnum.md +docs/EventStreamList.md +docs/EventStreamsAPI.md docs/EventsAPI.md +docs/GetResourceUser200Response.md docs/Group.md docs/GroupAccessLevel.md docs/GroupBinding.md @@ -77,14 +102,34 @@ docs/GroupContainingGroup.md docs/GroupContainingGroupList.md docs/GroupRemoteInfo.md docs/GroupRemoteInfoActiveDirectoryGroup.md +docs/GroupRemoteInfoAwsSsoGroup.md docs/GroupRemoteInfoAzureAdMicrosoft365Group.md docs/GroupRemoteInfoAzureAdSecurityGroup.md +docs/GroupRemoteInfoClickhouseRole.md +docs/GroupRemoteInfoConnectorGroup.md +docs/GroupRemoteInfoDatabricksAccountGroup.md +docs/GroupRemoteInfoDevinGroup.md docs/GroupRemoteInfoDuoGroup.md +docs/GroupRemoteInfoGithubEnterpriseTeam.md docs/GroupRemoteInfoGithubTeam.md docs/GroupRemoteInfoGitlabGroup.md docs/GroupRemoteInfoGoogleGroup.md +docs/GroupRemoteInfoGrafanaTeam.md +docs/GroupRemoteInfoHubspotTeam.md +docs/GroupRemoteInfoIncidentioOnCallSchedule.md docs/GroupRemoteInfoLdapGroup.md docs/GroupRemoteInfoOktaGroup.md +docs/GroupRemoteInfoOktaGroupRule.md +docs/GroupRemoteInfoPagerdutyOnCallSchedule.md +docs/GroupRemoteInfoRootlyOnCallSchedule.md +docs/GroupRemoteInfoSlackUserGroup.md +docs/GroupRemoteInfoSnowflakeRole.md +docs/GroupRemoteInfoTailscaleGroup.md +docs/GroupRemoteInfoTwingateGroup.md +docs/GroupRemoteInfoTwingateGroupSynced.md +docs/GroupRemoteInfoWorkdayUserSecurityGroup.md +docs/GroupRemoteInfoZendeskGroup.md +docs/GroupRemoteInfoZendeskOrganization.md docs/GroupResource.md docs/GroupResourceList.md docs/GroupTypeEnum.md @@ -106,27 +151,50 @@ docs/OnCallScheduleIDList.md docs/OnCallScheduleList.md docs/OnCallScheduleProviderEnum.md docs/OnCallSchedulesAPI.md +docs/OpalNodeQuery.md +docs/OpalNodeQueryBody.md +docs/OpalNodeQueryResults.md +docs/OpalQueriesAPI.md +docs/OpalQueryResultEdge.md +docs/OpalQueryResultNode.md docs/Owner.md docs/OwnersAPI.md +docs/PageInfo.md +docs/PaginatedAccessRulesList.md +docs/PaginatedAssignedRequestList.md docs/PaginatedBundleGroupList.md docs/PaginatedBundleList.md docs/PaginatedBundleResourceList.md docs/PaginatedConfigurationTemplateList.md +docs/PaginatedDelegationsList.md docs/PaginatedEventList.md docs/PaginatedGroupBindingsList.md docs/PaginatedGroupsList.md docs/PaginatedOwnersList.md +docs/PaginatedRemoteUsersList.md docs/PaginatedResourcesList.md docs/PaginatedTagsList.md +docs/PaginatedTokensList.md docs/PaginatedUARsList.md docs/PaginatedUsersList.md docs/PropagationStatus.md docs/PropagationStatusEnum.md +docs/RDSEngineEnum.md +docs/RemoteUser.md docs/Request.md +docs/RequestApprovalEnum.md +docs/RequestComment.md +docs/RequestCommentList.md docs/RequestConfiguration.md +docs/RequestConnection.md docs/RequestCustomFieldResponse.md docs/RequestCustomFieldResponseFieldValue.md +docs/RequestEdge.md +docs/RequestItemStages.md docs/RequestList.md +docs/RequestReviewer.md +docs/RequestReviewerStages.md +docs/RequestStage.md docs/RequestStatusEnum.md docs/RequestTemplateCustomFieldTypeEnum.md docs/RequestedItem.md @@ -137,12 +205,38 @@ 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/ResourceRemoteInfoClickhouseDatabase.md +docs/ResourceRemoteInfoClickhouseTable.md +docs/ResourceRemoteInfoCoupaRole.md +docs/ResourceRemoteInfoCursorOrganization.md +docs/ResourceRemoteInfoCustomConnector.md +docs/ResourceRemoteInfoDatabricksAccountServicePrincipal.md +docs/ResourceRemoteInfoDatadogRole.md +docs/ResourceRemoteInfoDatastaxAstraRole.md +docs/ResourceRemoteInfoDevinOrganization.md +docs/ResourceRemoteInfoDevinRole.md docs/ResourceRemoteInfoGcpBigQueryDataset.md docs/ResourceRemoteInfoGcpBigQueryTable.md docs/ResourceRemoteInfoGcpBucket.md @@ -153,52 +247,85 @@ docs/ResourceRemoteInfoGcpOrganization.md docs/ResourceRemoteInfoGcpProject.md docs/ResourceRemoteInfoGcpServiceAccount.md docs/ResourceRemoteInfoGcpSqlInstance.md +docs/ResourceRemoteInfoGithubEnterpriseRole.md +docs/ResourceRemoteInfoGithubOrg.md +docs/ResourceRemoteInfoGithubOrgRole.md docs/ResourceRemoteInfoGithubRepo.md docs/ResourceRemoteInfoGitlabProject.md +docs/ResourceRemoteInfoGoogleWorkspaceRole.md +docs/ResourceRemoteInfoGrafanaDashboard.md +docs/ResourceRemoteInfoGrafanaFolder.md +docs/ResourceRemoteInfoGrafanaRole.md +docs/ResourceRemoteInfoHubspotRole.md +docs/ResourceRemoteInfoIlevelAdvancedRole.md +docs/ResourceRemoteInfoNetsuiteRole.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/ResourceRemoteInfoTwingateResource.md +docs/ResourceRemoteInfoWorkdayRole.md +docs/ResourceRemoteInfoZendeskRole.md docs/ResourceTypeEnum.md docs/ResourceUser.md docs/ResourceUserAccessStatus.md docs/ResourceUserAccessStatusEnum.md docs/ResourceWithAccessLevel.md docs/ResourcesAPI.md +docs/ReviewStageOperator.md docs/ReviewerIDList.md docs/ReviewerStage.md docs/ReviewerStageList.md docs/RiskSensitivityEnum.md +docs/RolePermissionNameEnum.md +docs/RolePermissionTargetTypeEnum.md docs/RuleClauses.md docs/RuleConjunction.md docs/RuleDisjunction.md +docs/ScopedRolePermission.md +docs/ScopedRolePermissionList.md docs/Session.md docs/SessionsAPI.md docs/SessionsList.md +docs/StringMatchType.md docs/SubEvent.md docs/SyncError.md docs/SyncErrorList.md +docs/SyncTask.md docs/Tag.md docs/TagFilter.md docs/TagSelector.md docs/TagsAPI.md docs/TagsList.md +docs/ThirdPartyProviderEnum.md docs/TicketPropagationConfiguration.md docs/TicketingProviderEnum.md +docs/Token.md +docs/TokensAPI.md docs/UAR.md docs/UARReviewerAssignmentPolicyEnum.md docs/UARScope.md docs/UarsAPI.md +docs/UpdateAccessRuleInfo.md docs/UpdateConfigurationTemplateInfo.md +docs/UpdateEventStreamInfo.md docs/UpdateGroupBindingInfo.md docs/UpdateGroupBindingInfoList.md docs/UpdateGroupInfo.md docs/UpdateGroupInfoList.md docs/UpdateGroupResourcesInfo.md +docs/UpdateGroupUserRequest.md docs/UpdateIdpGroupMappingsRequest.md docs/UpdateIdpGroupMappingsRequestMappingsInner.md docs/UpdateOwnerInfo.md @@ -207,28 +334,39 @@ docs/UpdateResourceInfo.md docs/UpdateResourceInfoList.md docs/UpdateResourceUserRequest.md docs/User.md +docs/UserAttributeSelector.md docs/UserHrIdpStatusEnum.md docs/UserIDList.md docs/UserList.md docs/UsersAPI.md docs/VisibilityInfo.md docs/VisibilityTypeEnum.md +docs/WebhookApiKeyCredential.md +docs/WebhookApiKeyLocationEnum.md +docs/WebhookAuthTypeEnum.md +docs/WebhookCredentials.md +docs/WebhookHmacCredential.md go.mod go.sum model_access.go +model_access_entity_filters.go model_access_list.go -model_access_rule_condition.go +model_access_relationship_filters.go +model_access_rule.go model_add_bundle_group_request.go model_add_bundle_resource_request.go model_add_group_resource_request.go model_add_group_user_request.go model_add_resource_nhi_request.go model_add_resource_user_request.go +model_api_access_level_enum.go model_app.go model_app_type_enum.go model_app_validation.go model_app_validation_severity_enum.go model_app_validation_status_enum.go +model_approve_request_200_response.go +model_approve_request_request.go model_apps_list.go model_aws_permission_set_metadata.go model_aws_permission_set_metadata_aws_permission_set.go @@ -239,13 +377,17 @@ model_condition.go model_configuration_template.go model_create_bundle_info.go model_create_configuration_template_info.go +model_create_delegation_request.go +model_create_event_stream_info.go model_create_group_binding_info.go model_create_group_binding_info_groups_inner.go model_create_group_info.go +model_create_idp_group_mapping_request.go model_create_message_channel_info.go model_create_on_call_schedule_info.go model_create_owner_info.go model_create_request_200_response.go +model_create_request_comment_request.go model_create_request_configuration_info_list.go model_create_request_info.go model_create_request_info_custom_metadata_inner.go @@ -255,8 +397,18 @@ model_create_request_info_support_ticket.go model_create_resource_info.go model_create_tag_info.go model_create_uar_info.go +model_delegation.go +model_deny_request_request.go +model_entity_item_type_enum.go +model_entity_name_filter.go +model_entity_tag_filter.go model_entity_type_enum.go model_event.go +model_event_stream.go +model_event_stream_connection.go +model_event_stream_connection_type_enum.go +model_event_stream_list.go +model_get_resource_user_200_response.go model_group.go model_group_access_level.go model_group_binding.go @@ -265,14 +417,34 @@ 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_clickhouse_role.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_enterprise_team.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_grafana_team.go +model_group_remote_info_hubspot_team.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_slack_user_group.go +model_group_remote_info_snowflake_role.go +model_group_remote_info_tailscale_group.go +model_group_remote_info_twingate_group.go +model_group_remote_info_twingate_group_synced.go +model_group_remote_info_workday_user_security_group.go +model_group_remote_info_zendesk_group.go +model_group_remote_info_zendesk_organization.go model_group_resource.go model_group_resource_list.go model_group_type_enum.go @@ -289,26 +461,48 @@ model_on_call_schedule.go model_on_call_schedule_id_list.go model_on_call_schedule_list.go model_on_call_schedule_provider_enum.go +model_opal_node_query.go +model_opal_node_query_body.go +model_opal_node_query_results.go +model_opal_query_result_edge.go +model_opal_query_result_node.go model_owner.go +model_page_info.go +model_paginated_access_rules_list.go +model_paginated_assigned_request_list.go model_paginated_bundle_group_list.go model_paginated_bundle_list.go model_paginated_bundle_resource_list.go model_paginated_configuration_template_list.go +model_paginated_delegations_list.go model_paginated_event_list.go model_paginated_group_bindings_list.go model_paginated_groups_list.go model_paginated_owners_list.go +model_paginated_remote_users_list.go model_paginated_resources_list.go model_paginated_tags_list.go +model_paginated_tokens_list.go 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 +model_request_comment.go +model_request_comment_list.go model_request_configuration.go +model_request_connection.go model_request_custom_field_response.go model_request_custom_field_response_field_value.go +model_request_edge.go +model_request_item_stages.go model_request_list.go +model_request_reviewer.go +model_request_reviewer_stages.go +model_request_stage.go model_request_status_enum.go model_request_template_custom_field_type_enum.go model_requested_item.go @@ -318,12 +512,38 @@ 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_clickhouse_database.go +model_resource_remote_info_clickhouse_table.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_datadog_role.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 @@ -334,48 +554,80 @@ model_resource_remote_info_gcp_organization.go model_resource_remote_info_gcp_project.go model_resource_remote_info_gcp_service_account.go model_resource_remote_info_gcp_sql_instance.go +model_resource_remote_info_github_enterprise_role.go +model_resource_remote_info_github_org.go +model_resource_remote_info_github_org_role.go model_resource_remote_info_github_repo.go model_resource_remote_info_gitlab_project.go +model_resource_remote_info_google_workspace_role.go +model_resource_remote_info_grafana_dashboard.go +model_resource_remote_info_grafana_folder.go +model_resource_remote_info_grafana_role.go +model_resource_remote_info_hubspot_role.go +model_resource_remote_info_ilevel_advanced_role.go +model_resource_remote_info_netsuite_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_twingate_resource.go +model_resource_remote_info_workday_role.go +model_resource_remote_info_zendesk_role.go model_resource_type_enum.go model_resource_user.go model_resource_user_access_status.go model_resource_user_access_status_enum.go model_resource_with_access_level.go +model_review_stage_operator.go model_reviewer_id_list.go model_reviewer_stage.go model_reviewer_stage_list.go model_risk_sensitivity_enum.go +model_role_permission_name_enum.go +model_role_permission_target_type_enum.go model_rule_clauses.go model_rule_conjunction.go model_rule_disjunction.go +model_scoped_role_permission.go +model_scoped_role_permission_list.go model_session.go model_sessions_list.go +model_string_match_type.go model_sub_event.go model_sync_error.go model_sync_error_list.go +model_sync_task.go model_tag.go model_tag_filter.go model_tag_selector.go model_tags_list.go +model_third_party_provider_enum.go model_ticket_propagation_configuration.go model_ticketing_provider_enum.go +model_token.go model_uar.go model_uar_reviewer_assignment_policy_enum.go model_uar_scope.go +model_update_access_rule_info.go model_update_configuration_template_info.go +model_update_event_stream_info.go model_update_group_binding_info.go model_update_group_binding_info_list.go model_update_group_info.go model_update_group_info_list.go model_update_group_resources_info.go +model_update_group_user_request.go model_update_idp_group_mappings_request.go model_update_idp_group_mappings_request_mappings_inner.go model_update_owner_info.go @@ -384,10 +636,16 @@ model_update_resource_info.go model_update_resource_info_list.go model_update_resource_user_request.go model_user.go +model_user_attribute_selector.go model_user_hr_idp_status_enum.go model_user_id_list.go model_user_list.go model_visibility_info.go model_visibility_type_enum.go +model_webhook_api_key_credential.go +model_webhook_api_key_location_enum.go +model_webhook_auth_type_enum.go +model_webhook_credentials.go +model_webhook_hmac_credential.go response.go utils.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 5f84a81..3821090 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.12.0 +7.19.0 diff --git a/README.md b/README.md index bec326b..da25e61 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.12.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/) @@ -79,20 +79,22 @@ All URIs are relative to *https://api.opal.dev/v1* 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* | [**GetAccessRules**](docs/AccessRulesAPI.md#getaccessrules) | **Get** /access-rules | *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 | *BundlesAPI* | [**CreateBundle**](docs/BundlesAPI.md#createbundle) | **Post** /bundles | *BundlesAPI* | [**DeleteBundle**](docs/BundlesAPI.md#deletebundle) | **Delete** /bundles/{bundle_id} | -*BundlesAPI* | [**GetBundle**](docs/BundlesAPI.md#getbundle) | **Get** /bundles/{bundle_id} | +*BundlesAPI* | [**GetBundle**](docs/BundlesAPI.md#getbundle) | **Get** /bundles/{bundle_id} | Get bundle by ID *BundlesAPI* | [**GetBundleGroups**](docs/BundlesAPI.md#getbundlegroups) | **Get** /bundles/{bundle_id}/groups | *BundlesAPI* | [**GetBundleResources**](docs/BundlesAPI.md#getbundleresources) | **Get** /bundles/{bundle_id}/resources | *BundlesAPI* | [**GetBundleVisibility**](docs/BundlesAPI.md#getbundlevisibility) | **Get** /bundles/{bundle_id}/visibility | -*BundlesAPI* | [**GetBundles**](docs/BundlesAPI.md#getbundles) | **Get** /bundles | +*BundlesAPI* | [**GetBundles**](docs/BundlesAPI.md#getbundles) | **Get** /bundles | Get bundles *BundlesAPI* | [**RemoveBundleGroup**](docs/BundlesAPI.md#removebundlegroup) | **Delete** /bundles/{bundle_id}/groups/{group_id} | *BundlesAPI* | [**RemoveBundleResource**](docs/BundlesAPI.md#removebundleresource) | **Delete** /bundles/{bundle_id}/resources/{resource_id} | *BundlesAPI* | [**SetBundleVisibility**](docs/BundlesAPI.md#setbundlevisibility) | **Put** /bundles/{bundle_id}/visibility | @@ -101,11 +103,20 @@ Class | Method | HTTP request | Description *ConfigurationTemplatesAPI* | [**DeleteConfigurationTemplate**](docs/ConfigurationTemplatesAPI.md#deleteconfigurationtemplate) | **Delete** /configuration-templates/{configuration_template_id} | *ConfigurationTemplatesAPI* | [**GetConfigurationTemplates**](docs/ConfigurationTemplatesAPI.md#getconfigurationtemplates) | **Get** /configuration-templates | *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} | Get delegation by ID +*DelegationsAPI* | [**GetDelegations**](docs/DelegationsAPI.md#getdelegations) | **Get** /delegations | Get delegations +*EventStreamsAPI* | [**CreateEventStream**](docs/EventStreamsAPI.md#createeventstream) | **Post** /event-streams | Create event stream +*EventStreamsAPI* | [**DeleteEventStream**](docs/EventStreamsAPI.md#deleteeventstream) | **Delete** /event-streams/{event_stream_id} | Delete event stream +*EventStreamsAPI* | [**GetEventStreams**](docs/EventStreamsAPI.md#geteventstreams) | **Get** /event-streams | Get event streams +*EventStreamsAPI* | [**UpdateEventStream**](docs/EventStreamsAPI.md#updateeventstream) | **Put** /event-streams/{event_stream_id} | Update event stream *EventsAPI* | [**Events**](docs/EventsAPI.md#events) | **Get** /events | +*EventsAPI* | [**GetEvent**](docs/EventsAPI.md#getevent) | **Get** /events/{event_id} | Get event by ID *GroupBindingsAPI* | [**CreateGroupBinding**](docs/GroupBindingsAPI.md#creategroupbinding) | **Post** /group-bindings | *GroupBindingsAPI* | [**DeleteGroupBinding**](docs/GroupBindingsAPI.md#deletegroupbinding) | **Delete** /group-bindings/{group_binding_id} | -*GroupBindingsAPI* | [**GetGroupBinding**](docs/GroupBindingsAPI.md#getgroupbinding) | **Get** /group-bindings/{group_binding_id} | -*GroupBindingsAPI* | [**GetGroupBindings**](docs/GroupBindingsAPI.md#getgroupbindings) | **Get** /group-bindings | +*GroupBindingsAPI* | [**GetGroupBinding**](docs/GroupBindingsAPI.md#getgroupbinding) | **Get** /group-bindings/{group_binding_id} | Get group binding by ID +*GroupBindingsAPI* | [**GetGroupBindings**](docs/GroupBindingsAPI.md#getgroupbindings) | **Get** /group-bindings | Get group bindings *GroupBindingsAPI* | [**UpdateGroupBindings**](docs/GroupBindingsAPI.md#updategroupbindings) | **Put** /group-bindings | *GroupsAPI* | [**AddGroupContainingGroup**](docs/GroupsAPI.md#addgroupcontaininggroup) | **Post** /groups/{group_id}/containing-groups | *GroupsAPI* | [**AddGroupResource**](docs/GroupsAPI.md#addgroupresource) | **Post** /groups/{group_id}/resources/{resource_id} | @@ -113,9 +124,9 @@ Class | Method | HTTP request | Description *GroupsAPI* | [**CreateGroup**](docs/GroupsAPI.md#creategroup) | **Post** /groups | *GroupsAPI* | [**DeleteGroup**](docs/GroupsAPI.md#deletegroup) | **Delete** /groups/{group_id} | *GroupsAPI* | [**DeleteGroupUser**](docs/GroupsAPI.md#deletegroupuser) | **Delete** /groups/{group_id}/users/{user_id} | -*GroupsAPI* | [**GetGroup**](docs/GroupsAPI.md#getgroup) | **Get** /groups/{group_id} | -*GroupsAPI* | [**GetGroupContainingGroup**](docs/GroupsAPI.md#getgroupcontaininggroup) | **Get** /groups/{group_id}/containing-groups/{containing_group_id} | -*GroupsAPI* | [**GetGroupContainingGroups**](docs/GroupsAPI.md#getgroupcontaininggroups) | **Get** /groups/{group_id}/containing-groups | +*GroupsAPI* | [**GetGroup**](docs/GroupsAPI.md#getgroup) | **Get** /groups/{group_id} | Get group by ID +*GroupsAPI* | [**GetGroupContainingGroup**](docs/GroupsAPI.md#getgroupcontaininggroup) | **Get** /groups/{group_id}/containing-groups/{containing_group_id} | Get nested group by ID +*GroupsAPI* | [**GetGroupContainingGroups**](docs/GroupsAPI.md#getgroupcontaininggroups) | **Get** /groups/{group_id}/containing-groups | Get nested groups *GroupsAPI* | [**GetGroupMessageChannels**](docs/GroupsAPI.md#getgroupmessagechannels) | **Get** /groups/{group_id}/message-channels | *GroupsAPI* | [**GetGroupOnCallSchedules**](docs/GroupsAPI.md#getgrouponcallschedules) | **Get** /groups/{group_id}/on-call-schedules | *GroupsAPI* | [**GetGroupResources**](docs/GroupsAPI.md#getgroupresources) | **Get** /groups/{group_id}/resources | @@ -124,7 +135,8 @@ Class | Method | HTTP request | Description *GroupsAPI* | [**GetGroupTags**](docs/GroupsAPI.md#getgrouptags) | **Get** /groups/{group_id}/tags | *GroupsAPI* | [**GetGroupUsers**](docs/GroupsAPI.md#getgroupusers) | **Get** /groups/{group_id}/users | *GroupsAPI* | [**GetGroupVisibility**](docs/GroupsAPI.md#getgroupvisibility) | **Get** /groups/{group_id}/visibility | -*GroupsAPI* | [**GetGroups**](docs/GroupsAPI.md#getgroups) | **Get** /groups | +*GroupsAPI* | [**GetGroups**](docs/GroupsAPI.md#getgroups) | **Get** /groups | Get groups +*GroupsAPI* | [**GetUserGroups**](docs/GroupsAPI.md#getusergroups) | **Get** /groups/users/{user_id} | *GroupsAPI* | [**RemoveGroupContainingGroup**](docs/GroupsAPI.md#removegroupcontaininggroup) | **Delete** /groups/{group_id}/containing-groups/{containing_group_id} | *GroupsAPI* | [**SetGroupMessageChannels**](docs/GroupsAPI.md#setgroupmessagechannels) | **Put** /groups/{group_id}/message-channels | *GroupsAPI* | [**SetGroupOnCallSchedules**](docs/GroupsAPI.md#setgrouponcallschedules) | **Put** /groups/{group_id}/on-call-schedules | @@ -132,46 +144,61 @@ Class | Method | HTTP request | Description *GroupsAPI* | [**SetGroupReviewerStages**](docs/GroupsAPI.md#setgroupreviewerstages) | **Put** /groups/{group_id}/reviewer-stages | *GroupsAPI* | [**SetGroupReviewers**](docs/GroupsAPI.md#setgroupreviewers) | **Put** /groups/{group_id}/reviewers | *GroupsAPI* | [**SetGroupVisibility**](docs/GroupsAPI.md#setgroupvisibility) | **Put** /groups/{group_id}/visibility | +*GroupsAPI* | [**UpdateGroupUser**](docs/GroupsAPI.md#updategroupuser) | **Put** /groups/{group_id}/users/{user_id} | *GroupsAPI* | [**UpdateGroups**](docs/GroupsAPI.md#updategroups) | **Put** /groups | -*IdpGroupMappingsAPI* | [**DeleteIdpGroupMappings**](docs/IdpGroupMappingsAPI.md#deleteidpgroupmappings) | **Delete** /idp-group-mappings/{app_resource_id}/{group_id}/ | +*IdpGroupMappingsAPI* | [**CreateIdpGroupMapping**](docs/IdpGroupMappingsAPI.md#createidpgroupmapping) | **Post** /idp-group-mappings/{app_resource_id}/groups/{group_id} | +*IdpGroupMappingsAPI* | [**DeleteIdpGroupMappings**](docs/IdpGroupMappingsAPI.md#deleteidpgroupmappings) | **Delete** /idp-group-mappings/{app_resource_id}/groups/{group_id} | +*IdpGroupMappingsAPI* | [**GetIdpGroupMapping**](docs/IdpGroupMappingsAPI.md#getidpgroupmapping) | **Get** /idp-group-mappings/{app_resource_id}/groups/{group_id} | *IdpGroupMappingsAPI* | [**GetIdpGroupMappings**](docs/IdpGroupMappingsAPI.md#getidpgroupmappings) | **Get** /idp-group-mappings/{app_resource_id} | *IdpGroupMappingsAPI* | [**UpdateIdpGroupMappings**](docs/IdpGroupMappingsAPI.md#updateidpgroupmappings) | **Put** /idp-group-mappings/{app_resource_id} | *MessageChannelsAPI* | [**CreateMessageChannel**](docs/MessageChannelsAPI.md#createmessagechannel) | **Post** /message-channels | -*MessageChannelsAPI* | [**GetMessageChannel**](docs/MessageChannelsAPI.md#getmessagechannel) | **Get** /message-channels/{message_channel_id} | -*MessageChannelsAPI* | [**GetMessageChannels**](docs/MessageChannelsAPI.md#getmessagechannels) | **Get** /message-channels | +*MessageChannelsAPI* | [**GetMessageChannel**](docs/MessageChannelsAPI.md#getmessagechannel) | **Get** /message-channels/{message_channel_id} | Get message channel by ID +*MessageChannelsAPI* | [**GetMessageChannels**](docs/MessageChannelsAPI.md#getmessagechannels) | **Get** /message-channels | Get message channels *NonHumanIdentitiesAPI* | [**GetNhis**](docs/NonHumanIdentitiesAPI.md#getnhis) | **Get** /non-human-identities | *OnCallSchedulesAPI* | [**CreateOnCallSchedule**](docs/OnCallSchedulesAPI.md#createoncallschedule) | **Post** /on-call-schedules | -*OnCallSchedulesAPI* | [**GetOnCallSchedule**](docs/OnCallSchedulesAPI.md#getoncallschedule) | **Get** /on-call-schedules/{on_call_schedule_id} | -*OnCallSchedulesAPI* | [**GetOnCallSchedules**](docs/OnCallSchedulesAPI.md#getoncallschedules) | **Get** /on-call-schedules | +*OnCallSchedulesAPI* | [**GetOnCallSchedule**](docs/OnCallSchedulesAPI.md#getoncallschedule) | **Get** /on-call-schedules/{on_call_schedule_id} | Get on call schedule by ID +*OnCallSchedulesAPI* | [**GetOnCallSchedules**](docs/OnCallSchedulesAPI.md#getoncallschedules) | **Get** /on-call-schedules | Get on call schedules +*OpalQueriesAPI* | [**RunOpalQuery**](docs/OpalQueriesAPI.md#runopalquery) | **Post** /queries/run | Run an ad-hoc OpalQuery *OwnersAPI* | [**CreateOwner**](docs/OwnersAPI.md#createowner) | **Post** /owners | *OwnersAPI* | [**DeleteOwner**](docs/OwnersAPI.md#deleteowner) | **Delete** /owners/{owner_id} | -*OwnersAPI* | [**GetOwner**](docs/OwnersAPI.md#getowner) | **Get** /owners/{owner_id} | +*OwnersAPI* | [**GetOwner**](docs/OwnersAPI.md#getowner) | **Get** /owners/{owner_id} | Get owner by ID *OwnersAPI* | [**GetOwnerFromName**](docs/OwnersAPI.md#getownerfromname) | **Get** /owners/name/{owner_name} | *OwnersAPI* | [**GetOwnerUsers**](docs/OwnersAPI.md#getownerusers) | **Get** /owners/{owner_id}/users | -*OwnersAPI* | [**GetOwners**](docs/OwnersAPI.md#getowners) | **Get** /owners | +*OwnersAPI* | [**GetOwners**](docs/OwnersAPI.md#getowners) | **Get** /owners | Get owners *OwnersAPI* | [**SetOwnerUsers**](docs/OwnersAPI.md#setownerusers) | **Put** /owners/{owner_id}/users | *OwnersAPI* | [**UpdateOwners**](docs/OwnersAPI.md#updateowners) | **Put** /owners | +*RequestsAPI* | [**ApproveRequest**](docs/RequestsAPI.md#approverequest) | **Post** /requests/{id}/approve | *RequestsAPI* | [**CreateRequest**](docs/RequestsAPI.md#createrequest) | **Post** /requests | -*RequestsAPI* | [**GetRequests**](docs/RequestsAPI.md#getrequests) | **Get** /requests | +*RequestsAPI* | [**CreateRequestComment**](docs/RequestsAPI.md#createrequestcomment) | **Post** /requests/{id}/comments | +*RequestsAPI* | [**DenyRequest**](docs/RequestsAPI.md#denyrequest) | **Post** /requests/{id}/deny | +*RequestsAPI* | [**GetRequest**](docs/RequestsAPI.md#getrequest) | **Get** /requests/{id} | Get request by ID +*RequestsAPI* | [**GetRequestComments**](docs/RequestsAPI.md#getrequestcomments) | **Get** /requests/{id}/comments | +*RequestsAPI* | [**GetRequests**](docs/RequestsAPI.md#getrequests) | **Get** /requests | Get requests +*RequestsAPI* | [**GetRequestsRelay**](docs/RequestsAPI.md#getrequestsrelay) | **Get** /requests/relay | Get requests via Relay *ResourcesAPI* | [**AddResourceNhi**](docs/ResourcesAPI.md#addresourcenhi) | **Post** /resources/{resource_id}/non-human-identities/{non_human_identity_id} | *ResourcesAPI* | [**AddResourceUser**](docs/ResourcesAPI.md#addresourceuser) | **Post** /resources/{resource_id}/users/{user_id} | *ResourcesAPI* | [**CreateResource**](docs/ResourcesAPI.md#createresource) | **Post** /resources | *ResourcesAPI* | [**DeleteResource**](docs/ResourcesAPI.md#deleteresource) | **Delete** /resources/{resource_id} | *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} | +*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 | *ResourcesAPI* | [**GetResourceReviewers**](docs/ResourcesAPI.md#getresourcereviewers) | **Get** /resources/{resource_id}/reviewers | +*ResourcesAPI* | [**GetResourceScopedRolePermissions**](docs/ResourcesAPI.md#getresourcescopedrolepermissions) | **Get** /resources/{resource_id}/scoped-role-permissions | *ResourcesAPI* | [**GetResourceTags**](docs/ResourcesAPI.md#getresourcetags) | **Get** /resources/{resource_id}/tags | -*ResourcesAPI* | [**GetResourceUsers**](docs/ResourcesAPI.md#getresourceusers) | **Get** /resources/{resource_id}/users | +*ResourcesAPI* | [**GetResourceUser**](docs/ResourcesAPI.md#getresourceuser) | **Get** /resources/{resource_id}/users/{user_id} | Get resource user +*ResourcesAPI* | [**GetResourceUsers**](docs/ResourcesAPI.md#getresourceusers) | **Get** /resources/{resource_id}/users | Get resource users *ResourcesAPI* | [**GetResourceVisibility**](docs/ResourcesAPI.md#getresourcevisibility) | **Get** /resources/{resource_id}/visibility | -*ResourcesAPI* | [**GetResources**](docs/ResourcesAPI.md#getresources) | **Get** /resources | +*ResourcesAPI* | [**GetResources**](docs/ResourcesAPI.md#getresources) | **Get** /resources | Get resources +*ResourcesAPI* | [**GetUserResources**](docs/ResourcesAPI.md#getuserresources) | **Get** /resources/users/{user_id} | *ResourcesAPI* | [**ResourceUserAccessStatusRetrieve**](docs/ResourcesAPI.md#resourceuseraccessstatusretrieve) | **Get** /resource-user-access-status/{resource_id}/{user_id} | *ResourcesAPI* | [**SetResourceMessageChannels**](docs/ResourcesAPI.md#setresourcemessagechannels) | **Put** /resources/{resource_id}/message-channels | *ResourcesAPI* | [**SetResourceReviewerStages**](docs/ResourcesAPI.md#setresourcereviewerstages) | **Put** /resources/{resource_id}/reviewer-stages | *ResourcesAPI* | [**SetResourceReviewers**](docs/ResourcesAPI.md#setresourcereviewers) | **Put** /resources/{resource_id}/reviewers | +*ResourcesAPI* | [**SetResourceScopedRolePermissions**](docs/ResourcesAPI.md#setresourcescopedrolepermissions) | **Put** /resources/{resource_id}/scoped-role-permissions | *ResourcesAPI* | [**SetResourceVisibility**](docs/ResourcesAPI.md#setresourcevisibility) | **Put** /resources/{resource_id}/visibility | *ResourcesAPI* | [**UpdateResourceUser**](docs/ResourcesAPI.md#updateresourceuser) | **Put** /resources/{resource_id}/users/{user_id} | *ResourcesAPI* | [**UpdateResources**](docs/ResourcesAPI.md#updateresources) | **Put** /resources | @@ -182,14 +209,17 @@ Class | Method | HTTP request | Description *TagsAPI* | [**CreateTag**](docs/TagsAPI.md#createtag) | **Post** /tag | *TagsAPI* | [**DeleteTagByID**](docs/TagsAPI.md#deletetagbyid) | **Delete** /tag/{tag_id} | *TagsAPI* | [**GetTag**](docs/TagsAPI.md#gettag) | **Get** /tag | -*TagsAPI* | [**GetTagByID**](docs/TagsAPI.md#gettagbyid) | **Get** /tag/{tag_id} | -*TagsAPI* | [**GetTags**](docs/TagsAPI.md#gettags) | **Get** /tags | +*TagsAPI* | [**GetTagByID**](docs/TagsAPI.md#gettagbyid) | **Get** /tag/{tag_id} | Get tag by ID +*TagsAPI* | [**GetTags**](docs/TagsAPI.md#gettags) | **Get** /tags | Get tags *TagsAPI* | [**RemoveGroupTag**](docs/TagsAPI.md#removegrouptag) | **Delete** /tags/{tag_id}/groups/{group_id} | *TagsAPI* | [**RemoveResourceTag**](docs/TagsAPI.md#removeresourcetag) | **Delete** /tags/{tag_id}/resources/{resource_id} | *TagsAPI* | [**RemoveUserTag**](docs/TagsAPI.md#removeusertag) | **Delete** /tags/{tag_id}/users/{user_id} | +*TokensAPI* | [**DeleteToken**](docs/TokensAPI.md#deletetoken) | **Delete** /tokens/{token_id} | Delete token +*TokensAPI* | [**GetTokens**](docs/TokensAPI.md#gettokens) | **Get** /tokens | Get tokens *UarsAPI* | [**CreateUar**](docs/UarsAPI.md#createuar) | **Post** /uar | *UarsAPI* | [**GetUARs**](docs/UarsAPI.md#getuars) | **Get** /uars | *UarsAPI* | [**GetUar**](docs/UarsAPI.md#getuar) | **Get** /uar/{uar_id} | +*UsersAPI* | [**GetRemoteUsers**](docs/UsersAPI.md#getremoteusers) | **Get** /users/remote_users | *UsersAPI* | [**GetUserTags**](docs/UsersAPI.md#getusertags) | **Get** /users/{user_id}/tags | *UsersAPI* | [**GetUsers**](docs/UsersAPI.md#getusers) | **Get** /users | *UsersAPI* | [**User**](docs/UsersAPI.md#user) | **Get** /user | @@ -198,19 +228,24 @@ Class | Method | HTTP request | Description ## Documentation For Models - [Access](docs/Access.md) + - [AccessEntityFilters](docs/AccessEntityFilters.md) - [AccessList](docs/AccessList.md) - - [AccessRuleCondition](docs/AccessRuleCondition.md) + - [AccessRelationshipFilters](docs/AccessRelationshipFilters.md) + - [AccessRule](docs/AccessRule.md) - [AddBundleGroupRequest](docs/AddBundleGroupRequest.md) - [AddBundleResourceRequest](docs/AddBundleResourceRequest.md) - [AddGroupResourceRequest](docs/AddGroupResourceRequest.md) - [AddGroupUserRequest](docs/AddGroupUserRequest.md) - [AddResourceNhiRequest](docs/AddResourceNhiRequest.md) - [AddResourceUserRequest](docs/AddResourceUserRequest.md) + - [ApiAccessLevelEnum](docs/ApiAccessLevelEnum.md) - [App](docs/App.md) - [AppTypeEnum](docs/AppTypeEnum.md) - [AppValidation](docs/AppValidation.md) - [AppValidationSeverityEnum](docs/AppValidationSeverityEnum.md) - [AppValidationStatusEnum](docs/AppValidationStatusEnum.md) + - [ApproveRequest200Response](docs/ApproveRequest200Response.md) + - [ApproveRequestRequest](docs/ApproveRequestRequest.md) - [AppsList](docs/AppsList.md) - [AwsPermissionSetMetadata](docs/AwsPermissionSetMetadata.md) - [AwsPermissionSetMetadataAwsPermissionSet](docs/AwsPermissionSetMetadataAwsPermissionSet.md) @@ -221,13 +256,17 @@ Class | Method | HTTP request | Description - [ConfigurationTemplate](docs/ConfigurationTemplate.md) - [CreateBundleInfo](docs/CreateBundleInfo.md) - [CreateConfigurationTemplateInfo](docs/CreateConfigurationTemplateInfo.md) + - [CreateDelegationRequest](docs/CreateDelegationRequest.md) + - [CreateEventStreamInfo](docs/CreateEventStreamInfo.md) - [CreateGroupBindingInfo](docs/CreateGroupBindingInfo.md) - [CreateGroupBindingInfoGroupsInner](docs/CreateGroupBindingInfoGroupsInner.md) - [CreateGroupInfo](docs/CreateGroupInfo.md) + - [CreateIdpGroupMappingRequest](docs/CreateIdpGroupMappingRequest.md) - [CreateMessageChannelInfo](docs/CreateMessageChannelInfo.md) - [CreateOnCallScheduleInfo](docs/CreateOnCallScheduleInfo.md) - [CreateOwnerInfo](docs/CreateOwnerInfo.md) - [CreateRequest200Response](docs/CreateRequest200Response.md) + - [CreateRequestCommentRequest](docs/CreateRequestCommentRequest.md) - [CreateRequestConfigurationInfoList](docs/CreateRequestConfigurationInfoList.md) - [CreateRequestInfo](docs/CreateRequestInfo.md) - [CreateRequestInfoCustomMetadataInner](docs/CreateRequestInfoCustomMetadataInner.md) @@ -237,8 +276,18 @@ Class | Method | HTTP request | Description - [CreateResourceInfo](docs/CreateResourceInfo.md) - [CreateTagInfo](docs/CreateTagInfo.md) - [CreateUARInfo](docs/CreateUARInfo.md) + - [Delegation](docs/Delegation.md) + - [DenyRequestRequest](docs/DenyRequestRequest.md) + - [EntityItemTypeEnum](docs/EntityItemTypeEnum.md) + - [EntityNameFilter](docs/EntityNameFilter.md) + - [EntityTagFilter](docs/EntityTagFilter.md) - [EntityTypeEnum](docs/EntityTypeEnum.md) - [Event](docs/Event.md) + - [EventStream](docs/EventStream.md) + - [EventStreamConnection](docs/EventStreamConnection.md) + - [EventStreamConnectionTypeEnum](docs/EventStreamConnectionTypeEnum.md) + - [EventStreamList](docs/EventStreamList.md) + - [GetResourceUser200Response](docs/GetResourceUser200Response.md) - [Group](docs/Group.md) - [GroupAccessLevel](docs/GroupAccessLevel.md) - [GroupBinding](docs/GroupBinding.md) @@ -247,14 +296,34 @@ 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) + - [GroupRemoteInfoClickhouseRole](docs/GroupRemoteInfoClickhouseRole.md) + - [GroupRemoteInfoConnectorGroup](docs/GroupRemoteInfoConnectorGroup.md) + - [GroupRemoteInfoDatabricksAccountGroup](docs/GroupRemoteInfoDatabricksAccountGroup.md) + - [GroupRemoteInfoDevinGroup](docs/GroupRemoteInfoDevinGroup.md) - [GroupRemoteInfoDuoGroup](docs/GroupRemoteInfoDuoGroup.md) + - [GroupRemoteInfoGithubEnterpriseTeam](docs/GroupRemoteInfoGithubEnterpriseTeam.md) - [GroupRemoteInfoGithubTeam](docs/GroupRemoteInfoGithubTeam.md) - [GroupRemoteInfoGitlabGroup](docs/GroupRemoteInfoGitlabGroup.md) - [GroupRemoteInfoGoogleGroup](docs/GroupRemoteInfoGoogleGroup.md) + - [GroupRemoteInfoGrafanaTeam](docs/GroupRemoteInfoGrafanaTeam.md) + - [GroupRemoteInfoHubspotTeam](docs/GroupRemoteInfoHubspotTeam.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) + - [GroupRemoteInfoSlackUserGroup](docs/GroupRemoteInfoSlackUserGroup.md) + - [GroupRemoteInfoSnowflakeRole](docs/GroupRemoteInfoSnowflakeRole.md) + - [GroupRemoteInfoTailscaleGroup](docs/GroupRemoteInfoTailscaleGroup.md) + - [GroupRemoteInfoTwingateGroup](docs/GroupRemoteInfoTwingateGroup.md) + - [GroupRemoteInfoTwingateGroupSynced](docs/GroupRemoteInfoTwingateGroupSynced.md) + - [GroupRemoteInfoWorkdayUserSecurityGroup](docs/GroupRemoteInfoWorkdayUserSecurityGroup.md) + - [GroupRemoteInfoZendeskGroup](docs/GroupRemoteInfoZendeskGroup.md) + - [GroupRemoteInfoZendeskOrganization](docs/GroupRemoteInfoZendeskOrganization.md) - [GroupResource](docs/GroupResource.md) - [GroupResourceList](docs/GroupResourceList.md) - [GroupTypeEnum](docs/GroupTypeEnum.md) @@ -271,26 +340,48 @@ Class | Method | HTTP request | Description - [OnCallScheduleIDList](docs/OnCallScheduleIDList.md) - [OnCallScheduleList](docs/OnCallScheduleList.md) - [OnCallScheduleProviderEnum](docs/OnCallScheduleProviderEnum.md) + - [OpalNodeQuery](docs/OpalNodeQuery.md) + - [OpalNodeQueryBody](docs/OpalNodeQueryBody.md) + - [OpalNodeQueryResults](docs/OpalNodeQueryResults.md) + - [OpalQueryResultEdge](docs/OpalQueryResultEdge.md) + - [OpalQueryResultNode](docs/OpalQueryResultNode.md) - [Owner](docs/Owner.md) + - [PageInfo](docs/PageInfo.md) + - [PaginatedAccessRulesList](docs/PaginatedAccessRulesList.md) + - [PaginatedAssignedRequestList](docs/PaginatedAssignedRequestList.md) - [PaginatedBundleGroupList](docs/PaginatedBundleGroupList.md) - [PaginatedBundleList](docs/PaginatedBundleList.md) - [PaginatedBundleResourceList](docs/PaginatedBundleResourceList.md) - [PaginatedConfigurationTemplateList](docs/PaginatedConfigurationTemplateList.md) + - [PaginatedDelegationsList](docs/PaginatedDelegationsList.md) - [PaginatedEventList](docs/PaginatedEventList.md) - [PaginatedGroupBindingsList](docs/PaginatedGroupBindingsList.md) - [PaginatedGroupsList](docs/PaginatedGroupsList.md) - [PaginatedOwnersList](docs/PaginatedOwnersList.md) + - [PaginatedRemoteUsersList](docs/PaginatedRemoteUsersList.md) - [PaginatedResourcesList](docs/PaginatedResourcesList.md) - [PaginatedTagsList](docs/PaginatedTagsList.md) + - [PaginatedTokensList](docs/PaginatedTokensList.md) - [PaginatedUARsList](docs/PaginatedUARsList.md) - [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) + - [RequestComment](docs/RequestComment.md) + - [RequestCommentList](docs/RequestCommentList.md) - [RequestConfiguration](docs/RequestConfiguration.md) + - [RequestConnection](docs/RequestConnection.md) - [RequestCustomFieldResponse](docs/RequestCustomFieldResponse.md) - [RequestCustomFieldResponseFieldValue](docs/RequestCustomFieldResponseFieldValue.md) + - [RequestEdge](docs/RequestEdge.md) + - [RequestItemStages](docs/RequestItemStages.md) - [RequestList](docs/RequestList.md) + - [RequestReviewer](docs/RequestReviewer.md) + - [RequestReviewerStages](docs/RequestReviewerStages.md) + - [RequestStage](docs/RequestStage.md) - [RequestStatusEnum](docs/RequestStatusEnum.md) - [RequestTemplateCustomFieldTypeEnum](docs/RequestTemplateCustomFieldTypeEnum.md) - [RequestedItem](docs/RequestedItem.md) @@ -300,12 +391,38 @@ 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) + - [ResourceRemoteInfoClickhouseDatabase](docs/ResourceRemoteInfoClickhouseDatabase.md) + - [ResourceRemoteInfoClickhouseTable](docs/ResourceRemoteInfoClickhouseTable.md) + - [ResourceRemoteInfoCoupaRole](docs/ResourceRemoteInfoCoupaRole.md) + - [ResourceRemoteInfoCursorOrganization](docs/ResourceRemoteInfoCursorOrganization.md) + - [ResourceRemoteInfoCustomConnector](docs/ResourceRemoteInfoCustomConnector.md) + - [ResourceRemoteInfoDatabricksAccountServicePrincipal](docs/ResourceRemoteInfoDatabricksAccountServicePrincipal.md) + - [ResourceRemoteInfoDatadogRole](docs/ResourceRemoteInfoDatadogRole.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) @@ -316,48 +433,80 @@ Class | Method | HTTP request | Description - [ResourceRemoteInfoGcpProject](docs/ResourceRemoteInfoGcpProject.md) - [ResourceRemoteInfoGcpServiceAccount](docs/ResourceRemoteInfoGcpServiceAccount.md) - [ResourceRemoteInfoGcpSqlInstance](docs/ResourceRemoteInfoGcpSqlInstance.md) + - [ResourceRemoteInfoGithubEnterpriseRole](docs/ResourceRemoteInfoGithubEnterpriseRole.md) + - [ResourceRemoteInfoGithubOrg](docs/ResourceRemoteInfoGithubOrg.md) + - [ResourceRemoteInfoGithubOrgRole](docs/ResourceRemoteInfoGithubOrgRole.md) - [ResourceRemoteInfoGithubRepo](docs/ResourceRemoteInfoGithubRepo.md) - [ResourceRemoteInfoGitlabProject](docs/ResourceRemoteInfoGitlabProject.md) + - [ResourceRemoteInfoGoogleWorkspaceRole](docs/ResourceRemoteInfoGoogleWorkspaceRole.md) + - [ResourceRemoteInfoGrafanaDashboard](docs/ResourceRemoteInfoGrafanaDashboard.md) + - [ResourceRemoteInfoGrafanaFolder](docs/ResourceRemoteInfoGrafanaFolder.md) + - [ResourceRemoteInfoGrafanaRole](docs/ResourceRemoteInfoGrafanaRole.md) + - [ResourceRemoteInfoHubspotRole](docs/ResourceRemoteInfoHubspotRole.md) + - [ResourceRemoteInfoIlevelAdvancedRole](docs/ResourceRemoteInfoIlevelAdvancedRole.md) + - [ResourceRemoteInfoNetsuiteRole](docs/ResourceRemoteInfoNetsuiteRole.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) + - [ResourceRemoteInfoTwingateResource](docs/ResourceRemoteInfoTwingateResource.md) + - [ResourceRemoteInfoWorkdayRole](docs/ResourceRemoteInfoWorkdayRole.md) + - [ResourceRemoteInfoZendeskRole](docs/ResourceRemoteInfoZendeskRole.md) - [ResourceTypeEnum](docs/ResourceTypeEnum.md) - [ResourceUser](docs/ResourceUser.md) - [ResourceUserAccessStatus](docs/ResourceUserAccessStatus.md) - [ResourceUserAccessStatusEnum](docs/ResourceUserAccessStatusEnum.md) - [ResourceWithAccessLevel](docs/ResourceWithAccessLevel.md) + - [ReviewStageOperator](docs/ReviewStageOperator.md) - [ReviewerIDList](docs/ReviewerIDList.md) - [ReviewerStage](docs/ReviewerStage.md) - [ReviewerStageList](docs/ReviewerStageList.md) - [RiskSensitivityEnum](docs/RiskSensitivityEnum.md) + - [RolePermissionNameEnum](docs/RolePermissionNameEnum.md) + - [RolePermissionTargetTypeEnum](docs/RolePermissionTargetTypeEnum.md) - [RuleClauses](docs/RuleClauses.md) - [RuleConjunction](docs/RuleConjunction.md) - [RuleDisjunction](docs/RuleDisjunction.md) + - [ScopedRolePermission](docs/ScopedRolePermission.md) + - [ScopedRolePermissionList](docs/ScopedRolePermissionList.md) - [Session](docs/Session.md) - [SessionsList](docs/SessionsList.md) + - [StringMatchType](docs/StringMatchType.md) - [SubEvent](docs/SubEvent.md) - [SyncError](docs/SyncError.md) - [SyncErrorList](docs/SyncErrorList.md) + - [SyncTask](docs/SyncTask.md) - [Tag](docs/Tag.md) - [TagFilter](docs/TagFilter.md) - [TagSelector](docs/TagSelector.md) - [TagsList](docs/TagsList.md) + - [ThirdPartyProviderEnum](docs/ThirdPartyProviderEnum.md) - [TicketPropagationConfiguration](docs/TicketPropagationConfiguration.md) - [TicketingProviderEnum](docs/TicketingProviderEnum.md) + - [Token](docs/Token.md) - [UAR](docs/UAR.md) - [UARReviewerAssignmentPolicyEnum](docs/UARReviewerAssignmentPolicyEnum.md) - [UARScope](docs/UARScope.md) + - [UpdateAccessRuleInfo](docs/UpdateAccessRuleInfo.md) - [UpdateConfigurationTemplateInfo](docs/UpdateConfigurationTemplateInfo.md) + - [UpdateEventStreamInfo](docs/UpdateEventStreamInfo.md) - [UpdateGroupBindingInfo](docs/UpdateGroupBindingInfo.md) - [UpdateGroupBindingInfoList](docs/UpdateGroupBindingInfoList.md) - [UpdateGroupInfo](docs/UpdateGroupInfo.md) - [UpdateGroupInfoList](docs/UpdateGroupInfoList.md) - [UpdateGroupResourcesInfo](docs/UpdateGroupResourcesInfo.md) + - [UpdateGroupUserRequest](docs/UpdateGroupUserRequest.md) - [UpdateIdpGroupMappingsRequest](docs/UpdateIdpGroupMappingsRequest.md) - [UpdateIdpGroupMappingsRequestMappingsInner](docs/UpdateIdpGroupMappingsRequestMappingsInner.md) - [UpdateOwnerInfo](docs/UpdateOwnerInfo.md) @@ -366,11 +515,17 @@ Class | Method | HTTP request | Description - [UpdateResourceInfoList](docs/UpdateResourceInfoList.md) - [UpdateResourceUserRequest](docs/UpdateResourceUserRequest.md) - [User](docs/User.md) + - [UserAttributeSelector](docs/UserAttributeSelector.md) - [UserHrIdpStatusEnum](docs/UserHrIdpStatusEnum.md) - [UserIDList](docs/UserIDList.md) - [UserList](docs/UserList.md) - [VisibilityInfo](docs/VisibilityInfo.md) - [VisibilityTypeEnum](docs/VisibilityTypeEnum.md) + - [WebhookApiKeyCredential](docs/WebhookApiKeyCredential.md) + - [WebhookApiKeyLocationEnum](docs/WebhookApiKeyLocationEnum.md) + - [WebhookAuthTypeEnum](docs/WebhookAuthTypeEnum.md) + - [WebhookCredentials](docs/WebhookCredentials.md) + - [WebhookHmacCredential](docs/WebhookHmacCredential.md) ## Documentation For Authorization diff --git a/api/openapi.yaml b/api/openapi.yaml index d274300..1af3950 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -11,6 +11,51 @@ info: servers: - description: Production url: https://api.opal.dev/v1 +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 event streaming connections + name: event-streams +- 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 OpalQuery + name: opal-queries +- 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 API tokens + name: tokens +- description: Operations related to UARs + name: uars +- description: Operations related to users + name: users paths: /apps: get: @@ -27,7 +72,7 @@ paths: required: false schema: items: - $ref: '#/components/schemas/AppTypeEnum' + $ref: "#/components/schemas/AppTypeEnum" type: array style: form - description: An owner ID to filter by. @@ -45,10 +90,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AppsList' + $ref: "#/components/schemas/AppsList" description: A list of apps for your organization. security: - BearerAuth: [] + summary: Get apps tags: - apps /apps/{app_id}: @@ -71,10 +117,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/App' + $ref: "#/components/schemas/App" description: The requested `App`. security: - BearerAuth: [] + summary: Get app by ID tags: - apps /bundles: @@ -116,10 +163,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedBundleList' + $ref: "#/components/schemas/PaginatedBundleList" description: A list of bundles for your organization. security: - BearerAuth: [] + summary: Get bundles tags: - bundles post: @@ -129,14 +177,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateBundleInfo' + $ref: "#/components/schemas/CreateBundleInfo" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Bundle' + $ref: "#/components/schemas/Bundle" description: The bundle successfully created. security: - BearerAuth: [] @@ -183,10 +231,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bundle' + $ref: "#/components/schemas/Bundle" description: The requested `Bundle`. security: - BearerAuth: [] + summary: Get bundle by ID tags: - bundles put: @@ -207,14 +256,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bundle' + $ref: "#/components/schemas/Bundle" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Bundle' + $ref: "#/components/schemas/Bundle" description: The bundle was successfully updated. "204": description: No changes detected (no-op) @@ -262,7 +311,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedBundleResourceList' + $ref: "#/components/schemas/PaginatedBundleResourceList" description: A list of resources for the bundle. security: - BearerAuth: [] @@ -286,14 +335,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/addBundleResource_request' + $ref: "#/components/schemas/addBundleResource_request" required: false responses: "201": content: application/json: schema: - $ref: '#/components/schemas/BundleResource' + $ref: "#/components/schemas/BundleResource" description: Resource was successfully added to the bundle. security: - BearerAuth: [] @@ -381,7 +430,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedBundleGroupList' + $ref: "#/components/schemas/PaginatedBundleGroupList" description: A list of groups for the bundle. security: - BearerAuth: [] @@ -405,14 +454,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/addBundleGroup_request' + $ref: "#/components/schemas/addBundleGroup_request" required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/BundleGroup' + $ref: "#/components/schemas/BundleGroup" description: Group was successfully added to the bundle. security: - BearerAuth: [] @@ -443,6 +492,15 @@ paths: 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 responses: "200": description: Group was successfully removed from the bundle. @@ -470,7 +528,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + $ref: "#/components/schemas/VisibilityInfo" description: The visibility details of a bundle. security: - BearerAuth: [] @@ -494,7 +552,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + allOf: + - $ref: "#/components/schemas/VisibilityInfo" + 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. required: true responses: "200": @@ -512,7 +574,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigurationTemplateList' + $ref: "#/components/schemas/PaginatedConfigurationTemplateList" description: One page worth of configuration templates for your organization. security: - BearerAuth: [] @@ -525,14 +587,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateConfigurationTemplateInfo' + $ref: "#/components/schemas/CreateConfigurationTemplateInfo" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ConfigurationTemplate' + $ref: "#/components/schemas/ConfigurationTemplate" description: The configuration template just created. security: - BearerAuth: [] @@ -545,7 +607,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateConfigurationTemplateInfo' + $ref: "#/components/schemas/UpdateConfigurationTemplateInfo" description: Configuration template to be updated required: true responses: @@ -553,7 +615,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigurationTemplate' + $ref: "#/components/schemas/ConfigurationTemplate" description: The configuration template just updated. security: - BearerAuth: [] @@ -581,6 +643,100 @@ paths: - BearerAuth: [] tags: - configuration-templates + /event-streams: + get: + description: Returns a list of configured event streaming connections for your + organization. + operationId: getEventStreams + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/EventStreamList" + description: A list of event streams for your organization. + security: + - BearerAuth: [] + summary: Get event streams + tags: + - event-streams + post: + description: Creates a new event streaming connection. + operationId: createEventStream + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateEventStreamInfo" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/EventStream" + description: The event stream just created. Credentials are returned in + clear text only on creation. + security: + - BearerAuth: [] + summary: Create event stream + tags: + - event-streams + /event-streams/{event_stream_id}: + delete: + description: Deletes an event streaming connection. + operationId: deleteEventStream + parameters: + - description: The ID of the event stream. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: event_stream_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The event stream was successfully deleted. + security: + - BearerAuth: [] + summary: Delete event stream + tags: + - event-streams + put: + description: Updates an existing event streaming connection. + operationId: updateEventStream + parameters: + - description: The ID of the event stream. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: event_stream_id + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateEventStreamInfo" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/EventStream" + description: The updated event stream. + security: + - BearerAuth: [] + summary: Update event stream + tags: + - event-streams /events: get: description: Returns a list of `Event` objects. @@ -592,8 +748,8 @@ paths: summary: Example with date value: 2021-11-01 withDatetime: - summary: Example with date and time - value: 2021-11-01 12:00:00 + 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 @@ -607,8 +763,8 @@ paths: summary: Example with date value: 2021-11-12 withDatetime: - summary: Example with date and time - value: 2021-11-12 12:00:00 + 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 @@ -679,12 +835,41 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedEventList' + $ref: "#/components/schemas/PaginatedEventList" description: One page worth of events with the appropriate filters applied. security: - BearerAuth: [] tags: - events + /events/{event_id}: + get: + description: Returns an `Event` object. + operationId: getEvent + parameters: + - description: The ID of the event. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: path + name: event_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Event" + description: The requested `Event`. + "404": + description: Event not found. + security: + - BearerAuth: [] + summary: Get event by ID + tags: + - events /groups: get: description: Returns a list of groups for your organization. @@ -716,7 +901,7 @@ paths: name: group_type_filter required: false schema: - $ref: '#/components/schemas/GroupTypeEnum' + $ref: "#/components/schemas/GroupTypeEnum" style: form - description: The group ids to filter by. example: @@ -742,15 +927,28 @@ paths: schema: type: string style: form + - description: The IDs of the tags to filter by. Returns only groups that have + any of these tags applied. + explode: true + in: query + name: tag_ids + required: false + schema: + items: + format: uuid + type: string + type: array + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PaginatedGroupsList' + $ref: "#/components/schemas/PaginatedGroupsList" description: One page worth groups associated with your organization. security: - BearerAuth: [] + summary: Get groups tags: - groups post: @@ -760,14 +958,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateGroupInfo' + $ref: "#/components/schemas/CreateGroupInfo" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: "#/components/schemas/Group" description: The group just created. security: - BearerAuth: [] @@ -780,7 +978,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateGroupInfoList' + $ref: "#/components/schemas/UpdateGroupInfoList" description: Groups to be updated required: true responses: @@ -788,7 +986,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateGroupInfoList' + $ref: "#/components/schemas/UpdateGroupInfoList" description: The resulting updated group infos. security: - BearerAuth: [] @@ -835,10 +1033,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: "#/components/schemas/Group" description: The requested `Group`. security: - BearerAuth: [] + summary: Get group by ID tags: - groups /groups/{group_id}/message-channels: @@ -862,7 +1061,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MessageChannelList' + $ref: "#/components/schemas/MessageChannelList" description: The audit and reviewer message channels attached to the group. security: - BearerAuth: [] @@ -886,7 +1085,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MessageChannelIDList' + $ref: "#/components/schemas/MessageChannelIDList" required: true responses: "200": @@ -923,7 +1122,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OnCallScheduleList' + $ref: "#/components/schemas/OnCallScheduleList" description: The on call schedules attached to the group. security: - BearerAuth: [] @@ -947,7 +1146,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OnCallScheduleIDList' + $ref: "#/components/schemas/OnCallScheduleIDList" required: true responses: "200": @@ -984,7 +1183,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GroupResourceList' + $ref: "#/components/schemas/GroupResourceList" description: The resources that the group gives access to. security: - BearerAuth: [] @@ -1008,7 +1207,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateGroupResourcesInfo' + $ref: "#/components/schemas/UpdateGroupResourcesInfo" required: true responses: "200": @@ -1032,15 +1231,25 @@ paths: format: uuid type: string style: simple + - description: The access level's remote ID to filter by. + example: arn:aws:iam::590304332660:role/AdministratorAccess + explode: true + in: query + name: access_level_remote_id + required: false + schema: + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GroupContainingGroupList' - description: The resources that the group gives access to. + $ref: "#/components/schemas/GroupContainingGroupList" + description: The groups that the group gives access to. security: - BearerAuth: [] + summary: Get nested groups tags: - groups post: @@ -1061,14 +1270,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GroupContainingGroup' + $ref: "#/components/schemas/GroupContainingGroup" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GroupContainingGroup' + $ref: "#/components/schemas/GroupContainingGroup" description: The created `GroupContainingGroup` object. security: - BearerAuth: [] @@ -1079,7 +1288,7 @@ paths: description: Removes a containing group from a group. operationId: remove_group_containing_group parameters: - - description: The ID of the group. + - description: The ID of the member group to remove. example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 explode: false in: path @@ -1099,9 +1308,19 @@ paths: 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 containing group was successfully removed from the group. + description: The member group was successfully removed from the containing + group. security: - BearerAuth: [] tags: @@ -1135,10 +1354,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GroupContainingGroup' + $ref: "#/components/schemas/GroupContainingGroup" description: The created `GroupContainingGroup` object. security: - BearerAuth: [] + summary: Get nested group by ID tags: - groups /groups/{group_id}/resources/{resource_id}: @@ -1181,14 +1401,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/add_group_resource_request' + $ref: "#/components/schemas/add_group_resource_request" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GroupResource' + $ref: "#/components/schemas/GroupResource" description: The created `GroupResource` object. security: - BearerAuth: [] @@ -1214,7 +1434,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this group. security: - BearerAuth: [] @@ -1238,14 +1458,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + $ref: "#/components/schemas/VisibilityInfo" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this group. security: - BearerAuth: [] @@ -1301,7 +1521,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReviewerIDList' + $ref: "#/components/schemas/ReviewerIDList" required: true responses: "200": @@ -1341,7 +1561,7 @@ paths: schema: description: A list of reviewer stages. items: - $ref: '#/components/schemas/ReviewerStage' + $ref: "#/components/schemas/ReviewerStage" type: array description: The reviewer stages for this group. security: @@ -1367,7 +1587,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReviewerStageList' + $ref: "#/components/schemas/ReviewerStageList" required: true responses: "200": @@ -1376,7 +1596,7 @@ paths: schema: description: A list of reviewer stages. items: - $ref: '#/components/schemas/ReviewerStage' + $ref: "#/components/schemas/ReviewerStage" type: array description: The updated reviewer stages for this group. security: @@ -1403,7 +1623,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TagsList' + $ref: "#/components/schemas/TagsList" description: The tags applied to the group. security: - BearerAuth: [] @@ -1424,12 +1644,31 @@ paths: 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 responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GroupUserList' + $ref: "#/components/schemas/GroupUserList" description: List of users with access to this group. security: - BearerAuth: [] @@ -1460,6 +1699,17 @@ paths: 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": description: This user's access was successfully removed from this group. @@ -1518,19 +1768,105 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/add_group_user_request' + $ref: "#/components/schemas/add_group_user_request" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GroupUser' + $ref: "#/components/schemas/GroupUser" description: The GroupUser that was created. security: - BearerAuth: [] tags: - groups + 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 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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GroupUser" + description: The GroupUser was successfully updated. + security: + - BearerAuth: [] + tags: + - 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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/GroupUserList" + description: The groups that the user is a member of. + security: + - BearerAuth: [] + tags: + - groups /group-bindings: get: description: Returns a list of `GroupBinding` objects. @@ -1560,10 +1896,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedGroupBindingsList' + $ref: "#/components/schemas/PaginatedGroupBindingsList" description: One page worth of group bindings for your organization. security: - BearerAuth: [] + summary: Get group bindings tags: - group-bindings post: @@ -1573,14 +1910,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateGroupBindingInfo' + $ref: "#/components/schemas/CreateGroupBindingInfo" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/GroupBinding' + $ref: "#/components/schemas/GroupBinding" description: The group binding just created. security: - BearerAuth: [] @@ -1593,7 +1930,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateGroupBindingInfoList' + $ref: "#/components/schemas/UpdateGroupBindingInfoList" description: Group bindings to be updated required: true responses: @@ -1644,10 +1981,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/GroupBinding' + $ref: "#/components/schemas/GroupBinding" description: The requested `GroupBinding`. security: - BearerAuth: [] + summary: Get group binding by ID tags: - group-bindings /idp-group-mappings/{app_resource_id}: @@ -1671,7 +2009,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IdpGroupMappingList' + $ref: "#/components/schemas/IdpGroupMappingList" description: The configured set of available `IdpGroupMapping` objects for an Okta app. security: @@ -1697,7 +2035,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/updateIdpGroupMappings_request' + $ref: "#/components/schemas/updateIdpGroupMappings_request" required: true responses: "200": @@ -1707,7 +2045,7 @@ paths: - BearerAuth: [] tags: - idp-group-mappings - /idp-group-mappings/{app_resource_id}/{group_id}/: + /idp-group-mappings/{app_resource_id}/groups/{group_id}: delete: description: Deletes an `IdpGroupMapping` object. operationId: delete_idp_group_mappings @@ -1739,34 +2077,115 @@ paths: - BearerAuth: [] tags: - idp-group-mappings - /owners: get: - description: Returns a list of `Owner` objects. - operationId: get_owners + description: Gets an `IdpGroupMapping` object for an Okta app and group. + operationId: getIdpGroupMapping parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw - explode: true - in: query - name: cursor - required: false + - 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: form - - description: Number of results to return per page. Default is 200. - example: 200 - explode: true - in: query - name: page_size - required: false + style: simple + - description: The ID of the group. + example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + explode: false + in: path + name: group_id + required: true schema: - maximum: 1000 - type: integer - style: form - - description: Owner name to filter by. - example: 200 - explode: true - in: query + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/IdpGroupMapping" + description: The `IdpGroupMapping` object for the Okta app and group. + security: + - BearerAuth: [] + tags: + - idp-group-mappings + post: + description: | + Creates or updates an individual `IdpGroupMapping` object (upsert operation). + + **Behavior:** + - If the mapping doesn't exist, it will be created with the provided values + - 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 + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/createIdpGroupMapping_request" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/IdpGroupMapping" + description: The IDP group mapping was successfully created or updated. + security: + - BearerAuth: [] + tags: + - idp-group-mappings + /owners: + get: + 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: @@ -1777,10 +2196,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedOwnersList' + $ref: "#/components/schemas/PaginatedOwnersList" description: One page worth of owners in your organization. security: - BearerAuth: [] + summary: Get owners tags: - owners post: @@ -1790,14 +2210,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateOwnerInfo' + $ref: "#/components/schemas/CreateOwnerInfo" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Owner' + $ref: "#/components/schemas/Owner" description: The owner just created. security: - BearerAuth: [] @@ -1810,7 +2230,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateOwnerInfoList' + $ref: "#/components/schemas/UpdateOwnerInfoList" description: Owners to be updated required: true responses: @@ -1818,7 +2238,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateOwnerInfoList' + $ref: "#/components/schemas/UpdateOwnerInfoList" description: The resulting updated owner infos. security: - BearerAuth: [] @@ -1865,10 +2285,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Owner' + $ref: "#/components/schemas/Owner" description: The owner object associated with the passed-in ID. security: - BearerAuth: [] + summary: Get owner by ID tags: - owners /owners/name/{owner_name}: @@ -1891,7 +2312,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Owner' + $ref: "#/components/schemas/Owner" description: The owner object associated with the passed-in name. security: - BearerAuth: [] @@ -1918,7 +2339,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserList' + $ref: "#/components/schemas/UserList" description: The users for this owner. security: - BearerAuth: [] @@ -1945,14 +2366,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UserIDList' + $ref: "#/components/schemas/UserIDList" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UserList' + $ref: "#/components/schemas/UserList" description: The updated users for the owner. security: - BearerAuth: [] @@ -1964,6 +2385,76 @@ paths: 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: Filter requests by the resource ID that was requested. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + explode: true + in: query + name: resource_id + required: false + schema: + format: uuid + type: string + style: form + - description: Filter requests by the group ID that was requested. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + explode: true + in: query + name: group_id + required: false + schema: + format: uuid + type: string + style: form - description: The pagination cursor value. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw explode: true @@ -1996,10 +2487,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RequestList' + $ref: "#/components/schemas/RequestList" description: The list of requests. security: - BearerAuth: [] + summary: Get requests tags: - requests post: @@ -2009,7 +2501,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateRequestInfo' + $ref: "#/components/schemas/CreateRequestInfo" description: Resources to be updated required: true responses: @@ -2017,75 +2509,86 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/createRequest_200_response' + $ref: "#/components/schemas/createRequest_200_response" description: The resulting request. security: - BearerAuth: [] tags: - requests - /resources: + /requests/relay: get: - description: Returns a list of resources for your organization. - operationId: getResources + deprecated: true + description: Returns a paginated list of requests using Relay-style cursor pagination. + operationId: getRequestsRelay parameters: - - description: The pagination cursor value. - example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + - 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: cursor + 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 per page. Default is 200. - example: 200 + - 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: page_size + name: last required: false schema: - maximum: 1000 + maximum: 100 + minimum: 1 type: integer style: form - - description: The resource type to filter by. - example: AWS_IAM_ROLE + - description: Cursor to fetch results before. Used with 'last' for backward + pagination. + example: Y3Vyc29yOnYyOpK5MjAyMS0wMS0wN1QwNzo0MToyNy4xMTlaFjYwZmM2YmJlZjk4YzE1N2ZhNjFhYjk4Nw== explode: true in: query - name: resource_type_filter + name: before required: false schema: - $ref: '#/components/schemas/ResourceTypeEnum' + type: string style: form - - description: The resource ids to filter by. - example: - - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - - 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: false + - description: Filter requests by their status. + example: PENDING + explode: true in: query - name: resource_ids + name: status required: false schema: - items: - example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - format: uuid - type: string - type: array + $ref: "#/components/schemas/RequestStatusEnum" style: form - - description: Resource name. - example: example-name + - description: Filter requests assigned to a specific user ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 explode: true in: query - name: resource_name + name: to required: false schema: + format: uuid type: string style: form - - description: The parent resource id to filter by. - example: - - 4baf8423-db0a-4037-a4cf-f79c60cb67a5 - explode: false + - description: Filter requests made by a specific user ID. + example: 37cb7e41-12ba-46da-92ff-030abe0450b1 + explode: true in: query - name: parent_resource_id + name: from required: false schema: format: uuid @@ -2096,85 +2599,113 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedResourcesList' - description: One page worth resources associated with your organization. + $ref: "#/components/schemas/RequestConnection" + description: A paginated list of requests using Relay-style cursor pagination. security: - BearerAuth: [] + summary: Get requests via Relay tags: - - resources - post: - description: "Creates a resource. See [here](https://docs.opal.dev/reference/end-system-objects)\ - \ for details about importing resources." - operationId: createResource - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateResourceInfo' + - requests + /requests/{id}: + get: + 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 responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Resource' - description: The resource just created. + $ref: "#/components/schemas/Request" + description: The requested request object. security: - BearerAuth: [] + summary: Get request by ID tags: - - resources - put: - description: Bulk updates a list of resources. - operationId: updateResources + - requests + /requests/{id}/approve: + post: + 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 requestBody: content: application/json: schema: - $ref: '#/components/schemas/UpdateResourceInfoList' - description: Resources to be updated + $ref: "#/components/schemas/approveRequest_request" + description: Approval parameters required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/UpdateResourceInfoList' - description: The resulting updated resource infos. + $ref: "#/components/schemas/approveRequest_200_response" + description: Request successfully approved security: - BearerAuth: [] tags: - - resources - /resources/{resource_id}: - delete: - description: Deletes a resource. - operationId: delete_resource + - requests + /requests/{id}/deny: + post: + description: Deny an access request + operationId: denyRequest parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + - description: The ID of the request to deny explode: false in: path - name: resource_id + name: id required: true schema: format: uuid type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/denyRequest_request" + description: Denial parameters + required: true responses: "200": - description: The resource was successfully deleted. + content: + application/json: + schema: + $ref: "#/components/schemas/approveRequest_200_response" + description: Request successfully denied security: - BearerAuth: [] tags: - - resources + - requests + /requests/{id}/comments: get: - description: Retrieves a resource. - operationId: get_resource + description: Returns a list of comments for a specific request. + operationId: getRequestComments parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + - description: The ID of the request to get comments for explode: false in: path - name: resource_id + name: id required: true schema: format: uuid @@ -2185,38 +2716,273 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Resource' - description: The requested resource. + $ref: "#/components/schemas/RequestCommentList" + description: A list of comments associated with the specified request. security: - BearerAuth: [] tags: - - resources - /resources/{resource_id}/message-channels: - get: - description: Gets the list of audit message channels attached to a resource. - operationId: get_resource_message_channels + - requests + post: + description: Comment on an access request + operationId: createRequestComment parameters: - - description: The ID of the resource. - example: 4baf8423-db0a-4037-a4cf-f79c60cb67a5 + - description: The ID of the request to comment on explode: false in: path - name: resource_id + name: id required: true schema: format: uuid type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/createRequestComment_request" + description: Comment parameters + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/MessageChannelList' - description: The audit message channels attached to the resource. + $ref: "#/components/schemas/approveRequest_200_response" + description: Request successfully commented security: - BearerAuth: [] tags: - - resources + - requests + /resources: + get: + 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 + 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 + - description: The IDs of the tags to filter by. Returns only resources that + have any of these tags applied. + explode: true + in: query + name: tag_ids + required: false + schema: + items: + format: uuid + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedResourcesList" + description: One page worth resources associated with your organization. + security: + - BearerAuth: [] + summary: Get resources + tags: + - resources + post: + description: "Creates a resource. See [here](https://docs.opal.dev/reference/end-system-objects)\ + \ for details about importing resources." + operationId: createResource + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateResourceInfo" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Resource" + description: The resource just created. + security: + - BearerAuth: [] + tags: + - resources + put: + description: Bulk updates a list of resources. + operationId: updateResources + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateResourceInfoList" + description: Resources to be updated + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateResourceInfoList" + description: The resulting updated resource infos. + security: + - BearerAuth: [] + tags: + - 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: + 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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Resource" + description: The requested resource. + security: + - BearerAuth: [] + summary: Get resource by ID + tags: + - 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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/MessageChannelList" + description: The audit message channels attached to the resource. + security: + - BearerAuth: [] + tags: + - resources put: description: Sets the list of audit message channels attached to a resource. operationId: set_resource_message_channels @@ -2235,7 +3001,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MessageChannelIDList' + $ref: "#/components/schemas/MessageChannelIDList" required: true responses: "200": @@ -2272,7 +3038,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this resource. security: - BearerAuth: [] @@ -2296,14 +3062,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + $ref: "#/components/schemas/VisibilityInfo" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/VisibilityInfo' + $ref: "#/components/schemas/VisibilityInfo" description: The visibility info of this resource. security: - BearerAuth: [] @@ -2357,7 +3123,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReviewerIDList' + $ref: "#/components/schemas/ReviewerIDList" required: true responses: "200": @@ -2396,7 +3162,7 @@ paths: schema: description: A list of reviewer stages. items: - $ref: '#/components/schemas/ReviewerStage' + $ref: "#/components/schemas/ReviewerStage" type: array description: The reviewer stages for this resource. security: @@ -2421,7 +3187,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ReviewerStageList' + $ref: "#/components/schemas/ReviewerStageList" required: true responses: "200": @@ -2430,7 +3196,7 @@ paths: schema: description: A list of reviewer stages. items: - $ref: '#/components/schemas/ReviewerStage' + $ref: "#/components/schemas/ReviewerStage" type: array description: The updated reviewer stages for this resource. security: @@ -2466,7 +3232,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedResourcesList' + $ref: "#/components/schemas/PaginatedResourcesList" description: One page worth non-human identities in your organization. security: - BearerAuth: [] @@ -2501,7 +3267,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AccessList' + $ref: "#/components/schemas/AccessList" description: List of non-human identities with access to this resource. security: - BearerAuth: [] @@ -2536,10 +3302,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResourceAccessUserList' + $ref: "#/components/schemas/ResourceAccessUserList" description: List of users with access to this resource. security: - BearerAuth: [] + summary: Get resource users tags: - resources /resources/{resource_id}/non-human-identities/{non_human_identity_id}: @@ -2615,14 +3382,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/add_resource_nhi_request' + $ref: "#/components/schemas/add_resource_nhi_request" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ResourceNHI' + $ref: "#/components/schemas/ResourceNHI" description: Details about the access that the non-human identity was granted to the resource. security: @@ -2672,6 +3439,53 @@ paths: - BearerAuth: [] tags: - resources + get: + 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 + 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 + 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. + security: + - BearerAuth: [] + summary: Get resource user + tags: + - resources post: description: Adds a user to this resource. operationId: add_resource_user @@ -2723,14 +3537,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/add_resource_user_request' + $ref: "#/components/schemas/add_resource_user_request" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ResourceUser' + $ref: "#/components/schemas/ResourceUser" description: The ResourceUser that was created. security: - BearerAuth: [] @@ -2764,14 +3578,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/update_resource_user_request' + $ref: "#/components/schemas/update_resource_user_request" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ResourceUser' + $ref: "#/components/schemas/ResourceUser" description: The ResourceUser was successfully updated. security: - BearerAuth: [] @@ -2779,6 +3593,7 @@ paths: - 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: @@ -2837,7 +3652,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ResourceUserAccessStatus' + $ref: "#/components/schemas/ResourceUserAccessStatus" description: The access status reflecting the user's access to the resource. security: - BearerAuth: [] @@ -2863,20 +3678,158 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TagsList' + $ref: "#/components/schemas/TagsList" description: The tags applied to the resource. security: - BearerAuth: [] tags: - resources - /sessions: + /resources/{resource_id}/scoped-role-permissions: get: - description: Returns a list of `Session` objects. - operationId: sessions + 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. + - description: The ID of the resource whose scoped role permissions belong to. example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - explode: true + explode: false + in: path + name: resource_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ScopedRolePermissionList" + description: The role permissions that this Opal Scoped Role has. + security: + - BearerAuth: [] + tags: + - 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 + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/ScopedRolePermissionList" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ScopedRolePermissionList" + description: The role permissions that this Opal Scoped Role has. + security: + - BearerAuth: [] + tags: + - 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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/ResourceAccessUserList" + description: List of resources user has access to. + security: + - 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. + example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 + explode: false + in: path + name: resource_id + 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 + /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 @@ -2898,7 +3851,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SessionsList' + $ref: "#/components/schemas/SessionsList" description: The sessions associated with a resource. security: - BearerAuth: [] @@ -2934,7 +3887,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" description: The user object associated with the passed-in email or ID. security: - BearerAuth: [] @@ -2945,6 +3898,90 @@ paths: 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 IDs of the tags to filter by. Returns only users that have + any of these tags applied. + explode: true + in: query + name: tag_ids + required: false + schema: + items: + format: uuid + type: string + type: array + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedUsersList" + description: One page worth users in your organization. + security: + - BearerAuth: [] + tags: + - 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: + type: string + type: array + style: form - description: The pagination cursor value. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw explode: true @@ -2969,7 +4006,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedUsersList' + $ref: "#/components/schemas/PaginatedRemoteUsersList" description: One page worth users in your organization. security: - BearerAuth: [] @@ -2995,12 +4032,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TagsList' + $ref: "#/components/schemas/TagsList" description: The tags applied to the user. security: - BearerAuth: [] tags: - users + /access-rules: + get: + description: Returns a list of access rules for your organization. + operationId: get_access_rules + 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: + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedAccessRulesList" + description: One page of access rules for your organization. + security: + - BearerAuth: [] + tags: + - access-rules + post: + description: Creates a new access rule config for the given group_id. + operationId: create_access_rule + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/UpdateAccessRuleInfo" + required: true + responses: + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/AccessRule" + description: The created access rule config for the group. + security: + - BearerAuth: [] + tags: + - access-rules /access-rules/{access_rule_id}: get: description: Returns a list of access rule config given the group_id of the @@ -3022,7 +4113,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AccessRuleCondition' + $ref: "#/components/schemas/AccessRule" description: The access rules for the group. security: - BearerAuth: [] @@ -3046,14 +4137,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AccessRuleCondition' + $ref: "#/components/schemas/UpdateAccessRuleInfo" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/AccessRuleCondition' + $ref: "#/components/schemas/AccessRule" description: The updated access rule config for the group. security: - BearerAuth: [] @@ -3102,10 +4193,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" description: The tag requested. security: - BearerAuth: [] + summary: Get tag by ID tags: - tags /tag: @@ -3136,7 +4228,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" description: The tag requested. security: - BearerAuth: [] @@ -3181,14 +4273,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateTagInfo' + $ref: "#/components/schemas/CreateTagInfo" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" description: The tag that was created. security: - BearerAuth: [] @@ -3223,10 +4315,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTagsList' + $ref: "#/components/schemas/PaginatedTagsList" description: A list of tags created by your organization. security: - BearerAuth: [] + summary: Get tags tags: - tags /tags/{tag_id}/users/{user_id}: @@ -3285,6 +4378,12 @@ paths: format: uuid type: string style: simple + requestBody: + content: + application/json: + schema: + type: object + required: false responses: "200": description: Tag applied to user successfully. @@ -3427,10 +4526,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MessageChannelList' + $ref: "#/components/schemas/MessageChannelList" description: A list of message channels for your organization. security: - BearerAuth: [] + summary: Get message channels tags: - message-channels post: @@ -3440,7 +4540,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateMessageChannelInfo' + $ref: "#/components/schemas/CreateMessageChannelInfo" description: The `MessageChannel` object to be created. required: true responses: @@ -3448,7 +4548,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MessageChannel' + $ref: "#/components/schemas/MessageChannel" description: The message channel that was created. security: - BearerAuth: [] @@ -3474,10 +4574,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/MessageChannel' + $ref: "#/components/schemas/MessageChannel" description: The requested message channel. security: - BearerAuth: [] + summary: Get message channel by ID tags: - message-channels /on-call-schedules: @@ -3489,10 +4590,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OnCallScheduleList' + $ref: "#/components/schemas/OnCallScheduleList" description: A list of on call schedules for your organization. security: - BearerAuth: [] + summary: Get on call schedules tags: - on-call-schedules post: @@ -3502,7 +4604,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateOnCallScheduleInfo' + $ref: "#/components/schemas/CreateOnCallScheduleInfo" description: The `OnCallSchedule` object to be created. required: true responses: @@ -3510,7 +4612,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OnCallSchedule' + $ref: "#/components/schemas/OnCallSchedule" description: The on call schedule that was created. security: - BearerAuth: [] @@ -3536,16 +4638,43 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OnCallSchedule' + $ref: "#/components/schemas/OnCallSchedule" description: The requested on call schedule. security: - BearerAuth: [] + summary: Get on call schedule by ID tags: - on-call-schedules - /uars: + /queries/run: + post: + description: "Runs an ad-hoc OpalQuery and returns the results. Currently supports\ + \ NODE queries (users, resources, groups). This endpoint is only available\ + \ to our OpalQuery beta group. Please contact Opal support if you'd like to\ + \ be added to the beta." + operationId: runOpalQuery + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/RunOpalQueryRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/OpalQueryResults" + description: The results of the OpalQuery. + security: + - BearerAuth: [] + summary: Run an ad-hoc OpalQuery + tags: + - opal-queries + /tokens: get: - description: Returns a list of `UAR` objects. - operationId: getUARs + description: Returns a list of first-party API tokens for your organization. + Requires admin access. + operationId: getTokens parameters: - description: The pagination cursor value. example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -3566,13 +4695,99 @@ paths: maximum: 1000 type: integer style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedUARsList' - description: A list of UARs for your organization. + - description: Filter by token IDs. + explode: false + in: query + name: token_ids + required: false + schema: + items: + format: uuid + type: string + type: array + style: form + - description: Filter by user ID. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + explode: true + in: query + name: user_id + required: false + schema: + format: uuid + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedTokensList" + description: A list of API tokens for your organization. + security: + - BearerAuth: [] + summary: Get tokens + tags: + - tokens + /tokens/{token_id}: + delete: + description: Deletes a first-party API token. Admins can delete any token. Non-admins + can only delete their own tokens when the organization allows all users to + create API tokens. + operationId: deleteToken + parameters: + - description: The ID of the token to delete. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + explode: false + in: path + name: token_id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + description: The token was successfully deleted. + "403": + description: Not authorized to delete this token. + "404": + description: Token not found. + security: + - BearerAuth: [] + summary: Delete token + tags: + - tokens + /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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedUARsList" + description: A list of UARs for your organization. security: - BearerAuth: [] tags: @@ -3585,7 +4800,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreateUARInfo' + $ref: "#/components/schemas/CreateUARInfo" description: The settings of the UAR. required: true responses: @@ -3593,7 +4808,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UAR' + $ref: "#/components/schemas/UAR" description: The UAR that was started. security: - BearerAuth: [] @@ -3619,7 +4834,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UAR' + $ref: "#/components/schemas/UAR" description: The UAR that was requested. security: - BearerAuth: [] @@ -3667,143 +4882,694 @@ paths: application/json: schema: items: - $ref: '#/components/schemas/SyncErrorList' + $ref: "#/components/schemas/SyncErrorList" type: array description: A list of sync errors. security: - BearerAuth: [] tags: - apps + /delegations: + get: + 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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/PaginatedDelegationsList" + description: A list of delegations for your organization. + security: + - BearerAuth: [] + summary: Get delegations + tags: + - delegations + post: + description: Creates a new request reviewer delegation to delegate access review + requests from one user to another. + operationId: createDelegation + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/CreateDelegationRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Delegation" + description: Delegation created successfully. + security: + - BearerAuth: [] + tags: + - 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: + 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 + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/Delegation" + description: The requested delegation. + security: + - BearerAuth: [] + summary: Get delegation by ID + tags: + - delegations components: schemas: - UARScope: - 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 - tags: - - key: uar_scope - value: high_priority - names: - - demo - - api - admins: - - f454d283-ca87-4a8a-bdbb-df212eca5353 - - 8763d283-ca87-4a8a-bdbb-df212ecab139 - resource_types: - - GCP_CLOUD_SQL_POSTGRES_INSTANCE - group_types: - - AWS_SSO_GROUP - apps: - - pas2d283-ca87-4a8a-bdbb-df212eca5353 - - apss2d283-ca87-4a8a-bdbb-df212eca5353 - entities: - - f454d283-as87-4a8a-bdbb-df212eca5353 - - f454d283-as87-4a8a-bdbb-df212eca5329 + AccessEntityFilters: + description: "Filters for matching entities by type, name, tag, IDs, connections,\ + \ or access levels. Supports recursive logical composition via allOf/anyOf." properties: - group_visibility: - description: Specifies what users can see during an Access Review - enum: - - STRICT - - VIEW_VISIBLE_AND_ASSIGNED - - VIEW_ALL - type: string - 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." + entityTypes: + description: "Filter by entity type. Only RESOURCE, GROUP, and USER are\ + \ queryable via OpalQuery." items: - example: userd283-ca87-4a8a-bdbb-df212eca5353 - format: uuid + enum: + - RESOURCE + - GROUP + - USER type: string type: array - filter_operator: - description: Specifies whether entities must match all (AND) or any (OR) - of the filters. - enum: - - ANY - - ALL - type: string - entities: - description: This access review will include resources and groups with ids - in the given strings. + entityItemTypes: + description: Filter by entity item types. items: - example: f454d283-as87-4a8a-bdbb-df212eca5353 - format: uuid - type: string + $ref: "#/components/schemas/EntityItemTypeEnum" type: array - apps: - description: This access review will include items in the specified applications + entityName: + $ref: "#/components/schemas/EntityNameFilter" + entityTag: + $ref: "#/components/schemas/EntityTagFilter" + entityIDs: + description: Filter by specific entity UUIDs. items: - example: pas2d283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string 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. + importedFromApp: + description: Filter by app IDs from which returned nodes will be imported + from. items: - example: f454d283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string type: array - group_types: - description: This access review will include items of the specified group - types + roleRemoteIds: + description: Filter by role remote IDs. Can only be applied within a hasAccessTo + clause. items: - $ref: '#/components/schemas/GroupTypeEnum' + type: string type: array - resource_types: - description: This access review will include items of the specified resource - types + roleNames: + description: "Filter by role display names (e.g. \"Admin\", \"Read\"). Can\ + \ only be applied within a hasAccessTo clause." items: - $ref: '#/components/schemas/ResourceTypeEnum' + type: string type: array - include_group_bindings: - example: false - type: boolean - tags: - description: This access review will include resources and groups who are - tagged with one of the given tags. + allOf: + description: | + A list of nested filters that must all match (logical AND). Each + item has the same shape as this object — scalar fields like + `entityTypes` or `entityTag`, and can further nest `allOf`, + `anyOf`, or `not`. items: - $ref: '#/components/schemas/TagFilter' + $ref: "#/components/schemas/AccessEntityFilters" type: array - names: - description: This access review will include resources and groups whose - name contains one of the given strings. + anyOf: + description: | + A list of nested filters where at least one must match (logical + OR). Each item has the same shape as this object. items: - example: demo - type: string + $ref: "#/components/schemas/AccessEntityFilters" type: array - PaginatedUARsList: - description: A list of UARs. + not: + description: | + Excludes entities matching the embedded filter (logical NOT). Pass a filter object with the same shape as this one — typically a single scalar field, like `{not: {entityTypes: ["RESOURCE"]}}` to exclude resources. + type: object + x-go-type: AccessEntityFilters + RunOpalQueryRequest: + $ref: "#/components/schemas/OpalNodeQuery" + OpalNodeQuery: + description: "Request body for a NODE-type OpalQuery. Returns entities (users,\ + \ resources, groups) matching the given filters." 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 + type: NODE + query: + nodeFilters: + entityTypes: + - RESOURCE + entityTag: + key: env + value: prod + accessFilters: + isAccessibleBy: + entityTypes: + - USER + entityTag: + key: contractor + first: 50 + properties: + type: + enum: + - NODE + type: string + query: + $ref: "#/components/schemas/OpalNodeQueryBody" + first: + description: Maximum number of results to return. Defaults to 200. + example: 200 + type: integer + after: + description: Cursor from a previous response to fetch the next page of results. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + type: string + required: + - type + OpalNodeQueryBody: + description: The filter body for a NODE-type OpalQuery. + properties: + nodeFilters: + $ref: "#/components/schemas/AccessEntityFilters" + accessFilters: + $ref: "#/components/schemas/AccessRelationshipFilters" + OpalQueryResultNode: + description: A matched entity from an OpalQuery result. + example: + entityItemType: OPAL_ROLE + entityType: USER + name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + id: + description: The entity's unique identifier. + format: uuid + type: string + name: + description: The display name of the entity. + type: string + entityType: + description: The top-level entity type. + enum: + - USER + - GROUP + - RESOURCE + type: string + entityItemType: + $ref: "#/components/schemas/EntityItemTypeEnum" + required: + - entityItemType + - entityType + - id + - name + OpalQueryResultEdge: + description: "A single result edge from an OpalQuery, containing the matched\ + \ entity and its pagination cursor." + example: + cursor: cursor + node: + entityItemType: OPAL_ROLE + entityType: USER + name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + node: + $ref: "#/components/schemas/OpalQueryResultNode" + cursor: + description: "Opaque cursor for this entity, used for pagination." + type: string + required: + - cursor + - node + OpalQueryResults: + $ref: "#/components/schemas/OpalNodeQueryResults" + OpalNodeQueryResults: + description: "Paginated results of a NODE-type OpalQuery — one edge per matched\ + \ entity (user, resource, or group)." + example: + edges: + - cursor: cursor + node: + entityItemType: OPAL_ROLE + entityType: USER + name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + - cursor: cursor + node: + entityItemType: OPAL_ROLE + entityType: USER + name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + pageInfo: + hasNextPage: true + hasPreviousPage: true + endCursor: endCursor + startCursor: startCursor + type: NODE + properties: + type: + enum: + - NODE + type: string + edges: + description: List of matched entities. + items: + $ref: "#/components/schemas/OpalQueryResultEdge" + type: array + pageInfo: + $ref: "#/components/schemas/PageInfo" + required: + - edges + - pageInfo + - type + AccessRelationshipFilters: + description: | + Filters the returned nodes by the access edges connected to them. When `isAccessibleBy` and `hasAccessTo` are provided, the returned nodes must satisfy both edge constraints simultaneously. + properties: + isAccessibleBy: + allOf: + - $ref: "#/components/schemas/AccessEntityFilters" + description: Inbound-edge filter. The returned node must be accessible by + at least one entity matching this filter. + hasAccessTo: + allOf: + - $ref: "#/components/schemas/AccessEntityFilters" + description: Outbound-edge filter. The returned node must have access to + at least one entity matching this filter. + EntityNameFilter: + description: Filters entities by name using a string match strategy. + properties: + stringMatchType: + $ref: "#/components/schemas/StringMatchType" + string: + description: The string value to match against the entity name. + example: engineering + type: string + required: + - string + - stringMatchType + EntityTagFilter: + description: "Filters entities by a tag key/value pair, optionally scoped to\ + \ a connection." + properties: + key: + description: The tag key to filter by. + example: team + type: string + value: + description: "The tag value to filter by. If omitted, matches any value\ + \ for the given key." + example: platform + type: string + connectionId: + description: "If specified, filters by tags associated with this connection." + format: uuid + type: string + required: + - key + StringMatchType: + description: How to match a string value against entity names. + enum: + - CONTAINS + - EQUALS + - STARTS_WITH + - ENDS_WITH + type: string + PaginatedAssignedRequestList: + properties: + requests: + items: + $ref: "#/components/schemas/Request" + type: array + cursor: + description: The cursor to continue pagination + type: string + required: + - cursor + - requests + PageInfo: + example: + hasNextPage: true + hasPreviousPage: true + endCursor: endCursor + startCursor: startCursor + properties: + hasNextPage: + description: Whether there are more items after the end cursor + type: boolean + endCursor: + description: The cursor to continue pagination forwards + type: string + hasPreviousPage: + description: Whether there are more items before the start cursor + type: boolean + startCursor: + description: The cursor to continue pagination backwards + type: string + required: + - endCursor + - hasNextPage + - hasPreviousPage + - startCursor + RequestEdge: + example: + cursor: cursor + node: + id: 7c86c85d-0651-43e2-a748-d69d658418e8 + created_at: 2021-01-06T20:00:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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: + node: + $ref: "#/components/schemas/Request" + cursor: + description: The cursor for this request edge + type: string + required: + - cursor + - node + RequestConnection: + example: + edges: + - cursor: cursor + node: + id: 7c86c85d-0651-43e2-a748-d69d658418e8 + created_at: 2021-01-06T20:00:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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 + properties: + edges: + 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 + UARScope: + 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 + tags: + - key: uar_scope + value: high_priority + names: + - demo + - api + admins: + - f454d283-ca87-4a8a-bdbb-df212eca5353 + - 8763d283-ca87-4a8a-bdbb-df212ecab139 + resource_types: + - GCP_CLOUD_SQL_POSTGRES_INSTANCE + group_types: + - AWS_SSO_GROUP + apps: + - pas2d283-ca87-4a8a-bdbb-df212eca5353 + - apss2d283-ca87-4a8a-bdbb-df212eca5353 + entities: + - 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 + 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." + items: + example: userd283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + type: array + filter_operator: + description: Specifies whether entities must match all (AND) or any (OR) + of the filters. + enum: + - ANY + - ALL + type: string + entities: + 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 + 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 + 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. + items: + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + type: array + group_types: + description: This access review will include items of the specified group + types + items: + $ref: "#/components/schemas/GroupTypeEnum" + type: array + resource_types: + description: This access review will include items of the specified resource + types + items: + $ref: "#/components/schemas/ResourceTypeEnum" + type: array + include_group_bindings: + example: false + type: boolean + 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. + items: + example: demo + type: string + type: array + 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:59.000+00:00 + 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 + deadline: 2022-08-14T06:59:59.000+00:00 time_zone: America/Los_Angeles self_review_allowed: false uar_scope: @@ -3830,7 +5596,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/UAR' + $ref: "#/components/schemas/UAR" type: array required: - results @@ -3840,7 +5606,7 @@ components: uar_id: f454d283-ca87-4a8a-bdbb-df212eca5353 name: Monthly UAR (July) send_reviewer_assignment_notification: false - deadline: 2022-07-14T06:59:59Z + deadline: 2022-07-14T06:59:59.000+00:00 time_zone: America/Los_Angeles self_review_allowed: false uar_scope: @@ -3864,7 +5630,7 @@ components: example: Monthly UAR (July) type: string reviewer_assignment_policy: - $ref: '#/components/schemas/UARReviewerAssignmentPolicyEnum' + $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. @@ -3872,7 +5638,7 @@ components: type: boolean deadline: description: The last day for reviewers to complete their access reviews. - example: 2022-07-14T06:59:59Z + example: 2022-07-14T06:59:59.000+00:00 format: date-time type: string time_zone: @@ -3886,10 +5652,16 @@ components: 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. + example: false + type: boolean uar_scope: - $ref: '#/components/schemas/UARScope' + $ref: "#/components/schemas/UARScope" required: - deadline + - instantly_action_reviews - name - reviewer_assignment_policy - self_review_allowed @@ -3901,7 +5673,7 @@ components: example: name: Monthly UAR (July) send_reviewer_assignment_notification: false - deadline: 2022-07-14T06:59:59Z + deadline: 2022-07-14T06:59:59.000+00:00 time_zone: America/Los_Angeles self_review_allowed: false reminder_schedule: @@ -3927,7 +5699,7 @@ components: example: Monthly UAR (July) type: string reviewer_assignment_policy: - $ref: '#/components/schemas/UARReviewerAssignmentPolicyEnum' + $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. @@ -3935,7 +5707,7 @@ components: type: boolean deadline: description: The last day for reviewers to complete their access reviews. - example: 2022-07-14T06:59:59Z + example: 2022-07-14T06:59:59.000+00:00 format: date-time type: string time_zone: @@ -3949,6 +5721,11 @@ components: 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. + example: false + type: boolean reminder_schedule: items: type: integer @@ -3957,7 +5734,7 @@ components: example: false type: boolean uar_scope: - $ref: '#/components/schemas/UARScope' + $ref: "#/components/schemas/UARScope" required: - deadline - name @@ -3968,11 +5745,18 @@ components: 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." + \ 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_OWNING_TEAM_ADMIN_ALL - BY_MANAGER + - BY_APPROVERS + - BY_APPROVERS_ALL example: MANUALLY type: string TagFilter: @@ -4007,7 +5791,7 @@ components: properties: apps: items: - $ref: '#/components/schemas/App' + $ref: "#/components/schemas/App" type: array required: - apps @@ -4045,11 +5829,11 @@ components: format: uuid type: string app_type: - $ref: '#/components/schemas/AppTypeEnum' + $ref: "#/components/schemas/AppTypeEnum" validations: description: Validation checks of an apps' configuration and permissions. items: - $ref: '#/components/schemas/AppValidation' + $ref: "#/components/schemas/AppValidation" type: array required: - admin_owner_id @@ -4061,27 +5845,41 @@ components: description: The type of an app. enum: - ACTIVE_DIRECTORY + - ANTHROPIC - AZURE_AD - AWS - AWS_SSO + - COUPA + - CURSOR - CUSTOM + - CUSTOM_CONNECTOR + - DATABRICKS + - DATASTAX_ASTRA - DUO - GCP - GIT_HUB - GIT_LAB - GOOGLE_GROUPS - GOOGLE_WORKSPACE + - ILEVEL + - INCIDENTIO - LDAP - MARIADB - MONGO - MONGO_ATLAS - MYSQL + - NETSUITE + - DATADOG - OKTA_DIRECTORY + - OPENAI_PLATFORM - OPAL - PAGERDUTY - SALESFORCE + - SNOWFLAKE + - SLACK - TAILSCALE - TELEPORT + - TWINGATE - WORKDAY example: OKTA_DIRECTORY type: string @@ -4104,7 +5902,7 @@ components: example: event_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac actor_user_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - created_at: 2022-01-23T04:56:07Z + created_at: 2022-01-23T04:56:07.000+00:00 event_type: USERS_CREATED properties: event_id: @@ -4128,7 +5926,7 @@ components: type: string created_at: description: The day and time the event was created. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string actor_ip_address: @@ -4145,7 +5943,7 @@ components: type: string sub_events: items: - $ref: '#/components/schemas/SubEvent' + $ref: "#/components/schemas/SubEvent" type: array required: - actor_name @@ -4169,7 +5967,7 @@ components: role assignments. severity: HIGH status: FAILED - updated_at: 2021-01-06T20:00:00Z + updated_at: 2021-01-06T20:00:00.000+00:00 properties: key: description: The key of the app validation. These are not unique IDs between @@ -4188,12 +5986,12 @@ components: role assignments. type: string severity: - $ref: '#/components/schemas/AppValidationSeverityEnum' + $ref: "#/components/schemas/AppValidationSeverityEnum" status: - $ref: '#/components/schemas/AppValidationStatusEnum' + $ref: "#/components/schemas/AppValidationStatusEnum" updated_at: description: The date and time the app validation was last run. - example: 2021-01-06T20:00:00Z + example: 2021-01-06T20:00:00.000+00:00 format: date-time type: string required: @@ -4219,7 +6017,7 @@ components: example: FAILED type: string SubEvent: - additionalProperties: {} + additionalProperties: true description: |- # Sub event Object ### Description @@ -4237,6 +6035,7 @@ components: sub_event_type: description: The subevent type. example: USERS_CREATED + type: string required: - sub_event_type PaginatedEventList: @@ -4246,11 +6045,11 @@ components: results: - event_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac actor_user_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - created_at: 2022-01-23T04:56:07Z + created_at: 2022-01-23T04:56:07.000+00:00 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 + created_at: 2022-02-03T12:33:02.000+00:00 event_type: USER_TEAM_UPDATED properties: next: @@ -4266,7 +6065,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/Event' + $ref: "#/components/schemas/Event" type: array ResourceAccessUserList: example: @@ -4274,21 +6073,32 @@ components: - 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 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 + expiration_date: 2022-02-03T12:33:02.000+00:00 email: brett@company.dev has_direct_access: true num_access_paths: 3 properties: + next: + description: The cursor with which to continue pagination if additional + result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + type: string + nullable: true + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + type: string + nullable: true results: items: - $ref: '#/components/schemas/ResourceAccessUser' + $ref: "#/components/schemas/ResourceAccessUser" type: array ResourceAccessLevel: description: |- @@ -4325,7 +6135,7 @@ components: example: user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-01-23T04:56:07Z + expiration_date: 2022-01-23T04:56:07.000+00:00 status: AUTHORIZED properties: resource_id: @@ -4339,12 +6149,12 @@ components: format: uuid type: string access_level: - $ref: '#/components/schemas/ResourceAccessLevel' + $ref: "#/components/schemas/ResourceAccessLevel" status: - $ref: '#/components/schemas/ResourceUserAccessStatusEnum' + $ref: "#/components/schemas/ResourceUserAccessStatusEnum" expiration_date: description: The day and time the user's access will expire. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string nullable: true @@ -4369,7 +6179,7 @@ components: 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 email: jake@company.dev properties: resource_id: @@ -4383,7 +6193,7 @@ components: format: uuid type: string access_level: - $ref: '#/components/schemas/ResourceAccessLevel' + $ref: "#/components/schemas/ResourceAccessLevel" full_name: description: The user's full name. example: Jake Barnes @@ -4394,7 +6204,7 @@ components: type: string expiration_date: description: The day and time the user's access will expire. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string nullable: true @@ -4416,7 +6226,7 @@ components: 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 email: jake@company.dev properties: resource_id: @@ -4424,13 +6234,21 @@ 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 format: uuid type: string access_level: - $ref: '#/components/schemas/ResourceAccessLevel' + $ref: "#/components/schemas/ResourceAccessLevel" full_name: description: The user's full name. example: Jake Barnes @@ -4441,7 +6259,7 @@ components: type: string expiration_date: description: The day and time the user's access will expire. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string nullable: true @@ -4457,7 +6275,7 @@ components: format: int32 type: integer propagation_status: - $ref: '#/components/schemas/PropagationStatus' + $ref: "#/components/schemas/PropagationStatus" required: - access_level - email @@ -4473,20 +6291,20 @@ components: principal_type: RESOURCE entity_id: db04925a-635d-4764-870e-500b9b035c8e entity_type: RESOURCE - expiration_date: 2022-01-23T04:56:07Z + expiration_date: 2022-01-23T04:56:07.000+00:00 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 has_direct_access: true num_access_paths: 3 properties: results: items: - $ref: '#/components/schemas/Access' + $ref: "#/components/schemas/Access" type: array Access: description: |- @@ -4501,7 +6319,7 @@ components: principal_type: RESOURCE entity_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 entity_type: RESOURCE - expiration_date: 2022-01-23T04:56:07Z + expiration_date: 2022-01-23T04:56:07.000+00:00 has_direct_access: true num_access_paths: 3 properties: @@ -4511,19 +6329,19 @@ components: format: uuid type: string principal_type: - $ref: '#/components/schemas/EntityTypeEnum' + $ref: "#/components/schemas/EntityTypeEnum" entity_id: description: The ID of the entity being accessed. example: 1b978423-db0a-4037-a4cf-f79c60cb67b3 format: uuid type: string entity_type: - $ref: '#/components/schemas/EntityTypeEnum' + $ref: "#/components/schemas/EntityTypeEnum" access_level: - $ref: '#/components/schemas/ResourceAccessLevel' + $ref: "#/components/schemas/ResourceAccessLevel" expiration_date: description: The day and time the principal's access will expire. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string nullable: true @@ -4553,7 +6371,7 @@ components: example: non_human_identity_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac resource_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 - expiration_date: 2022-01-23T04:56:07Z + expiration_date: 2022-01-23T04:56:07.000+00:00 properties: resource_id: description: The ID of the resource. @@ -4566,10 +6384,10 @@ components: format: uuid type: string access_level: - $ref: '#/components/schemas/ResourceAccessLevel' + $ref: "#/components/schemas/ResourceAccessLevel" expiration_date: description: The day and time the non-human identity's access will expire. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string nullable: true @@ -4584,11 +6402,11 @@ components: - 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 - 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 + expiration_date: 2022-03-12T07:22:18.000+00:00 properties: next: description: The cursor with which to continue pagination if additional @@ -4603,7 +6421,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/Session' + $ref: "#/components/schemas/Session" type: array Session: description: |- @@ -4617,7 +6435,7 @@ components: 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 properties: connection_id: description: The ID of the connection. @@ -4635,10 +6453,10 @@ components: format: uuid type: string access_level: - $ref: '#/components/schemas/ResourceAccessLevel' + $ref: "#/components/schemas/ResourceAccessLevel" expiration_date: description: The day and time the user's access will expire. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string nullable: false @@ -4675,23 +6493,80 @@ components: nullable: true results: items: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" type: array required: - results - User: + 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 + properties: + next: + description: The cursor with which to continue pagination if additional + result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + type: string + nullable: true + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + type: string + nullable: true + results: + items: + $ref: "#/components/schemas/RemoteUser" + type: array + required: + - results + RemoteUser: description: |- - # User Object + # RemoteUser Object ### Description - The `User` object is used to represent a user. - - ### Usage Example - Fetch from the `LIST Sessions` endpoint. + The `RemoteUser` object is used to represent a remote user. example: user_id: 29827fb8-f2dd-4e80-9576-28e31e9934ac - email: john.doe@company.dev - full_name: John Doe - first_name: John + remote_id: 1234567890 + third_party_provider: GIT_HUB + properties: + user_id: + description: The ID of the user. + example: 29827fb8-f2dd-4e80-9576-28e31e9934ac + format: uuid + type: string + remote_id: + description: The ID of the remote user. + example: 1234567890 + type: string + third_party_provider: + allOf: + - $ref: "#/components/schemas/ThirdPartyProviderEnum" + description: The third party provider of the remote user. + example: GIT_HUB + required: + - remote_id + - third_party_provider + - user_id + User: + description: |- + # User Object + ### Description + The `User` object is used to represent a user. + + ### Usage Example + Fetch from the `LIST Sessions` endpoint. + example: + 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: @@ -4721,7 +6596,7 @@ components: example: Senior Engineer type: string hr_idp_status: - $ref: '#/components/schemas/UserHrIdpStatusEnum' + $ref: "#/components/schemas/UserHrIdpStatusEnum" required: - email - first_name @@ -4748,7 +6623,7 @@ components: properties: users: items: - $ref: '#/components/schemas/User' + $ref: "#/components/schemas/User" type: array required: - users @@ -4776,6 +6651,25 @@ components: - 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 + - FRESH_SERVICE + - SHORTCUT + - PAGER_DUTY + - OPSGENIE + - GIT_HUB + - GIT_LAB + - GIT_LAB_CONNECTION + - TELEPORT + example: GIT_HUB + type: string PaginatedGroupsList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -4783,21 +6677,45 @@ components: results: - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd + name: Payments Production Admin 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 + group_leader_user_ids: + - 7c86c85d-0651-43e2-a748-d69d658418e8 + remote_id: 037m2jsg218b2wb + remote_name: Finance Team + group_type: ACTIVE_DIRECTORY_GROUP max_duration: 120 + recommended_duration: 60 + extensions_duration_in_minutes: 60 require_manager_approval: false require_support_ticket: false + require_mfa_to_approve: false + require_mfa_to_request: false + auto_approval: false + is_requestable: true - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b + app_id: a7c3e291-1234-4abc-9def-1234567890ab + name: Integrations On-Call 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 + group_leader_user_ids: [] + remote_id: pagerduty-schedule:P123XYZ + remote_name: Integrations On-Call + group_type: PAGERDUTY_ON_CALL_SCHEDULE max_duration: 360 + recommended_duration: 120 + extensions_duration_in_minutes: 0 require_manager_approval: false require_support_ticket: true + require_mfa_to_approve: false + require_mfa_to_request: false + auto_approval: false + is_requestable: true properties: next: description: The cursor with which to continue pagination if additional @@ -4812,7 +6730,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/Group' + $ref: "#/components/schemas/Group" type: array required: - results @@ -4828,7 +6746,7 @@ components: properties: group_id: description: The ID of the group. - example: f454d283-ca87-4a8a-bdbb-df212eca5353 + example: f454d283-ca87-4a87-bdbb-df212eca5353 format: uuid type: string resource_id: @@ -4836,8 +6754,22 @@ 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:07.000+00:00 + format: date-time + type: string + nullable: true access_level: - $ref: '#/components/schemas/ResourceAccessLevel' + $ref: "#/components/schemas/ResourceAccessLevel" required: - access_level - group_id @@ -4855,6 +6787,16 @@ 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. + example: 120 + maximum: 525960 + type: integer + access_level_remote_id: + description: The updated remote ID of the access level granted to this group. + example: arn:aws:iam::590304332660:role/ReadOnlyAccess + type: string required: - containing_group_id Group: @@ -4868,15 +6810,25 @@ components: example: group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - remote_id: 037m2jsg218b2wb - remote_name: Finance Team + name: Payments Production Admin 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 + group_leader_user_ids: + - 7c86c85d-0651-43e2-a748-d69d658418e8 + remote_id: 037m2jsg218b2wb + remote_name: Finance Team + group_type: ACTIVE_DIRECTORY_GROUP max_duration: 120 + recommended_duration: 60 + extensions_duration_in_minutes: 60 require_manager_approval: false require_support_ticket: false + require_mfa_to_approve: false + require_mfa_to_request: false + auto_approval: false + is_requestable: true properties: group_id: description: The ID of the group. @@ -4918,7 +6870,7 @@ components: example: Finance team type: string group_type: - $ref: '#/components/schemas/GroupTypeEnum' + $ref: "#/components/schemas/GroupTypeEnum" max_duration: description: The maximum duration for which the group can be requested (in minutes). @@ -4929,6 +6881,12 @@ components: (in minutes). -1 represents an indefinite duration. example: 120 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 + type: integer require_manager_approval: deprecated: true description: A bool representing whether or not access requests to the group @@ -4979,14 +6937,14 @@ components: description: A list of request configurations for this group. example: [] items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array request_configuration_list: description: A list of request configurations for this group. Deprecated in favor of `request_configurations`. example: [] items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array metadata: deprecated: true @@ -4997,7 +6955,7 @@ components: \ } }" type: string remote_info: - $ref: '#/components/schemas/GroupRemoteInfo' + $ref: "#/components/schemas/GroupRemoteInfo" custom_request_notification: description: Custom request notification sent to the requester when the request is approved. @@ -5007,33 +6965,51 @@ components: nullable: true risk_sensitivity: allOf: - - $ref: '#/components/schemas/RiskSensitivityEnum' + - $ref: "#/components/schemas/RiskSensitivityEnum" description: "The risk sensitivity level for the group. When an override\ \ is set, this field will match that." readOnly: true risk_sensitivity_override: allOf: - - $ref: '#/components/schemas/RiskSensitivityEnum' + - $ref: "#/components/schemas/RiskSensitivityEnum" + last_successful_sync: + allOf: + - $ref: "#/components/schemas/SyncTask" + description: Information about the last successful sync of this group. + readOnly: true required: - group_id 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 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 + expiration_date: 2022-02-03T12:33:02.000+00:00 email: brett@company.dev properties: results: items: - $ref: '#/components/schemas/GroupUser' + $ref: "#/components/schemas/GroupUser" type: array + next: + description: The cursor with which to continue pagination if additional + result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + type: string + nullable: true + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + type: string + nullable: true GroupAccessLevel: description: |- # Access Level Object @@ -5070,7 +7046,7 @@ components: 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 + expiration_date: 2022-01-23T04:56:07.000+00:00 email: jake@company.dev properties: group_id: @@ -5078,13 +7054,23 @@ 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 format: uuid type: string access_level: - $ref: '#/components/schemas/GroupAccessLevel' + allOf: + - $ref: "#/components/schemas/GroupAccessLevel" + nullable: true full_name: description: The user's full name. example: Jake Barnes @@ -5095,23 +7081,25 @@ components: type: string expiration_date: description: The day and time the user's access will expire. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string nullable: true propagation_status: - $ref: '#/components/schemas/PropagationStatus' + $ref: "#/components/schemas/PropagationStatus" required: + - description - email - full_name - group_id + - group_name - user_id 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." properties: status: - $ref: '#/components/schemas/PropagationStatusEnum' + $ref: "#/components/schemas/PropagationStatusEnum" required: - status PropagationStatusEnum: @@ -5167,7 +7155,7 @@ components: groups: description: A list of groups with information to update. items: - $ref: '#/components/schemas/UpdateGroupInfo' + $ref: "#/components/schemas/UpdateGroupInfo" type: array required: - groups @@ -5177,7 +7165,7 @@ components: ### Description The `UpdateGroupInfo` object is used as an input to the UpdateGroup API. example: - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + 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. @@ -5189,7 +7177,7 @@ components: properties: group_id: description: The ID of the group. - example: f454d283-ca87-4a8a-bdbb-df212eca5353 + example: f454d283-ca87-4a87-bdbb-df212eca5353 format: uuid type: string name: @@ -5279,14 +7267,60 @@ components: format: uuid type: string 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 + type: integer request_configurations: description: "The request configuration list of the configuration template.\ \ If not provided, the default request configuration will be used." items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array request_configuration_list: - $ref: '#/components/schemas/CreateRequestConfigurationInfoList' + allOf: + - $ref: "#/components/schemas/CreateRequestConfigurationInfoList" + deprecated: true + 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`." + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + 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. @@ -5296,7 +7330,7 @@ components: nullable: true risk_sensitivity_override: allOf: - - $ref: '#/components/schemas/RiskSensitivityEnum' + - $ref: "#/components/schemas/RiskSensitivityEnum" required: - group_id GroupTypeEnum: @@ -5321,6 +7355,19 @@ components: - CONNECTOR_GROUP - SNOWFLAKE_ROLE - WORKDAY_USER_SECURITY_GROUP + - PAGERDUTY_ON_CALL_SCHEDULE + - INCIDENTIO_ON_CALL_SCHEDULE + - ROOTLY_ON_CALL_SCHEDULE + - DEVIN_GROUP + - GIT_HUB_ENTERPRISE_TEAM + - GRAFANA_TEAM + - CLICKHOUSE_ROLE + - SLACK_USER_GROUP + - TWINGATE_GROUP + - TWINGATE_GROUP_SYNCED + - ZENDESK_GROUP + - ZENDESK_ORGANIZATION + - HUBSPOT_TEAM example: OPAL_GROUP type: string ResourceTypeEnum: @@ -5335,6 +7382,7 @@ components: - AWS_RDS_MYSQL_INSTANCE - AWS_ACCOUNT - AWS_SSO_PERMISSION_SET + - AWS_ORGANIZATIONAL_UNIT - AZURE_MANAGEMENT_GROUP - AZURE_RESOURCE_GROUP - AZURE_SUBSCRIPTION @@ -5363,10 +7411,13 @@ components: - 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 + - NETSUITE_ROLE + - DATADOG_ROLE - OKTA_APP - OKTA_ROLE - OPAL_ROLE @@ -5384,8 +7435,121 @@ components: - 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 + - GIT_HUB_ENTERPRISE_ROLE + - GRAFANA_FOLDER + - GRAFANA_DASHBOARD + - GRAFANA_BASIC_ROLE + - GRAFANA_ROLE + - CLICKHOUSE_DATABASE + - CLICKHOUSE_TABLE + - TWINGATE_RESOURCE + - ZENDESK_ROLE + - HUBSPOT_ROLE example: AWS_IAM_ROLE type: string + EntityItemTypeEnum: + description: Granular subtype of an entity. + enum: + - USER + - SERVICE_USER + - ACTIVE_DIRECTORY_GROUP + - AWS_SSO_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 + - TWINGATE_GROUP + - TWINGATE_GROUP_SYNCED + - OPAL_GROUP + - OPAL_ACCESS_RULE + - AZURE_AD_SECURITY_GROUP + - AZURE_AD_MICROSOFT_365_GROUP + - CONNECTOR_GROUP + - SNOWFLAKE_ROLE + - WORKDAY_USER_SECURITY_GROUP + - DATABRICKS_ACCOUNT_GROUP + - AWS_IAM_ROLE + - AWS_EC2_INSTANCE + - AWS_EKS_CLUSTER + - AWS_RDS_POSTGRES_INSTANCE + - AWS_RDS_POSTGRES_CLUSTER + - AWS_RDS_MYSQL_INSTANCE + - AWS_RDS_MYSQL_CLUSTER + - AWS_ACCOUNT + - AWS_SSO_PERMISSION_SET + - 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 + - GCP_ORGANIZATION + - GCP_BUCKET + - GCP_COMPUTE_INSTANCE + - GCP_BIG_QUERY_DATASET + - GCP_BIG_QUERY_TABLE + - GCP_FOLDER + - GCP_GKE_CLUSTER + - GCP_PROJECT + - GCP_CLOUD_SQL_POSTGRES_INSTANCE + - GCP_CLOUD_SQL_MYSQL_INSTANCE + - 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 + - TWINGATE_RESOURCE + - SALESFORCE_PERMISSION_SET + - SALESFORCE_PROFILE + - SALESFORCE_ROLE + - SNOWFLAKE_DATABASE + - SNOWFLAKE_SCHEMA + - SNOWFLAKE_TABLE + - WORKDAY_ROLE + - MYSQL_INSTANCE + - MARIADB_INSTANCE + - POSTGRES_INSTANCE + - TELEPORT_ROLE + - DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL + - ILEVEL_ADVANCED_ROLE + example: OPAL_ROLE + type: string VisibilityTypeEnum: description: The visibility level of the entity. enum: @@ -5393,6 +7557,42 @@ components: - 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 + example: READ + type: string + RolePermissionTargetTypeEnum: + description: The type of the target for the role permission. + enum: + - RESOURCE + - CONNECTION + - GROUP + - BUNDLE + - USER + - ACCESS_REVIEW + - OWNER + example: RESOURCE + type: string UpdateGroupResourcesInfo: example: group_resources: @@ -5403,17 +7603,23 @@ components: properties: resources: items: - $ref: '#/components/schemas/ResourceWithAccessLevel' + $ref: "#/components/schemas/ResourceWithAccessLevel" type: array required: - 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 properties: + app_resource_id: + description: The ID of the app resource. + example: 1520617d-e72a-47f5-a84c-693817ab48ad2 + format: uuid + type: string group_id: description: The ID of the group. example: 6f99639b-7928-4043-8184-47cbc6766145 @@ -5443,7 +7649,7 @@ components: properties: mappings: items: - $ref: '#/components/schemas/IdpGroupMapping' + $ref: "#/components/schemas/IdpGroupMapping" type: array required: - mappings @@ -5493,7 +7699,7 @@ components: properties: group_resources: items: - $ref: '#/components/schemas/GroupResource' + $ref: "#/components/schemas/GroupResource" type: array required: - group_resources @@ -5505,7 +7711,7 @@ components: properties: containing_groups: items: - $ref: '#/components/schemas/GroupContainingGroup' + $ref: "#/components/schemas/GroupContainingGroup" type: array required: - containing_groups @@ -5525,7 +7731,7 @@ components: properties: channels: items: - $ref: '#/components/schemas/MessageChannel' + $ref: "#/components/schemas/MessageChannel" type: array required: - channels @@ -5543,7 +7749,7 @@ components: properties: on_call_schedules: items: - $ref: '#/components/schemas/OnCallSchedule' + $ref: "#/components/schemas/OnCallSchedule" type: array required: - on_call_schedules @@ -5556,7 +7762,7 @@ components: - 1520617d-e72a-47f5-a84c-693817ab48ad2 properties: visibility: - $ref: '#/components/schemas/VisibilityTypeEnum' + $ref: "#/components/schemas/VisibilityTypeEnum" visibility_group_ids: items: format: uuid @@ -5613,14 +7819,18 @@ components: - owner_ids: - 7870617d-e72a-47f5-a84c-693817ab4567 - 1520617d-e72a-47f5-a84c-693817ab48ad2 + service_user_ids: + - 7870617d-e72a-47f5-a84c-693817ab4568 - owner_ids: - 7870617d-e72a-47f5-a84c-693817ab4567 - 1520617d-e72a-47f5-a84c-693817ab48ad2 + service_user_ids: + - 7870617d-e72a-47f5-a84c-693817ab4568 properties: stages: description: A list of reviewer stages. items: - $ref: '#/components/schemas/ReviewerStage' + $ref: "#/components/schemas/ReviewerStage" type: array required: - stages @@ -5630,6 +7840,8 @@ components: owner_ids: - 7870617d-e72a-47f5-a84c-693817ab4567 - 1520617d-e72a-47f5-a84c-693817ab48ad2 + service_user_ids: + - 7870617d-e72a-47f5-a84c-693817ab4568 properties: require_manager_approval: description: Whether this reviewer stage should require manager approval. @@ -5648,6 +7860,13 @@ components: example: AND type: string owner_ids: + description: The IDs of owners assigned as reviewers for this stage. + items: + format: uuid + type: string + type: array + service_user_ids: + description: The IDs of service users assigned as reviewers for this stage. items: format: uuid type: string @@ -5677,7 +7896,7 @@ components: format: uuid type: string third_party_provider: - $ref: '#/components/schemas/MessageChannelProviderEnum' + $ref: "#/components/schemas/MessageChannelProviderEnum" remote_id: description: The remote ID of the message channel example: C03FJR97276 @@ -5702,7 +7921,7 @@ components: remote_id: C03FJR97276 properties: third_party_provider: - $ref: '#/components/schemas/MessageChannelProviderEnum' + $ref: "#/components/schemas/MessageChannelProviderEnum" remote_id: description: The remote ID of the message channel example: C03FJR97276 @@ -5736,7 +7955,7 @@ components: format: uuid type: string third_party_provider: - $ref: '#/components/schemas/OnCallScheduleProviderEnum' + $ref: "#/components/schemas/OnCallScheduleProviderEnum" remote_id: description: The remote ID of the on call schedule example: P7OWH2R @@ -5755,7 +7974,7 @@ components: remote_id: PNZNINN properties: third_party_provider: - $ref: '#/components/schemas/OnCallScheduleProviderEnum' + $ref: "#/components/schemas/OnCallScheduleProviderEnum" remote_id: description: The remote ID of the on call schedule example: PNZNINN @@ -5778,84 +7997,224 @@ components: - SERVICE_NOW example: LINEAR type: string + RDSEngineEnum: + description: The database engine for the RDS instance. + enum: + - MYSQL + - POSTGRESQL + type: string GroupRemoteInfo: - description: Information that defines the remote group. This replaces the deprecated - remote_id and metadata fields. + 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' + $ref: "#/components/schemas/GroupRemoteInfo_active_directory_group" + tailscale_group: + $ref: "#/components/schemas/GroupRemoteInfo_tailscale_group" + twingate_group: + $ref: "#/components/schemas/GroupRemoteInfo_twingate_group" + twingate_group_synced: + $ref: "#/components/schemas/GroupRemoteInfo_twingate_group_synced" + aws_sso_group: + $ref: "#/components/schemas/GroupRemoteInfo_aws_sso_group" + databricks_account_group: + $ref: "#/components/schemas/GroupRemoteInfo_databricks_account_group" + connector_group: + $ref: "#/components/schemas/GroupRemoteInfo_connector_group" github_team: - $ref: '#/components/schemas/GroupRemoteInfo_github_team' + $ref: "#/components/schemas/GroupRemoteInfo_github_team" + github_enterprise_team: + $ref: "#/components/schemas/GroupRemoteInfo_github_enterprise_team" gitlab_group: - $ref: '#/components/schemas/GroupRemoteInfo_gitlab_group' + $ref: "#/components/schemas/GroupRemoteInfo_gitlab_group" google_group: - $ref: '#/components/schemas/GroupRemoteInfo_google_group' + $ref: "#/components/schemas/GroupRemoteInfo_google_group" ldap_group: - $ref: '#/components/schemas/GroupRemoteInfo_ldap_group' + $ref: "#/components/schemas/GroupRemoteInfo_ldap_group" okta_group: - $ref: '#/components/schemas/GroupRemoteInfo_okta_group' + $ref: "#/components/schemas/GroupRemoteInfo_okta_group" duo_group: - $ref: '#/components/schemas/GroupRemoteInfo_duo_group' + $ref: "#/components/schemas/GroupRemoteInfo_duo_group" azure_ad_security_group: - $ref: '#/components/schemas/GroupRemoteInfo_azure_ad_security_group' + $ref: "#/components/schemas/GroupRemoteInfo_azure_ad_security_group" azure_ad_microsoft_365_group: - $ref: '#/components/schemas/GroupRemoteInfo_azure_ad_microsoft_365_group' + $ref: "#/components/schemas/GroupRemoteInfo_azure_ad_microsoft_365_group" + snowflake_role: + $ref: "#/components/schemas/GroupRemoteInfo_snowflake_role" + okta_group_rule: + $ref: "#/components/schemas/GroupRemoteInfo_okta_group_rule" + workday_user_security_group: + $ref: "#/components/schemas/GroupRemoteInfo_workday_user_security_group" + pagerduty_on_call_schedule: + $ref: "#/components/schemas/GroupRemoteInfo_pagerduty_on_call_schedule" + incidentio_on_call_schedule: + $ref: "#/components/schemas/GroupRemoteInfo_incidentio_on_call_schedule" + rootly_on_call_schedule: + $ref: "#/components/schemas/GroupRemoteInfo_rootly_on_call_schedule" + devin_group: + $ref: "#/components/schemas/GroupRemoteInfo_devin_group" + clickhouse_role: + $ref: "#/components/schemas/GroupRemoteInfo_clickhouse_role" + grafana_team: + $ref: "#/components/schemas/GroupRemoteInfo_grafana_team" + zendesk_group: + $ref: "#/components/schemas/GroupRemoteInfo_zendesk_group" + slack_user_group: + $ref: "#/components/schemas/GroupRemoteInfo_slack_user_group" + zendesk_organization: + $ref: "#/components/schemas/GroupRemoteInfo_zendesk_organization" + hubspot_team: + $ref: "#/components/schemas/GroupRemoteInfo_hubspot_team" ResourceRemoteInfo: description: Information that defines the remote resource. This replaces the deprecated remote_id and metadata fields. properties: + databricks_account_service_principal: + $ref: "#/components/schemas/ResourceRemoteInfo_databricks_account_service_principal" + azure_subscription: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_subscription" + azure_resource_group: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_resource_group" + azure_management_group: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_management_group" + azure_virtual_machine: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_virtual_machine" + azure_storage_account: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_storage_account" + azure_storage_container: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_storage_container" + azure_sql_server: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_sql_server" + azure_sql_database: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_sql_database" + azure_sql_managed_instance: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_sql_managed_instance" + azure_sql_managed_database: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_sql_managed_database" + azure_user_assigned_managed_identity: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_user_assigned_managed_identity" + azure_enterprise_app: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_enterprise_app" + azure_entra_id_role: + $ref: "#/components/schemas/ResourceRemoteInfo_azure_entra_id_role" + aws_organizational_unit: + $ref: "#/components/schemas/ResourceRemoteInfo_aws_organizational_unit" aws_account: - $ref: '#/components/schemas/ResourceRemoteInfo_aws_account' + $ref: "#/components/schemas/ResourceRemoteInfo_aws_account" aws_permission_set: - $ref: '#/components/schemas/ResourceRemoteInfo_aws_permission_set' + $ref: "#/components/schemas/ResourceRemoteInfo_aws_permission_set" aws_iam_role: - $ref: '#/components/schemas/ResourceRemoteInfo_aws_iam_role' + $ref: "#/components/schemas/ResourceRemoteInfo_aws_iam_role" aws_ec2_instance: - $ref: '#/components/schemas/ResourceRemoteInfo_aws_ec2_instance' + $ref: "#/components/schemas/ResourceRemoteInfo_aws_ec2_instance" + aws_rds_cluster: + $ref: "#/components/schemas/ResourceRemoteInfo_aws_rds_cluster" aws_rds_instance: - $ref: '#/components/schemas/ResourceRemoteInfo_aws_rds_instance' + $ref: "#/components/schemas/ResourceRemoteInfo_aws_rds_instance" aws_eks_cluster: - $ref: '#/components/schemas/ResourceRemoteInfo_aws_eks_cluster' + $ref: "#/components/schemas/ResourceRemoteInfo_aws_eks_cluster" + custom_connector: + $ref: "#/components/schemas/ResourceRemoteInfo_custom_connector" gcp_organization: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_organization' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_organization" gcp_bucket: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_bucket' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_bucket" gcp_compute_instance: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_compute_instance' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_compute_instance" gcp_big_query_dataset: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_big_query_dataset' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_big_query_dataset" gcp_big_query_table: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_big_query_table' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_big_query_table" gcp_folder: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_folder' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_folder" gcp_gke_cluster: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_gke_cluster' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_gke_cluster" gcp_project: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_project' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_project" gcp_sql_instance: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_sql_instance' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_sql_instance" gcp_service_account: - $ref: '#/components/schemas/ResourceRemoteInfo_gcp_service_account' + $ref: "#/components/schemas/ResourceRemoteInfo_gcp_service_account" + google_workspace_role: + $ref: "#/components/schemas/ResourceRemoteInfo_google_workspace_role" github_repo: - $ref: '#/components/schemas/ResourceRemoteInfo_github_repo' + $ref: "#/components/schemas/ResourceRemoteInfo_github_repo" + github_org_role: + $ref: "#/components/schemas/ResourceRemoteInfo_github_org_role" + github_org: + $ref: "#/components/schemas/ResourceRemoteInfo_github_org" + github_enterprise_role: + $ref: "#/components/schemas/ResourceRemoteInfo_github_enterprise_role" gitlab_project: - $ref: '#/components/schemas/ResourceRemoteInfo_gitlab_project' + $ref: "#/components/schemas/ResourceRemoteInfo_gitlab_project" okta_app: - $ref: '#/components/schemas/ResourceRemoteInfo_okta_app' + $ref: "#/components/schemas/ResourceRemoteInfo_okta_app" okta_standard_role: - $ref: '#/components/schemas/ResourceRemoteInfo_okta_standard_role' + $ref: "#/components/schemas/ResourceRemoteInfo_okta_standard_role" okta_custom_role: - $ref: '#/components/schemas/ResourceRemoteInfo_okta_custom_role' + $ref: "#/components/schemas/ResourceRemoteInfo_okta_custom_role" + snowflake_database: + $ref: "#/components/schemas/ResourceRemoteInfo_snowflake_database" + snowflake_schema: + $ref: "#/components/schemas/ResourceRemoteInfo_snowflake_schema" + snowflake_table: + $ref: "#/components/schemas/ResourceRemoteInfo_snowflake_table" + ilevel_advanced_role: + $ref: "#/components/schemas/ResourceRemoteInfo_ilevel_advanced_role" + tailscale_ssh: + $ref: "#/components/schemas/ResourceRemoteInfo_tailscale_ssh" + twingate_resource: + $ref: "#/components/schemas/ResourceRemoteInfo_twingate_resource" pagerduty_role: - $ref: '#/components/schemas/ResourceRemoteInfo_pagerduty_role' + $ref: "#/components/schemas/ResourceRemoteInfo_pagerduty_role" + workday_role: + $ref: "#/components/schemas/ResourceRemoteInfo_workday_role" salesforce_permission_set: - $ref: '#/components/schemas/ResourceRemoteInfo_salesforce_permission_set' + $ref: "#/components/schemas/ResourceRemoteInfo_salesforce_permission_set" salesforce_profile: - $ref: '#/components/schemas/ResourceRemoteInfo_salesforce_profile' + $ref: "#/components/schemas/ResourceRemoteInfo_salesforce_profile" salesforce_role: - $ref: '#/components/schemas/ResourceRemoteInfo_salesforce_role' + $ref: "#/components/schemas/ResourceRemoteInfo_salesforce_role" teleport_role: - $ref: '#/components/schemas/ResourceRemoteInfo_teleport_role' + $ref: "#/components/schemas/ResourceRemoteInfo_teleport_role" + datastax_astra_role: + $ref: "#/components/schemas/ResourceRemoteInfo_datastax_astra_role" + coupa_role: + $ref: "#/components/schemas/ResourceRemoteInfo_coupa_role" + cursor_organization: + $ref: "#/components/schemas/ResourceRemoteInfo_cursor_organization" + openai_platform_project: + $ref: "#/components/schemas/ResourceRemoteInfo_openai_platform_project" + openai_platform_service_account: + $ref: "#/components/schemas/ResourceRemoteInfo_openai_platform_service_account" + anthropic_workspace: + $ref: "#/components/schemas/ResourceRemoteInfo_anthropic_workspace" + oracle_fusion_role: + $ref: "#/components/schemas/ResourceRemoteInfo_oracle_fusion_role" + devin_organization: + $ref: "#/components/schemas/ResourceRemoteInfo_devin_organization" + devin_role: + $ref: "#/components/schemas/ResourceRemoteInfo_devin_role" + netsuite_role: + $ref: "#/components/schemas/ResourceRemoteInfo_netsuite_role" + datadog_role: + $ref: "#/components/schemas/ResourceRemoteInfo_datadog_role" + clickhouse_database: + $ref: "#/components/schemas/ResourceRemoteInfo_clickhouse_database" + clickhouse_table: + $ref: "#/components/schemas/ResourceRemoteInfo_clickhouse_table" + grafana_folder: + $ref: "#/components/schemas/ResourceRemoteInfo_grafana_folder" + grafana_dashboard: + $ref: "#/components/schemas/ResourceRemoteInfo_grafana_dashboard" + grafana_role: + $ref: "#/components/schemas/ResourceRemoteInfo_grafana_role" + zendesk_role: + $ref: "#/components/schemas/ResourceRemoteInfo_zendesk_role" + hubspot_role: + $ref: "#/components/schemas/ResourceRemoteInfo_hubspot_role" RiskSensitivityEnum: description: Indicates the level of potential impact misuse or unauthorized access may incur. @@ -5899,14 +8258,14 @@ components: example: Engineering team Okta role. type: string resource_type: - $ref: '#/components/schemas/ResourceTypeEnum' + $ref: "#/components/schemas/ResourceTypeEnum" app_id: description: The ID of the app for the resource. example: f454d283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string remote_info: - $ref: '#/components/schemas/ResourceRemoteInfo' + $ref: "#/components/schemas/ResourceRemoteInfo" remote_resource_id: deprecated: true description: "Deprecated - use remote_info instead. The ID of the resource\ @@ -6156,7 +8515,7 @@ components: nullable: true risk_sensitivity_override: allOf: - - $ref: '#/components/schemas/RiskSensitivityEnum' + - $ref: "#/components/schemas/RiskSensitivityEnum" required: - app_id - name @@ -6215,14 +8574,14 @@ components: example: Engineering team Okta group. type: string group_type: - $ref: '#/components/schemas/GroupTypeEnum' + $ref: "#/components/schemas/GroupTypeEnum" app_id: description: The ID of the app for the group. example: f454d283-ca87-4a8a-bdbb-df212eca5353 format: uuid type: string remote_info: - $ref: '#/components/schemas/GroupRemoteInfo' + $ref: "#/components/schemas/GroupRemoteInfo" remote_group_id: deprecated: true description: "Deprecated - use remote_info instead. The ID of the group\ @@ -6333,7 +8692,7 @@ components: nullable: true risk_sensitivity_override: allOf: - - $ref: '#/components/schemas/RiskSensitivityEnum' + - $ref: "#/components/schemas/RiskSensitivityEnum" required: - app_id - group_type @@ -6374,7 +8733,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/Resource' + $ref: "#/components/schemas/Resource" type: array required: - results @@ -6387,10 +8746,10 @@ components: ### Usage Example Returned from the `GET Requests` endpoint. enum: - - pending - - approved - - denied - - canceled + - PENDING + - APPROVED + - DENIED + - CANCELED type: string Request: description: |- @@ -6402,8 +8761,8 @@ components: Returned from the `GET Requests` endpoint. example: id: 7c86c85d-0651-43e2-a748-d69d658418e8 - created_at: 2021-01-06T20:00:00Z - updated_at: 2021-01-06T20:00:00Z + created_at: 2021-01-06T20:00:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 requester_id: c86c85d-0651-43e2-a748-d69d658418e8 target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 target_group_id: r86c85d-0651-43e2-a748-d69d658418e8 @@ -6412,11 +8771,25 @@ components: 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 + created_at: 2021-01-06T20:00:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 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: id: description: The unique identifier of the request. @@ -6425,12 +8798,12 @@ components: type: string created_at: description: The date and time the request was created. - example: 2021-01-06T20:00:00Z + example: 2021-01-06T20:00:00.000+00:00 format: date-time type: string updated_at: description: The date and time the request was last updated. - example: 2021-01-06T20:00:00Z + example: 2021-01-06T20:00:00.000+00:00 format: date-time type: string requester_id: @@ -6451,7 +8824,10 @@ components: format: uuid type: string status: - $ref: '#/components/schemas/RequestStatusEnum' + allOf: + - $ref: "#/components/schemas/RequestStatusEnum" + description: The status of the request. + example: pending reason: description: The reason for the request. example: I need access to the AWS account. @@ -6463,14 +8839,21 @@ components: requested_items_list: description: The list of targets for the request. items: - $ref: '#/components/schemas/RequestedItem' + $ref: "#/components/schemas/RequestedItem" type: array custom_fields_responses: description: The responses given to the custom fields associated to the request items: - $ref: '#/components/schemas/RequestCustomFieldResponse' + $ref: "#/components/schemas/RequestCustomFieldResponse" type: array + stages: + allOf: + - $ref: "#/components/schemas/RequestItemStages" + deprecated: true + description: The stages configuration for this request + reviewer_stages: + $ref: "#/components/schemas/Request_reviewer_stages" required: - created_at - id @@ -6478,31 +8861,71 @@ components: - requester_id - status - updated_at - RequestedItem: + RequestCommentList: + description: A paginated list of request comments + example: + comments: + - created_at: 2021-01-06T20:00:00.000+00:00 + 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 + RequestComment: description: |- - # Requested Item Object + # Request Comment Object ### Description - The `RequestedItem` object is used to represent a request target item. + The `RequestComment` object is used to represent a comment on a request. ### Usage Example - Returned from the `GET Requests` endpoint. + Returned from the `GET Requests` endpoint as part of a `Request` object. 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 + created_at: 2021-01-06T20:00:00.000+00:00 + request_id: 4c86c85d-0651-43e2-a748-d69d658418e8 + user_id: c86c85d-0651-43e2-a748-d69d658418e8 + comment: This is a comment. properties: - resource_id: - description: The ID of the resource requested. - example: f454d283-ca87-4a8a-bdbb-df212eca5353 + created_at: + description: The date and time the comment was created. + example: 2021-01-06T20:00:00.000+00:00 + format: date-time + type: string + request_id: + description: The unique identifier of the request the comment is associated + with. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 format: uuid type: string - group_id: - description: The ID of the group requested. - example: f454d283-ca87-4a8a-bdbb-df212eca5353 + user_id: + description: The unique identifier of the user who made the comment. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 format: uuid type: string + user_full_name: + description: The user's full name. + example: Jake Barnes + type: string + user_email: + description: The user's email address. + example: jake.barnes@company.com + type: string + comment: + description: The content of the comment. + example: This is a comment. + type: string + required: + - comment + - created_at + - request_id + - user_id + RequestReviewerStages: + description: The stages configuration for a request item + properties: access_level_name: description: The name of the access level requested. example: admin @@ -6511,20 +8934,143 @@ components: description: The ID of the access level requested on the remote system. example: arn:aws:iam::490306337630:role/SupportUser type: string - name: - description: The name of the target. - example: Engineering Team + item_name: + description: The name of the requested item type: string - RequestCustomFieldResponse: - properties: - field_name: + item_id: + description: The ID of the resource requested. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid type: string - field_type: - $ref: '#/components/schemas/RequestTemplateCustomFieldTypeEnum' - field_value: - $ref: '#/components/schemas/RequestCustomFieldResponse_field_value' - required: - - field_name + stages: + description: The stages of review for this request + items: + $ref: "#/components/schemas/RequestStage" + type: array + required: + - item_id + - item_name + - stages + RequestItemStages: + deprecated: true + description: The stages configuration for a request item + properties: + requestedRoleName: + description: The name of the requested role + type: string + requestedItemName: + description: The name of the requested item + type: string + stages: + description: The stages of review for this request + items: + $ref: "#/components/schemas/RequestStage" + type: array + required: + - requestedItemName + - stages + RequestStage: + description: A stage in the request review process + properties: + stage: + description: The stage number + type: integer + operator: + allOf: + - $ref: "#/components/schemas/ReviewStageOperator" + description: The operator to apply to reviewers in this stage + reviewers: + description: The reviewers for this stage + items: + $ref: "#/components/schemas/RequestReviewer" + type: array + required: + - operator + - reviewers + - stage + ReviewStageOperator: + description: The operator to apply to reviewers in a stage + enum: + - AND + - OR + type: string + RequestReviewer: + description: A reviewer in a request stage + properties: + id: + description: The unique identifier of the reviewer + format: uuid + type: string + 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 + required: + - id + - status + RequestedItem: + description: |- + # Requested Item Object + ### Description + The `RequestedItem` object is used to represent a request target item. + + ### Usage Example + Returned from the `GET Requests` endpoint. + example: + 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. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + group_id: + description: The ID of the group requested. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + access_level_name: + description: The name of the access level requested. + example: admin + 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 + name: + description: The name of the target. + example: Engineering Team + type: string + remote_id: + description: The ID of the target on the remote system. + example: arn:aws:iam::490306337630:role/SupportUser + type: string + remote_name: + description: The name of the target on the remote system. + example: SupportUser + type: string + RequestCustomFieldResponse: + properties: + field_name: + type: string + field_type: + allOf: + - $ref: "#/components/schemas/RequestTemplateCustomFieldTypeEnum" + example: SHORT_TEXT + field_value: + $ref: "#/components/schemas/RequestCustomFieldResponse_field_value" + required: + - field_name - field_type - field_value RequestTemplateCustomFieldTypeEnum: @@ -6547,8 +9093,8 @@ components: 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 + created_at: 2021-01-06T20:00:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 requester_id: c86c85d-0651-43e2-a748-d69d658418e8 target_user_id: r86c85d-0651-43e2-a748-d69d658418e8 target_group_id: g86c85d-0651-43e2-a748-d69d658418e8 @@ -6557,8 +9103,8 @@ components: 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 + created_at: 2021-01-06T20:00:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 request_id: 7c86c85d-0651-43e2-a748-d69d658418e8 user_id: c86c85d-0651-43e2-a748-d69d658418e8 comment: This is a comment. @@ -6567,7 +9113,7 @@ components: requests: description: The list of requests. items: - $ref: '#/components/schemas/Request' + $ref: "#/components/schemas/Request" type: array cursor: description: The cursor to use in the next request to get the next page @@ -6593,6 +9139,10 @@ components: require_manager_approval: false require_support_ticket: false parent_resource_id: f454d283-ca67-4a8a-bdbb-df212eca5345 + ancestor_resource_ids: + - f454d283-ca67-4a8a-bdbb-df212eca5345 + descendant_resource_ids: + - f454d283-ca67-4a8a-bdbb-df212eca5345 properties: resource_id: description: The ID of the resource. @@ -6626,7 +9176,7 @@ components: example: repo-name type: string resource_type: - $ref: '#/components/schemas/ResourceTypeEnum' + $ref: "#/components/schemas/ResourceTypeEnum" max_duration: description: The maximum duration for which the resource can be requested (in minutes). @@ -6637,6 +9187,12 @@ components: (in minutes). -1 represents an indefinite duration. example: 120 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 + type: integer require_manager_approval: deprecated: true description: A bool representing whether or not access requests to the resource @@ -6691,16 +9247,16 @@ components: request_configurations: description: A list of configurations for requests to this resource. items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array request_configuration_list: description: A list of configurations for requests to this resource. Deprecated in favor of `request_configurations`. items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array ticket_propagation: - $ref: '#/components/schemas/TicketPropagationConfiguration' + $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: description: Custom request notification sent upon request approval. maxLength: 800 @@ -6708,13 +9264,13 @@ components: nullable: true risk_sensitivity: allOf: - - $ref: '#/components/schemas/RiskSensitivityEnum' + - $ref: "#/components/schemas/RiskSensitivityEnum" description: "The risk sensitivity level for the resource. When an override\ \ is set, this field will match that." readOnly: true risk_sensitivity_override: allOf: - - $ref: '#/components/schemas/RiskSensitivityEnum' + - $ref: "#/components/schemas/RiskSensitivityEnum" metadata: deprecated: true description: "JSON metadata about the remote resource. Only set for items\ @@ -6730,14 +9286,37 @@ components: } type: string remote_info: - $ref: '#/components/schemas/ResourceRemoteInfo' + $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 + items: + format: uuid + type: string + type: array + 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 + items: + format: uuid + type: string + type: array + last_successful_sync: + allOf: + - $ref: "#/components/schemas/SyncTask" + description: Information about the last successful sync of this resource. + readOnly: true required: - resource_id AwsPermissionSetMetadata: description: Metadata for AWS Identity Center permission set. properties: aws_permission_set: - $ref: '#/components/schemas/AwsPermissionSetMetadata_aws_permission_set' + $ref: "#/components/schemas/AwsPermissionSetMetadata_aws_permission_set" required: - aws_permission_set UpdateResourceInfoList: @@ -6761,7 +9340,7 @@ components: resources: description: A list of resources with information to update. items: - $ref: '#/components/schemas/UpdateResourceInfo' + $ref: "#/components/schemas/UpdateResourceInfo" type: array required: - resources @@ -6851,7 +9430,7 @@ components: example: false type: boolean ticket_propagation: - $ref: '#/components/schemas/TicketPropagationConfiguration' + $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: description: Custom request notification sent upon request approval. example: Check your email to register your account. @@ -6860,7 +9439,7 @@ components: nullable: true 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 @@ -6879,14 +9458,66 @@ components: 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 + type: integer + parent_resource_id: + description: The ID of the parent resource. + example: f454d283-ca67-4a8a-bdbb-df212eca5345 + format: uuid + type: string + nullable: true request_configurations: description: "A list of configurations for requests to this resource. If\ \ not provided, the default request configuration will be used." items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array request_configuration_list: - $ref: '#/components/schemas/CreateRequestConfigurationInfoList' + allOf: + - $ref: "#/components/schemas/CreateRequestConfigurationInfoList" + deprecated: true + 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`." + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + 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 PaginatedTagsList: @@ -6895,15 +9526,15 @@ components: previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ results: - tag_id: f290a738-5f9f-43c2-ad67-fa31ff0eb946 - created_at: 2022-01-23T04:56:07Z - updated_at: 2022-02-23T01:34:07Z + created_at: 2022-01-23T04:56:07.000+00:00 + updated_at: 2022-02-23T01:34:07.000+00:00 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 + created_at: 2022-03-23T04:56:07.000+00:00 + updated_at: 2022-04-23T01:34:07.000+00:00 user_creator_id: a4d7d928-783e-4599-8ec6-088d635af4ac admin_owner_id: gtg418b1-3f5b-4e3b-8eb8-3b3fabd4eaa1 key: database-type @@ -6922,7 +9553,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" type: array required: - results @@ -6930,15 +9561,15 @@ components: example: results: - tag_id: f290a738-5f9f-43c2-ad67-fa31ff0eb946 - created_at: 2022-01-23T04:56:07Z - updated_at: 2022-02-23T01:34:07Z + created_at: 2022-01-23T04:56:07.000+00:00 + updated_at: 2022-02-23T01:34:07.000+00:00 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 + created_at: 2022-03-23T04:56:07.000+00:00 + updated_at: 2022-04-23T01:34:07.000+00:00 user_creator_id: a4d7d928-783e-4599-8ec6-088d635af4ac admin_owner_id: gtg418b1-3f5b-4e3b-8eb8-3b3fabd4eaa1 key: database-type @@ -6946,7 +9577,7 @@ components: properties: tags: items: - $ref: '#/components/schemas/Tag' + $ref: "#/components/schemas/Tag" type: array required: - tags @@ -6960,8 +9591,8 @@ components: Get tags from the `GET Tag` endpoint. example: tag_id: f290a738-5f9f-43c2-ad67-fa31ff0eb946 - created_at: 2022-01-23T04:56:07Z - updated_at: 2022-02-23T01:34:07Z + created_at: 2022-01-23T04:56:07.000+00:00 + updated_at: 2022-02-23T01:34:07.000+00:00 user_creator_id: d4a7d928-783e-4599-8ec6-088d635a5bcc key: database-name value: redis_db @@ -6973,12 +9604,12 @@ components: type: string created_at: description: The date the tag was created. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string updated_at: description: The date the tag was last updated. - example: 2022-02-23T01:34:07Z + example: 2022-02-23T01:34:07.000+00:00 format: date-time type: string user_creator_id: @@ -7025,7 +9656,7 @@ components: results: - group_binding_id: f454d283-ca87-4a8a-bdbb-df212eca5353 created_by_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - created_at: 2022-01-23T04:56:07Z + created_at: 2022-01-23T04:56:07.000+00:00 source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 groups: - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 @@ -7035,7 +9666,7 @@ components: - 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 + created_at: 2022-01-23T04:56:07.000+00:00 groups: - group_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b group_type: AWS_SSO_GROUP @@ -7055,7 +9686,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/GroupBinding' + $ref: "#/components/schemas/GroupBinding" type: array required: - results @@ -7078,7 +9709,7 @@ components: groups: description: The list of groups. items: - $ref: '#/components/schemas/CreateGroupBindingInfo_groups_inner' + $ref: "#/components/schemas/CreateGroupBindingInfo_groups_inner" type: array required: - groups @@ -7100,7 +9731,7 @@ components: group_bindings: description: A list of group bindings with information to update. items: - $ref: '#/components/schemas/UpdateGroupBindingInfo' + $ref: "#/components/schemas/UpdateGroupBindingInfo" type: array required: - group_bindings @@ -7129,7 +9760,7 @@ components: groups: description: The list of groups. items: - $ref: '#/components/schemas/CreateGroupBindingInfo_groups_inner' + $ref: "#/components/schemas/CreateGroupBindingInfo_groups_inner" type: array required: - group_binding_id @@ -7146,7 +9777,7 @@ components: example: group_binding_id: f454d283-ca87-4a8a-bdbb-df212eca5353 created_by_id: 99d0b81d-14be-4cf6-bd27-348b4af1d11b - created_at: 2022-01-23T04:56:07Z + created_at: 2022-01-23T04:56:07.000+00:00 source_group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 groups: - group_id: f454d283-ca87-4a8a-bdbb-df212eca5353 @@ -7166,7 +9797,7 @@ components: type: string created_at: description: The date the group binding was created. - example: 2022-01-23T04:56:07Z + example: 2022-01-23T04:56:07.000+00:00 format: date-time type: string source_group_id: @@ -7177,7 +9808,7 @@ components: groups: description: The list of groups. items: - $ref: '#/components/schemas/GroupBindingGroup' + $ref: "#/components/schemas/GroupBindingGroup" type: array required: - created_at @@ -7203,30 +9834,325 @@ components: format: uuid type: string group_type: - $ref: '#/components/schemas/GroupTypeEnum' + $ref: "#/components/schemas/GroupTypeEnum" required: - group_id - group_type - AccessRuleCondition: + UpdateAccessRuleInfo: + description: |- + # UpdateAccessRuleInfo Object + ### Description + The `UpdateAccessRuleInfo` object is used as an input to the UpdateAccessRule and CreateAccessRule API. + example: + ruleClauses: + unless: + clauses: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + 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: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + 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. + example: Platform Engineering + type: string + description: + description: A description of the group. + example: This access rule represents all platform engineers in the company. + type: string + admin_owner_id: + description: The ID of the owner of the group. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + status: + description: The status of the access rule. + enum: + - ACTIVE + - PAUSED + example: ACTIVE + type: string + ruleClauses: + $ref: "#/components/schemas/RuleClauses" + required: + - admin_owner_id + - description + - name + - ruleClauses + - status + PaginatedAccessRulesList: + example: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + results: + - ruleClauses: + unless: + clauses: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + 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: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + 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 + - ruleClauses: + unless: + clauses: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + 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: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + key: key + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + 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: + next: + description: The cursor with which to continue pagination if additional + result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + type: string + previous: + description: The cursor used to retrieve the previous page of results. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + type: string + results: + items: + $ref: "#/components/schemas/AccessRule" + type: array + required: + - results + AccessRule: description: |- - # Access Rule Config Object + # Access Rule Object ### Description - The `AccessRuleConfig` object is used to represent an access rule configuration. + The `AccessRule` object is used to represent an access rule configuration. ### Usage Example - Get access rule configurations from the `GET Access Rule Configs` endpoint. + List access rules from the `GET /access-rules` endpoint, or retrieve a single access rule from the `GET /access-rules/{access_rule_id}` endpoint. example: ruleClauses: unless: clauses: - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key @@ -7235,22 +10161,62 @@ components: key: key when: clauses: - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + 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. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + name: + description: The name of the access rule. + example: Platform Engineering + type: string + description: + description: A description of the group. + example: This access rule represents all platform engineers in the company. + type: string + admin_owner_id: + description: The ID of the owner of the group. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string status: description: The status of the access rule. enum: @@ -7259,22 +10225,44 @@ components: example: ACTIVE type: string ruleClauses: - $ref: '#/components/schemas/RuleClauses' + $ref: "#/components/schemas/RuleClauses" required: + - access_rule_id + - admin_owner_id + - description + - name - ruleClauses - status RuleClauses: example: unless: clauses: - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key @@ -7283,14 +10271,32 @@ components: key: key when: clauses: - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key @@ -7299,22 +10305,40 @@ components: key: key properties: when: - $ref: '#/components/schemas/RuleConjunction' + $ref: "#/components/schemas/RuleConjunction" unless: - $ref: '#/components/schemas/RuleConjunction' + $ref: "#/components/schemas/RuleConjunction" required: - when RuleConjunction: example: clauses: - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key - - selectors: + - attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS + selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value key: key @@ -7324,13 +10348,22 @@ components: properties: clauses: items: - $ref: '#/components/schemas/RuleDisjunction' + $ref: "#/components/schemas/RuleDisjunction" minItems: 1 type: array required: - clauses RuleDisjunction: example: + attribute_selectors: + - values: + - values + - values + attribute: HR_IDP_STATUS + - values: + - values + - values + attribute: HR_IDP_STATUS selectors: - connection_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 value: value @@ -7341,8 +10374,11 @@ components: properties: selectors: items: - $ref: '#/components/schemas/TagSelector' - minItems: 1 + $ref: "#/components/schemas/TagSelector" + type: array + attribute_selectors: + items: + $ref: "#/components/schemas/UserAttributeSelector" type: array required: - selectors @@ -7363,6 +10399,24 @@ components: - connection_id - key - value + UserAttributeSelector: + example: + values: + - values + - values + attribute: HR_IDP_STATUS + properties: + attribute: + enum: + - HR_IDP_STATUS + type: string + values: + items: + type: string + type: array + required: + - attribute + - values PaginatedOwnersList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -7390,7 +10444,7 @@ components: nullable: true results: items: - $ref: '#/components/schemas/Owner' + $ref: "#/components/schemas/Owner" type: array required: - results @@ -7498,7 +10552,7 @@ components: owners: description: A list of owners with information to update. items: - $ref: '#/components/schemas/UpdateOwnerInfo' + $ref: "#/components/schemas/UpdateOwnerInfo" type: array required: - owners @@ -7582,8 +10636,8 @@ components: example: request_configuration_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 + created_at: 2021-01-06T20:00:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 condition: group_id: 1b978423-db0a-4037-a4cf-f79c60cb67b3 allow_requests: true @@ -7601,7 +10655,9 @@ components: priority: 1 properties: condition: - $ref: '#/components/schemas/Condition' + allOf: + - $ref: "#/components/schemas/Condition" + description: The condition for the request configuration. allow_requests: description: A bool representing whether or not to allow requests for this resource. @@ -7632,6 +10688,12 @@ components: 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 + type: integer request_template_id: description: The ID of the associated request template. example: 06851574-e50d-40ca-8c78-f72ae6ab4304 @@ -7640,7 +10702,7 @@ components: reviewer_stages: description: The list of reviewer stages for the request configuration. items: - $ref: '#/components/schemas/ReviewerStage' + $ref: "#/components/schemas/ReviewerStage" type: array priority: description: The priority of the request configuration. @@ -7676,7 +10738,6 @@ components: 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 @@ -7711,7 +10772,7 @@ components: request_configurations: description: A list of request configurations to create. items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array required: - request_configurations @@ -7746,7 +10807,10 @@ components: format: uuid type: string visibility: - $ref: '#/components/schemas/VisibilityInfo' + allOf: + - $ref: "#/components/schemas/VisibilityInfo" + description: The visibility info of the configuration template. + example: private linked_audit_message_channel_ids: description: The IDs of the audit message channels linked to the configuration template. @@ -7795,12 +10859,51 @@ components: description: "The request configuration list of the configuration template.\ \ If not provided, the default request configuration will be used." items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array request_configuration_list: - $ref: '#/components/schemas/CreateRequestConfigurationInfoList' + allOf: + - $ref: "#/components/schemas/CreateRequestConfigurationInfoList" + deprecated: true + 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`." + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + 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' + $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: description: Custom request notification sent upon request approval for this configuration template. @@ -7855,7 +10958,10 @@ components: format: uuid type: string visibility: - $ref: '#/components/schemas/VisibilityInfo' + allOf: + - $ref: "#/components/schemas/VisibilityInfo" + description: The visibility info of the configuration template. + example: private linked_audit_message_channel_ids: description: The IDs of the audit message channels linked to the configuration template. @@ -7877,7 +10983,7 @@ components: template. example: - 37cb7e41-12ba-46da-92ff-030abe0450b1 - - 37cb7e41-12ba-46da-92ff-030abe0450b2 + - 7c86c85d-0651-43e2-a748-d69d658418e8 items: format: uuid type: string @@ -7903,7 +11009,7 @@ components: example: false type: boolean ticket_propagation: - $ref: '#/components/schemas/TicketPropagationConfiguration' + $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: description: Custom request notification sent upon request approval for this configuration template. @@ -7920,7 +11026,7 @@ components: enabled_on_revocation: type: boolean ticket_provider: - $ref: '#/components/schemas/TicketingProviderEnum' + $ref: "#/components/schemas/TicketingProviderEnum" ticket_project_id: type: string required: @@ -7967,7 +11073,10 @@ components: format: uuid type: string visibility: - $ref: '#/components/schemas/VisibilityInfo' + allOf: + - $ref: "#/components/schemas/VisibilityInfo" + description: The visibility info of the configuration template. + example: private linked_audit_message_channel_ids: description: The IDs of the audit message channels linked to the configuration template. @@ -7982,10 +11091,48 @@ components: description: The request configuration list linked to the configuration template. items: - $ref: '#/components/schemas/RequestConfiguration' + $ref: "#/components/schemas/RequestConfiguration" type: array request_configuration_list: - $ref: '#/components/schemas/CreateRequestConfigurationInfoList' + allOf: + - $ref: "#/components/schemas/CreateRequestConfigurationInfoList" + deprecated: true + description: The request configuration list linked to the configuration + template. Deprecated in favor of `request_configurations`. + example: + request_configurations: + - request_configuration_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + organization_id: w86c85d-0651-43e2-a748-d69d658418e8 + 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. @@ -8017,7 +11164,7 @@ components: example: false type: boolean ticket_propagation: - $ref: '#/components/schemas/TicketPropagationConfiguration' + $ref: "#/components/schemas/TicketPropagationConfiguration" custom_request_notification: description: Custom request notification sent upon request approval for this configuration template. @@ -8055,7 +11202,7 @@ components: properties: results: items: - $ref: '#/components/schemas/ConfigurationTemplate' + $ref: "#/components/schemas/ConfigurationTemplate" type: array CreateRequestInfo: description: All the information needed for creating a request @@ -8093,11 +11240,11 @@ components: properties: resources: items: - $ref: '#/components/schemas/CreateRequestInfo_resources_inner' + $ref: "#/components/schemas/CreateRequestInfo_resources_inner" type: array groups: items: - $ref: '#/components/schemas/CreateRequestInfo_groups_inner' + $ref: "#/components/schemas/CreateRequestInfo_groups_inner" type: array target_user_id: description: The ID of the user to be granted access. Should not be specified @@ -8114,7 +11261,7 @@ components: reason: type: string support_ticket: - $ref: '#/components/schemas/CreateRequestInfo_support_ticket' + $ref: "#/components/schemas/CreateRequestInfo_support_ticket" duration_minutes: description: The duration of the request in minutes. -1 represents an indefinite duration @@ -8122,7 +11269,7 @@ components: type: integer custom_metadata: items: - $ref: '#/components/schemas/CreateRequestInfo_custom_metadata_inner' + $ref: "#/components/schemas/CreateRequestInfo_custom_metadata_inner" type: array required: - duration_minutes @@ -8133,17 +11280,17 @@ components: example: sync_errors: - app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - first_seen: 2022-07-14T06:59:59Z - last_seen: 2022-08-23T04:32:46Z + first_seen: 2022-07-14T06:59:59.000+00:00 + last_seen: 2022-08-23T04:32:46.000+00:00 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 + first_seen: 2023-04-24T06:59:59.000+00:00 + last_seen: 2024-08-21T04:32:46.000+00:00 error_message: Resource not found. properties: sync_errors: items: - $ref: '#/components/schemas/SyncError' + $ref: "#/components/schemas/SyncError" type: array required: - sync_errors @@ -8157,18 +11304,18 @@ components: List from the `GET Sync Errors` endpoint. example: app_id: b5a5ca27-0ea3-4d86-9199-2126d57d1fbd - first_seen: 2022-07-14T06:59:59Z - last_seen: 2022-08-23T04:32:46Z + first_seen: 2022-07-14T06:59:59.000+00:00 + last_seen: 2022-08-23T04:32:46.000+00:00 error_message: Failed to connect to the remote system - insufficient credentials. properties: first_seen: description: The time when this error was first seen. - example: 2022-07-14T06:59:59Z + example: 2022-07-14T06:59:59.000+00:00 format: date-time type: string last_seen: description: The time when this error was most recently seen. - example: 2022-07-14T06:59:59Z + example: 2022-07-14T06:59:59.000+00:00 format: date-time type: string error_message: @@ -8278,7 +11425,7 @@ components: type: integer bundles: items: - $ref: '#/components/schemas/Bundle' + $ref: "#/components/schemas/Bundle" type: array required: - bundles @@ -8338,7 +11485,7 @@ components: type: integer bundle_resources: items: - $ref: '#/components/schemas/BundleResource' + $ref: "#/components/schemas/BundleResource" type: array required: - bundle_resources @@ -8346,6 +11493,8 @@ components: 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. @@ -8359,6 +11508,14 @@ components: format: uuid readOnly: true type: string + access_level_name: + description: The access level of the group within a bundle. + example: Read + type: string + access_level_remote_id: + description: The remote ID of the access level of the group within a bundle. + example: arn:aws:iam::490306337630:role/SupportUser + type: string PaginatedBundleGroupList: example: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -8387,18 +11544,605 @@ components: type: integer bundle_groups: items: - $ref: '#/components/schemas/BundleGroup' + $ref: "#/components/schemas/BundleGroup" type: array required: - bundle_groups - addBundleResource_request: + ScopedRolePermissionList: + example: + permissions: + - target_ids: + - a381e7a3-e5e0-4c48-b1d6-4ccb4c191bc1 + - 8294e9c9-deb6-48e9-9c99-da2a1e04a87f + target_type: RESOURCE + permission_name: READ + properties: + permissions: + items: + $ref: "#/components/schemas/ScopedRolePermission" + type: array + required: + - permissions + ScopedRolePermission: 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: + target_ids: + 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 + items: + format: uuid + type: string + type: array + target_type: + $ref: "#/components/schemas/RolePermissionTargetTypeEnum" + permission_name: + $ref: "#/components/schemas/RolePermissionNameEnum" + allow_all: + type: boolean + required: + - allow_all + - permission_name + - target_type + 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:00.000+00:00 + properties: + id: + description: The ID of the sync task. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + completed_at: + description: The time when the sync task was completed. + example: 2023-10-01T12:00:00.000+00:00 + format: date-time + type: string + required: + - completed_at + - id + RequestApprovalEnum: + description: The decision level for the approval + enum: + - REGULAR + - ADMIN + example: REGULAR + type: string + Delegation: + description: |- + # Delegation Object + ### Description + The `Delegation` object represents a delegation of access review requests from one user to another. + + ### Usage Example + List from the `GET Delegations` endpoint. + Get from the `GET Delegation` endpoint. + example: + start_time: 2023-10-01T12:00:00.000+00:00 + reason: I need to be out of the office + delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + updated_at: 2023-10-01T12:00:00.000+00:00 + end_time: 2023-10-01T12:00:00.000+00:00 + created_at: 2023-10-01T12:00:00.000+00:00 + id: 4aed3e8a-727b-4d72-8010-3b8710c50bec + delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 + properties: + id: + description: The ID of the delegation. + example: 4aed3e8a-727b-4d72-8010-3b8710c50bec + format: uuid + type: string + delegator_user_id: + description: The ID of the user delegating their access review requests. + example: 123e4567-e89b-12d3-a456-426614174000 + format: uuid + type: string + delegate_user_id: + description: The ID of the user being delegated to. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + start_time: + description: The start time of the delegation. + example: 2023-10-01T12:00:00.000+00:00 + format: date-time + type: string + end_time: + description: The end time of the delegation. + example: 2023-10-01T12:00:00.000+00:00 + format: date-time + type: string + reason: + description: The reason for the delegation. + 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:00.000+00:00 + format: date-time + type: string + updated_at: + description: The last updated time of the delegation. + example: 2023-10-01T12:00:00.000+00:00 + format: date-time + type: string + required: + - created_at + - delegate_user_id + - delegator_user_id + - end_time + - id + - reason + - start_time + - updated_at + PaginatedDelegationsList: + description: A list of delegations for your organization. + example: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + total_count: 2 + results: + - start_time: 2023-10-01T12:00:00.000+00:00 + reason: I need to be out of the office + delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + updated_at: 2023-10-01T12:00:00.000+00:00 + end_time: 2023-10-01T12:00:00.000+00:00 + created_at: 2023-10-01T12:00:00.000+00:00 + id: 4aed3e8a-727b-4d72-8010-3b8710c50bec + delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 + - start_time: 2023-10-01T12:00:00.000+00:00 + reason: I need to be out of the office + delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + updated_at: 2023-10-01T12:00:00.000+00:00 + end_time: 2023-10-01T12:00:00.000+00:00 + created_at: 2023-10-01T12:00:00.000+00:00 + id: 4aed3e8a-727b-4d72-8010-3b8710c50bec + delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 + properties: + results: + description: The delegations in the result set. + items: + $ref: "#/components/schemas/Delegation" + type: array + next: + description: The cursor with which to continue pagination if additional + result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + type: string + nullable: true + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + type: string + nullable: true + 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:00.000+00:00 + reason: I need to be out of the office + delegate_user_id: 7c86c85d-0651-43e2-a748-d69d658418e8 + end_time: 2023-10-01T12:00:00.000+00:00 + delegator_user_id: 123e4567-e89b-12d3-a456-426614174000 + properties: + delegator_user_id: + description: The ID of the user delegating their access review requests. + example: 123e4567-e89b-12d3-a456-426614174000 + format: uuid + type: string + delegate_user_id: + description: The ID of the user being delegated to. + example: 7c86c85d-0651-43e2-a748-d69d658418e8 + format: uuid + type: string + start_time: + description: The start time of the delegation. + example: 2023-10-01T12:00:00.000+00:00 + format: date-time + type: string + end_time: + description: The end time of the delegation. + example: 2023-10-01T12:00:00.000+00:00 + format: date-time + type: string + 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 + ApiAccessLevelEnum: + description: The access level of an API token. + enum: + - READ_ONLY + - FULL_ACCESS + type: string + EventStreamConnectionTypeEnum: + description: The type of event stream connection. + enum: + - WEBHOOK + type: string + WebhookAuthTypeEnum: + description: The authentication type for webhook connections. + enum: + - NONE + - API_KEY + - HMAC + type: string + WebhookApiKeyLocationEnum: + description: Where the API key is placed in webhook requests. + enum: + - HEADER + - QUERY_PARAM + type: string + WebhookApiKeyCredential: + description: An API key credential for webhook authentication. + example: + name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + properties: + id: + description: The unique identifier for the credential. + format: uuid + type: string + name: + description: The name of the API key. + type: string + value: + description: The value of the API key. + type: string + location: + $ref: "#/components/schemas/WebhookApiKeyLocationEnum" + required: + - id + - location + - name + - value + WebhookHmacCredential: + description: An HMAC credential for webhook authentication. + properties: + id: + description: The unique identifier for the credential. + format: uuid + type: string + secret: + description: The HMAC secret value. + type: string + created_at: + description: When the credential was created. + format: date-time + type: string + required: + - created_at + - id + - secret + WebhookCredentials: + description: Authentication credentials for a webhook connection. + example: + hmac_credential_1: "" + auth_type: NONE + hmac_credential_2: "" + api_key_credentials: + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + properties: + auth_type: + $ref: "#/components/schemas/WebhookAuthTypeEnum" + api_key_credentials: + description: "API key credentials, present when auth_type is API_KEY." + items: + $ref: "#/components/schemas/WebhookApiKeyCredential" + type: array + hmac_credential_1: + allOf: + - $ref: "#/components/schemas/WebhookHmacCredential" + description: "Primary HMAC credential, present when auth_type is HMAC." + nullable: true + hmac_credential_2: + allOf: + - $ref: "#/components/schemas/WebhookHmacCredential" + description: "Secondary HMAC credential for rotation, present when auth_type\ + \ is HMAC." + nullable: true + required: + - auth_type + EventStreamConnection: + description: The connection configuration for an event stream. + example: + connection_type: WEBHOOK + webhook_url: webhook_url + credentials: + hmac_credential_1: "" + auth_type: NONE + hmac_credential_2: "" + api_key_credentials: + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + name: name + enabled: true + properties: + name: + description: The name of the connection. + type: string + connection_type: + $ref: "#/components/schemas/EventStreamConnectionTypeEnum" + enabled: + description: Whether the connection is enabled. + type: boolean + webhook_url: + description: "The webhook URL, present when connection_type is WEBHOOK." + type: string + credentials: + $ref: "#/components/schemas/WebhookCredentials" + required: + - connection_type + - enabled + - name + EventStream: + description: An event streaming connection that publishes events to an external + system. + example: + event_stream_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + connection: + connection_type: WEBHOOK + webhook_url: webhook_url + credentials: + hmac_credential_1: "" + auth_type: NONE + hmac_credential_2: "" + api_key_credentials: + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + name: name + enabled: true + properties: + event_stream_id: + description: The ID of the event stream. + format: uuid + type: string + connection: + $ref: "#/components/schemas/EventStreamConnection" + required: + - connection + - event_stream_id + EventStreamList: + description: A list of event streams. + example: + event_streams: + - event_stream_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + connection: + connection_type: WEBHOOK + webhook_url: webhook_url + credentials: + hmac_credential_1: "" + auth_type: NONE + hmac_credential_2: "" + api_key_credentials: + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + name: name + enabled: true + - event_stream_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + connection: + connection_type: WEBHOOK + webhook_url: webhook_url + credentials: + hmac_credential_1: "" + auth_type: NONE + hmac_credential_2: "" + api_key_credentials: + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + name: name + enabled: true + properties: + event_streams: + items: + $ref: "#/components/schemas/EventStream" + type: array + required: + - event_streams + CreateEventStreamInfo: + description: Information needed to create an event stream. + example: + connection_type: WEBHOOK + webhook_url: webhook_url + credentials: + hmac_credential_1: "" + auth_type: NONE + hmac_credential_2: "" + api_key_credentials: + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + name: name + properties: + name: + description: The name for the event stream. + type: string + connection_type: + $ref: "#/components/schemas/EventStreamConnectionTypeEnum" + webhook_url: + description: The webhook URL. Required when connection_type is WEBHOOK. + type: string + credentials: + $ref: "#/components/schemas/WebhookCredentials" + required: + - connection_type + - name + UpdateEventStreamInfo: + description: Information needed to update an event stream. + example: + webhook_url: webhook_url + credentials: + hmac_credential_1: "" + auth_type: NONE + hmac_credential_2: "" + api_key_credentials: + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + - name: name + location: HEADER + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + value: value + name: name + enabled: true + properties: + name: + description: Updated name for the event stream. + type: string + enabled: + description: Whether the event stream should be enabled. + type: boolean + webhook_url: + description: Updated webhook URL. + type: string + credentials: + $ref: "#/components/schemas/WebhookCredentials" + Token: + description: A first-party API token. + example: + token_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + created_at: 2022-01-23T04:56:07.000+00:00 + token_preview: ab123 + token_label: My API Token + creator_user_id: d4a7d928-783e-4599-8ec6-088d635a5bcc + user_id: d4a7d928-783e-4599-8ec6-088d635a5bcc + access_level: READ_ONLY + properties: + token_id: + description: The ID of the API token. + example: f454d283-ca87-4a8a-bdbb-df212eca5353 + format: uuid + type: string + created_at: + description: The date and time the token was created. + example: 2022-01-23T04:56:07.000+00:00 + format: date-time + type: string + token_label: + description: A human-readable label for the token. + example: My API Token + type: string + creator_user_id: + description: The ID of the user who created the token. + example: d4a7d928-783e-4599-8ec6-088d635a5bcc + format: uuid + type: string + user_id: + description: The ID of the user the token authenticates as. + example: d4a7d928-783e-4599-8ec6-088d635a5bcc + format: uuid + type: string + last_used_at: + description: The date and time the token was last used. + example: 2022-01-23T04:56:07.000+00:00 + format: date-time + type: string + nullable: true + access_level: + $ref: "#/components/schemas/ApiAccessLevelEnum" + expires_at: + description: The date and time the token expires. + example: 2023-01-23T04:56:07.000+00:00 + format: date-time + type: string + nullable: true + required: + - access_level + - created_at + - creator_user_id + - token_id + - token_label + - user_id + PaginatedTokensList: + example: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + results: + - token_id: f454d283-ca87-4a8a-bdbb-df212eca5353 + created_at: 2022-01-23T04:56:07.000+00:00 + token_label: My API Token + creator_user_id: d4a7d928-783e-4599-8ec6-088d635a5bcc + user_id: d4a7d928-783e-4599-8ec6-088d635a5bcc + access_level: READ_ONLY + properties: + next: + description: The cursor with which to continue pagination if additional + result pages exist. + example: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + type: string + nullable: true + previous: + description: The cursor used to obtain the current result page. + example: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + type: string + nullable: true + results: + items: + $ref: "#/components/schemas/Token" + type: array + required: + - results + 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." @@ -8418,6 +12162,17 @@ components: 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: @@ -8438,6 +12193,23 @@ components: 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, or a negative value to revoke access." + 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 @@ -8469,10 +12241,24 @@ components: properties: mappings: items: - $ref: '#/components/schemas/updateIdpGroupMappings_request_mappings_inner' + $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 @@ -8481,6 +12267,69 @@ components: 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:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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:00.000+00:00 + updated_at: 2021-01-06T20:00:00.000+00:00 + 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 + level: + $ref: "#/components/schemas/RequestApprovalEnum" + required: + - comment + createRequestComment_request: + properties: + comment: + description: comment + type: string + required: + - comment add_resource_nhi_request: example: duration_minutes: 60 @@ -8499,6 +12348,36 @@ components: 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:07.000+00:00 + 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:07.000+00:00 + 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 @@ -8534,93 +12413,421 @@ components: example: arn:aws:iam::590304332660:role/AdministratorAccess type: string required: - - duration_minutes - GroupRemoteInfo_active_directory_group: - description: Remote info for Active Directory group. + - 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_tailscale_group: + description: Remote info for Tailscale group. + properties: + group_id: + description: The id of the Tailscale group. + example: 898931321 + type: string + required: + - group_id + GroupRemoteInfo_twingate_group: + description: Remote info for Twingate group. + properties: + group_id: + description: The id of the Twingate group. + example: R3JvdXA6MTIzNA== + type: string + required: + - group_id + GroupRemoteInfo_twingate_group_synced: + description: Remote info for Twingate synced group. + properties: + group_id: + description: The id of the Twingate synced group. + example: R3JvdXA6MTIzNA== + type: string + required: + - group_id + GroupRemoteInfo_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 + required: + - group_id + GroupRemoteInfo_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 + required: + - group_id + GroupRemoteInfo_connector_group: + description: Remote info for Connector group. + properties: + group_id: + description: The id of the Connector group. + example: 898931321 + 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 + org_name: + description: "GitHub team's org name, required only for Enterprise" + type: string + required: + - team_slug + GroupRemoteInfo_github_enterprise_team: + description: Remote info for GitHub Enterprise team. + properties: + team_slug: + description: The slug of the GitHub Enterprise team. + example: opal-security + type: string + 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 + GroupRemoteInfo_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 + required: + - schedule_id + GroupRemoteInfo_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 + required: + - schedule_id + GroupRemoteInfo_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 + required: + - schedule_id + GroupRemoteInfo_devin_group: + description: Remote info for Devin group. + properties: + group_name: + description: The name of the Devin group. + example: devin-group-01 + type: string + required: + - group_name + GroupRemoteInfo_clickhouse_role: + description: Remote info for ClickHouse role. + properties: + role_id: + description: The name of the ClickHouse role. + example: my_clickhouse_role + type: string + required: + - role_id + GroupRemoteInfo_grafana_team: + description: Remote info for Grafana team. + properties: + team_id: + description: The ID of the team. + example: 2323 + type: string + required: + - team_id + GroupRemoteInfo_zendesk_group: + description: Remote info for Zendesk group. + properties: + group_id: + description: The ID of the Zendesk group. + example: "12345" + type: string + required: + - group_id + GroupRemoteInfo_slack_user_group: + description: Remote info for Slack user group. + properties: + group_id: + description: The id of the Slack user group. + example: S0614TZR7 + type: string + required: + - group_id + GroupRemoteInfo_zendesk_organization: + description: Remote info for Zendesk organization. + properties: + organization_id: + description: The ID of the Zendesk organization. + example: "67890" + type: string + required: + - organization_id + GroupRemoteInfo_hubspot_team: + description: Remote info for HubSpot team. + properties: + team_id: + description: The ID of the HubSpot team. + example: "12345" + type: string + required: + - team_id + ResourceRemoteInfo_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 + required: + - application_id + - resource_id + ResourceRemoteInfo_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 + required: + - resource_id + ResourceRemoteInfo_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 + required: + - resource_id + ResourceRemoteInfo_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 + required: + - resource_id + ResourceRemoteInfo_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 + required: + - resource_id + ResourceRemoteInfo_azure_storage_account: + description: Remote info for Azure storage account. properties: - group_id: - description: The id of the Google group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + resource_id: + description: The ARM resource ID of the storage account. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Storage/storageAccounts/sa01 type: string required: - - group_id - GroupRemoteInfo_github_team: - description: Remote info for GitHub team. + - resource_id + ResourceRemoteInfo_azure_storage_container: + description: Remote info for Azure storage container. properties: - team_id: - deprecated: true - description: The id of the GitHub team. - example: 898931321 + 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 - team_slug: - description: The slug of the GitHub team. - example: opal-security + required: + - resource_id + ResourceRemoteInfo_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 required: - - team_slug - GroupRemoteInfo_gitlab_group: - description: Remote info for Gitlab group. + - resource_id + ResourceRemoteInfo_azure_sql_database: + description: Remote info for Azure SQL database. properties: - group_id: - description: The id of the Gitlab group. - example: 898931321 + 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 required: - - group_id - GroupRemoteInfo_google_group: - description: Remote info for Google group. + - resource_id + ResourceRemoteInfo_azure_sql_managed_instance: + description: Remote info for Azure SQL managed instance. properties: - group_id: - description: The id of the Google group. - example: 1y6w882181n7sg + resource_id: + description: The ARM resource ID of the SQL managed instance. + example: /subscriptions/0000/resourceGroups/rg/providers/Microsoft.Sql/managedInstances/mi01 type: string required: - - group_id - GroupRemoteInfo_ldap_group: - description: Remote info for LDAP group. + - resource_id + ResourceRemoteInfo_azure_sql_managed_database: + description: Remote info for Azure SQL managed database. properties: - group_id: - description: The id of the LDAP group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + 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 required: - - group_id - GroupRemoteInfo_okta_group: - description: Remote info for Okta Directory group. + - resource_id + ResourceRemoteInfo_azure_user_assigned_managed_identity: + description: Remote info for Azure user assigned managed identity. properties: - group_id: - description: The id of the Okta Directory group. - example: 00gjs33pe8rtmRrp3rd6 + 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 required: - - group_id - GroupRemoteInfo_duo_group: - description: Remote info for Duo Security group. + - resource_id + ResourceRemoteInfo_azure_enterprise_app: + description: Remote info for Azure Enterprise App. properties: - group_id: - description: The id of the Duo Security group. - example: DSRD8W89B9DNDBY4RHAC + resource_id: + description: The remote application identifier (service principal or application + object ID). + example: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee type: string required: - - group_id - GroupRemoteInfo_azure_ad_security_group: - description: Remote info for Microsoft Entra ID Security group. + - resource_id + ResourceRemoteInfo_azure_entra_id_role: + description: Remote info for Azure Entra ID role. properties: - group_id: - description: The id of the Microsoft Entra ID Security group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + resource_id: + description: The remote role identifier from Entra (object ID). + example: 11111111-2222-3333-4444-555555555555 type: string required: - - group_id - GroupRemoteInfo_azure_ad_microsoft_365_group: - description: Remote info for Microsoft Entra ID Microsoft 365 group. + - resource_id + ResourceRemoteInfo_aws_organizational_unit: + description: Remote info for AWS organizational unit. properties: - group_id: - description: The id of the Microsoft Entra ID Microsoft 365 group. - example: 01fa7402-01d8-103b-8deb-5f3a0ab7884 + 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: - - group_id + - organizational_unit_id ResourceRemoteInfo_aws_account: description: Remote info for AWS account. properties: @@ -8628,6 +12835,11 @@ components: 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: @@ -8675,6 +12887,40 @@ components: required: - instance_id - region + ResourceRemoteInfo_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" + required: + - account_id + - cluster_id + - database_name + - engine + - region + - resource_id ResourceRemoteInfo_aws_rds_instance: description: Remote info for AWS RDS instance. properties: @@ -8711,6 +12957,21 @@ components: 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: @@ -8831,7 +13092,7 @@ components: type: string service_account_id: description: The id of the service account. - example: 103561576023829463298 + example: 103561576023829460000 type: string project_id: description: The id of the project the service account is in. @@ -8841,6 +13102,15 @@ components: - 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: @@ -8853,8 +13123,41 @@ components: description: The name of the repository. example: Opal Security type: string + org_name: + description: "GitHub repo's org name, required only for Enterprise." + 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 + org_name: + description: "GitHub org role's org name, required only for Enterprise." + type: string + required: + - role_id + ResourceRemoteInfo_github_org: + description: Remote info for GitHub organization. + properties: + org_name: + description: The name of the organization. + example: Opal Security + type: string + required: + - org_name + ResourceRemoteInfo_github_enterprise_role: + description: Remote info for GitHub Enterprise 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: @@ -8891,6 +13194,75 @@ components: type: string required: - role_id + ResourceRemoteInfo_snowflake_database: + description: Remote info for Snowflake database. + properties: + database_name: + description: The name of the database. + example: mydatabase + type: string + required: + - database_name + ResourceRemoteInfo_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 + required: + - database_name + - schema_name + ResourceRemoteInfo_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 + required: + - database_name + - schema_name + - table_name + ResourceRemoteInfo_ilevel_advanced_role: + description: Remote info for iLevel Advanced role. + properties: + role_name: + description: The name of the role. + example: IT User + type: string + required: + - role_name + ResourceRemoteInfo_tailscale_ssh: + description: Remote info for Tailscale SSH tag. + properties: + tag_name: + description: The name of the tag. + example: admin + type: string + required: + - tag_name + ResourceRemoteInfo_twingate_resource: + description: Remote info for Twingate resource. + properties: + resource_id: + description: The id of the Twingate resource. + example: UmVzb3VyY2U6MTIzNA== + type: string + required: + - resource_id ResourceRemoteInfo_pagerduty_role: description: Remote info for Pagerduty role. properties: @@ -8900,6 +13272,15 @@ components: type: string required: - role_name + ResourceRemoteInfo_workday_role: + description: Remote info for Workday role. + properties: + role_id: + description: The id of the role. + example: 123abc456def + type: string + required: + - role_id ResourceRemoteInfo_salesforce_permission_set: description: Remote info for Salesforce permission set. properties: @@ -8941,6 +13322,186 @@ components: 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 + ResourceRemoteInfo_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 + required: + - org_id + ResourceRemoteInfo_openai_platform_project: + description: Remote info for OpenAI Platform project. + properties: + project_id: + description: The id of the project. + example: proj_abc + type: string + required: + - project_id + ResourceRemoteInfo_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 + required: + - project_id + - service_account_id + ResourceRemoteInfo_anthropic_workspace: + description: Remote info for Anthropic workspace. + properties: + workspace_id: + description: The id of the workspace. + example: ws-123456 + type: string + required: + - workspace_id + ResourceRemoteInfo_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 + required: + - role_id + ResourceRemoteInfo_devin_organization: + description: Remote info for Devin organization. + properties: + org_id: + description: The id of the organization. + example: devin-org-01 + type: string + required: + - org_id + ResourceRemoteInfo_devin_role: + description: Remote info for Devin role. + properties: + role_id: + description: The id of the role. + example: devin-role-01 + type: string + required: + - role_id + ResourceRemoteInfo_netsuite_role: + description: Remote info for NetSuite role. + properties: + role_id: + description: The id of the role. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + required: + - role_id + ResourceRemoteInfo_datadog_role: + description: Remote info for Datadog role. + properties: + role_id: + description: The id of the role. + example: 123e4567-e89b-12d3-a456-426614174000 + type: string + required: + - role_id + ResourceRemoteInfo_clickhouse_database: + description: Remote info for ClickHouse database. + properties: + database_name: + description: The name of the ClickHouse database. + example: my_database + type: string + required: + - database_name + ResourceRemoteInfo_clickhouse_table: + description: Remote info for ClickHouse table. + properties: + database_name: + description: The name of the ClickHouse database containing the table. + example: my_database + type: string + table_name: + description: The name of the ClickHouse table. + example: my_table + type: string + required: + - database_name + - table_name + ResourceRemoteInfo_grafana_folder: + description: Remote info for Grafana folder. + properties: + folder_uid: + description: The UID of the Grafana folder. + example: fffRTXX + type: string + required: + - folder_uid + ResourceRemoteInfo_grafana_dashboard: + description: Remote info for Grafana dashboard. + properties: + dashboard_uid: + description: The UID of the Grafana dashboard. + example: dddRTXX + type: string + required: + - dashboard_uid + ResourceRemoteInfo_grafana_role: + description: Remote info for Grafana role(fixed or custom). + properties: + role_uid: + description: The UID of the Grafana role. + example: rrfRTXX + type: string + required: + - role_uid + ResourceRemoteInfo_zendesk_role: + description: Remote info for Zendesk custom role. + properties: + role_id: + description: The ID of the Zendesk custom role. + example: "12345" + type: string + required: + - role_id + ResourceRemoteInfo_hubspot_role: + description: Remote info for HubSpot role. + properties: + role_id: + description: The ID of the HubSpot role. + example: "12345" + type: string + required: + - role_id + Request_reviewer_stages: + description: "The configured reviewer stages for every item in this request,\ + \ or an error message if reviewers could not be loaded" + oneOf: + - items: + $ref: "#/components/schemas/RequestReviewerStages" + type: array + - type: string RequestCustomFieldResponse_field_value: oneOf: - example: This is a response to a long text or short text or multi choice @@ -8986,7 +13547,10 @@ components: example: arn:aws:iam::490306337630:role/SupportUser type: string access_level_name: + deprecated: true 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 CreateRequestInfo_groups_inner: @@ -9019,7 +13583,7 @@ components: url: url properties: ticketing_provider: - $ref: '#/components/schemas/TicketingProviderEnum' + $ref: "#/components/schemas/TicketingProviderEnum" remote_id: type: string identifier: @@ -9040,7 +13604,7 @@ components: name: type: string type: - $ref: '#/components/schemas/RequestTemplateCustomFieldTypeEnum' + $ref: "#/components/schemas/RequestTemplateCustomFieldTypeEnum" value: type: string required: diff --git a/api_access_rules.go b/api_access_rules.go index 9c6c48f..8903389 100644 --- a/api_access_rules.go +++ b/api_access_rules.go @@ -24,13 +24,123 @@ import ( // AccessRulesAPIService AccessRulesAPI service type AccessRulesAPIService service +type ApiCreateAccessRuleRequest struct { + ctx context.Context + ApiService *AccessRulesAPIService + updateAccessRuleInfo *UpdateAccessRuleInfo +} + +func (r ApiCreateAccessRuleRequest) UpdateAccessRuleInfo(updateAccessRuleInfo UpdateAccessRuleInfo) ApiCreateAccessRuleRequest { + r.updateAccessRuleInfo = &updateAccessRuleInfo + return r +} + +func (r ApiCreateAccessRuleRequest) Execute() (*AccessRule, *http.Response, error) { + return r.ApiService.CreateAccessRuleExecute(r) +} + +/* +CreateAccessRule Method for CreateAccessRule + +Creates a new access rule config for the given group_id. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAccessRuleRequest +*/ +func (a *AccessRulesAPIService) CreateAccessRule(ctx context.Context) ApiCreateAccessRuleRequest { + return ApiCreateAccessRuleRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return AccessRule +func (a *AccessRulesAPIService) CreateAccessRuleExecute(r ApiCreateAccessRuleRequest) (*AccessRule, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AccessRule + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRulesAPIService.CreateAccessRule") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/access-rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateAccessRuleInfo == nil { + return localVarReturnValue, nil, reportError("updateAccessRuleInfo is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.updateAccessRuleInfo + 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 ApiGetAccessRuleRequest struct { ctx context.Context ApiService *AccessRulesAPIService accessRuleId string } -func (r ApiGetAccessRuleRequest) Execute() (*AccessRuleCondition, *http.Response, error) { +func (r ApiGetAccessRuleRequest) Execute() (*AccessRule, *http.Response, error) { return r.ApiService.GetAccessRuleExecute(r) } @@ -52,13 +162,13 @@ func (a *AccessRulesAPIService) GetAccessRule(ctx context.Context, accessRuleId } // Execute executes the request -// @return AccessRuleCondition -func (a *AccessRulesAPIService) GetAccessRuleExecute(r ApiGetAccessRuleRequest) (*AccessRuleCondition, *http.Response, error) { +// @return AccessRule +func (a *AccessRulesAPIService) GetAccessRuleExecute(r ApiGetAccessRuleRequest) (*AccessRule, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AccessRuleCondition + localVarReturnValue *AccessRule ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRulesAPIService.GetAccessRule") @@ -127,19 +237,138 @@ func (a *AccessRulesAPIService) GetAccessRuleExecute(r ApiGetAccessRuleRequest) return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetAccessRulesRequest struct { + ctx context.Context + ApiService *AccessRulesAPIService + cursor *string + pageSize *int32 +} + +// The pagination cursor value. +func (r ApiGetAccessRulesRequest) Cursor(cursor string) ApiGetAccessRulesRequest { + r.cursor = &cursor + return r +} + +// Number of results to return per page. Default is 200. +func (r ApiGetAccessRulesRequest) PageSize(pageSize int32) ApiGetAccessRulesRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiGetAccessRulesRequest) Execute() (*PaginatedAccessRulesList, *http.Response, error) { + return r.ApiService.GetAccessRulesExecute(r) +} + +/* +GetAccessRules Method for GetAccessRules + +Returns a list of access rules for your organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAccessRulesRequest +*/ +func (a *AccessRulesAPIService) GetAccessRules(ctx context.Context) ApiGetAccessRulesRequest { + return ApiGetAccessRulesRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedAccessRulesList +func (a *AccessRulesAPIService) GetAccessRulesExecute(r ApiGetAccessRulesRequest) (*PaginatedAccessRulesList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedAccessRulesList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRulesAPIService.GetAccessRules") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/access-rules" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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 ApiUpdateAccessRuleRequest struct { ctx context.Context ApiService *AccessRulesAPIService accessRuleId string - accessRuleCondition *AccessRuleCondition + updateAccessRuleInfo *UpdateAccessRuleInfo } -func (r ApiUpdateAccessRuleRequest) AccessRuleCondition(accessRuleCondition AccessRuleCondition) ApiUpdateAccessRuleRequest { - r.accessRuleCondition = &accessRuleCondition +func (r ApiUpdateAccessRuleRequest) UpdateAccessRuleInfo(updateAccessRuleInfo UpdateAccessRuleInfo) ApiUpdateAccessRuleRequest { + r.updateAccessRuleInfo = &updateAccessRuleInfo return r } -func (r ApiUpdateAccessRuleRequest) Execute() (*AccessRuleCondition, *http.Response, error) { +func (r ApiUpdateAccessRuleRequest) Execute() (*AccessRule, *http.Response, error) { return r.ApiService.UpdateAccessRuleExecute(r) } @@ -161,13 +390,13 @@ func (a *AccessRulesAPIService) UpdateAccessRule(ctx context.Context, accessRule } // Execute executes the request -// @return AccessRuleCondition -func (a *AccessRulesAPIService) UpdateAccessRuleExecute(r ApiUpdateAccessRuleRequest) (*AccessRuleCondition, *http.Response, error) { +// @return AccessRule +func (a *AccessRulesAPIService) UpdateAccessRuleExecute(r ApiUpdateAccessRuleRequest) (*AccessRule, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *AccessRuleCondition + localVarReturnValue *AccessRule ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRulesAPIService.UpdateAccessRule") @@ -181,8 +410,8 @@ func (a *AccessRulesAPIService) UpdateAccessRuleExecute(r ApiUpdateAccessRuleReq localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.accessRuleCondition == nil { - return localVarReturnValue, nil, reportError("accessRuleCondition is required and must be specified") + if r.updateAccessRuleInfo == nil { + return localVarReturnValue, nil, reportError("updateAccessRuleInfo is required and must be specified") } // to determine the Content-Type header @@ -203,7 +432,7 @@ func (a *AccessRulesAPIService) UpdateAccessRuleExecute(r ApiUpdateAccessRuleReq localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.accessRuleCondition + localVarPostBody = r.updateAccessRuleInfo req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err 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_bundles.go b/api_bundles.go index e454a55..ff8eb03 100644 --- a/api_bundles.go +++ b/api_bundles.go @@ -462,7 +462,7 @@ func (r ApiGetBundleRequest) Execute() (*Bundle, *http.Response, error) { } /* -GetBundle Method for GetBundle +GetBundle Get bundle by ID Returns a `Bundle` object. @@ -934,7 +934,7 @@ func (r ApiGetBundlesRequest) Execute() (*PaginatedBundleList, *http.Response, e } /* -GetBundles Method for GetBundles +GetBundles Get bundles Returns a list of `Bundle` objects. @@ -1037,6 +1037,13 @@ type ApiRemoveBundleGroupRequest struct { ApiService *BundlesAPIService bundleId string groupId string + accessLevelRemoteId *string +} + +// The remote ID of the access level to remove. +func (r ApiRemoveBundleGroupRequest) AccessLevelRemoteId(accessLevelRemoteId string) ApiRemoveBundleGroupRequest { + r.accessLevelRemoteId = &accessLevelRemoteId + return r } func (r ApiRemoveBundleGroupRequest) Execute() (*http.Response, error) { @@ -1083,6 +1090,9 @@ func (a *BundlesAPIService) RemoveBundleGroupExecute(r ApiRemoveBundleGroupReque 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_delegations.go b/api_delegations.go new file mode 100644 index 0000000..2f77156 --- /dev/null +++ b/api_delegations.go @@ -0,0 +1,469 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// DelegationsAPIService DelegationsAPI service +type DelegationsAPIService service + +type ApiCreateDelegationRequest struct { + ctx context.Context + ApiService *DelegationsAPIService + createDelegationRequest *CreateDelegationRequest +} + +func (r ApiCreateDelegationRequest) CreateDelegationRequest(createDelegationRequest CreateDelegationRequest) ApiCreateDelegationRequest { + r.createDelegationRequest = &createDelegationRequest + return r +} + +func (r ApiCreateDelegationRequest) Execute() (*Delegation, *http.Response, error) { + return r.ApiService.CreateDelegationExecute(r) +} + +/* +CreateDelegation Method for CreateDelegation + +Creates a new request reviewer delegation to delegate access review requests from one user to another. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateDelegationRequest +*/ +func (a *DelegationsAPIService) CreateDelegation(ctx context.Context) ApiCreateDelegationRequest { + return ApiCreateDelegationRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Delegation +func (a *DelegationsAPIService) CreateDelegationExecute(r ApiCreateDelegationRequest) (*Delegation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Delegation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DelegationsAPIService.CreateDelegation") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/delegations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createDelegationRequest == nil { + return localVarReturnValue, nil, reportError("createDelegationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.createDelegationRequest + 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 ApiDeleteDelegationRequest struct { + ctx context.Context + ApiService *DelegationsAPIService + delegationId string +} + +func (r ApiDeleteDelegationRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteDelegationExecute(r) +} + +/* +DeleteDelegation Method for DeleteDelegation + +Deletes a delegation by its ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param delegationId The ID of the delegation to remove. + @return ApiDeleteDelegationRequest +*/ +func (a *DelegationsAPIService) DeleteDelegation(ctx context.Context, delegationId string) ApiDeleteDelegationRequest { + return ApiDeleteDelegationRequest{ + ApiService: a, + ctx: ctx, + delegationId: delegationId, + } +} + +// Execute executes the request +func (a *DelegationsAPIService) DeleteDelegationExecute(r ApiDeleteDelegationRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DelegationsAPIService.DeleteDelegation") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/delegations/{delegation_id}" + localVarPath = strings.Replace(localVarPath, "{"+"delegation_id"+"}", url.PathEscape(parameterValueToString(r.delegationId, "delegationId")), -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{} + + // 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 nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetDelegationRequest struct { + ctx context.Context + ApiService *DelegationsAPIService + delegationId string +} + +func (r ApiGetDelegationRequest) Execute() (*Delegation, *http.Response, error) { + return r.ApiService.GetDelegationExecute(r) +} + +/* +GetDelegation Get delegation by ID + +Returns a specific delegation by its ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param delegationId The ID of the delegation to retrieve. + @return ApiGetDelegationRequest +*/ +func (a *DelegationsAPIService) GetDelegation(ctx context.Context, delegationId string) ApiGetDelegationRequest { + return ApiGetDelegationRequest{ + ApiService: a, + ctx: ctx, + delegationId: delegationId, + } +} + +// Execute executes the request +// @return Delegation +func (a *DelegationsAPIService) GetDelegationExecute(r ApiGetDelegationRequest) (*Delegation, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Delegation + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DelegationsAPIService.GetDelegation") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/delegations/{delegation_id}" + localVarPath = strings.Replace(localVarPath, "{"+"delegation_id"+"}", url.PathEscape(parameterValueToString(r.delegationId, "delegationId")), -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 ApiGetDelegationsRequest struct { + ctx context.Context + ApiService *DelegationsAPIService + delegatorUserId *string + delegateUserId *string + cursor *string + pageSize *int32 +} + +// The delegator user ID to filter delegations by the user delegating their access review requests. +func (r ApiGetDelegationsRequest) DelegatorUserId(delegatorUserId string) ApiGetDelegationsRequest { + r.delegatorUserId = &delegatorUserId + return r +} + +// The delegate user ID to filter delegations by the user being delegated to. +func (r ApiGetDelegationsRequest) DelegateUserId(delegateUserId string) ApiGetDelegationsRequest { + r.delegateUserId = &delegateUserId + return r +} + +// A cursor to indicate where to start fetching results. +func (r ApiGetDelegationsRequest) Cursor(cursor string) ApiGetDelegationsRequest { + r.cursor = &cursor + return r +} + +// The maximum number of results to return per page. The default is 200. +func (r ApiGetDelegationsRequest) PageSize(pageSize int32) ApiGetDelegationsRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiGetDelegationsRequest) Execute() (*PaginatedDelegationsList, *http.Response, error) { + return r.ApiService.GetDelegationsExecute(r) +} + +/* +GetDelegations Get delegations + +Returns a list of request reviewer delegations configured for your organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetDelegationsRequest +*/ +func (a *DelegationsAPIService) GetDelegations(ctx context.Context) ApiGetDelegationsRequest { + return ApiGetDelegationsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedDelegationsList +func (a *DelegationsAPIService) GetDelegationsExecute(r ApiGetDelegationsRequest) (*PaginatedDelegationsList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDelegationsList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DelegationsAPIService.GetDelegations") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/delegations" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.delegatorUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "delegator_user_id", r.delegatorUserId, "form", "") + } + if r.delegateUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "delegate_user_id", r.delegateUserId, "form", "") + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_event_streams.go b/api_event_streams.go new file mode 100644 index 0000000..73dd574 --- /dev/null +++ b/api_event_streams.go @@ -0,0 +1,440 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// EventStreamsAPIService EventStreamsAPI service +type EventStreamsAPIService service + +type ApiCreateEventStreamRequest struct { + ctx context.Context + ApiService *EventStreamsAPIService + createEventStreamInfo *CreateEventStreamInfo +} + +func (r ApiCreateEventStreamRequest) CreateEventStreamInfo(createEventStreamInfo CreateEventStreamInfo) ApiCreateEventStreamRequest { + r.createEventStreamInfo = &createEventStreamInfo + return r +} + +func (r ApiCreateEventStreamRequest) Execute() (*EventStream, *http.Response, error) { + return r.ApiService.CreateEventStreamExecute(r) +} + +/* +CreateEventStream Create event stream + +Creates a new event streaming connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateEventStreamRequest +*/ +func (a *EventStreamsAPIService) CreateEventStream(ctx context.Context) ApiCreateEventStreamRequest { + return ApiCreateEventStreamRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return EventStream +func (a *EventStreamsAPIService) CreateEventStreamExecute(r ApiCreateEventStreamRequest) (*EventStream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventStream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventStreamsAPIService.CreateEventStream") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/event-streams" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createEventStreamInfo == nil { + return localVarReturnValue, nil, reportError("createEventStreamInfo is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.createEventStreamInfo + 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 ApiDeleteEventStreamRequest struct { + ctx context.Context + ApiService *EventStreamsAPIService + eventStreamId string +} + +func (r ApiDeleteEventStreamRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteEventStreamExecute(r) +} + +/* +DeleteEventStream Delete event stream + +Deletes an event streaming connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventStreamId The ID of the event stream. + @return ApiDeleteEventStreamRequest +*/ +func (a *EventStreamsAPIService) DeleteEventStream(ctx context.Context, eventStreamId string) ApiDeleteEventStreamRequest { + return ApiDeleteEventStreamRequest{ + ApiService: a, + ctx: ctx, + eventStreamId: eventStreamId, + } +} + +// Execute executes the request +func (a *EventStreamsAPIService) DeleteEventStreamExecute(r ApiDeleteEventStreamRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventStreamsAPIService.DeleteEventStream") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/event-streams/{event_stream_id}" + localVarPath = strings.Replace(localVarPath, "{"+"event_stream_id"+"}", url.PathEscape(parameterValueToString(r.eventStreamId, "eventStreamId")), -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{} + + // 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 nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetEventStreamsRequest struct { + ctx context.Context + ApiService *EventStreamsAPIService +} + +func (r ApiGetEventStreamsRequest) Execute() (*EventStreamList, *http.Response, error) { + return r.ApiService.GetEventStreamsExecute(r) +} + +/* +GetEventStreams Get event streams + +Returns a list of configured event streaming connections for your organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetEventStreamsRequest +*/ +func (a *EventStreamsAPIService) GetEventStreams(ctx context.Context) ApiGetEventStreamsRequest { + return ApiGetEventStreamsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return EventStreamList +func (a *EventStreamsAPIService) GetEventStreamsExecute(r ApiGetEventStreamsRequest) (*EventStreamList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventStreamList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventStreamsAPIService.GetEventStreams") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/event-streams" + + 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 ApiUpdateEventStreamRequest struct { + ctx context.Context + ApiService *EventStreamsAPIService + eventStreamId string + updateEventStreamInfo *UpdateEventStreamInfo +} + +func (r ApiUpdateEventStreamRequest) UpdateEventStreamInfo(updateEventStreamInfo UpdateEventStreamInfo) ApiUpdateEventStreamRequest { + r.updateEventStreamInfo = &updateEventStreamInfo + return r +} + +func (r ApiUpdateEventStreamRequest) Execute() (*EventStream, *http.Response, error) { + return r.ApiService.UpdateEventStreamExecute(r) +} + +/* +UpdateEventStream Update event stream + +Updates an existing event streaming connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventStreamId The ID of the event stream. + @return ApiUpdateEventStreamRequest +*/ +func (a *EventStreamsAPIService) UpdateEventStream(ctx context.Context, eventStreamId string) ApiUpdateEventStreamRequest { + return ApiUpdateEventStreamRequest{ + ApiService: a, + ctx: ctx, + eventStreamId: eventStreamId, + } +} + +// Execute executes the request +// @return EventStream +func (a *EventStreamsAPIService) UpdateEventStreamExecute(r ApiUpdateEventStreamRequest) (*EventStream, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventStream + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventStreamsAPIService.UpdateEventStream") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/event-streams/{event_stream_id}" + localVarPath = strings.Replace(localVarPath, "{"+"event_stream_id"+"}", url.PathEscape(parameterValueToString(r.eventStreamId, "eventStreamId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateEventStreamInfo == nil { + return localVarReturnValue, nil, reportError("updateEventStreamInfo is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.updateEventStreamInfo + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_events.go b/api_events.go index 05650c1..3c816e7 100644 --- a/api_events.go +++ b/api_events.go @@ -17,6 +17,7 @@ import ( "io" "net/http" "net/url" + "strings" ) @@ -201,3 +202,106 @@ func (a *EventsAPIService) EventsExecute(r ApiEventsRequest) (*PaginatedEventLis return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiGetEventRequest struct { + ctx context.Context + ApiService *EventsAPIService + eventId string +} + +func (r ApiGetEventRequest) Execute() (*Event, *http.Response, error) { + return r.ApiService.GetEventExecute(r) +} + +/* +GetEvent Get event by ID + +Returns an `Event` object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventId The ID of the event. + @return ApiGetEventRequest +*/ +func (a *EventsAPIService) GetEvent(ctx context.Context, eventId string) ApiGetEventRequest { + return ApiGetEventRequest{ + ApiService: a, + ctx: ctx, + eventId: eventId, + } +} + +// Execute executes the request +// @return Event +func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*Event, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Event + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsAPIService.GetEvent") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/events/{event_id}" + localVarPath = strings.Replace(localVarPath, "{"+"event_id"+"}", url.PathEscape(parameterValueToString(r.eventId, "eventId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_group_bindings.go b/api_group_bindings.go index be22fec..39befb2 100644 --- a/api_group_bindings.go +++ b/api_group_bindings.go @@ -237,7 +237,7 @@ func (r ApiGetGroupBindingRequest) Execute() (*GroupBinding, *http.Response, err } /* -GetGroupBinding Method for GetGroupBinding +GetGroupBinding Get group binding by ID Returns a `GroupBinding` object. @@ -353,7 +353,7 @@ func (r ApiGetGroupBindingsRequest) Execute() (*PaginatedGroupBindingsList, *htt } /* -GetGroupBindings Method for GetGroupBindings +GetGroupBindings Get group bindings Returns a list of `GroupBinding` objects. diff --git a/api_groups.go b/api_groups.go index c504e38..0b628ca 100644 --- a/api_groups.go +++ b/api_groups.go @@ -18,6 +18,7 @@ import ( "net/http" "net/url" "strings" + "reflect" ) @@ -608,6 +609,13 @@ type ApiDeleteGroupUserRequest struct { ApiService *GroupsAPIService groupId string userId string + accessLevelRemoteId *string +} + +// 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. +func (r ApiDeleteGroupUserRequest) AccessLevelRemoteId(accessLevelRemoteId string) ApiDeleteGroupUserRequest { + r.accessLevelRemoteId = &accessLevelRemoteId + return r } func (r ApiDeleteGroupUserRequest) Execute() (*http.Response, error) { @@ -654,6 +662,9 @@ func (a *GroupsAPIService) DeleteGroupUserExecute(r ApiDeleteGroupUserRequest) ( 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{} @@ -710,7 +721,7 @@ func (r ApiGetGroupRequest) Execute() (*Group, *http.Response, error) { } /* -GetGroup Method for GetGroup +GetGroup Get group by ID Returns a `Group` object. @@ -814,7 +825,7 @@ func (r ApiGetGroupContainingGroupRequest) Execute() (*GroupContainingGroup, *ht } /* -GetGroupContainingGroup Method for GetGroupContainingGroup +GetGroupContainingGroup Get nested group by ID Gets a specific containing group for a group. @@ -913,6 +924,13 @@ type ApiGetGroupContainingGroupsRequest struct { ctx context.Context ApiService *GroupsAPIService groupId string + accessLevelRemoteId *string +} + +// The access level's remote ID to filter by. +func (r ApiGetGroupContainingGroupsRequest) AccessLevelRemoteId(accessLevelRemoteId string) ApiGetGroupContainingGroupsRequest { + r.accessLevelRemoteId = &accessLevelRemoteId + return r } func (r ApiGetGroupContainingGroupsRequest) Execute() (*GroupContainingGroupList, *http.Response, error) { @@ -920,7 +938,7 @@ func (r ApiGetGroupContainingGroupsRequest) Execute() (*GroupContainingGroupList } /* -GetGroupContainingGroups Method for GetGroupContainingGroups +GetGroupContainingGroups Get nested groups Gets the list of groups that the group gives access to. @@ -958,6 +976,9 @@ func (a *GroupsAPIService) GetGroupContainingGroupsExecute(r ApiGetGroupContaini localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.accessLevelRemoteId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "access_level_remote_id", r.accessLevelRemoteId, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1640,6 +1661,20 @@ type ApiGetGroupUsersRequest struct { ctx context.Context ApiService *GroupsAPIService groupId string + cursor *string + pageSize *int32 +} + +// The pagination cursor value. +func (r ApiGetGroupUsersRequest) Cursor(cursor string) ApiGetGroupUsersRequest { + r.cursor = &cursor + return r +} + +// Number of results to return per page. Default is 200. +func (r ApiGetGroupUsersRequest) PageSize(pageSize int32) ApiGetGroupUsersRequest { + r.pageSize = &pageSize + return r } func (r ApiGetGroupUsersRequest) Execute() (*GroupUserList, *http.Response, error) { @@ -1685,6 +1720,12 @@ func (a *GroupsAPIService) GetGroupUsersExecute(r ApiGetGroupUsersRequest) (*Gro localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1850,6 +1891,7 @@ type ApiGetGroupsRequest struct { groupTypeFilter *GroupTypeEnum groupIds *[]string groupName *string + tagIds *[]string } // The pagination cursor value. @@ -1882,12 +1924,18 @@ func (r ApiGetGroupsRequest) GroupName(groupName string) ApiGetGroupsRequest { return r } +// The IDs of the tags to filter by. Returns only groups that have any of these tags applied. +func (r ApiGetGroupsRequest) TagIds(tagIds []string) ApiGetGroupsRequest { + r.tagIds = &tagIds + return r +} + func (r ApiGetGroupsRequest) Execute() (*PaginatedGroupsList, *http.Response, error) { return r.ApiService.GetGroupsExecute(r) } /* -GetGroups Method for GetGroups +GetGroups Get groups Returns a list of groups for your organization. @@ -1937,6 +1985,140 @@ func (a *GroupsAPIService) GetGroupsExecute(r ApiGetGroupsRequest) (*PaginatedGr if r.groupName != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", r.groupName, "form", "") } + if r.tagIds != nil { + t := *r.tagIds + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_ids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_ids", t, "form", "multi") + } + } + // 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 ApiGetUserGroupsRequest struct { + ctx context.Context + ApiService *GroupsAPIService + userId string + cursor *string + pageSize *int32 +} + +// The pagination cursor value. +func (r ApiGetUserGroupsRequest) Cursor(cursor string) ApiGetUserGroupsRequest { + r.cursor = &cursor + return r +} + +// Number of results to return per page. Default is 200. +func (r ApiGetUserGroupsRequest) PageSize(pageSize int32) ApiGetUserGroupsRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiGetUserGroupsRequest) Execute() (*GroupUserList, *http.Response, error) { + return r.ApiService.GetUserGroupsExecute(r) +} + +/* +GetUserGroups Method for GetUserGroups + +Returns all groups that the user is a member of. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userId The ID of the user whose groups to return. + @return ApiGetUserGroupsRequest +*/ +func (a *GroupsAPIService) GetUserGroups(ctx context.Context, userId string) ApiGetUserGroupsRequest { + return ApiGetUserGroupsRequest{ + ApiService: a, + ctx: ctx, + userId: userId, + } +} + +// Execute executes the request +// @return GroupUserList +func (a *GroupsAPIService) GetUserGroupsExecute(r ApiGetUserGroupsRequest) (*GroupUserList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupUserList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.GetUserGroups") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/users/{user_id}" + localVarPath = strings.Replace(localVarPath, "{"+"user_id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1996,6 +2178,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) { @@ -2008,7 +2197,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 */ @@ -2042,6 +2231,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{} @@ -2766,6 +2958,124 @@ func (a *GroupsAPIService) SetGroupVisibilityExecute(r ApiSetGroupVisibilityRequ return localVarReturnValue, localVarHTTPResponse, nil } +type ApiUpdateGroupUserRequest struct { + ctx context.Context + ApiService *GroupsAPIService + groupId string + userId string + updateGroupUserRequest *UpdateGroupUserRequest +} + +func (r ApiUpdateGroupUserRequest) UpdateGroupUserRequest(updateGroupUserRequest UpdateGroupUserRequest) ApiUpdateGroupUserRequest { + r.updateGroupUserRequest = &updateGroupUserRequest + return r +} + +func (r ApiUpdateGroupUserRequest) Execute() (*GroupUser, *http.Response, error) { + return r.ApiService.UpdateGroupUserExecute(r) +} + +/* +UpdateGroupUser Method for UpdateGroupUser + +Updates a user's access level or duration in this 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 userId The ID of the user whose access is being updated. + @return ApiUpdateGroupUserRequest +*/ +func (a *GroupsAPIService) UpdateGroupUser(ctx context.Context, groupId string, userId string) ApiUpdateGroupUserRequest { + return ApiUpdateGroupUserRequest{ + ApiService: a, + ctx: ctx, + groupId: groupId, + userId: userId, + } +} + +// Execute executes the request +// @return GroupUser +func (a *GroupsAPIService) UpdateGroupUserExecute(r ApiUpdateGroupUserRequest) (*GroupUser, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GroupUser + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GroupsAPIService.UpdateGroupUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/groups/{group_id}/users/{user_id}" + localVarPath = strings.Replace(localVarPath, "{"+"group_id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user_id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateGroupUserRequest == nil { + return localVarReturnValue, nil, reportError("updateGroupUserRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.updateGroupUserRequest + 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 ApiUpdateGroupsRequest struct { ctx context.Context ApiService *GroupsAPIService diff --git a/api_idp_group_mappings.go b/api_idp_group_mappings.go index 3bd44dc..b8c57b3 100644 --- a/api_idp_group_mappings.go +++ b/api_idp_group_mappings.go @@ -24,6 +24,126 @@ import ( // IdpGroupMappingsAPIService IdpGroupMappingsAPI service type IdpGroupMappingsAPIService service +type ApiCreateIdpGroupMappingRequest struct { + ctx context.Context + ApiService *IdpGroupMappingsAPIService + appResourceId string + groupId string + createIdpGroupMappingRequest *CreateIdpGroupMappingRequest +} + +func (r ApiCreateIdpGroupMappingRequest) CreateIdpGroupMappingRequest(createIdpGroupMappingRequest CreateIdpGroupMappingRequest) ApiCreateIdpGroupMappingRequest { + r.createIdpGroupMappingRequest = &createIdpGroupMappingRequest + return r +} + +func (r ApiCreateIdpGroupMappingRequest) Execute() (*IdpGroupMapping, *http.Response, error) { + return r.ApiService.CreateIdpGroupMappingExecute(r) +} + +/* +CreateIdpGroupMapping Method for CreateIdpGroupMapping + +Creates or updates an individual `IdpGroupMapping` object (upsert operation). + +**Behavior:** +- If the mapping doesn't exist, it will be created with the provided values +- If the mapping exists, only the fields provided in the request will be updated + + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appResourceId The ID of the Okta app. + @param groupId The ID of the group. + @return ApiCreateIdpGroupMappingRequest +*/ +func (a *IdpGroupMappingsAPIService) CreateIdpGroupMapping(ctx context.Context, appResourceId string, groupId string) ApiCreateIdpGroupMappingRequest { + return ApiCreateIdpGroupMappingRequest{ + ApiService: a, + ctx: ctx, + appResourceId: appResourceId, + groupId: groupId, + } +} + +// Execute executes the request +// @return IdpGroupMapping +func (a *IdpGroupMappingsAPIService) CreateIdpGroupMappingExecute(r ApiCreateIdpGroupMappingRequest) (*IdpGroupMapping, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdpGroupMapping + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdpGroupMappingsAPIService.CreateIdpGroupMapping") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/idp-group-mappings/{app_resource_id}/groups/{group_id}" + localVarPath = strings.Replace(localVarPath, "{"+"app_resource_id"+"}", url.PathEscape(parameterValueToString(r.appResourceId, "appResourceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group_id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.createIdpGroupMappingRequest + 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 ApiDeleteIdpGroupMappingsRequest struct { ctx context.Context ApiService *IdpGroupMappingsAPIService @@ -67,7 +187,7 @@ func (a *IdpGroupMappingsAPIService) DeleteIdpGroupMappingsExecute(r ApiDeleteId return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/idp-group-mappings/{app_resource_id}/{group_id}/" + localVarPath := localBasePath + "/idp-group-mappings/{app_resource_id}/groups/{group_id}" localVarPath = strings.Replace(localVarPath, "{"+"app_resource_id"+"}", url.PathEscape(parameterValueToString(r.appResourceId, "appResourceId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"group_id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -1) @@ -120,6 +240,113 @@ func (a *IdpGroupMappingsAPIService) DeleteIdpGroupMappingsExecute(r ApiDeleteId return localVarHTTPResponse, nil } +type ApiGetIdpGroupMappingRequest struct { + ctx context.Context + ApiService *IdpGroupMappingsAPIService + appResourceId string + groupId string +} + +func (r ApiGetIdpGroupMappingRequest) Execute() (*IdpGroupMapping, *http.Response, error) { + return r.ApiService.GetIdpGroupMappingExecute(r) +} + +/* +GetIdpGroupMapping Method for GetIdpGroupMapping + +Gets an `IdpGroupMapping` object for an Okta app and group. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appResourceId The ID of the Okta app. + @param groupId The ID of the group. + @return ApiGetIdpGroupMappingRequest +*/ +func (a *IdpGroupMappingsAPIService) GetIdpGroupMapping(ctx context.Context, appResourceId string, groupId string) ApiGetIdpGroupMappingRequest { + return ApiGetIdpGroupMappingRequest{ + ApiService: a, + ctx: ctx, + appResourceId: appResourceId, + groupId: groupId, + } +} + +// Execute executes the request +// @return IdpGroupMapping +func (a *IdpGroupMappingsAPIService) GetIdpGroupMappingExecute(r ApiGetIdpGroupMappingRequest) (*IdpGroupMapping, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IdpGroupMapping + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdpGroupMappingsAPIService.GetIdpGroupMapping") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/idp-group-mappings/{app_resource_id}/groups/{group_id}" + localVarPath = strings.Replace(localVarPath, "{"+"app_resource_id"+"}", url.PathEscape(parameterValueToString(r.appResourceId, "appResourceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"group_id"+"}", url.PathEscape(parameterValueToString(r.groupId, "groupId")), -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 ApiGetIdpGroupMappingsRequest struct { ctx context.Context ApiService *IdpGroupMappingsAPIService diff --git a/api_message_channels.go b/api_message_channels.go index 69d5b33..9d7f108 100644 --- a/api_message_channels.go +++ b/api_message_channels.go @@ -146,7 +146,7 @@ func (r ApiGetMessageChannelRequest) Execute() (*MessageChannel, *http.Response, } /* -GetMessageChannel Method for GetMessageChannel +GetMessageChannel Get message channel by ID Gets a `MessageChannel` object. @@ -248,7 +248,7 @@ func (r ApiGetMessageChannelsRequest) Execute() (*MessageChannelList, *http.Resp } /* -GetMessageChannels Method for GetMessageChannels +GetMessageChannels Get message channels Returns a list of `MessageChannel` objects. diff --git a/api_on_call_schedules.go b/api_on_call_schedules.go index 524ba78..c8f0f96 100644 --- a/api_on_call_schedules.go +++ b/api_on_call_schedules.go @@ -146,7 +146,7 @@ func (r ApiGetOnCallScheduleRequest) Execute() (*OnCallSchedule, *http.Response, } /* -GetOnCallSchedule Method for GetOnCallSchedule +GetOnCallSchedule Get on call schedule by ID Gets a `OnCallSchedule` object. @@ -248,7 +248,7 @@ func (r ApiGetOnCallSchedulesRequest) Execute() (*OnCallScheduleList, *http.Resp } /* -GetOnCallSchedules Method for GetOnCallSchedules +GetOnCallSchedules Get on call schedules Returns a list of `OnCallSchedule` objects. diff --git a/api_opal_queries.go b/api_opal_queries.go new file mode 100644 index 0000000..fc242bb --- /dev/null +++ b/api_opal_queries.go @@ -0,0 +1,134 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// OpalQueriesAPIService OpalQueriesAPI service +type OpalQueriesAPIService service + +type ApiRunOpalQueryRequest struct { + ctx context.Context + ApiService *OpalQueriesAPIService + body *OpalNodeQuery +} + +func (r ApiRunOpalQueryRequest) Body(body OpalNodeQuery) ApiRunOpalQueryRequest { + r.body = &body + return r +} + +func (r ApiRunOpalQueryRequest) Execute() (*OpalNodeQueryResults, *http.Response, error) { + return r.ApiService.RunOpalQueryExecute(r) +} + +/* +RunOpalQuery Run an ad-hoc OpalQuery + +Runs an ad-hoc OpalQuery and returns the results. Currently supports NODE queries (users, resources, groups). This endpoint is only available to our OpalQuery beta group. Please contact Opal support if you'd like to be added to the beta. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunOpalQueryRequest +*/ +func (a *OpalQueriesAPIService) RunOpalQuery(ctx context.Context) ApiRunOpalQueryRequest { + return ApiRunOpalQueryRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return OpalNodeQueryResults +func (a *OpalQueriesAPIService) RunOpalQueryExecute(r ApiRunOpalQueryRequest) (*OpalNodeQueryResults, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *OpalNodeQueryResults + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OpalQueriesAPIService.RunOpalQuery") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/queries/run" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, reportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.body + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_owners.go b/api_owners.go index 3d30c82..cfe5773 100644 --- a/api_owners.go +++ b/api_owners.go @@ -237,7 +237,7 @@ func (r ApiGetOwnerRequest) Execute() (*Owner, *http.Response, error) { } /* -GetOwner Method for GetOwner +GetOwner Get owner by ID Returns an `Owner` object. @@ -566,7 +566,7 @@ func (r ApiGetOwnersRequest) Execute() (*PaginatedOwnersList, *http.Response, er } /* -GetOwners Method for GetOwners +GetOwners Get owners Returns a list of `Owner` objects. diff --git a/api_requests.go b/api_requests.go index 529f47d..61811f1 100644 --- a/api_requests.go +++ b/api_requests.go @@ -17,69 +17,623 @@ import ( "io" "net/http" "net/url" + "strings" ) // RequestsAPIService RequestsAPI service type RequestsAPIService service +type ApiApproveRequestRequest struct { + ctx context.Context + ApiService *RequestsAPIService + id string + approveRequestRequest *ApproveRequestRequest +} + +// Approval parameters +func (r ApiApproveRequestRequest) ApproveRequestRequest(approveRequestRequest ApproveRequestRequest) ApiApproveRequestRequest { + r.approveRequestRequest = &approveRequestRequest + return r +} + +func (r ApiApproveRequestRequest) Execute() (*ApproveRequest200Response, *http.Response, error) { + return r.ApiService.ApproveRequestExecute(r) +} + +/* +ApproveRequest Method for ApproveRequest + +Approve an access request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the request to approve + @return ApiApproveRequestRequest +*/ +func (a *RequestsAPIService) ApproveRequest(ctx context.Context, id string) ApiApproveRequestRequest { + return ApiApproveRequestRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ApproveRequest200Response +func (a *RequestsAPIService) ApproveRequestExecute(r ApiApproveRequestRequest) (*ApproveRequest200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApproveRequest200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.ApproveRequest") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/requests/{id}/approve" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.approveRequestRequest == nil { + return localVarReturnValue, nil, reportError("approveRequestRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.approveRequestRequest + 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 ApiCreateRequestRequest struct { ctx context.Context ApiService *RequestsAPIService - createRequestInfo *CreateRequestInfo + createRequestInfo *CreateRequestInfo +} + +// Resources to be updated +func (r ApiCreateRequestRequest) CreateRequestInfo(createRequestInfo CreateRequestInfo) ApiCreateRequestRequest { + r.createRequestInfo = &createRequestInfo + return r +} + +func (r ApiCreateRequestRequest) Execute() (*CreateRequest200Response, *http.Response, error) { + return r.ApiService.CreateRequestExecute(r) +} + +/* +CreateRequest Method for CreateRequest + +Create an access request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRequestRequest +*/ +func (a *RequestsAPIService) CreateRequest(ctx context.Context) ApiCreateRequestRequest { + return ApiCreateRequestRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CreateRequest200Response +func (a *RequestsAPIService) CreateRequestExecute(r ApiCreateRequestRequest) (*CreateRequest200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateRequest200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.CreateRequest") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/requests" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createRequestInfo == nil { + return localVarReturnValue, nil, reportError("createRequestInfo is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.createRequestInfo + 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 ApiCreateRequestCommentRequest struct { + ctx context.Context + ApiService *RequestsAPIService + id string + createRequestCommentRequest *CreateRequestCommentRequest +} + +// Comment parameters +func (r ApiCreateRequestCommentRequest) CreateRequestCommentRequest(createRequestCommentRequest CreateRequestCommentRequest) ApiCreateRequestCommentRequest { + r.createRequestCommentRequest = &createRequestCommentRequest + return r +} + +func (r ApiCreateRequestCommentRequest) Execute() (*ApproveRequest200Response, *http.Response, error) { + return r.ApiService.CreateRequestCommentExecute(r) +} + +/* +CreateRequestComment Method for CreateRequestComment + +Comment on an access request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the request to comment on + @return ApiCreateRequestCommentRequest +*/ +func (a *RequestsAPIService) CreateRequestComment(ctx context.Context, id string) ApiCreateRequestCommentRequest { + return ApiCreateRequestCommentRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ApproveRequest200Response +func (a *RequestsAPIService) CreateRequestCommentExecute(r ApiCreateRequestCommentRequest) (*ApproveRequest200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApproveRequest200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.CreateRequestComment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/requests/{id}/comments" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createRequestCommentRequest == nil { + return localVarReturnValue, nil, reportError("createRequestCommentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.createRequestCommentRequest + 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 ApiDenyRequestRequest struct { + ctx context.Context + ApiService *RequestsAPIService + id string + denyRequestRequest *DenyRequestRequest +} + +// Denial parameters +func (r ApiDenyRequestRequest) DenyRequestRequest(denyRequestRequest DenyRequestRequest) ApiDenyRequestRequest { + r.denyRequestRequest = &denyRequestRequest + return r +} + +func (r ApiDenyRequestRequest) Execute() (*ApproveRequest200Response, *http.Response, error) { + return r.ApiService.DenyRequestExecute(r) +} + +/* +DenyRequest Method for DenyRequest + +Deny an access request + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the request to deny + @return ApiDenyRequestRequest +*/ +func (a *RequestsAPIService) DenyRequest(ctx context.Context, id string) ApiDenyRequestRequest { + return ApiDenyRequestRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return ApproveRequest200Response +func (a *RequestsAPIService) DenyRequestExecute(r ApiDenyRequestRequest) (*ApproveRequest200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ApproveRequest200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.DenyRequest") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/requests/{id}/deny" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.denyRequestRequest == nil { + return localVarReturnValue, nil, reportError("denyRequestRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.denyRequestRequest + 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 ApiGetRequestRequest struct { + ctx context.Context + ApiService *RequestsAPIService + id string } -// Resources to be updated -func (r ApiCreateRequestRequest) CreateRequestInfo(createRequestInfo CreateRequestInfo) ApiCreateRequestRequest { - r.createRequestInfo = &createRequestInfo - return r +func (r ApiGetRequestRequest) Execute() (*Request, *http.Response, error) { + return r.ApiService.GetRequestExecute(r) } -func (r ApiCreateRequestRequest) Execute() (*CreateRequest200Response, *http.Response, error) { - return r.ApiService.CreateRequestExecute(r) +/* +GetRequest Get request by ID + +Returns a request by ID. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The ID of the request. + @return ApiGetRequestRequest +*/ +func (a *RequestsAPIService) GetRequest(ctx context.Context, id string) ApiGetRequestRequest { + return ApiGetRequestRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Request +func (a *RequestsAPIService) GetRequestExecute(r ApiGetRequestRequest) (*Request, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Request + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.GetRequest") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/requests/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -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 ApiGetRequestCommentsRequest struct { + ctx context.Context + ApiService *RequestsAPIService + id string +} + +func (r ApiGetRequestCommentsRequest) Execute() (*RequestCommentList, *http.Response, error) { + return r.ApiService.GetRequestCommentsExecute(r) } /* -CreateRequest Method for CreateRequest +GetRequestComments Method for GetRequestComments -Create an access request +Returns a list of comments for a specific request. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRequestRequest + @param id The ID of the request to get comments for + @return ApiGetRequestCommentsRequest */ -func (a *RequestsAPIService) CreateRequest(ctx context.Context) ApiCreateRequestRequest { - return ApiCreateRequestRequest{ +func (a *RequestsAPIService) GetRequestComments(ctx context.Context, id string) ApiGetRequestCommentsRequest { + return ApiGetRequestCommentsRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateRequest200Response -func (a *RequestsAPIService) CreateRequestExecute(r ApiCreateRequestRequest) (*CreateRequest200Response, *http.Response, error) { +// @return RequestCommentList +func (a *RequestsAPIService) GetRequestCommentsExecute(r ApiGetRequestCommentsRequest) (*RequestCommentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *CreateRequest200Response + localVarReturnValue *RequestCommentList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.CreateRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.GetRequestComments") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/requests" + localVarPath := localBasePath + "/requests/{id}/comments" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.createRequestInfo == nil { - return localVarReturnValue, nil, reportError("createRequestInfo is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -95,8 +649,6 @@ func (a *RequestsAPIService) CreateRequestExecute(r ApiCreateRequestRequest) (*C if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.createRequestInfo req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -137,11 +689,53 @@ func (a *RequestsAPIService) CreateRequestExecute(r ApiCreateRequestRequest) (*C type ApiGetRequestsRequest struct { ctx context.Context ApiService *RequestsAPIService + startDateFilter *string + endDateFilter *string + requesterId *string + targetUserId *string + resourceId *string + groupId *string cursor *string pageSize *int32 showPendingOnly *bool } +// A start date filter for the events. +func (r ApiGetRequestsRequest) StartDateFilter(startDateFilter string) ApiGetRequestsRequest { + r.startDateFilter = &startDateFilter + return r +} + +// An end date filter for the events. +func (r ApiGetRequestsRequest) EndDateFilter(endDateFilter string) ApiGetRequestsRequest { + r.endDateFilter = &endDateFilter + return r +} + +// Filter requests by their requester ID. +func (r ApiGetRequestsRequest) RequesterId(requesterId string) ApiGetRequestsRequest { + r.requesterId = &requesterId + return r +} + +// Filter requests by their target user ID. +func (r ApiGetRequestsRequest) TargetUserId(targetUserId string) ApiGetRequestsRequest { + r.targetUserId = &targetUserId + return r +} + +// Filter requests by the resource ID that was requested. +func (r ApiGetRequestsRequest) ResourceId(resourceId string) ApiGetRequestsRequest { + r.resourceId = &resourceId + return r +} + +// Filter requests by the group ID that was requested. +func (r ApiGetRequestsRequest) GroupId(groupId string) ApiGetRequestsRequest { + r.groupId = &groupId + return r +} + // The pagination cursor value. func (r ApiGetRequestsRequest) Cursor(cursor string) ApiGetRequestsRequest { r.cursor = &cursor @@ -165,7 +759,7 @@ func (r ApiGetRequestsRequest) Execute() (*RequestList, *http.Response, error) { } /* -GetRequests Method for GetRequests +GetRequests Get requests Returns a list of requests for your organization that is visible by the admin. @@ -200,6 +794,24 @@ func (a *RequestsAPIService) GetRequestsExecute(r ApiGetRequestsRequest) (*Reque localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.startDateFilter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "start_date_filter", r.startDateFilter, "form", "") + } + if r.endDateFilter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "end_date_filter", r.endDateFilter, "form", "") + } + if r.requesterId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "requester_id", r.requesterId, "form", "") + } + if r.targetUserId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "target_user_id", r.targetUserId, "form", "") + } + if r.resourceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "resource_id", r.resourceId, "form", "") + } + if r.groupId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", r.groupId, "form", "") + } if r.cursor != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") } @@ -262,3 +874,175 @@ func (a *RequestsAPIService) GetRequestsExecute(r ApiGetRequestsRequest) (*Reque return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiGetRequestsRelayRequest struct { + ctx context.Context + ApiService *RequestsAPIService + first *int32 + after *string + last *int32 + before *string + status *RequestStatusEnum + to *string + from *string +} + +// Number of results to return after the cursor. Use either first/after or last/before, not both. +func (r ApiGetRequestsRelayRequest) First(first int32) ApiGetRequestsRelayRequest { + r.first = &first + return r +} + +// Cursor to fetch results after. Used with 'first' for forward pagination. +func (r ApiGetRequestsRelayRequest) After(after string) ApiGetRequestsRelayRequest { + r.after = &after + return r +} + +// Number of results to return before the cursor. Use either first/after or last/before, not both. +func (r ApiGetRequestsRelayRequest) Last(last int32) ApiGetRequestsRelayRequest { + r.last = &last + return r +} + +// Cursor to fetch results before. Used with 'last' for backward pagination. +func (r ApiGetRequestsRelayRequest) Before(before string) ApiGetRequestsRelayRequest { + r.before = &before + return r +} + +// Filter requests by their status. +func (r ApiGetRequestsRelayRequest) Status(status RequestStatusEnum) ApiGetRequestsRelayRequest { + r.status = &status + return r +} + +// Filter requests assigned to a specific user ID. +func (r ApiGetRequestsRelayRequest) To(to string) ApiGetRequestsRelayRequest { + r.to = &to + return r +} + +// Filter requests made by a specific user ID. +func (r ApiGetRequestsRelayRequest) From(from string) ApiGetRequestsRelayRequest { + r.from = &from + return r +} + +func (r ApiGetRequestsRelayRequest) Execute() (*RequestConnection, *http.Response, error) { + return r.ApiService.GetRequestsRelayExecute(r) +} + +/* +GetRequestsRelay Get requests via Relay + +Returns a paginated list of requests using Relay-style cursor pagination. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetRequestsRelayRequest + +Deprecated +*/ +func (a *RequestsAPIService) GetRequestsRelay(ctx context.Context) ApiGetRequestsRelayRequest { + return ApiGetRequestsRelayRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return RequestConnection +// Deprecated +func (a *RequestsAPIService) GetRequestsRelayExecute(r ApiGetRequestsRelayRequest) (*RequestConnection, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RequestConnection + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RequestsAPIService.GetRequestsRelay") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/requests/relay" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.first != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "first", r.first, "form", "") + } + if r.after != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "after", r.after, "form", "") + } + if r.last != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "last", r.last, "form", "") + } + if r.before != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "form", "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "form", "") + } + if r.to != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "to", r.to, "form", "") + } + if r.from != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "from", r.from, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_resources.go b/api_resources.go index ff4c44a..1e269c3 100644 --- a/api_resources.go +++ b/api_resources.go @@ -18,6 +18,7 @@ import ( "net/http" "net/url" "strings" + "reflect" ) @@ -701,7 +702,7 @@ func (r ApiGetResourceRequest) Execute() (*Resource, *http.Response, error) { } /* -GetResource Method for GetResource +GetResource Get resource by ID Retrieves a resource. @@ -793,6 +794,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 @@ -1215,6 +1319,109 @@ func (a *ResourcesAPIService) GetResourceReviewersExecute(r ApiGetResourceReview return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetResourceScopedRolePermissionsRequest struct { + ctx context.Context + ApiService *ResourcesAPIService + resourceId string +} + +func (r ApiGetResourceScopedRolePermissionsRequest) Execute() (*ScopedRolePermissionList, *http.Response, error) { + return r.ApiService.GetResourceScopedRolePermissionsExecute(r) +} + +/* +GetResourceScopedRolePermissions Method for GetResourceScopedRolePermissions + +Returns all the scoped role permissions that apply to the given resource. Only OPAL_SCOPED_ROLE resource type supports this field. + + @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 whose scoped role permissions belong to. + @return ApiGetResourceScopedRolePermissionsRequest +*/ +func (a *ResourcesAPIService) GetResourceScopedRolePermissions(ctx context.Context, resourceId string) ApiGetResourceScopedRolePermissionsRequest { + return ApiGetResourceScopedRolePermissionsRequest{ + ApiService: a, + ctx: ctx, + resourceId: resourceId, + } +} + +// Execute executes the request +// @return ScopedRolePermissionList +func (a *ResourcesAPIService) GetResourceScopedRolePermissionsExecute(r ApiGetResourceScopedRolePermissionsRequest) (*ScopedRolePermissionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScopedRolePermissionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourcesAPIService.GetResourceScopedRolePermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/{resource_id}/scoped-role-permissions" + 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 ApiGetResourceTagsRequest struct { ctx context.Context ApiService *ResourcesAPIService @@ -1318,6 +1525,123 @@ func (a *ResourcesAPIService) GetResourceTagsExecute(r ApiGetResourceTagsRequest return localVarReturnValue, localVarHTTPResponse, nil } +type ApiGetResourceUserRequest struct { + ctx context.Context + ApiService *ResourcesAPIService + resourceId string + userId string + cursor *string +} + +// The pagination cursor value. +func (r ApiGetResourceUserRequest) Cursor(cursor string) ApiGetResourceUserRequest { + r.cursor = &cursor + return r +} + +func (r ApiGetResourceUserRequest) Execute() (*GetResourceUser200Response, *http.Response, error) { + return r.ApiService.GetResourceUserExecute(r) +} + +/* +GetResourceUser Get resource user + +Returns information about a specific user's access to a 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. + @param userId The ID of the user. + @return ApiGetResourceUserRequest +*/ +func (a *ResourcesAPIService) GetResourceUser(ctx context.Context, resourceId string, userId string) ApiGetResourceUserRequest { + return ApiGetResourceUserRequest{ + ApiService: a, + ctx: ctx, + resourceId: resourceId, + userId: userId, + } +} + +// Execute executes the request +// @return GetResourceUser200Response +func (a *ResourcesAPIService) GetResourceUserExecute(r ApiGetResourceUserRequest) (*GetResourceUser200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetResourceUser200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourcesAPIService.GetResourceUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/{resource_id}/users/{user_id}" + localVarPath = strings.Replace(localVarPath, "{"+"resource_id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"user_id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + // 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 ApiGetResourceUsersRequest struct { ctx context.Context ApiService *ResourcesAPIService @@ -1336,7 +1660,7 @@ func (r ApiGetResourceUsersRequest) Execute() (*ResourceAccessUserList, *http.Re } /* -GetResourceUsers Method for GetResourceUsers +GetResourceUsers Get resource users Gets the list of users for this resource. @@ -1543,6 +1867,9 @@ type ApiGetResourcesRequest struct { resourceIds *[]string resourceName *string parentResourceId *string + ancestorResourceId *string + remoteId *string + tagIds *[]string } // The pagination cursor value. @@ -1557,7 +1884,7 @@ func (r ApiGetResourcesRequest) PageSize(pageSize int32) ApiGetResourcesRequest return r } -// The resource type to filter by. +// The resource type to filter by. Required when remote_id is provided. func (r ApiGetResourcesRequest) ResourceTypeFilter(resourceTypeFilter ResourceTypeEnum) ApiGetResourcesRequest { r.resourceTypeFilter = &resourceTypeFilter return r @@ -1581,12 +1908,30 @@ func (r ApiGetResourcesRequest) ParentResourceId(parentResourceId string) ApiGet return r } +// The ancestor resource id to filter by. Returns all resources that are descendants of the specified resource. +func (r ApiGetResourcesRequest) AncestorResourceId(ancestorResourceId string) ApiGetResourcesRequest { + r.ancestorResourceId = &ancestorResourceId + return r +} + +// 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. +func (r ApiGetResourcesRequest) RemoteId(remoteId string) ApiGetResourcesRequest { + r.remoteId = &remoteId + return r +} + +// The IDs of the tags to filter by. Returns only resources that have any of these tags applied. +func (r ApiGetResourcesRequest) TagIds(tagIds []string) ApiGetResourcesRequest { + r.tagIds = &tagIds + return r +} + func (r ApiGetResourcesRequest) Execute() (*PaginatedResourcesList, *http.Response, error) { return r.ApiService.GetResourcesExecute(r) } /* -GetResources Method for GetResources +GetResources Get resources Returns a list of resources for your organization. @@ -1639,6 +1984,156 @@ func (a *ResourcesAPIService) GetResourcesExecute(r ApiGetResourcesRequest) (*Pa if r.parentResourceId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_resource_id", r.parentResourceId, "form", "") } + if r.ancestorResourceId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ancestor_resource_id", r.ancestorResourceId, "form", "") + } + if r.remoteId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_id", r.remoteId, "form", "") + } + if r.tagIds != nil { + t := *r.tagIds + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_ids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_ids", t, "form", "multi") + } + } + // 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 ApiGetUserResourcesRequest struct { + ctx context.Context + ApiService *ResourcesAPIService + userId string + limit *int32 + cursor *string + includeUnmanaged *bool +} + +// Limit the number of results returned. +func (r ApiGetUserResourcesRequest) Limit(limit int32) ApiGetUserResourcesRequest { + r.limit = &limit + return r +} + +// The pagination cursor value. +func (r ApiGetUserResourcesRequest) Cursor(cursor string) ApiGetUserResourcesRequest { + r.cursor = &cursor + return r +} + +// Include user's access to unmanaged resources. +func (r ApiGetUserResourcesRequest) IncludeUnmanaged(includeUnmanaged bool) ApiGetUserResourcesRequest { + r.includeUnmanaged = &includeUnmanaged + return r +} + +func (r ApiGetUserResourcesRequest) Execute() (*ResourceAccessUserList, *http.Response, error) { + return r.ApiService.GetUserResourcesExecute(r) +} + +/* +GetUserResources Method for GetUserResources + +Gets the list of resources for this user. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userId The ID of the user. + @return ApiGetUserResourcesRequest +*/ +func (a *ResourcesAPIService) GetUserResources(ctx context.Context, userId string) ApiGetUserResourcesRequest { + return ApiGetUserResourcesRequest{ + ApiService: a, + ctx: ctx, + userId: userId, + } +} + +// Execute executes the request +// @return ResourceAccessUserList +func (a *ResourcesAPIService) GetUserResourcesExecute(r ApiGetUserResourcesRequest) (*ResourceAccessUserList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ResourceAccessUserList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourcesAPIService.GetUserResources") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/users/{user_id}" + localVarPath = strings.Replace(localVarPath, "{"+"user_id"+"}", url.PathEscape(parameterValueToString(r.userId, "userId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "form", "") + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.includeUnmanaged != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "include_unmanaged", r.includeUnmanaged, "form", "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1734,6 +2229,8 @@ Get user's access status to a resource. @param resourceId The ID of the resource. @param userId The ID of the user. @return ApiResourceUserAccessStatusRetrieveRequest + +Deprecated */ func (a *ResourcesAPIService) ResourceUserAccessStatusRetrieve(ctx context.Context, resourceId string, userId string) ApiResourceUserAccessStatusRetrieveRequest { return ApiResourceUserAccessStatusRetrieveRequest{ @@ -1746,6 +2243,7 @@ func (a *ResourcesAPIService) ResourceUserAccessStatusRetrieve(ctx context.Conte // Execute executes the request // @return ResourceUserAccessStatus +// Deprecated func (a *ResourcesAPIService) ResourceUserAccessStatusRetrieveExecute(r ApiResourceUserAccessStatusRetrieveRequest) (*ResourceUserAccessStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2172,6 +2670,120 @@ func (a *ResourcesAPIService) SetResourceReviewersExecute(r ApiSetResourceReview return localVarReturnValue, localVarHTTPResponse, nil } +type ApiSetResourceScopedRolePermissionsRequest struct { + ctx context.Context + ApiService *ResourcesAPIService + resourceId string + scopedRolePermissionList *ScopedRolePermissionList +} + +func (r ApiSetResourceScopedRolePermissionsRequest) ScopedRolePermissionList(scopedRolePermissionList ScopedRolePermissionList) ApiSetResourceScopedRolePermissionsRequest { + r.scopedRolePermissionList = &scopedRolePermissionList + return r +} + +func (r ApiSetResourceScopedRolePermissionsRequest) Execute() (*ScopedRolePermissionList, *http.Response, error) { + return r.ApiService.SetResourceScopedRolePermissionsExecute(r) +} + +/* +SetResourceScopedRolePermissions Method for SetResourceScopedRolePermissions + +Sets all the scoped role permissions on an OPAL_SCOPED_ROLE 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 whose scoped role permissions belong to. Must be of OPAL_SCOPED_ROLE resource type. + @return ApiSetResourceScopedRolePermissionsRequest +*/ +func (a *ResourcesAPIService) SetResourceScopedRolePermissions(ctx context.Context, resourceId string) ApiSetResourceScopedRolePermissionsRequest { + return ApiSetResourceScopedRolePermissionsRequest{ + ApiService: a, + ctx: ctx, + resourceId: resourceId, + } +} + +// Execute executes the request +// @return ScopedRolePermissionList +func (a *ResourcesAPIService) SetResourceScopedRolePermissionsExecute(r ApiSetResourceScopedRolePermissionsRequest) (*ScopedRolePermissionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScopedRolePermissionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ResourcesAPIService.SetResourceScopedRolePermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/resources/{resource_id}/scoped-role-permissions" + localVarPath = strings.Replace(localVarPath, "{"+"resource_id"+"}", url.PathEscape(parameterValueToString(r.resourceId, "resourceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.scopedRolePermissionList == nil { + return localVarReturnValue, nil, reportError("scopedRolePermissionList is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // 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 + } + // body params + localVarPostBody = r.scopedRolePermissionList + 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 ApiSetResourceVisibilityRequest struct { ctx context.Context ApiService *ResourcesAPIService diff --git a/api_tags.go b/api_tags.go index 7545fdf..6c86a33 100644 --- a/api_tags.go +++ b/api_tags.go @@ -221,6 +221,12 @@ type ApiAddUserTagRequest struct { ApiService *TagsAPIService tagId string userId string + body *map[string]interface{} +} + +func (r ApiAddUserTagRequest) Body(body map[string]interface{}) ApiAddUserTagRequest { + r.body = &body + return r } func (r ApiAddUserTagRequest) Execute() (*http.Response, error) { @@ -268,7 +274,7 @@ func (a *TagsAPIService) AddUserTagExecute(r ApiAddUserTagRequest) (*http.Respon localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -284,6 +290,8 @@ func (a *TagsAPIService) AddUserTagExecute(r ApiAddUserTagRequest) (*http.Respon if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -675,7 +683,7 @@ func (r ApiGetTagByIDRequest) Execute() (*Tag, *http.Response, error) { } /* -GetTagByID Method for GetTagByID +GetTagByID Get tag by ID UNSTABLE. May be removed at any time. Gets a tag with the given id. @@ -791,7 +799,7 @@ func (r ApiGetTagsRequest) Execute() (*PaginatedTagsList, *http.Response, error) } /* -GetTags Method for GetTags +GetTags Get tags Returns a list of tags created by your organization. diff --git a/api_tokens.go b/api_tokens.go new file mode 100644 index 0000000..07290cd --- /dev/null +++ b/api_tokens.go @@ -0,0 +1,256 @@ +/* +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 ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// TokensAPIService TokensAPI service +type TokensAPIService service + +type ApiDeleteTokenRequest struct { + ctx context.Context + ApiService *TokensAPIService + tokenId string +} + +func (r ApiDeleteTokenRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteTokenExecute(r) +} + +/* +DeleteToken Delete token + +Deletes a first-party API token. Admins can delete any token. Non-admins can only delete their own tokens when the organization allows all users to create API tokens. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param tokenId The ID of the token to delete. + @return ApiDeleteTokenRequest +*/ +func (a *TokensAPIService) DeleteToken(ctx context.Context, tokenId string) ApiDeleteTokenRequest { + return ApiDeleteTokenRequest{ + ApiService: a, + ctx: ctx, + tokenId: tokenId, + } +} + +// Execute executes the request +func (a *TokensAPIService) DeleteTokenExecute(r ApiDeleteTokenRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.DeleteToken") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tokens/{token_id}" + localVarPath = strings.Replace(localVarPath, "{"+"token_id"+"}", url.PathEscape(parameterValueToString(r.tokenId, "tokenId")), -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{} + + // 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 nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiGetTokensRequest struct { + ctx context.Context + ApiService *TokensAPIService + cursor *string + pageSize *int32 + tokenIds *[]string + userId *string +} + +// The pagination cursor value. +func (r ApiGetTokensRequest) Cursor(cursor string) ApiGetTokensRequest { + r.cursor = &cursor + return r +} + +// Number of results to return per page. Default is 200. +func (r ApiGetTokensRequest) PageSize(pageSize int32) ApiGetTokensRequest { + r.pageSize = &pageSize + return r +} + +// Filter by token IDs. +func (r ApiGetTokensRequest) TokenIds(tokenIds []string) ApiGetTokensRequest { + r.tokenIds = &tokenIds + return r +} + +// Filter by user ID. +func (r ApiGetTokensRequest) UserId(userId string) ApiGetTokensRequest { + r.userId = &userId + return r +} + +func (r ApiGetTokensRequest) Execute() (*PaginatedTokensList, *http.Response, error) { + return r.ApiService.GetTokensExecute(r) +} + +/* +GetTokens Get tokens + +Returns a list of first-party API tokens for your organization. Requires admin access. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTokensRequest +*/ +func (a *TokensAPIService) GetTokens(ctx context.Context) ApiGetTokensRequest { + return ApiGetTokensRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedTokensList +func (a *TokensAPIService) GetTokensExecute(r ApiGetTokensRequest) (*PaginatedTokensList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTokensList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TokensAPIService.GetTokens") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/tokens" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + if r.tokenIds != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "token_ids", r.tokenIds, "form", "csv") + } + if r.userId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", r.userId, "form", "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_users.go b/api_users.go index b20da39..c7e9eba 100644 --- a/api_users.go +++ b/api_users.go @@ -18,12 +18,186 @@ import ( "net/http" "net/url" "strings" + "reflect" ) // UsersAPIService UsersAPI service type UsersAPIService service +type ApiGetRemoteUsersRequest struct { + ctx context.Context + ApiService *UsersAPIService + thirdPartyProvider *[]ThirdPartyProviderEnum + userId *[]string + remoteId *[]string + cursor *string + pageSize *int32 +} + +// Filter remote users by their third party provider. +func (r ApiGetRemoteUsersRequest) ThirdPartyProvider(thirdPartyProvider []ThirdPartyProviderEnum) ApiGetRemoteUsersRequest { + r.thirdPartyProvider = &thirdPartyProvider + return r +} + +// Filter remote users by their user ID. +func (r ApiGetRemoteUsersRequest) UserId(userId []string) ApiGetRemoteUsersRequest { + r.userId = &userId + return r +} + +// Filter remote users by their remote ID. +func (r ApiGetRemoteUsersRequest) RemoteId(remoteId []string) ApiGetRemoteUsersRequest { + r.remoteId = &remoteId + return r +} + +// The pagination cursor value. +func (r ApiGetRemoteUsersRequest) Cursor(cursor string) ApiGetRemoteUsersRequest { + r.cursor = &cursor + return r +} + +// Number of results to return per page. Default is 200. +func (r ApiGetRemoteUsersRequest) PageSize(pageSize int32) ApiGetRemoteUsersRequest { + r.pageSize = &pageSize + return r +} + +func (r ApiGetRemoteUsersRequest) Execute() (*PaginatedRemoteUsersList, *http.Response, error) { + return r.ApiService.GetRemoteUsersExecute(r) +} + +/* +GetRemoteUsers Method for GetRemoteUsers + +Returns a list of remote users for your organization. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetRemoteUsersRequest +*/ +func (a *UsersAPIService) GetRemoteUsers(ctx context.Context) ApiGetRemoteUsersRequest { + return ApiGetRemoteUsersRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedRemoteUsersList +func (a *UsersAPIService) GetRemoteUsersExecute(r ApiGetRemoteUsersRequest) (*PaginatedRemoteUsersList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRemoteUsersList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.GetRemoteUsers") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/remote_users" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.thirdPartyProvider != nil { + t := *r.thirdPartyProvider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "third_party_provider", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "third_party_provider", t, "form", "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "form", "multi") + } + } + if r.remoteId != nil { + t := *r.remoteId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_id", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "remote_id", t, "form", "multi") + } + } + if r.cursor != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "cursor", r.cursor, "form", "") + } + if r.pageSize != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") + } + // 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 ApiGetUserTagsRequest struct { ctx context.Context ApiService *UsersAPIService @@ -132,6 +306,7 @@ type ApiGetUsersRequest struct { ApiService *UsersAPIService cursor *string pageSize *int32 + tagIds *[]string } // The pagination cursor value. @@ -146,6 +321,12 @@ func (r ApiGetUsersRequest) PageSize(pageSize int32) ApiGetUsersRequest { return r } +// The IDs of the tags to filter by. Returns only users that have any of these tags applied. +func (r ApiGetUsersRequest) TagIds(tagIds []string) ApiGetUsersRequest { + r.tagIds = &tagIds + return r +} + func (r ApiGetUsersRequest) Execute() (*PaginatedUsersList, *http.Response, error) { return r.ApiService.GetUsersExecute(r) } @@ -192,6 +373,17 @@ func (a *UsersAPIService) GetUsersExecute(r ApiGetUsersRequest) (*PaginatedUsers if r.pageSize != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "form", "") } + if r.tagIds != nil { + t := *r.tagIds + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_ids", s.Index(i).Interface(), "form", "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_ids", t, "form", "multi") + } + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/client.go b/client.go index e5d5231..6451026 100644 --- a/client.go +++ b/client.go @@ -58,6 +58,10 @@ type APIClient struct { ConfigurationTemplatesAPI *ConfigurationTemplatesAPIService + DelegationsAPI *DelegationsAPIService + + EventStreamsAPI *EventStreamsAPIService + EventsAPI *EventsAPIService GroupBindingsAPI *GroupBindingsAPIService @@ -72,6 +76,8 @@ type APIClient struct { OnCallSchedulesAPI *OnCallSchedulesAPIService + OpalQueriesAPI *OpalQueriesAPIService + OwnersAPI *OwnersAPIService RequestsAPI *RequestsAPIService @@ -82,6 +88,8 @@ type APIClient struct { TagsAPI *TagsAPIService + TokensAPI *TokensAPIService + UarsAPI *UarsAPIService UsersAPI *UsersAPIService @@ -107,6 +115,8 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.AppsAPI = (*AppsAPIService)(&c.common) c.BundlesAPI = (*BundlesAPIService)(&c.common) c.ConfigurationTemplatesAPI = (*ConfigurationTemplatesAPIService)(&c.common) + c.DelegationsAPI = (*DelegationsAPIService)(&c.common) + c.EventStreamsAPI = (*EventStreamsAPIService)(&c.common) c.EventsAPI = (*EventsAPIService)(&c.common) c.GroupBindingsAPI = (*GroupBindingsAPIService)(&c.common) c.GroupsAPI = (*GroupsAPIService)(&c.common) @@ -114,11 +124,13 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.MessageChannelsAPI = (*MessageChannelsAPIService)(&c.common) c.NonHumanIdentitiesAPI = (*NonHumanIdentitiesAPIService)(&c.common) c.OnCallSchedulesAPI = (*OnCallSchedulesAPIService)(&c.common) + c.OpalQueriesAPI = (*OpalQueriesAPIService)(&c.common) c.OwnersAPI = (*OwnersAPIService)(&c.common) c.RequestsAPI = (*RequestsAPIService)(&c.common) c.ResourcesAPI = (*ResourcesAPIService)(&c.common) c.SessionsAPI = (*SessionsAPIService)(&c.common) c.TagsAPI = (*TagsAPIService)(&c.common) + c.TokensAPI = (*TokensAPIService)(&c.common) c.UarsAPI = (*UarsAPIService)(&c.common) c.UsersAPI = (*UsersAPIService)(&c.common) @@ -544,10 +556,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/AccessEntityFilters.md b/docs/AccessEntityFilters.md new file mode 100644 index 0000000..dd0a171 --- /dev/null +++ b/docs/AccessEntityFilters.md @@ -0,0 +1,316 @@ +# AccessEntityFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EntityTypes** | Pointer to **[]string** | Filter by entity type. Only RESOURCE, GROUP, and USER are queryable via OpalQuery. | [optional] +**EntityItemTypes** | Pointer to [**[]EntityItemTypeEnum**](EntityItemTypeEnum.md) | Filter by entity item types. | [optional] +**EntityName** | Pointer to [**EntityNameFilter**](EntityNameFilter.md) | | [optional] +**EntityTag** | Pointer to [**EntityTagFilter**](EntityTagFilter.md) | | [optional] +**EntityIDs** | Pointer to **[]string** | Filter by specific entity UUIDs. | [optional] +**ImportedFromApp** | Pointer to **[]string** | Filter by app IDs from which returned nodes will be imported from. | [optional] +**RoleRemoteIds** | Pointer to **[]string** | Filter by role remote IDs. Can only be applied within a hasAccessTo clause. | [optional] +**RoleNames** | Pointer to **[]string** | Filter by role display names (e.g. \"Admin\", \"Read\"). Can only be applied within a hasAccessTo clause. | [optional] +**AllOf** | Pointer to [**[]AccessEntityFilters**](AccessEntityFilters.md) | A list of nested filters that must all match (logical AND). Each item has the same shape as this object — scalar fields like `entityTypes` or `entityTag`, and can further nest `allOf`, `anyOf`, or `not`. | [optional] +**AnyOf** | Pointer to [**[]AccessEntityFilters**](AccessEntityFilters.md) | A list of nested filters where at least one must match (logical OR). Each item has the same shape as this object. | [optional] +**Not** | Pointer to **map[string]interface{}** | Excludes entities matching the embedded filter (logical NOT). Pass a filter object with the same shape as this one — typically a single scalar field, like `{not: {entityTypes: [\"RESOURCE\"]}}` to exclude resources. | [optional] + +## Methods + +### NewAccessEntityFilters + +`func NewAccessEntityFilters() *AccessEntityFilters` + +NewAccessEntityFilters instantiates a new AccessEntityFilters 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 + +### NewAccessEntityFiltersWithDefaults + +`func NewAccessEntityFiltersWithDefaults() *AccessEntityFilters` + +NewAccessEntityFiltersWithDefaults instantiates a new AccessEntityFilters 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 + +### GetEntityTypes + +`func (o *AccessEntityFilters) GetEntityTypes() []string` + +GetEntityTypes returns the EntityTypes field if non-nil, zero value otherwise. + +### GetEntityTypesOk + +`func (o *AccessEntityFilters) GetEntityTypesOk() (*[]string, bool)` + +GetEntityTypesOk returns a tuple with the EntityTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityTypes + +`func (o *AccessEntityFilters) SetEntityTypes(v []string)` + +SetEntityTypes sets EntityTypes field to given value. + +### HasEntityTypes + +`func (o *AccessEntityFilters) HasEntityTypes() bool` + +HasEntityTypes returns a boolean if a field has been set. + +### GetEntityItemTypes + +`func (o *AccessEntityFilters) GetEntityItemTypes() []EntityItemTypeEnum` + +GetEntityItemTypes returns the EntityItemTypes field if non-nil, zero value otherwise. + +### GetEntityItemTypesOk + +`func (o *AccessEntityFilters) GetEntityItemTypesOk() (*[]EntityItemTypeEnum, bool)` + +GetEntityItemTypesOk returns a tuple with the EntityItemTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityItemTypes + +`func (o *AccessEntityFilters) SetEntityItemTypes(v []EntityItemTypeEnum)` + +SetEntityItemTypes sets EntityItemTypes field to given value. + +### HasEntityItemTypes + +`func (o *AccessEntityFilters) HasEntityItemTypes() bool` + +HasEntityItemTypes returns a boolean if a field has been set. + +### GetEntityName + +`func (o *AccessEntityFilters) GetEntityName() EntityNameFilter` + +GetEntityName returns the EntityName field if non-nil, zero value otherwise. + +### GetEntityNameOk + +`func (o *AccessEntityFilters) GetEntityNameOk() (*EntityNameFilter, bool)` + +GetEntityNameOk returns a tuple with the EntityName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityName + +`func (o *AccessEntityFilters) SetEntityName(v EntityNameFilter)` + +SetEntityName sets EntityName field to given value. + +### HasEntityName + +`func (o *AccessEntityFilters) HasEntityName() bool` + +HasEntityName returns a boolean if a field has been set. + +### GetEntityTag + +`func (o *AccessEntityFilters) GetEntityTag() EntityTagFilter` + +GetEntityTag returns the EntityTag field if non-nil, zero value otherwise. + +### GetEntityTagOk + +`func (o *AccessEntityFilters) GetEntityTagOk() (*EntityTagFilter, bool)` + +GetEntityTagOk returns a tuple with the EntityTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityTag + +`func (o *AccessEntityFilters) SetEntityTag(v EntityTagFilter)` + +SetEntityTag sets EntityTag field to given value. + +### HasEntityTag + +`func (o *AccessEntityFilters) HasEntityTag() bool` + +HasEntityTag returns a boolean if a field has been set. + +### GetEntityIDs + +`func (o *AccessEntityFilters) GetEntityIDs() []string` + +GetEntityIDs returns the EntityIDs field if non-nil, zero value otherwise. + +### GetEntityIDsOk + +`func (o *AccessEntityFilters) GetEntityIDsOk() (*[]string, bool)` + +GetEntityIDsOk returns a tuple with the EntityIDs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityIDs + +`func (o *AccessEntityFilters) SetEntityIDs(v []string)` + +SetEntityIDs sets EntityIDs field to given value. + +### HasEntityIDs + +`func (o *AccessEntityFilters) HasEntityIDs() bool` + +HasEntityIDs returns a boolean if a field has been set. + +### GetImportedFromApp + +`func (o *AccessEntityFilters) GetImportedFromApp() []string` + +GetImportedFromApp returns the ImportedFromApp field if non-nil, zero value otherwise. + +### GetImportedFromAppOk + +`func (o *AccessEntityFilters) GetImportedFromAppOk() (*[]string, bool)` + +GetImportedFromAppOk returns a tuple with the ImportedFromApp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportedFromApp + +`func (o *AccessEntityFilters) SetImportedFromApp(v []string)` + +SetImportedFromApp sets ImportedFromApp field to given value. + +### HasImportedFromApp + +`func (o *AccessEntityFilters) HasImportedFromApp() bool` + +HasImportedFromApp returns a boolean if a field has been set. + +### GetRoleRemoteIds + +`func (o *AccessEntityFilters) GetRoleRemoteIds() []string` + +GetRoleRemoteIds returns the RoleRemoteIds field if non-nil, zero value otherwise. + +### GetRoleRemoteIdsOk + +`func (o *AccessEntityFilters) GetRoleRemoteIdsOk() (*[]string, bool)` + +GetRoleRemoteIdsOk returns a tuple with the RoleRemoteIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleRemoteIds + +`func (o *AccessEntityFilters) SetRoleRemoteIds(v []string)` + +SetRoleRemoteIds sets RoleRemoteIds field to given value. + +### HasRoleRemoteIds + +`func (o *AccessEntityFilters) HasRoleRemoteIds() bool` + +HasRoleRemoteIds returns a boolean if a field has been set. + +### GetRoleNames + +`func (o *AccessEntityFilters) GetRoleNames() []string` + +GetRoleNames returns the RoleNames field if non-nil, zero value otherwise. + +### GetRoleNamesOk + +`func (o *AccessEntityFilters) GetRoleNamesOk() (*[]string, bool)` + +GetRoleNamesOk returns a tuple with the RoleNames field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleNames + +`func (o *AccessEntityFilters) SetRoleNames(v []string)` + +SetRoleNames sets RoleNames field to given value. + +### HasRoleNames + +`func (o *AccessEntityFilters) HasRoleNames() bool` + +HasRoleNames returns a boolean if a field has been set. + +### GetAllOf + +`func (o *AccessEntityFilters) GetAllOf() []AccessEntityFilters` + +GetAllOf returns the AllOf field if non-nil, zero value otherwise. + +### GetAllOfOk + +`func (o *AccessEntityFilters) GetAllOfOk() (*[]AccessEntityFilters, bool)` + +GetAllOfOk returns a tuple with the AllOf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllOf + +`func (o *AccessEntityFilters) SetAllOf(v []AccessEntityFilters)` + +SetAllOf sets AllOf field to given value. + +### HasAllOf + +`func (o *AccessEntityFilters) HasAllOf() bool` + +HasAllOf returns a boolean if a field has been set. + +### GetAnyOf + +`func (o *AccessEntityFilters) GetAnyOf() []AccessEntityFilters` + +GetAnyOf returns the AnyOf field if non-nil, zero value otherwise. + +### GetAnyOfOk + +`func (o *AccessEntityFilters) GetAnyOfOk() (*[]AccessEntityFilters, bool)` + +GetAnyOfOk returns a tuple with the AnyOf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAnyOf + +`func (o *AccessEntityFilters) SetAnyOf(v []AccessEntityFilters)` + +SetAnyOf sets AnyOf field to given value. + +### HasAnyOf + +`func (o *AccessEntityFilters) HasAnyOf() bool` + +HasAnyOf returns a boolean if a field has been set. + +### GetNot + +`func (o *AccessEntityFilters) GetNot() map[string]interface{}` + +GetNot returns the Not field if non-nil, zero value otherwise. + +### GetNotOk + +`func (o *AccessEntityFilters) GetNotOk() (*map[string]interface{}, bool)` + +GetNotOk returns a tuple with the Not field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNot + +`func (o *AccessEntityFilters) SetNot(v map[string]interface{})` + +SetNot sets Not field to given value. + +### HasNot + +`func (o *AccessEntityFilters) HasNot() bool` + +HasNot 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/AccessRelationshipFilters.md b/docs/AccessRelationshipFilters.md new file mode 100644 index 0000000..84cc86f --- /dev/null +++ b/docs/AccessRelationshipFilters.md @@ -0,0 +1,82 @@ +# AccessRelationshipFilters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsAccessibleBy** | Pointer to [**AccessEntityFilters**](AccessEntityFilters.md) | Inbound-edge filter. The returned node must be accessible by at least one entity matching this filter. | [optional] +**HasAccessTo** | Pointer to [**AccessEntityFilters**](AccessEntityFilters.md) | Outbound-edge filter. The returned node must have access to at least one entity matching this filter. | [optional] + +## Methods + +### NewAccessRelationshipFilters + +`func NewAccessRelationshipFilters() *AccessRelationshipFilters` + +NewAccessRelationshipFilters instantiates a new AccessRelationshipFilters 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 + +### NewAccessRelationshipFiltersWithDefaults + +`func NewAccessRelationshipFiltersWithDefaults() *AccessRelationshipFilters` + +NewAccessRelationshipFiltersWithDefaults instantiates a new AccessRelationshipFilters 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 + +### GetIsAccessibleBy + +`func (o *AccessRelationshipFilters) GetIsAccessibleBy() AccessEntityFilters` + +GetIsAccessibleBy returns the IsAccessibleBy field if non-nil, zero value otherwise. + +### GetIsAccessibleByOk + +`func (o *AccessRelationshipFilters) GetIsAccessibleByOk() (*AccessEntityFilters, bool)` + +GetIsAccessibleByOk returns a tuple with the IsAccessibleBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsAccessibleBy + +`func (o *AccessRelationshipFilters) SetIsAccessibleBy(v AccessEntityFilters)` + +SetIsAccessibleBy sets IsAccessibleBy field to given value. + +### HasIsAccessibleBy + +`func (o *AccessRelationshipFilters) HasIsAccessibleBy() bool` + +HasIsAccessibleBy returns a boolean if a field has been set. + +### GetHasAccessTo + +`func (o *AccessRelationshipFilters) GetHasAccessTo() AccessEntityFilters` + +GetHasAccessTo returns the HasAccessTo field if non-nil, zero value otherwise. + +### GetHasAccessToOk + +`func (o *AccessRelationshipFilters) GetHasAccessToOk() (*AccessEntityFilters, bool)` + +GetHasAccessToOk returns a tuple with the HasAccessTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasAccessTo + +`func (o *AccessRelationshipFilters) SetHasAccessTo(v AccessEntityFilters)` + +SetHasAccessTo sets HasAccessTo field to given value. + +### HasHasAccessTo + +`func (o *AccessRelationshipFilters) HasHasAccessTo() bool` + +HasHasAccessTo 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/AccessRule.md b/docs/AccessRule.md new file mode 100644 index 0000000..08a07a6 --- /dev/null +++ b/docs/AccessRule.md @@ -0,0 +1,156 @@ +# AccessRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessRuleId** | **string** | The ID (group ID) of the access rule. | +**Name** | **string** | The name of the access rule. | +**Description** | **string** | A description of the group. | +**AdminOwnerId** | **string** | The ID of the owner of the group. | +**Status** | **string** | The status of the access rule. | +**RuleClauses** | [**RuleClauses**](RuleClauses.md) | | + +## Methods + +### NewAccessRule + +`func NewAccessRule(accessRuleId string, name string, description string, adminOwnerId string, status string, ruleClauses RuleClauses, ) *AccessRule` + +NewAccessRule instantiates a new AccessRule 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 + +### NewAccessRuleWithDefaults + +`func NewAccessRuleWithDefaults() *AccessRule` + +NewAccessRuleWithDefaults instantiates a new AccessRule 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 + +### GetAccessRuleId + +`func (o *AccessRule) GetAccessRuleId() string` + +GetAccessRuleId returns the AccessRuleId field if non-nil, zero value otherwise. + +### GetAccessRuleIdOk + +`func (o *AccessRule) GetAccessRuleIdOk() (*string, bool)` + +GetAccessRuleIdOk returns a tuple with the AccessRuleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessRuleId + +`func (o *AccessRule) SetAccessRuleId(v string)` + +SetAccessRuleId sets AccessRuleId field to given value. + + +### GetName + +`func (o *AccessRule) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AccessRule) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *AccessRule) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *AccessRule) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AccessRule) 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 *AccessRule) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetAdminOwnerId + +`func (o *AccessRule) GetAdminOwnerId() string` + +GetAdminOwnerId returns the AdminOwnerId field if non-nil, zero value otherwise. + +### GetAdminOwnerIdOk + +`func (o *AccessRule) GetAdminOwnerIdOk() (*string, bool)` + +GetAdminOwnerIdOk returns a tuple with the AdminOwnerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminOwnerId + +`func (o *AccessRule) SetAdminOwnerId(v string)` + +SetAdminOwnerId sets AdminOwnerId field to given value. + + +### GetStatus + +`func (o *AccessRule) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AccessRule) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *AccessRule) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetRuleClauses + +`func (o *AccessRule) GetRuleClauses() RuleClauses` + +GetRuleClauses returns the RuleClauses field if non-nil, zero value otherwise. + +### GetRuleClausesOk + +`func (o *AccessRule) GetRuleClausesOk() (*RuleClauses, bool)` + +GetRuleClausesOk returns a tuple with the RuleClauses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleClauses + +`func (o *AccessRule) SetRuleClauses(v RuleClauses)` + +SetRuleClauses sets RuleClauses 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/AccessRulesAPI.md b/docs/AccessRulesAPI.md index c4b89b6..1a9115a 100644 --- a/docs/AccessRulesAPI.md +++ b/docs/AccessRulesAPI.md @@ -4,14 +4,82 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CreateAccessRule**](AccessRulesAPI.md#CreateAccessRule) | **Post** /access-rules | [**GetAccessRule**](AccessRulesAPI.md#GetAccessRule) | **Get** /access-rules/{access_rule_id} | +[**GetAccessRules**](AccessRulesAPI.md#GetAccessRules) | **Get** /access-rules | [**UpdateAccessRule**](AccessRulesAPI.md#UpdateAccessRule) | **Put** /access-rules/{access_rule_id} | +## CreateAccessRule + +> AccessRule CreateAccessRule(ctx).UpdateAccessRuleInfo(updateAccessRuleInfo).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + updateAccessRuleInfo := *openapiclient.NewUpdateAccessRuleInfo("Platform Engineering", "This access rule represents all platform engineers in the company.", "7c86c85d-0651-43e2-a748-d69d658418e8", "ACTIVE", *openapiclient.NewRuleClauses(*openapiclient.NewRuleConjunction([]openapiclient.RuleDisjunction{*openapiclient.NewRuleDisjunction([]openapiclient.TagSelector{*openapiclient.NewTagSelector("Key_example", "Value_example", "ConnectionId_example")})}))) // UpdateAccessRuleInfo | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessRulesAPI.CreateAccessRule(context.Background()).UpdateAccessRuleInfo(updateAccessRuleInfo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRulesAPI.CreateAccessRule``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAccessRule`: AccessRule + fmt.Fprintf(os.Stdout, "Response from `AccessRulesAPI.CreateAccessRule`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAccessRuleRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **updateAccessRuleInfo** | [**UpdateAccessRuleInfo**](UpdateAccessRuleInfo.md) | | + +### Return type + +[**AccessRule**](AccessRule.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## GetAccessRule -> AccessRuleCondition GetAccessRule(ctx, accessRuleId).Execute() +> AccessRule GetAccessRule(ctx, accessRuleId).Execute() @@ -39,7 +107,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `AccessRulesAPI.GetAccessRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetAccessRule`: AccessRuleCondition + // response from `GetAccessRule`: AccessRule fmt.Fprintf(os.Stdout, "Response from `AccessRulesAPI.GetAccessRule`: %v\n", resp) } ``` @@ -63,7 +131,75 @@ Name | Type | Description | Notes ### Return type -[**AccessRuleCondition**](AccessRuleCondition.md) +[**AccessRule**](AccessRule.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) + + +## GetAccessRules + +> PaginatedAccessRulesList GetAccessRules(ctx).Cursor(cursor).PageSize(pageSize).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) + pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AccessRulesAPI.GetAccessRules(context.Background()).Cursor(cursor).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccessRulesAPI.GetAccessRules``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAccessRules`: PaginatedAccessRulesList + fmt.Fprintf(os.Stdout, "Response from `AccessRulesAPI.GetAccessRules`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAccessRulesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cursor** | **string** | The pagination cursor value. | + **pageSize** | **int32** | Number of results to return per page. Default is 200. | + +### Return type + +[**PaginatedAccessRulesList**](PaginatedAccessRulesList.md) ### Authorization @@ -81,7 +217,7 @@ Name | Type | Description | Notes ## UpdateAccessRule -> AccessRuleCondition UpdateAccessRule(ctx, accessRuleId).AccessRuleCondition(accessRuleCondition).Execute() +> AccessRule UpdateAccessRule(ctx, accessRuleId).UpdateAccessRuleInfo(updateAccessRuleInfo).Execute() @@ -101,16 +237,16 @@ import ( func main() { accessRuleId := "1b978423-db0a-4037-a4cf-f79c60cb67b3" // string | The access rule ID (group ID) of the access rule. - accessRuleCondition := *openapiclient.NewAccessRuleCondition("ACTIVE", *openapiclient.NewRuleClauses(*openapiclient.NewRuleConjunction([]openapiclient.RuleDisjunction{*openapiclient.NewRuleDisjunction([]openapiclient.TagSelector{*openapiclient.NewTagSelector("Key_example", "Value_example", "ConnectionId_example")})}))) // AccessRuleCondition | + updateAccessRuleInfo := *openapiclient.NewUpdateAccessRuleInfo("Platform Engineering", "This access rule represents all platform engineers in the company.", "7c86c85d-0651-43e2-a748-d69d658418e8", "ACTIVE", *openapiclient.NewRuleClauses(*openapiclient.NewRuleConjunction([]openapiclient.RuleDisjunction{*openapiclient.NewRuleDisjunction([]openapiclient.TagSelector{*openapiclient.NewTagSelector("Key_example", "Value_example", "ConnectionId_example")})}))) // UpdateAccessRuleInfo | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.AccessRulesAPI.UpdateAccessRule(context.Background(), accessRuleId).AccessRuleCondition(accessRuleCondition).Execute() + resp, r, err := apiClient.AccessRulesAPI.UpdateAccessRule(context.Background(), accessRuleId).UpdateAccessRuleInfo(updateAccessRuleInfo).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `AccessRulesAPI.UpdateAccessRule``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UpdateAccessRule`: AccessRuleCondition + // response from `UpdateAccessRule`: AccessRule fmt.Fprintf(os.Stdout, "Response from `AccessRulesAPI.UpdateAccessRule`: %v\n", resp) } ``` @@ -131,11 +267,11 @@ Other parameters are passed through a pointer to a apiUpdateAccessRuleRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accessRuleCondition** | [**AccessRuleCondition**](AccessRuleCondition.md) | | + **updateAccessRuleInfo** | [**UpdateAccessRuleInfo**](UpdateAccessRuleInfo.md) | | ### Return type -[**AccessRuleCondition**](AccessRuleCondition.md) +[**AccessRule**](AccessRule.md) ### Authorization diff --git a/docs/AddBundleGroupRequest.md b/docs/AddBundleGroupRequest.md index 0bc6257..15aac1a 100644 --- a/docs/AddBundleGroupRequest.md +++ b/docs/AddBundleGroupRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **GroupId** | **string** | The ID of the group to add. | +**AccessLevelRemoteId** | Pointer to **string** | 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. | [optional] +**AccessLevelName** | Pointer to **string** | The name of the access level to grant to this user. If omitted, the default access level name value (empty string) is used. | [optional] ## Methods @@ -45,6 +47,56 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAccessLevelRemoteId + +`func (o *AddBundleGroupRequest) GetAccessLevelRemoteId() string` + +GetAccessLevelRemoteId returns the AccessLevelRemoteId field if non-nil, zero value otherwise. + +### GetAccessLevelRemoteIdOk + +`func (o *AddBundleGroupRequest) 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 *AddBundleGroupRequest) SetAccessLevelRemoteId(v string)` + +SetAccessLevelRemoteId sets AccessLevelRemoteId field to given value. + +### HasAccessLevelRemoteId + +`func (o *AddBundleGroupRequest) HasAccessLevelRemoteId() bool` + +HasAccessLevelRemoteId returns a boolean if a field has been set. + +### GetAccessLevelName + +`func (o *AddBundleGroupRequest) GetAccessLevelName() string` + +GetAccessLevelName returns the AccessLevelName field if non-nil, zero value otherwise. + +### GetAccessLevelNameOk + +`func (o *AddBundleGroupRequest) 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 *AddBundleGroupRequest) SetAccessLevelName(v string)` + +SetAccessLevelName sets AccessLevelName field to given value. + +### HasAccessLevelName + +`func (o *AddBundleGroupRequest) HasAccessLevelName() bool` + +HasAccessLevelName 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/ApiAccessLevelEnum.md b/docs/ApiAccessLevelEnum.md new file mode 100644 index 0000000..4437821 --- /dev/null +++ b/docs/ApiAccessLevelEnum.md @@ -0,0 +1,13 @@ +# ApiAccessLevelEnum + +## Enum + + +* `READ_ONLY` (value: `"READ_ONLY"`) + +* `FULL_ACCESS` (value: `"FULL_ACCESS"`) + + +[[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/AppTypeEnum.md b/docs/AppTypeEnum.md index bf0e7ad..78bdbe2 100644 --- a/docs/AppTypeEnum.md +++ b/docs/AppTypeEnum.md @@ -5,14 +5,26 @@ * `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"`) +* `CUSTOM_CONNECTOR` (value: `"CUSTOM_CONNECTOR"`) + +* `DATABRICKS` (value: `"DATABRICKS"`) + +* `DATASTAX_ASTRA` (value: `"DATASTAX_ASTRA"`) + * `DUO` (value: `"DUO"`) * `GCP` (value: `"GCP"`) @@ -25,6 +37,10 @@ * `GOOGLE_WORKSPACE` (value: `"GOOGLE_WORKSPACE"`) +* `ILEVEL` (value: `"ILEVEL"`) + +* `INCIDENTIO` (value: `"INCIDENTIO"`) + * `LDAP` (value: `"LDAP"`) * `MARIADB` (value: `"MARIADB"`) @@ -35,18 +51,30 @@ * `MYSQL` (value: `"MYSQL"`) +* `NETSUITE` (value: `"NETSUITE"`) + +* `DATADOG` (value: `"DATADOG"`) + * `OKTA_DIRECTORY` (value: `"OKTA_DIRECTORY"`) +* `OPENAI_PLATFORM` (value: `"OPENAI_PLATFORM"`) + * `OPAL` (value: `"OPAL"`) * `PAGERDUTY` (value: `"PAGERDUTY"`) * `SALESFORCE` (value: `"SALESFORCE"`) +* `SNOWFLAKE` (value: `"SNOWFLAKE"`) + +* `SLACK` (value: `"SLACK"`) + * `TAILSCALE` (value: `"TAILSCALE"`) * `TELEPORT` (value: `"TELEPORT"`) +* `TWINGATE` (value: `"TWINGATE"`) + * `WORKDAY` (value: `"WORKDAY"`) diff --git a/docs/ApproveRequest200Response.md b/docs/ApproveRequest200Response.md new file mode 100644 index 0000000..cb3e4b9 --- /dev/null +++ b/docs/ApproveRequest200Response.md @@ -0,0 +1,56 @@ +# ApproveRequest200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Request** | Pointer to [**Request**](Request.md) | | [optional] + +## Methods + +### NewApproveRequest200Response + +`func NewApproveRequest200Response() *ApproveRequest200Response` + +NewApproveRequest200Response instantiates a new ApproveRequest200Response 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 + +### NewApproveRequest200ResponseWithDefaults + +`func NewApproveRequest200ResponseWithDefaults() *ApproveRequest200Response` + +NewApproveRequest200ResponseWithDefaults instantiates a new ApproveRequest200Response 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 + +### GetRequest + +`func (o *ApproveRequest200Response) GetRequest() Request` + +GetRequest returns the Request field if non-nil, zero value otherwise. + +### GetRequestOk + +`func (o *ApproveRequest200Response) GetRequestOk() (*Request, bool)` + +GetRequestOk returns a tuple with the Request field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequest + +`func (o *ApproveRequest200Response) SetRequest(v Request)` + +SetRequest sets Request field to given value. + +### HasRequest + +`func (o *ApproveRequest200Response) HasRequest() bool` + +HasRequest 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/ApproveRequestRequest.md b/docs/ApproveRequestRequest.md new file mode 100644 index 0000000..d68dd0c --- /dev/null +++ b/docs/ApproveRequestRequest.md @@ -0,0 +1,77 @@ +# ApproveRequestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Level** | [**RequestApprovalEnum**](RequestApprovalEnum.md) | | +**Comment** | Pointer to **string** | Optional comment for the approval | [optional] + +## Methods + +### NewApproveRequestRequest + +`func NewApproveRequestRequest(level RequestApprovalEnum, ) *ApproveRequestRequest` + +NewApproveRequestRequest instantiates a new ApproveRequestRequest 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 + +### NewApproveRequestRequestWithDefaults + +`func NewApproveRequestRequestWithDefaults() *ApproveRequestRequest` + +NewApproveRequestRequestWithDefaults instantiates a new ApproveRequestRequest 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 + +### GetLevel + +`func (o *ApproveRequestRequest) GetLevel() RequestApprovalEnum` + +GetLevel returns the Level field if non-nil, zero value otherwise. + +### GetLevelOk + +`func (o *ApproveRequestRequest) 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 *ApproveRequestRequest) SetLevel(v RequestApprovalEnum)` + +SetLevel sets Level field to given value. + + +### GetComment + +`func (o *ApproveRequestRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *ApproveRequestRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *ApproveRequestRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *ApproveRequestRequest) HasComment() bool` + +HasComment 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/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/BundleGroup.md b/docs/BundleGroup.md index 1ff2dc2..278a8d0 100644 --- a/docs/BundleGroup.md +++ b/docs/BundleGroup.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **BundleId** | Pointer to **string** | The ID of the bundle containing the group. | [optional] [readonly] **GroupId** | Pointer to **string** | The ID of the group within a bundle. | [optional] [readonly] +**AccessLevelName** | Pointer to **string** | The access level of the group within a bundle. | [optional] +**AccessLevelRemoteId** | Pointer to **string** | The remote ID of the access level of the group within a bundle. | [optional] ## Methods @@ -76,6 +78,56 @@ SetGroupId sets GroupId field to given value. HasGroupId returns a boolean if a field has been set. +### GetAccessLevelName + +`func (o *BundleGroup) GetAccessLevelName() string` + +GetAccessLevelName returns the AccessLevelName field if non-nil, zero value otherwise. + +### GetAccessLevelNameOk + +`func (o *BundleGroup) 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 *BundleGroup) SetAccessLevelName(v string)` + +SetAccessLevelName sets AccessLevelName field to given value. + +### HasAccessLevelName + +`func (o *BundleGroup) HasAccessLevelName() bool` + +HasAccessLevelName returns a boolean if a field has been set. + +### GetAccessLevelRemoteId + +`func (o *BundleGroup) GetAccessLevelRemoteId() string` + +GetAccessLevelRemoteId returns the AccessLevelRemoteId field if non-nil, zero value otherwise. + +### GetAccessLevelRemoteIdOk + +`func (o *BundleGroup) 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 *BundleGroup) SetAccessLevelRemoteId(v string)` + +SetAccessLevelRemoteId sets AccessLevelRemoteId field to given value. + +### HasAccessLevelRemoteId + +`func (o *BundleGroup) 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/BundlesAPI.md b/docs/BundlesAPI.md index 685d396..f45f077 100644 --- a/docs/BundlesAPI.md +++ b/docs/BundlesAPI.md @@ -8,11 +8,11 @@ Method | HTTP request | Description [**AddBundleResource**](BundlesAPI.md#AddBundleResource) | **Post** /bundles/{bundle_id}/resources | [**CreateBundle**](BundlesAPI.md#CreateBundle) | **Post** /bundles | [**DeleteBundle**](BundlesAPI.md#DeleteBundle) | **Delete** /bundles/{bundle_id} | -[**GetBundle**](BundlesAPI.md#GetBundle) | **Get** /bundles/{bundle_id} | +[**GetBundle**](BundlesAPI.md#GetBundle) | **Get** /bundles/{bundle_id} | Get bundle by ID [**GetBundleGroups**](BundlesAPI.md#GetBundleGroups) | **Get** /bundles/{bundle_id}/groups | [**GetBundleResources**](BundlesAPI.md#GetBundleResources) | **Get** /bundles/{bundle_id}/resources | [**GetBundleVisibility**](BundlesAPI.md#GetBundleVisibility) | **Get** /bundles/{bundle_id}/visibility | -[**GetBundles**](BundlesAPI.md#GetBundles) | **Get** /bundles | +[**GetBundles**](BundlesAPI.md#GetBundles) | **Get** /bundles | Get bundles [**RemoveBundleGroup**](BundlesAPI.md#RemoveBundleGroup) | **Delete** /bundles/{bundle_id}/groups/{group_id} | [**RemoveBundleResource**](BundlesAPI.md#RemoveBundleResource) | **Delete** /bundles/{bundle_id}/resources/{resource_id} | [**SetBundleVisibility**](BundlesAPI.md#SetBundleVisibility) | **Put** /bundles/{bundle_id}/visibility | @@ -302,7 +302,7 @@ Name | Type | Description | Notes > Bundle GetBundle(ctx, bundleId).Execute() - +Get bundle by ID @@ -590,7 +590,7 @@ Name | Type | Description | Notes > PaginatedBundleList GetBundles(ctx).PageSize(pageSize).Cursor(cursor).Contains(contains).Execute() - +Get bundles @@ -658,7 +658,7 @@ Name | Type | Description | Notes ## RemoveBundleGroup -> RemoveBundleGroup(ctx, bundleId, groupId).Execute() +> RemoveBundleGroup(ctx, bundleId, groupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() @@ -679,10 +679,11 @@ import ( func main() { bundleId := "32acc112-21ff-4669-91c2-21e27683eaa1" // string | The ID of the bundle. groupId := "72e75a6f-7183-48c5-94ff-6013f213314b" // string | The ID of the group to remove. + accessLevelRemoteId := "arn:aws:iam::590304332660:role/AdministratorAccess" // string | The remote ID of the access level to remove. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.BundlesAPI.RemoveBundleGroup(context.Background(), bundleId, groupId).Execute() + r, err := apiClient.BundlesAPI.RemoveBundleGroup(context.Background(), bundleId, groupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `BundlesAPI.RemoveBundleGroup``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -708,6 +709,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **accessLevelRemoteId** | **string** | The remote ID of the access level to remove. | ### Return type diff --git a/docs/ConfigurationTemplate.md b/docs/ConfigurationTemplate.md index a82de93..9976d2b 100644 --- a/docs/ConfigurationTemplate.md +++ b/docs/ConfigurationTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **ConfigurationTemplateId** | Pointer to **string** | The ID of the configuration template. | [optional] **Name** | Pointer to **string** | The name of the configuration template. | [optional] **AdminOwnerId** | Pointer to **string** | The ID of the owner of the configuration template. | [optional] -**Visibility** | Pointer to [**VisibilityInfo**](VisibilityInfo.md) | | [optional] +**Visibility** | Pointer to [**VisibilityInfo**](VisibilityInfo.md) | The visibility info of the configuration template. | [optional] **LinkedAuditMessageChannelIds** | Pointer to **[]string** | The IDs of the audit message channels linked to the configuration template. | [optional] **RequestConfigurationId** | Pointer to **string** | The ID of the request configuration linked to the configuration template. | [optional] **MemberOncallScheduleIds** | Pointer to **[]string** | The IDs of the on-call schedules linked to the configuration template. | [optional] diff --git a/docs/CreateConfigurationTemplateInfo.md b/docs/CreateConfigurationTemplateInfo.md index 9606ed2..46ce51e 100644 --- a/docs/CreateConfigurationTemplateInfo.md +++ b/docs/CreateConfigurationTemplateInfo.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AdminOwnerId** | **string** | The ID of the owner of the configuration template. | -**Visibility** | [**VisibilityInfo**](VisibilityInfo.md) | | +**Visibility** | [**VisibilityInfo**](VisibilityInfo.md) | The visibility info of the configuration template. | **LinkedAuditMessageChannelIds** | Pointer to **[]string** | The IDs of the audit message channels linked to the configuration template. | [optional] **MemberOncallScheduleIds** | Pointer to **[]string** | The IDs of the on-call schedules linked to the configuration template. | [optional] **BreakGlassUserIds** | Pointer to **[]string** | The IDs of the break glass users linked to the configuration template. | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes **RequireMfaToConnect** | **bool** | A bool representing whether or not to require MFA to connect to resources associated with this configuration template. | **Name** | **string** | The name of the configuration template. | **RequestConfigurations** | Pointer to [**[]RequestConfiguration**](RequestConfiguration.md) | The request configuration list of the configuration template. If not provided, the default request configuration will be used. | [optional] -**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | | [optional] +**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | The request configuration list of the configuration template. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. | [optional] **TicketPropagation** | Pointer to [**TicketPropagationConfiguration**](TicketPropagationConfiguration.md) | | [optional] **CustomRequestNotification** | Pointer to **string** | Custom request notification sent upon request approval for this configuration template. | [optional] diff --git a/docs/CreateDelegationRequest.md b/docs/CreateDelegationRequest.md new file mode 100644 index 0000000..45795f0 --- /dev/null +++ b/docs/CreateDelegationRequest.md @@ -0,0 +1,135 @@ +# CreateDelegationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DelegatorUserId** | **string** | The ID of the user delegating their access review requests. | +**DelegateUserId** | **string** | The ID of the user being delegated to. | +**StartTime** | **time.Time** | The start time of the delegation. | +**EndTime** | **time.Time** | The end time of the delegation. | +**Reason** | **string** | The reason for the delegation. | + +## Methods + +### NewCreateDelegationRequest + +`func NewCreateDelegationRequest(delegatorUserId string, delegateUserId string, startTime time.Time, endTime time.Time, reason string, ) *CreateDelegationRequest` + +NewCreateDelegationRequest instantiates a new CreateDelegationRequest 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 + +### NewCreateDelegationRequestWithDefaults + +`func NewCreateDelegationRequestWithDefaults() *CreateDelegationRequest` + +NewCreateDelegationRequestWithDefaults instantiates a new CreateDelegationRequest 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 + +### GetDelegatorUserId + +`func (o *CreateDelegationRequest) GetDelegatorUserId() string` + +GetDelegatorUserId returns the DelegatorUserId field if non-nil, zero value otherwise. + +### GetDelegatorUserIdOk + +`func (o *CreateDelegationRequest) GetDelegatorUserIdOk() (*string, bool)` + +GetDelegatorUserIdOk returns a tuple with the DelegatorUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegatorUserId + +`func (o *CreateDelegationRequest) SetDelegatorUserId(v string)` + +SetDelegatorUserId sets DelegatorUserId field to given value. + + +### GetDelegateUserId + +`func (o *CreateDelegationRequest) GetDelegateUserId() string` + +GetDelegateUserId returns the DelegateUserId field if non-nil, zero value otherwise. + +### GetDelegateUserIdOk + +`func (o *CreateDelegationRequest) GetDelegateUserIdOk() (*string, bool)` + +GetDelegateUserIdOk returns a tuple with the DelegateUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegateUserId + +`func (o *CreateDelegationRequest) SetDelegateUserId(v string)` + +SetDelegateUserId sets DelegateUserId field to given value. + + +### GetStartTime + +`func (o *CreateDelegationRequest) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *CreateDelegationRequest) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *CreateDelegationRequest) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *CreateDelegationRequest) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *CreateDelegationRequest) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *CreateDelegationRequest) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + + +### GetReason + +`func (o *CreateDelegationRequest) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *CreateDelegationRequest) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *CreateDelegationRequest) SetReason(v string)` + +SetReason sets Reason 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/CreateEventStreamInfo.md b/docs/CreateEventStreamInfo.md new file mode 100644 index 0000000..e56582e --- /dev/null +++ b/docs/CreateEventStreamInfo.md @@ -0,0 +1,124 @@ +# CreateEventStreamInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name for the event stream. | +**ConnectionType** | [**EventStreamConnectionTypeEnum**](EventStreamConnectionTypeEnum.md) | | +**WebhookUrl** | Pointer to **string** | The webhook URL. Required when connection_type is WEBHOOK. | [optional] +**Credentials** | Pointer to [**WebhookCredentials**](WebhookCredentials.md) | | [optional] + +## Methods + +### NewCreateEventStreamInfo + +`func NewCreateEventStreamInfo(name string, connectionType EventStreamConnectionTypeEnum, ) *CreateEventStreamInfo` + +NewCreateEventStreamInfo instantiates a new CreateEventStreamInfo 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 + +### NewCreateEventStreamInfoWithDefaults + +`func NewCreateEventStreamInfoWithDefaults() *CreateEventStreamInfo` + +NewCreateEventStreamInfoWithDefaults instantiates a new CreateEventStreamInfo 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 + +### GetName + +`func (o *CreateEventStreamInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateEventStreamInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateEventStreamInfo) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConnectionType + +`func (o *CreateEventStreamInfo) GetConnectionType() EventStreamConnectionTypeEnum` + +GetConnectionType returns the ConnectionType field if non-nil, zero value otherwise. + +### GetConnectionTypeOk + +`func (o *CreateEventStreamInfo) GetConnectionTypeOk() (*EventStreamConnectionTypeEnum, bool)` + +GetConnectionTypeOk returns a tuple with the ConnectionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionType + +`func (o *CreateEventStreamInfo) SetConnectionType(v EventStreamConnectionTypeEnum)` + +SetConnectionType sets ConnectionType field to given value. + + +### GetWebhookUrl + +`func (o *CreateEventStreamInfo) GetWebhookUrl() string` + +GetWebhookUrl returns the WebhookUrl field if non-nil, zero value otherwise. + +### GetWebhookUrlOk + +`func (o *CreateEventStreamInfo) GetWebhookUrlOk() (*string, bool)` + +GetWebhookUrlOk returns a tuple with the WebhookUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebhookUrl + +`func (o *CreateEventStreamInfo) SetWebhookUrl(v string)` + +SetWebhookUrl sets WebhookUrl field to given value. + +### HasWebhookUrl + +`func (o *CreateEventStreamInfo) HasWebhookUrl() bool` + +HasWebhookUrl returns a boolean if a field has been set. + +### GetCredentials + +`func (o *CreateEventStreamInfo) GetCredentials() WebhookCredentials` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *CreateEventStreamInfo) GetCredentialsOk() (*WebhookCredentials, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *CreateEventStreamInfo) SetCredentials(v WebhookCredentials)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *CreateEventStreamInfo) HasCredentials() bool` + +HasCredentials 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/CreateIdpGroupMappingRequest.md b/docs/CreateIdpGroupMappingRequest.md new file mode 100644 index 0000000..335217c --- /dev/null +++ b/docs/CreateIdpGroupMappingRequest.md @@ -0,0 +1,82 @@ +# CreateIdpGroupMappingRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alias** | Pointer to **string** | Optional alias for the group mapping | [optional] +**HiddenFromEndUser** | Pointer to **bool** | 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 | [optional] + +## Methods + +### NewCreateIdpGroupMappingRequest + +`func NewCreateIdpGroupMappingRequest() *CreateIdpGroupMappingRequest` + +NewCreateIdpGroupMappingRequest instantiates a new CreateIdpGroupMappingRequest 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 + +### NewCreateIdpGroupMappingRequestWithDefaults + +`func NewCreateIdpGroupMappingRequestWithDefaults() *CreateIdpGroupMappingRequest` + +NewCreateIdpGroupMappingRequestWithDefaults instantiates a new CreateIdpGroupMappingRequest 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 + +### GetAlias + +`func (o *CreateIdpGroupMappingRequest) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *CreateIdpGroupMappingRequest) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *CreateIdpGroupMappingRequest) SetAlias(v string)` + +SetAlias sets Alias field to given value. + +### HasAlias + +`func (o *CreateIdpGroupMappingRequest) HasAlias() bool` + +HasAlias returns a boolean if a field has been set. + +### GetHiddenFromEndUser + +`func (o *CreateIdpGroupMappingRequest) GetHiddenFromEndUser() bool` + +GetHiddenFromEndUser returns the HiddenFromEndUser field if non-nil, zero value otherwise. + +### GetHiddenFromEndUserOk + +`func (o *CreateIdpGroupMappingRequest) GetHiddenFromEndUserOk() (*bool, bool)` + +GetHiddenFromEndUserOk returns a tuple with the HiddenFromEndUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHiddenFromEndUser + +`func (o *CreateIdpGroupMappingRequest) SetHiddenFromEndUser(v bool)` + +SetHiddenFromEndUser sets HiddenFromEndUser field to given value. + +### HasHiddenFromEndUser + +`func (o *CreateIdpGroupMappingRequest) HasHiddenFromEndUser() bool` + +HasHiddenFromEndUser 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/CreateRequestCommentRequest.md b/docs/CreateRequestCommentRequest.md new file mode 100644 index 0000000..2220ed7 --- /dev/null +++ b/docs/CreateRequestCommentRequest.md @@ -0,0 +1,51 @@ +# CreateRequestCommentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | **string** | comment | + +## Methods + +### NewCreateRequestCommentRequest + +`func NewCreateRequestCommentRequest(comment string, ) *CreateRequestCommentRequest` + +NewCreateRequestCommentRequest instantiates a new CreateRequestCommentRequest 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 + +### NewCreateRequestCommentRequestWithDefaults + +`func NewCreateRequestCommentRequestWithDefaults() *CreateRequestCommentRequest` + +NewCreateRequestCommentRequestWithDefaults instantiates a new CreateRequestCommentRequest 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 + +### GetComment + +`func (o *CreateRequestCommentRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *CreateRequestCommentRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *CreateRequestCommentRequest) SetComment(v string)` + +SetComment sets Comment 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/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/Delegation.md b/docs/Delegation.md new file mode 100644 index 0000000..aa82e5f --- /dev/null +++ b/docs/Delegation.md @@ -0,0 +1,198 @@ +# Delegation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the delegation. | +**DelegatorUserId** | **string** | The ID of the user delegating their access review requests. | +**DelegateUserId** | **string** | The ID of the user being delegated to. | +**StartTime** | **time.Time** | The start time of the delegation. | +**EndTime** | **time.Time** | The end time of the delegation. | +**Reason** | **string** | The reason for the delegation. | +**CreatedAt** | **time.Time** | The creation time of the delegation. | +**UpdatedAt** | **time.Time** | The last updated time of the delegation. | + +## Methods + +### NewDelegation + +`func NewDelegation(id string, delegatorUserId string, delegateUserId string, startTime time.Time, endTime time.Time, reason string, createdAt time.Time, updatedAt time.Time, ) *Delegation` + +NewDelegation instantiates a new Delegation 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 + +### NewDelegationWithDefaults + +`func NewDelegationWithDefaults() *Delegation` + +NewDelegationWithDefaults instantiates a new Delegation 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 + +### GetId + +`func (o *Delegation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Delegation) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Delegation) SetId(v string)` + +SetId sets Id field to given value. + + +### GetDelegatorUserId + +`func (o *Delegation) GetDelegatorUserId() string` + +GetDelegatorUserId returns the DelegatorUserId field if non-nil, zero value otherwise. + +### GetDelegatorUserIdOk + +`func (o *Delegation) GetDelegatorUserIdOk() (*string, bool)` + +GetDelegatorUserIdOk returns a tuple with the DelegatorUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegatorUserId + +`func (o *Delegation) SetDelegatorUserId(v string)` + +SetDelegatorUserId sets DelegatorUserId field to given value. + + +### GetDelegateUserId + +`func (o *Delegation) GetDelegateUserId() string` + +GetDelegateUserId returns the DelegateUserId field if non-nil, zero value otherwise. + +### GetDelegateUserIdOk + +`func (o *Delegation) GetDelegateUserIdOk() (*string, bool)` + +GetDelegateUserIdOk returns a tuple with the DelegateUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegateUserId + +`func (o *Delegation) SetDelegateUserId(v string)` + +SetDelegateUserId sets DelegateUserId field to given value. + + +### GetStartTime + +`func (o *Delegation) GetStartTime() time.Time` + +GetStartTime returns the StartTime field if non-nil, zero value otherwise. + +### GetStartTimeOk + +`func (o *Delegation) GetStartTimeOk() (*time.Time, bool)` + +GetStartTimeOk returns a tuple with the StartTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartTime + +`func (o *Delegation) SetStartTime(v time.Time)` + +SetStartTime sets StartTime field to given value. + + +### GetEndTime + +`func (o *Delegation) GetEndTime() time.Time` + +GetEndTime returns the EndTime field if non-nil, zero value otherwise. + +### GetEndTimeOk + +`func (o *Delegation) GetEndTimeOk() (*time.Time, bool)` + +GetEndTimeOk returns a tuple with the EndTime field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndTime + +`func (o *Delegation) SetEndTime(v time.Time)` + +SetEndTime sets EndTime field to given value. + + +### GetReason + +`func (o *Delegation) GetReason() string` + +GetReason returns the Reason field if non-nil, zero value otherwise. + +### GetReasonOk + +`func (o *Delegation) GetReasonOk() (*string, bool)` + +GetReasonOk returns a tuple with the Reason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReason + +`func (o *Delegation) SetReason(v string)` + +SetReason sets Reason field to given value. + + +### GetCreatedAt + +`func (o *Delegation) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Delegation) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Delegation) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *Delegation) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Delegation) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Delegation) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt 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/DelegationsAPI.md b/docs/DelegationsAPI.md new file mode 100644 index 0000000..45dfcb9 --- /dev/null +++ b/docs/DelegationsAPI.md @@ -0,0 +1,289 @@ +# \DelegationsAPI + +All URIs are relative to *https://api.opal.dev/v1* + +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} | Get delegation by ID +[**GetDelegations**](DelegationsAPI.md#GetDelegations) | **Get** /delegations | Get delegations + + + +## CreateDelegation + +> Delegation CreateDelegation(ctx).CreateDelegationRequest(createDelegationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + createDelegationRequest := *openapiclient.NewCreateDelegationRequest("123e4567-e89b-12d3-a456-426614174000", "7c86c85d-0651-43e2-a748-d69d658418e8", time.Now(), time.Now(), "I need to be out of the office") // CreateDelegationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DelegationsAPI.CreateDelegation(context.Background()).CreateDelegationRequest(createDelegationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationsAPI.CreateDelegation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateDelegation`: Delegation + fmt.Fprintf(os.Stdout, "Response from `DelegationsAPI.CreateDelegation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateDelegationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createDelegationRequest** | [**CreateDelegationRequest**](CreateDelegationRequest.md) | | + +### Return type + +[**Delegation**](Delegation.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + +## DeleteDelegation + +> DeleteDelegation(ctx, delegationId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + delegationId := "32acc112-21ff-4669-91c2-21e27683eaa1" // string | The ID of the delegation to remove. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DelegationsAPI.DeleteDelegation(context.Background(), delegationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationsAPI.DeleteDelegation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**delegationId** | **string** | The ID of the delegation to remove. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteDelegationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[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) + + +## GetDelegation + +> Delegation GetDelegation(ctx, delegationId).Execute() + +Get delegation by ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + delegationId := "32acc112-21ff-4669-91c2-21e27683eaa1" // string | The ID of the delegation to retrieve. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DelegationsAPI.GetDelegation(context.Background(), delegationId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationsAPI.GetDelegation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDelegation`: Delegation + fmt.Fprintf(os.Stdout, "Response from `DelegationsAPI.GetDelegation`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**delegationId** | **string** | The ID of the delegation to retrieve. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDelegationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Delegation**](Delegation.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) + + +## GetDelegations + +> PaginatedDelegationsList GetDelegations(ctx).DelegatorUserId(delegatorUserId).DelegateUserId(delegateUserId).Cursor(cursor).PageSize(pageSize).Execute() + +Get delegations + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + delegatorUserId := "29827fb8-f2dd-4e80-9576-28e31e9934ac" // string | The delegator user ID to filter delegations by the user delegating their access review requests. (optional) + delegateUserId := "29827fb8-f2dd-4e80-9576-28e31e9934ac" // string | The delegate user ID to filter delegations by the user being delegated to. (optional) + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | A cursor to indicate where to start fetching results. (optional) + pageSize := int32(200) // int32 | The maximum number of results to return per page. The default is 200. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DelegationsAPI.GetDelegations(context.Background()).DelegatorUserId(delegatorUserId).DelegateUserId(delegateUserId).Cursor(cursor).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationsAPI.GetDelegations``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetDelegations`: PaginatedDelegationsList + fmt.Fprintf(os.Stdout, "Response from `DelegationsAPI.GetDelegations`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetDelegationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **delegatorUserId** | **string** | The delegator user ID to filter delegations by the user delegating their access review requests. | + **delegateUserId** | **string** | The delegate user ID to filter delegations by the user being delegated to. | + **cursor** | **string** | A cursor to indicate where to start fetching results. | + **pageSize** | **int32** | The maximum number of results to return per page. The default is 200. | + +### Return type + +[**PaginatedDelegationsList**](PaginatedDelegationsList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/DenyRequestRequest.md b/docs/DenyRequestRequest.md new file mode 100644 index 0000000..4397217 --- /dev/null +++ b/docs/DenyRequestRequest.md @@ -0,0 +1,77 @@ +# DenyRequestRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | **string** | Comment for the denial | +**Level** | Pointer to [**RequestApprovalEnum**](RequestApprovalEnum.md) | | [optional] + +## Methods + +### NewDenyRequestRequest + +`func NewDenyRequestRequest(comment string, ) *DenyRequestRequest` + +NewDenyRequestRequest instantiates a new DenyRequestRequest 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 + +### NewDenyRequestRequestWithDefaults + +`func NewDenyRequestRequestWithDefaults() *DenyRequestRequest` + +NewDenyRequestRequestWithDefaults instantiates a new DenyRequestRequest 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 + +### GetComment + +`func (o *DenyRequestRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *DenyRequestRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *DenyRequestRequest) SetComment(v string)` + +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/EntityItemTypeEnum.md b/docs/EntityItemTypeEnum.md new file mode 100644 index 0000000..126f593 --- /dev/null +++ b/docs/EntityItemTypeEnum.md @@ -0,0 +1,177 @@ +# EntityItemTypeEnum + +## Enum + + +* `USER` (value: `"USER"`) + +* `SERVICE_USER` (value: `"SERVICE_USER"`) + +* `ACTIVE_DIRECTORY_GROUP` (value: `"ACTIVE_DIRECTORY_GROUP"`) + +* `AWS_SSO_GROUP` (value: `"AWS_SSO_GROUP"`) + +* `DUO_GROUP` (value: `"DUO_GROUP"`) + +* `GIT_HUB_TEAM` (value: `"GIT_HUB_TEAM"`) + +* `GIT_LAB_GROUP` (value: `"GIT_LAB_GROUP"`) + +* `GOOGLE_GROUPS_GROUP` (value: `"GOOGLE_GROUPS_GROUP"`) + +* `GOOGLE_GROUPS_GKE_GROUP` (value: `"GOOGLE_GROUPS_GKE_GROUP"`) + +* `LDAP_GROUP` (value: `"LDAP_GROUP"`) + +* `OKTA_GROUP` (value: `"OKTA_GROUP"`) + +* `OKTA_GROUP_RULE` (value: `"OKTA_GROUP_RULE"`) + +* `TAILSCALE_GROUP` (value: `"TAILSCALE_GROUP"`) + +* `TWINGATE_GROUP` (value: `"TWINGATE_GROUP"`) + +* `TWINGATE_GROUP_SYNCED` (value: `"TWINGATE_GROUP_SYNCED"`) + +* `OPAL_GROUP` (value: `"OPAL_GROUP"`) + +* `OPAL_ACCESS_RULE` (value: `"OPAL_ACCESS_RULE"`) + +* `AZURE_AD_SECURITY_GROUP` (value: `"AZURE_AD_SECURITY_GROUP"`) + +* `AZURE_AD_MICROSOFT_365_GROUP` (value: `"AZURE_AD_MICROSOFT_365_GROUP"`) + +* `CONNECTOR_GROUP` (value: `"CONNECTOR_GROUP"`) + +* `SNOWFLAKE_ROLE` (value: `"SNOWFLAKE_ROLE"`) + +* `WORKDAY_USER_SECURITY_GROUP` (value: `"WORKDAY_USER_SECURITY_GROUP"`) + +* `DATABRICKS_ACCOUNT_GROUP` (value: `"DATABRICKS_ACCOUNT_GROUP"`) + +* `AWS_IAM_ROLE` (value: `"AWS_IAM_ROLE"`) + +* `AWS_EC2_INSTANCE` (value: `"AWS_EC2_INSTANCE"`) + +* `AWS_EKS_CLUSTER` (value: `"AWS_EKS_CLUSTER"`) + +* `AWS_RDS_POSTGRES_INSTANCE` (value: `"AWS_RDS_POSTGRES_INSTANCE"`) + +* `AWS_RDS_POSTGRES_CLUSTER` (value: `"AWS_RDS_POSTGRES_CLUSTER"`) + +* `AWS_RDS_MYSQL_INSTANCE` (value: `"AWS_RDS_MYSQL_INSTANCE"`) + +* `AWS_RDS_MYSQL_CLUSTER` (value: `"AWS_RDS_MYSQL_CLUSTER"`) + +* `AWS_ACCOUNT` (value: `"AWS_ACCOUNT"`) + +* `AWS_SSO_PERMISSION_SET` (value: `"AWS_SSO_PERMISSION_SET"`) + +* `AZURE_MANAGEMENT_GROUP` (value: `"AZURE_MANAGEMENT_GROUP"`) + +* `AZURE_RESOURCE_GROUP` (value: `"AZURE_RESOURCE_GROUP"`) + +* `AZURE_SUBSCRIPTION` (value: `"AZURE_SUBSCRIPTION"`) + +* `AZURE_VIRTUAL_MACHINE` (value: `"AZURE_VIRTUAL_MACHINE"`) + +* `AZURE_STORAGE_ACCOUNT` (value: `"AZURE_STORAGE_ACCOUNT"`) + +* `AZURE_STORAGE_CONTAINER` (value: `"AZURE_STORAGE_CONTAINER"`) + +* `AZURE_SQL_SERVER` (value: `"AZURE_SQL_SERVER"`) + +* `AZURE_SQL_MANAGED_INSTANCE` (value: `"AZURE_SQL_MANAGED_INSTANCE"`) + +* `AZURE_SQL_DATABASE` (value: `"AZURE_SQL_DATABASE"`) + +* `AZURE_SQL_MANAGED_DATABASE` (value: `"AZURE_SQL_MANAGED_DATABASE"`) + +* `AZURE_USER_ASSIGNED_MANAGED_IDENTITY` (value: `"AZURE_USER_ASSIGNED_MANAGED_Identity"`) + +* `AZURE_ENTRA_ID_ROLE` (value: `"AZURE_ENTRA_ID_ROLE"`) + +* `AZURE_ENTERPRISE_APP` (value: `"AZURE_ENTERPRISE_APP"`) + +* `CUSTOM` (value: `"CUSTOM"`) + +* `CUSTOM_CONNECTOR` (value: `"CUSTOM_CONNECTOR"`) + +* `GCP_ORGANIZATION` (value: `"GCP_ORGANIZATION"`) + +* `GCP_BUCKET` (value: `"GCP_BUCKET"`) + +* `GCP_COMPUTE_INSTANCE` (value: `"GCP_COMPUTE_INSTANCE"`) + +* `GCP_BIG_QUERY_DATASET` (value: `"GCP_BIG_QUERY_DATASET"`) + +* `GCP_BIG_QUERY_TABLE` (value: `"GCP_BIG_QUERY_TABLE"`) + +* `GCP_FOLDER` (value: `"GCP_FOLDER"`) + +* `GCP_GKE_CLUSTER` (value: `"GCP_GKE_CLUSTER"`) + +* `GCP_PROJECT` (value: `"GCP_PROJECT"`) + +* `GCP_CLOUD_SQL_POSTGRES_INSTANCE` (value: `"GCP_CLOUD_SQL_POSTGRES_INSTANCE"`) + +* `GCP_CLOUD_SQL_MYSQL_INSTANCE` (value: `"GCP_CLOUD_SQL_MYSQL_INSTANCE"`) + +* `GCP_SERVICE_ACCOUNT` (value: `"GCP_SERVICE_ACCOUNT"`) + +* `GIT_HUB_REPO` (value: `"GIT_HUB_REPO"`) + +* `GIT_HUB_ORG_ROLE` (value: `"GIT_HUB_ORG_ROLE"`) + +* `GIT_LAB_PROJECT` (value: `"GIT_LAB_PROJECT"`) + +* `GOOGLE_WORKSPACE_ROLE` (value: `"GOOGLE_WORKSPACE_ROLE"`) + +* `MONGO_INSTANCE` (value: `"MONGO_INSTANCE"`) + +* `MONGO_ATLAS_INSTANCE` (value: `"MONGO_ATLAS_INSTANCE"`) + +* `OKTA_APP` (value: `"OKTA_APP"`) + +* `OKTA_ROLE` (value: `"OKTA_ROLE"`) + +* `OPAL_ROLE` (value: `"OPAL_ROLE"`) + +* `OPAL_SCOPED_ROLE` (value: `"OPAL_SCOPED_ROLE"`) + +* `PAGERDUTY_ROLE` (value: `"PAGERDUTY_ROLE"`) + +* `TAILSCALE_SSH` (value: `"TAILSCALE_SSH"`) + +* `TWINGATE_RESOURCE` (value: `"TWINGATE_RESOURCE"`) + +* `SALESFORCE_PERMISSION_SET` (value: `"SALESFORCE_PERMISSION_SET"`) + +* `SALESFORCE_PROFILE` (value: `"SALESFORCE_PROFILE"`) + +* `SALESFORCE_ROLE` (value: `"SALESFORCE_ROLE"`) + +* `SNOWFLAKE_DATABASE` (value: `"SNOWFLAKE_DATABASE"`) + +* `SNOWFLAKE_SCHEMA` (value: `"SNOWFLAKE_SCHEMA"`) + +* `SNOWFLAKE_TABLE` (value: `"SNOWFLAKE_TABLE"`) + +* `WORKDAY_ROLE` (value: `"WORKDAY_ROLE"`) + +* `MYSQL_INSTANCE` (value: `"MYSQL_INSTANCE"`) + +* `MARIADB_INSTANCE` (value: `"MARIADB_INSTANCE"`) + +* `POSTGRES_INSTANCE` (value: `"POSTGRES_INSTANCE"`) + +* `TELEPORT_ROLE` (value: `"TELEPORT_ROLE"`) + +* `DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL` (value: `"DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL"`) + +* `ILEVEL_ADVANCED_ROLE` (value: `"ILEVEL_ADVANCED_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/EntityNameFilter.md b/docs/EntityNameFilter.md new file mode 100644 index 0000000..7d6590c --- /dev/null +++ b/docs/EntityNameFilter.md @@ -0,0 +1,72 @@ +# EntityNameFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**StringMatchType** | [**StringMatchType**](StringMatchType.md) | | +**String** | **string** | The string value to match against the entity name. | + +## Methods + +### NewEntityNameFilter + +`func NewEntityNameFilter(stringMatchType StringMatchType, string_ string, ) *EntityNameFilter` + +NewEntityNameFilter instantiates a new EntityNameFilter 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 + +### NewEntityNameFilterWithDefaults + +`func NewEntityNameFilterWithDefaults() *EntityNameFilter` + +NewEntityNameFilterWithDefaults instantiates a new EntityNameFilter 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 + +### GetStringMatchType + +`func (o *EntityNameFilter) GetStringMatchType() StringMatchType` + +GetStringMatchType returns the StringMatchType field if non-nil, zero value otherwise. + +### GetStringMatchTypeOk + +`func (o *EntityNameFilter) GetStringMatchTypeOk() (*StringMatchType, bool)` + +GetStringMatchTypeOk returns a tuple with the StringMatchType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStringMatchType + +`func (o *EntityNameFilter) SetStringMatchType(v StringMatchType)` + +SetStringMatchType sets StringMatchType field to given value. + + +### GetString + +`func (o *EntityNameFilter) GetString() string` + +GetString returns the String field if non-nil, zero value otherwise. + +### GetStringOk + +`func (o *EntityNameFilter) GetStringOk() (*string, bool)` + +GetStringOk returns a tuple with the String field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetString + +`func (o *EntityNameFilter) SetString(v string)` + +SetString sets String 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/EntityTagFilter.md b/docs/EntityTagFilter.md new file mode 100644 index 0000000..0ce9d0a --- /dev/null +++ b/docs/EntityTagFilter.md @@ -0,0 +1,103 @@ +# EntityTagFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Key** | **string** | The tag key to filter by. | +**Value** | Pointer to **string** | The tag value to filter by. If omitted, matches any value for the given key. | [optional] +**ConnectionId** | Pointer to **string** | If specified, filters by tags associated with this connection. | [optional] + +## Methods + +### NewEntityTagFilter + +`func NewEntityTagFilter(key string, ) *EntityTagFilter` + +NewEntityTagFilter instantiates a new EntityTagFilter 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 + +### NewEntityTagFilterWithDefaults + +`func NewEntityTagFilterWithDefaults() *EntityTagFilter` + +NewEntityTagFilterWithDefaults instantiates a new EntityTagFilter 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 + +### GetKey + +`func (o *EntityTagFilter) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *EntityTagFilter) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *EntityTagFilter) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetValue + +`func (o *EntityTagFilter) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *EntityTagFilter) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *EntityTagFilter) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *EntityTagFilter) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetConnectionId + +`func (o *EntityTagFilter) GetConnectionId() string` + +GetConnectionId returns the ConnectionId field if non-nil, zero value otherwise. + +### GetConnectionIdOk + +`func (o *EntityTagFilter) GetConnectionIdOk() (*string, bool)` + +GetConnectionIdOk returns a tuple with the ConnectionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionId + +`func (o *EntityTagFilter) SetConnectionId(v string)` + +SetConnectionId sets ConnectionId field to given value. + +### HasConnectionId + +`func (o *EntityTagFilter) HasConnectionId() bool` + +HasConnectionId 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/EventStream.md b/docs/EventStream.md new file mode 100644 index 0000000..014dc83 --- /dev/null +++ b/docs/EventStream.md @@ -0,0 +1,72 @@ +# EventStream + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventStreamId** | **string** | The ID of the event stream. | +**Connection** | [**EventStreamConnection**](EventStreamConnection.md) | | + +## Methods + +### NewEventStream + +`func NewEventStream(eventStreamId string, connection EventStreamConnection, ) *EventStream` + +NewEventStream instantiates a new EventStream 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 + +### NewEventStreamWithDefaults + +`func NewEventStreamWithDefaults() *EventStream` + +NewEventStreamWithDefaults instantiates a new EventStream 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 + +### GetEventStreamId + +`func (o *EventStream) GetEventStreamId() string` + +GetEventStreamId returns the EventStreamId field if non-nil, zero value otherwise. + +### GetEventStreamIdOk + +`func (o *EventStream) GetEventStreamIdOk() (*string, bool)` + +GetEventStreamIdOk returns a tuple with the EventStreamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventStreamId + +`func (o *EventStream) SetEventStreamId(v string)` + +SetEventStreamId sets EventStreamId field to given value. + + +### GetConnection + +`func (o *EventStream) GetConnection() EventStreamConnection` + +GetConnection returns the Connection field if non-nil, zero value otherwise. + +### GetConnectionOk + +`func (o *EventStream) GetConnectionOk() (*EventStreamConnection, bool)` + +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *EventStream) SetConnection(v EventStreamConnection)` + +SetConnection sets Connection 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/EventStreamConnection.md b/docs/EventStreamConnection.md new file mode 100644 index 0000000..a8cc936 --- /dev/null +++ b/docs/EventStreamConnection.md @@ -0,0 +1,145 @@ +# EventStreamConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the connection. | +**ConnectionType** | [**EventStreamConnectionTypeEnum**](EventStreamConnectionTypeEnum.md) | | +**Enabled** | **bool** | Whether the connection is enabled. | +**WebhookUrl** | Pointer to **string** | The webhook URL, present when connection_type is WEBHOOK. | [optional] +**Credentials** | Pointer to [**WebhookCredentials**](WebhookCredentials.md) | | [optional] + +## Methods + +### NewEventStreamConnection + +`func NewEventStreamConnection(name string, connectionType EventStreamConnectionTypeEnum, enabled bool, ) *EventStreamConnection` + +NewEventStreamConnection instantiates a new EventStreamConnection 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 + +### NewEventStreamConnectionWithDefaults + +`func NewEventStreamConnectionWithDefaults() *EventStreamConnection` + +NewEventStreamConnectionWithDefaults instantiates a new EventStreamConnection 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 + +### GetName + +`func (o *EventStreamConnection) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *EventStreamConnection) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *EventStreamConnection) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConnectionType + +`func (o *EventStreamConnection) GetConnectionType() EventStreamConnectionTypeEnum` + +GetConnectionType returns the ConnectionType field if non-nil, zero value otherwise. + +### GetConnectionTypeOk + +`func (o *EventStreamConnection) GetConnectionTypeOk() (*EventStreamConnectionTypeEnum, bool)` + +GetConnectionTypeOk returns a tuple with the ConnectionType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectionType + +`func (o *EventStreamConnection) SetConnectionType(v EventStreamConnectionTypeEnum)` + +SetConnectionType sets ConnectionType field to given value. + + +### GetEnabled + +`func (o *EventStreamConnection) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *EventStreamConnection) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *EventStreamConnection) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + + +### GetWebhookUrl + +`func (o *EventStreamConnection) GetWebhookUrl() string` + +GetWebhookUrl returns the WebhookUrl field if non-nil, zero value otherwise. + +### GetWebhookUrlOk + +`func (o *EventStreamConnection) GetWebhookUrlOk() (*string, bool)` + +GetWebhookUrlOk returns a tuple with the WebhookUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebhookUrl + +`func (o *EventStreamConnection) SetWebhookUrl(v string)` + +SetWebhookUrl sets WebhookUrl field to given value. + +### HasWebhookUrl + +`func (o *EventStreamConnection) HasWebhookUrl() bool` + +HasWebhookUrl returns a boolean if a field has been set. + +### GetCredentials + +`func (o *EventStreamConnection) GetCredentials() WebhookCredentials` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *EventStreamConnection) GetCredentialsOk() (*WebhookCredentials, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *EventStreamConnection) SetCredentials(v WebhookCredentials)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *EventStreamConnection) HasCredentials() bool` + +HasCredentials 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/EventStreamConnectionTypeEnum.md b/docs/EventStreamConnectionTypeEnum.md new file mode 100644 index 0000000..f8d1680 --- /dev/null +++ b/docs/EventStreamConnectionTypeEnum.md @@ -0,0 +1,11 @@ +# EventStreamConnectionTypeEnum + +## Enum + + +* `WEBHOOK` (value: `"WEBHOOK"`) + + +[[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/EventStreamList.md b/docs/EventStreamList.md new file mode 100644 index 0000000..a5e813c --- /dev/null +++ b/docs/EventStreamList.md @@ -0,0 +1,51 @@ +# EventStreamList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**EventStreams** | [**[]EventStream**](EventStream.md) | | + +## Methods + +### NewEventStreamList + +`func NewEventStreamList(eventStreams []EventStream, ) *EventStreamList` + +NewEventStreamList instantiates a new EventStreamList 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 + +### NewEventStreamListWithDefaults + +`func NewEventStreamListWithDefaults() *EventStreamList` + +NewEventStreamListWithDefaults instantiates a new EventStreamList 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 + +### GetEventStreams + +`func (o *EventStreamList) GetEventStreams() []EventStream` + +GetEventStreams returns the EventStreams field if non-nil, zero value otherwise. + +### GetEventStreamsOk + +`func (o *EventStreamList) GetEventStreamsOk() (*[]EventStream, bool)` + +GetEventStreamsOk returns a tuple with the EventStreams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventStreams + +`func (o *EventStreamList) SetEventStreams(v []EventStream)` + +SetEventStreams sets EventStreams 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/EventStreamsAPI.md b/docs/EventStreamsAPI.md new file mode 100644 index 0000000..faa8db2 --- /dev/null +++ b/docs/EventStreamsAPI.md @@ -0,0 +1,279 @@ +# \EventStreamsAPI + +All URIs are relative to *https://api.opal.dev/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateEventStream**](EventStreamsAPI.md#CreateEventStream) | **Post** /event-streams | Create event stream +[**DeleteEventStream**](EventStreamsAPI.md#DeleteEventStream) | **Delete** /event-streams/{event_stream_id} | Delete event stream +[**GetEventStreams**](EventStreamsAPI.md#GetEventStreams) | **Get** /event-streams | Get event streams +[**UpdateEventStream**](EventStreamsAPI.md#UpdateEventStream) | **Put** /event-streams/{event_stream_id} | Update event stream + + + +## CreateEventStream + +> EventStream CreateEventStream(ctx).CreateEventStreamInfo(createEventStreamInfo).Execute() + +Create event stream + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + createEventStreamInfo := *openapiclient.NewCreateEventStreamInfo("Name_example", openapiclient.EventStreamConnectionTypeEnum("WEBHOOK")) // CreateEventStreamInfo | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventStreamsAPI.CreateEventStream(context.Background()).CreateEventStreamInfo(createEventStreamInfo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventStreamsAPI.CreateEventStream``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateEventStream`: EventStream + fmt.Fprintf(os.Stdout, "Response from `EventStreamsAPI.CreateEventStream`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateEventStreamRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createEventStreamInfo** | [**CreateEventStreamInfo**](CreateEventStreamInfo.md) | | + +### Return type + +[**EventStream**](EventStream.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + +## DeleteEventStream + +> DeleteEventStream(ctx, eventStreamId).Execute() + +Delete event stream + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + eventStreamId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the event stream. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.EventStreamsAPI.DeleteEventStream(context.Background(), eventStreamId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventStreamsAPI.DeleteEventStream``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**eventStreamId** | **string** | The ID of the event stream. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteEventStreamRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[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) + + +## GetEventStreams + +> EventStreamList GetEventStreams(ctx).Execute() + +Get event streams + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventStreamsAPI.GetEventStreams(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventStreamsAPI.GetEventStreams``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEventStreams`: EventStreamList + fmt.Fprintf(os.Stdout, "Response from `EventStreamsAPI.GetEventStreams`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEventStreamsRequest struct via the builder pattern + + +### Return type + +[**EventStreamList**](EventStreamList.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) + + +## UpdateEventStream + +> EventStream UpdateEventStream(ctx, eventStreamId).UpdateEventStreamInfo(updateEventStreamInfo).Execute() + +Update event stream + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + eventStreamId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the event stream. + updateEventStreamInfo := *openapiclient.NewUpdateEventStreamInfo() // UpdateEventStreamInfo | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventStreamsAPI.UpdateEventStream(context.Background(), eventStreamId).UpdateEventStreamInfo(updateEventStreamInfo).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventStreamsAPI.UpdateEventStream``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateEventStream`: EventStream + fmt.Fprintf(os.Stdout, "Response from `EventStreamsAPI.UpdateEventStream`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**eventStreamId** | **string** | The ID of the event stream. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateEventStreamRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateEventStreamInfo** | [**UpdateEventStreamInfo**](UpdateEventStreamInfo.md) | | + +### Return type + +[**EventStream**](EventStream.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/EventsApi.md b/docs/EventsApi.md index a13e861..bae497b 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -5,6 +5,7 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**Events**](EventsAPI.md#Events) | **Get** /events | +[**GetEvent**](EventsAPI.md#GetEvent) | **Get** /events/{event_id} | Get event by ID @@ -87,3 +88,73 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## GetEvent + +> Event GetEvent(ctx, eventId).Execute() + +Get event by ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + eventId := "29827fb8-f2dd-4e80-9576-28e31e9934ac" // string | The ID of the event. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.EventsAPI.GetEvent(context.Background(), eventId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `EventsAPI.GetEvent``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetEvent`: Event + fmt.Fprintf(os.Stdout, "Response from `EventsAPI.GetEvent`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**eventId** | **string** | The ID of the event. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetEventRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Event**](Event.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/GetResourceUser200Response.md b/docs/GetResourceUser200Response.md new file mode 100644 index 0000000..52864e7 --- /dev/null +++ b/docs/GetResourceUser200Response.md @@ -0,0 +1,103 @@ +# GetResourceUser200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | [**[]ResourceUser**](ResourceUser.md) | | +**Cursor** | Pointer to **string** | Pagination cursor for the next page of results | [optional] +**TotalCount** | Pointer to **int32** | Total number of results | [optional] + +## Methods + +### NewGetResourceUser200Response + +`func NewGetResourceUser200Response(data []ResourceUser, ) *GetResourceUser200Response` + +NewGetResourceUser200Response instantiates a new GetResourceUser200Response 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 + +### NewGetResourceUser200ResponseWithDefaults + +`func NewGetResourceUser200ResponseWithDefaults() *GetResourceUser200Response` + +NewGetResourceUser200ResponseWithDefaults instantiates a new GetResourceUser200Response 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 + +### GetData + +`func (o *GetResourceUser200Response) GetData() []ResourceUser` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *GetResourceUser200Response) GetDataOk() (*[]ResourceUser, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *GetResourceUser200Response) SetData(v []ResourceUser)` + +SetData sets Data field to given value. + + +### GetCursor + +`func (o *GetResourceUser200Response) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *GetResourceUser200Response) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *GetResourceUser200Response) SetCursor(v string)` + +SetCursor sets Cursor field to given value. + +### HasCursor + +`func (o *GetResourceUser200Response) HasCursor() bool` + +HasCursor returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *GetResourceUser200Response) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *GetResourceUser200Response) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *GetResourceUser200Response) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *GetResourceUser200Response) HasTotalCount() bool` + +HasTotalCount 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/Group.md b/docs/Group.md index e515b39..95b3afd 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **GroupType** | Pointer to [**GroupTypeEnum**](GroupTypeEnum.md) | | [optional] **MaxDuration** | Pointer to **int32** | The maximum duration for which the group can be requested (in minutes). | [optional] **RecommendedDuration** | Pointer to **int32** | The recommended duration for which the group should be requested (in minutes). -1 represents an indefinite duration. | [optional] +**ExtensionsDurationInMinutes** | Pointer to **int32** | 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. | [optional] **RequireManagerApproval** | Pointer to **bool** | A bool representing whether or not access requests to the group require manager approval. | [optional] **RequireSupportTicket** | Pointer to **bool** | A bool representing whether or not access requests to the group require an access ticket. | [optional] **RequireMfaToApprove** | Pointer to **bool** | A bool representing whether or not to require MFA for reviewers to approve requests for this group. | [optional] @@ -31,6 +32,7 @@ Name | Type | Description | Notes **CustomRequestNotification** | Pointer to **string** | Custom request notification sent to the requester when the request is approved. | [optional] **RiskSensitivity** | Pointer to [**RiskSensitivityEnum**](RiskSensitivityEnum.md) | The risk sensitivity level for the group. When an override is set, this field will match that. | [optional] [readonly] **RiskSensitivityOverride** | Pointer to [**RiskSensitivityEnum**](RiskSensitivityEnum.md) | | [optional] +**LastSuccessfulSync** | Pointer to [**SyncTask**](SyncTask.md) | Information about the last successful sync of this group. | [optional] [readonly] ## Methods @@ -321,6 +323,31 @@ SetRecommendedDuration sets RecommendedDuration field to given value. HasRecommendedDuration returns a boolean if a field has been set. +### GetExtensionsDurationInMinutes + +`func (o *Group) GetExtensionsDurationInMinutes() int32` + +GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field if non-nil, zero value otherwise. + +### GetExtensionsDurationInMinutesOk + +`func (o *Group) GetExtensionsDurationInMinutesOk() (*int32, bool)` + +GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionsDurationInMinutes + +`func (o *Group) SetExtensionsDurationInMinutes(v int32)` + +SetExtensionsDurationInMinutes sets ExtensionsDurationInMinutes field to given value. + +### HasExtensionsDurationInMinutes + +`func (o *Group) HasExtensionsDurationInMinutes() bool` + +HasExtensionsDurationInMinutes returns a boolean if a field has been set. + ### GetRequireManagerApproval `func (o *Group) GetRequireManagerApproval() bool` @@ -721,6 +748,31 @@ SetRiskSensitivityOverride sets RiskSensitivityOverride field to given value. HasRiskSensitivityOverride returns a boolean if a field has been set. +### GetLastSuccessfulSync + +`func (o *Group) GetLastSuccessfulSync() SyncTask` + +GetLastSuccessfulSync returns the LastSuccessfulSync field if non-nil, zero value otherwise. + +### GetLastSuccessfulSyncOk + +`func (o *Group) GetLastSuccessfulSyncOk() (*SyncTask, bool)` + +GetLastSuccessfulSyncOk returns a tuple with the LastSuccessfulSync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSuccessfulSync + +`func (o *Group) SetLastSuccessfulSync(v SyncTask)` + +SetLastSuccessfulSync sets LastSuccessfulSync field to given value. + +### HasLastSuccessfulSync + +`func (o *Group) HasLastSuccessfulSync() bool` + +HasLastSuccessfulSync 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/GroupBindingsAPI.md b/docs/GroupBindingsAPI.md index 328c4f2..589d8ae 100644 --- a/docs/GroupBindingsAPI.md +++ b/docs/GroupBindingsAPI.md @@ -6,8 +6,8 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateGroupBinding**](GroupBindingsAPI.md#CreateGroupBinding) | **Post** /group-bindings | [**DeleteGroupBinding**](GroupBindingsAPI.md#DeleteGroupBinding) | **Delete** /group-bindings/{group_binding_id} | -[**GetGroupBinding**](GroupBindingsAPI.md#GetGroupBinding) | **Get** /group-bindings/{group_binding_id} | -[**GetGroupBindings**](GroupBindingsAPI.md#GetGroupBindings) | **Get** /group-bindings | +[**GetGroupBinding**](GroupBindingsAPI.md#GetGroupBinding) | **Get** /group-bindings/{group_binding_id} | Get group binding by ID +[**GetGroupBindings**](GroupBindingsAPI.md#GetGroupBindings) | **Get** /group-bindings | Get group bindings [**UpdateGroupBindings**](GroupBindingsAPI.md#UpdateGroupBindings) | **Put** /group-bindings | @@ -150,7 +150,7 @@ Name | Type | Description | Notes > GroupBinding GetGroupBinding(ctx, groupBindingId).Execute() - +Get group binding by ID @@ -220,7 +220,7 @@ Name | Type | Description | Notes > PaginatedGroupBindingsList GetGroupBindings(ctx).Cursor(cursor).PageSize(pageSize).Execute() - +Get group bindings 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 8cb7a3b..03059aa 100644 --- a/docs/GroupRemoteInfo.md +++ b/docs/GroupRemoteInfo.md @@ -5,7 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ActiveDirectoryGroup** | Pointer to [**GroupRemoteInfoActiveDirectoryGroup**](GroupRemoteInfoActiveDirectoryGroup.md) | | [optional] +**TailscaleGroup** | Pointer to [**GroupRemoteInfoTailscaleGroup**](GroupRemoteInfoTailscaleGroup.md) | | [optional] +**TwingateGroup** | Pointer to [**GroupRemoteInfoTwingateGroup**](GroupRemoteInfoTwingateGroup.md) | | [optional] +**TwingateGroupSynced** | Pointer to [**GroupRemoteInfoTwingateGroupSynced**](GroupRemoteInfoTwingateGroupSynced.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] +**GithubEnterpriseTeam** | Pointer to [**GroupRemoteInfoGithubEnterpriseTeam**](GroupRemoteInfoGithubEnterpriseTeam.md) | | [optional] **GitlabGroup** | Pointer to [**GroupRemoteInfoGitlabGroup**](GroupRemoteInfoGitlabGroup.md) | | [optional] **GoogleGroup** | Pointer to [**GroupRemoteInfoGoogleGroup**](GroupRemoteInfoGoogleGroup.md) | | [optional] **LdapGroup** | Pointer to [**GroupRemoteInfoLdapGroup**](GroupRemoteInfoLdapGroup.md) | | [optional] @@ -13,6 +20,19 @@ Name | Type | Description | Notes **DuoGroup** | Pointer to [**GroupRemoteInfoDuoGroup**](GroupRemoteInfoDuoGroup.md) | | [optional] **AzureAdSecurityGroup** | Pointer to [**GroupRemoteInfoAzureAdSecurityGroup**](GroupRemoteInfoAzureAdSecurityGroup.md) | | [optional] **AzureAdMicrosoft365Group** | Pointer to [**GroupRemoteInfoAzureAdMicrosoft365Group**](GroupRemoteInfoAzureAdMicrosoft365Group.md) | | [optional] +**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] +**ClickhouseRole** | Pointer to [**GroupRemoteInfoClickhouseRole**](GroupRemoteInfoClickhouseRole.md) | | [optional] +**GrafanaTeam** | Pointer to [**GroupRemoteInfoGrafanaTeam**](GroupRemoteInfoGrafanaTeam.md) | | [optional] +**ZendeskGroup** | Pointer to [**GroupRemoteInfoZendeskGroup**](GroupRemoteInfoZendeskGroup.md) | | [optional] +**SlackUserGroup** | Pointer to [**GroupRemoteInfoSlackUserGroup**](GroupRemoteInfoSlackUserGroup.md) | | [optional] +**ZendeskOrganization** | Pointer to [**GroupRemoteInfoZendeskOrganization**](GroupRemoteInfoZendeskOrganization.md) | | [optional] +**HubspotTeam** | Pointer to [**GroupRemoteInfoHubspotTeam**](GroupRemoteInfoHubspotTeam.md) | | [optional] ## Methods @@ -58,6 +78,156 @@ 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. + +### GetTwingateGroup + +`func (o *GroupRemoteInfo) GetTwingateGroup() GroupRemoteInfoTwingateGroup` + +GetTwingateGroup returns the TwingateGroup field if non-nil, zero value otherwise. + +### GetTwingateGroupOk + +`func (o *GroupRemoteInfo) GetTwingateGroupOk() (*GroupRemoteInfoTwingateGroup, bool)` + +GetTwingateGroupOk returns a tuple with the TwingateGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwingateGroup + +`func (o *GroupRemoteInfo) SetTwingateGroup(v GroupRemoteInfoTwingateGroup)` + +SetTwingateGroup sets TwingateGroup field to given value. + +### HasTwingateGroup + +`func (o *GroupRemoteInfo) HasTwingateGroup() bool` + +HasTwingateGroup returns a boolean if a field has been set. + +### GetTwingateGroupSynced + +`func (o *GroupRemoteInfo) GetTwingateGroupSynced() GroupRemoteInfoTwingateGroupSynced` + +GetTwingateGroupSynced returns the TwingateGroupSynced field if non-nil, zero value otherwise. + +### GetTwingateGroupSyncedOk + +`func (o *GroupRemoteInfo) GetTwingateGroupSyncedOk() (*GroupRemoteInfoTwingateGroupSynced, bool)` + +GetTwingateGroupSyncedOk returns a tuple with the TwingateGroupSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwingateGroupSynced + +`func (o *GroupRemoteInfo) SetTwingateGroupSynced(v GroupRemoteInfoTwingateGroupSynced)` + +SetTwingateGroupSynced sets TwingateGroupSynced field to given value. + +### HasTwingateGroupSynced + +`func (o *GroupRemoteInfo) HasTwingateGroupSynced() bool` + +HasTwingateGroupSynced 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` @@ -83,6 +253,31 @@ SetGithubTeam sets GithubTeam field to given value. HasGithubTeam returns a boolean if a field has been set. +### GetGithubEnterpriseTeam + +`func (o *GroupRemoteInfo) GetGithubEnterpriseTeam() GroupRemoteInfoGithubEnterpriseTeam` + +GetGithubEnterpriseTeam returns the GithubEnterpriseTeam field if non-nil, zero value otherwise. + +### GetGithubEnterpriseTeamOk + +`func (o *GroupRemoteInfo) GetGithubEnterpriseTeamOk() (*GroupRemoteInfoGithubEnterpriseTeam, bool)` + +GetGithubEnterpriseTeamOk returns a tuple with the GithubEnterpriseTeam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGithubEnterpriseTeam + +`func (o *GroupRemoteInfo) SetGithubEnterpriseTeam(v GroupRemoteInfoGithubEnterpriseTeam)` + +SetGithubEnterpriseTeam sets GithubEnterpriseTeam field to given value. + +### HasGithubEnterpriseTeam + +`func (o *GroupRemoteInfo) HasGithubEnterpriseTeam() bool` + +HasGithubEnterpriseTeam returns a boolean if a field has been set. + ### GetGitlabGroup `func (o *GroupRemoteInfo) GetGitlabGroup() GroupRemoteInfoGitlabGroup` @@ -258,6 +453,331 @@ SetAzureAdMicrosoft365Group sets AzureAdMicrosoft365Group field to given value. HasAzureAdMicrosoft365Group returns a boolean if a field has been set. +### GetSnowflakeRole + +`func (o *GroupRemoteInfo) GetSnowflakeRole() GroupRemoteInfoSnowflakeRole` + +GetSnowflakeRole returns the SnowflakeRole field if non-nil, zero value otherwise. + +### GetSnowflakeRoleOk + +`func (o *GroupRemoteInfo) GetSnowflakeRoleOk() (*GroupRemoteInfoSnowflakeRole, bool)` + +GetSnowflakeRoleOk returns a tuple with the SnowflakeRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSnowflakeRole + +`func (o *GroupRemoteInfo) SetSnowflakeRole(v GroupRemoteInfoSnowflakeRole)` + +SetSnowflakeRole sets SnowflakeRole field to given value. + +### HasSnowflakeRole + +`func (o *GroupRemoteInfo) HasSnowflakeRole() bool` + +HasSnowflakeRole returns a boolean if a field has been set. + +### GetOktaGroupRule + +`func (o *GroupRemoteInfo) GetOktaGroupRule() GroupRemoteInfoOktaGroupRule` + +GetOktaGroupRule returns the OktaGroupRule field if non-nil, zero value otherwise. + +### GetOktaGroupRuleOk + +`func (o *GroupRemoteInfo) GetOktaGroupRuleOk() (*GroupRemoteInfoOktaGroupRule, bool)` + +GetOktaGroupRuleOk returns a tuple with the OktaGroupRule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOktaGroupRule + +`func (o *GroupRemoteInfo) SetOktaGroupRule(v GroupRemoteInfoOktaGroupRule)` + +SetOktaGroupRule sets OktaGroupRule field to given value. + +### HasOktaGroupRule + +`func (o *GroupRemoteInfo) HasOktaGroupRule() bool` + +HasOktaGroupRule returns a boolean if a field has been set. + +### GetWorkdayUserSecurityGroup + +`func (o *GroupRemoteInfo) GetWorkdayUserSecurityGroup() GroupRemoteInfoWorkdayUserSecurityGroup` + +GetWorkdayUserSecurityGroup returns the WorkdayUserSecurityGroup field if non-nil, zero value otherwise. + +### GetWorkdayUserSecurityGroupOk + +`func (o *GroupRemoteInfo) GetWorkdayUserSecurityGroupOk() (*GroupRemoteInfoWorkdayUserSecurityGroup, bool)` + +GetWorkdayUserSecurityGroupOk returns a tuple with the WorkdayUserSecurityGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkdayUserSecurityGroup + +`func (o *GroupRemoteInfo) SetWorkdayUserSecurityGroup(v GroupRemoteInfoWorkdayUserSecurityGroup)` + +SetWorkdayUserSecurityGroup sets WorkdayUserSecurityGroup field to given value. + +### HasWorkdayUserSecurityGroup + +`func (o *GroupRemoteInfo) HasWorkdayUserSecurityGroup() bool` + +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. + +### GetClickhouseRole + +`func (o *GroupRemoteInfo) GetClickhouseRole() GroupRemoteInfoClickhouseRole` + +GetClickhouseRole returns the ClickhouseRole field if non-nil, zero value otherwise. + +### GetClickhouseRoleOk + +`func (o *GroupRemoteInfo) GetClickhouseRoleOk() (*GroupRemoteInfoClickhouseRole, bool)` + +GetClickhouseRoleOk returns a tuple with the ClickhouseRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClickhouseRole + +`func (o *GroupRemoteInfo) SetClickhouseRole(v GroupRemoteInfoClickhouseRole)` + +SetClickhouseRole sets ClickhouseRole field to given value. + +### HasClickhouseRole + +`func (o *GroupRemoteInfo) HasClickhouseRole() bool` + +HasClickhouseRole returns a boolean if a field has been set. + +### GetGrafanaTeam + +`func (o *GroupRemoteInfo) GetGrafanaTeam() GroupRemoteInfoGrafanaTeam` + +GetGrafanaTeam returns the GrafanaTeam field if non-nil, zero value otherwise. + +### GetGrafanaTeamOk + +`func (o *GroupRemoteInfo) GetGrafanaTeamOk() (*GroupRemoteInfoGrafanaTeam, bool)` + +GetGrafanaTeamOk returns a tuple with the GrafanaTeam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrafanaTeam + +`func (o *GroupRemoteInfo) SetGrafanaTeam(v GroupRemoteInfoGrafanaTeam)` + +SetGrafanaTeam sets GrafanaTeam field to given value. + +### HasGrafanaTeam + +`func (o *GroupRemoteInfo) HasGrafanaTeam() bool` + +HasGrafanaTeam returns a boolean if a field has been set. + +### GetZendeskGroup + +`func (o *GroupRemoteInfo) GetZendeskGroup() GroupRemoteInfoZendeskGroup` + +GetZendeskGroup returns the ZendeskGroup field if non-nil, zero value otherwise. + +### GetZendeskGroupOk + +`func (o *GroupRemoteInfo) GetZendeskGroupOk() (*GroupRemoteInfoZendeskGroup, bool)` + +GetZendeskGroupOk returns a tuple with the ZendeskGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZendeskGroup + +`func (o *GroupRemoteInfo) SetZendeskGroup(v GroupRemoteInfoZendeskGroup)` + +SetZendeskGroup sets ZendeskGroup field to given value. + +### HasZendeskGroup + +`func (o *GroupRemoteInfo) HasZendeskGroup() bool` + +HasZendeskGroup returns a boolean if a field has been set. + +### GetSlackUserGroup + +`func (o *GroupRemoteInfo) GetSlackUserGroup() GroupRemoteInfoSlackUserGroup` + +GetSlackUserGroup returns the SlackUserGroup field if non-nil, zero value otherwise. + +### GetSlackUserGroupOk + +`func (o *GroupRemoteInfo) GetSlackUserGroupOk() (*GroupRemoteInfoSlackUserGroup, bool)` + +GetSlackUserGroupOk returns a tuple with the SlackUserGroup field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlackUserGroup + +`func (o *GroupRemoteInfo) SetSlackUserGroup(v GroupRemoteInfoSlackUserGroup)` + +SetSlackUserGroup sets SlackUserGroup field to given value. + +### HasSlackUserGroup + +`func (o *GroupRemoteInfo) HasSlackUserGroup() bool` + +HasSlackUserGroup returns a boolean if a field has been set. + +### GetZendeskOrganization + +`func (o *GroupRemoteInfo) GetZendeskOrganization() GroupRemoteInfoZendeskOrganization` + +GetZendeskOrganization returns the ZendeskOrganization field if non-nil, zero value otherwise. + +### GetZendeskOrganizationOk + +`func (o *GroupRemoteInfo) GetZendeskOrganizationOk() (*GroupRemoteInfoZendeskOrganization, bool)` + +GetZendeskOrganizationOk returns a tuple with the ZendeskOrganization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZendeskOrganization + +`func (o *GroupRemoteInfo) SetZendeskOrganization(v GroupRemoteInfoZendeskOrganization)` + +SetZendeskOrganization sets ZendeskOrganization field to given value. + +### HasZendeskOrganization + +`func (o *GroupRemoteInfo) HasZendeskOrganization() bool` + +HasZendeskOrganization returns a boolean if a field has been set. + +### GetHubspotTeam + +`func (o *GroupRemoteInfo) GetHubspotTeam() GroupRemoteInfoHubspotTeam` + +GetHubspotTeam returns the HubspotTeam field if non-nil, zero value otherwise. + +### GetHubspotTeamOk + +`func (o *GroupRemoteInfo) GetHubspotTeamOk() (*GroupRemoteInfoHubspotTeam, bool)` + +GetHubspotTeamOk returns a tuple with the HubspotTeam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHubspotTeam + +`func (o *GroupRemoteInfo) SetHubspotTeam(v GroupRemoteInfoHubspotTeam)` + +SetHubspotTeam sets HubspotTeam field to given value. + +### HasHubspotTeam + +`func (o *GroupRemoteInfo) HasHubspotTeam() bool` + +HasHubspotTeam 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/GroupRemoteInfoClickhouseRole.md b/docs/GroupRemoteInfoClickhouseRole.md new file mode 100644 index 0000000..e2aec60 --- /dev/null +++ b/docs/GroupRemoteInfoClickhouseRole.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoClickhouseRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The name of the ClickHouse role. | + +## Methods + +### NewGroupRemoteInfoClickhouseRole + +`func NewGroupRemoteInfoClickhouseRole(roleId string, ) *GroupRemoteInfoClickhouseRole` + +NewGroupRemoteInfoClickhouseRole instantiates a new GroupRemoteInfoClickhouseRole 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 + +### NewGroupRemoteInfoClickhouseRoleWithDefaults + +`func NewGroupRemoteInfoClickhouseRoleWithDefaults() *GroupRemoteInfoClickhouseRole` + +NewGroupRemoteInfoClickhouseRoleWithDefaults instantiates a new GroupRemoteInfoClickhouseRole 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 *GroupRemoteInfoClickhouseRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *GroupRemoteInfoClickhouseRole) 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 *GroupRemoteInfoClickhouseRole) 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/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/GroupRemoteInfoGithubEnterpriseTeam.md b/docs/GroupRemoteInfoGithubEnterpriseTeam.md new file mode 100644 index 0000000..f6b92cf --- /dev/null +++ b/docs/GroupRemoteInfoGithubEnterpriseTeam.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoGithubEnterpriseTeam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TeamSlug** | **string** | The slug of the GitHub Enterprise team. | + +## Methods + +### NewGroupRemoteInfoGithubEnterpriseTeam + +`func NewGroupRemoteInfoGithubEnterpriseTeam(teamSlug string, ) *GroupRemoteInfoGithubEnterpriseTeam` + +NewGroupRemoteInfoGithubEnterpriseTeam instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults + +`func NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults() *GroupRemoteInfoGithubEnterpriseTeam` + +NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTeamSlug + +`func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlug() string` + +GetTeamSlug returns the TeamSlug field if non-nil, zero value otherwise. + +### GetTeamSlugOk + +`func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlugOk() (*string, bool)` + +GetTeamSlugOk returns a tuple with the TeamSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamSlug + +`func (o *GroupRemoteInfoGithubEnterpriseTeam) SetTeamSlug(v string)` + +SetTeamSlug sets TeamSlug field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GroupRemoteInfoGithubTeam.md b/docs/GroupRemoteInfoGithubTeam.md index 91dded0..eaf9168 100644 --- a/docs/GroupRemoteInfoGithubTeam.md +++ b/docs/GroupRemoteInfoGithubTeam.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TeamId** | Pointer to **string** | The id of the GitHub team. | [optional] **TeamSlug** | **string** | The slug of the GitHub team. | +**OrgName** | Pointer to **string** | GitHub team's org name, required only for Enterprise | [optional] ## Methods @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetTeamSlug sets TeamSlug field to given value. +### GetOrgName + +`func (o *GroupRemoteInfoGithubTeam) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *GroupRemoteInfoGithubTeam) 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 *GroupRemoteInfoGithubTeam) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *GroupRemoteInfoGithubTeam) HasOrgName() bool` + +HasOrgName 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/GroupRemoteInfoGrafanaTeam.md b/docs/GroupRemoteInfoGrafanaTeam.md new file mode 100644 index 0000000..1086152 --- /dev/null +++ b/docs/GroupRemoteInfoGrafanaTeam.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoGrafanaTeam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TeamId** | **string** | The ID of the team. | + +## Methods + +### NewGroupRemoteInfoGrafanaTeam + +`func NewGroupRemoteInfoGrafanaTeam(teamId string, ) *GroupRemoteInfoGrafanaTeam` + +NewGroupRemoteInfoGrafanaTeam instantiates a new GroupRemoteInfoGrafanaTeam 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 + +### NewGroupRemoteInfoGrafanaTeamWithDefaults + +`func NewGroupRemoteInfoGrafanaTeamWithDefaults() *GroupRemoteInfoGrafanaTeam` + +NewGroupRemoteInfoGrafanaTeamWithDefaults instantiates a new GroupRemoteInfoGrafanaTeam 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 + +### GetTeamId + +`func (o *GroupRemoteInfoGrafanaTeam) GetTeamId() string` + +GetTeamId returns the TeamId field if non-nil, zero value otherwise. + +### GetTeamIdOk + +`func (o *GroupRemoteInfoGrafanaTeam) GetTeamIdOk() (*string, bool)` + +GetTeamIdOk returns a tuple with the TeamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamId + +`func (o *GroupRemoteInfoGrafanaTeam) SetTeamId(v string)` + +SetTeamId sets TeamId 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/GroupRemoteInfoHubspotTeam.md b/docs/GroupRemoteInfoHubspotTeam.md new file mode 100644 index 0000000..09e5b3c --- /dev/null +++ b/docs/GroupRemoteInfoHubspotTeam.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoHubspotTeam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TeamId** | **string** | The ID of the HubSpot team. | + +## Methods + +### NewGroupRemoteInfoHubspotTeam + +`func NewGroupRemoteInfoHubspotTeam(teamId string, ) *GroupRemoteInfoHubspotTeam` + +NewGroupRemoteInfoHubspotTeam instantiates a new GroupRemoteInfoHubspotTeam 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 + +### NewGroupRemoteInfoHubspotTeamWithDefaults + +`func NewGroupRemoteInfoHubspotTeamWithDefaults() *GroupRemoteInfoHubspotTeam` + +NewGroupRemoteInfoHubspotTeamWithDefaults instantiates a new GroupRemoteInfoHubspotTeam 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 + +### GetTeamId + +`func (o *GroupRemoteInfoHubspotTeam) GetTeamId() string` + +GetTeamId returns the TeamId field if non-nil, zero value otherwise. + +### GetTeamIdOk + +`func (o *GroupRemoteInfoHubspotTeam) GetTeamIdOk() (*string, bool)` + +GetTeamIdOk returns a tuple with the TeamId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamId + +`func (o *GroupRemoteInfoHubspotTeam) SetTeamId(v string)` + +SetTeamId sets TeamId 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/GroupRemoteInfoOktaGroupRule.md b/docs/GroupRemoteInfoOktaGroupRule.md new file mode 100644 index 0000000..49ee099 --- /dev/null +++ b/docs/GroupRemoteInfoOktaGroupRule.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoOktaGroupRule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RuleId** | **string** | The id of the Okta group rule. | + +## Methods + +### NewGroupRemoteInfoOktaGroupRule + +`func NewGroupRemoteInfoOktaGroupRule(ruleId string, ) *GroupRemoteInfoOktaGroupRule` + +NewGroupRemoteInfoOktaGroupRule instantiates a new GroupRemoteInfoOktaGroupRule 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 + +### NewGroupRemoteInfoOktaGroupRuleWithDefaults + +`func NewGroupRemoteInfoOktaGroupRuleWithDefaults() *GroupRemoteInfoOktaGroupRule` + +NewGroupRemoteInfoOktaGroupRuleWithDefaults instantiates a new GroupRemoteInfoOktaGroupRule 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 + +### GetRuleId + +`func (o *GroupRemoteInfoOktaGroupRule) GetRuleId() string` + +GetRuleId returns the RuleId field if non-nil, zero value otherwise. + +### GetRuleIdOk + +`func (o *GroupRemoteInfoOktaGroupRule) GetRuleIdOk() (*string, bool)` + +GetRuleIdOk returns a tuple with the RuleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleId + +`func (o *GroupRemoteInfoOktaGroupRule) SetRuleId(v string)` + +SetRuleId sets RuleId 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/GroupRemoteInfoSlackUserGroup.md b/docs/GroupRemoteInfoSlackUserGroup.md new file mode 100644 index 0000000..c561dee --- /dev/null +++ b/docs/GroupRemoteInfoSlackUserGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoSlackUserGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the Slack user group. | + +## Methods + +### NewGroupRemoteInfoSlackUserGroup + +`func NewGroupRemoteInfoSlackUserGroup(groupId string, ) *GroupRemoteInfoSlackUserGroup` + +NewGroupRemoteInfoSlackUserGroup instantiates a new GroupRemoteInfoSlackUserGroup 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 + +### NewGroupRemoteInfoSlackUserGroupWithDefaults + +`func NewGroupRemoteInfoSlackUserGroupWithDefaults() *GroupRemoteInfoSlackUserGroup` + +NewGroupRemoteInfoSlackUserGroupWithDefaults instantiates a new GroupRemoteInfoSlackUserGroup 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 *GroupRemoteInfoSlackUserGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoSlackUserGroup) 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 *GroupRemoteInfoSlackUserGroup) 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/GroupRemoteInfoSnowflakeRole.md b/docs/GroupRemoteInfoSnowflakeRole.md new file mode 100644 index 0000000..f3961f0 --- /dev/null +++ b/docs/GroupRemoteInfoSnowflakeRole.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoSnowflakeRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the Snowflake role. | + +## Methods + +### NewGroupRemoteInfoSnowflakeRole + +`func NewGroupRemoteInfoSnowflakeRole(roleId string, ) *GroupRemoteInfoSnowflakeRole` + +NewGroupRemoteInfoSnowflakeRole instantiates a new GroupRemoteInfoSnowflakeRole 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 + +### NewGroupRemoteInfoSnowflakeRoleWithDefaults + +`func NewGroupRemoteInfoSnowflakeRoleWithDefaults() *GroupRemoteInfoSnowflakeRole` + +NewGroupRemoteInfoSnowflakeRoleWithDefaults instantiates a new GroupRemoteInfoSnowflakeRole 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 *GroupRemoteInfoSnowflakeRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *GroupRemoteInfoSnowflakeRole) 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 *GroupRemoteInfoSnowflakeRole) 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/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/GroupRemoteInfoTwingateGroup.md b/docs/GroupRemoteInfoTwingateGroup.md new file mode 100644 index 0000000..188cfce --- /dev/null +++ b/docs/GroupRemoteInfoTwingateGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoTwingateGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the Twingate group. | + +## Methods + +### NewGroupRemoteInfoTwingateGroup + +`func NewGroupRemoteInfoTwingateGroup(groupId string, ) *GroupRemoteInfoTwingateGroup` + +NewGroupRemoteInfoTwingateGroup instantiates a new GroupRemoteInfoTwingateGroup 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 + +### NewGroupRemoteInfoTwingateGroupWithDefaults + +`func NewGroupRemoteInfoTwingateGroupWithDefaults() *GroupRemoteInfoTwingateGroup` + +NewGroupRemoteInfoTwingateGroupWithDefaults instantiates a new GroupRemoteInfoTwingateGroup 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 *GroupRemoteInfoTwingateGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoTwingateGroup) 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 *GroupRemoteInfoTwingateGroup) 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/GroupRemoteInfoTwingateGroupSynced.md b/docs/GroupRemoteInfoTwingateGroupSynced.md new file mode 100644 index 0000000..0e625d1 --- /dev/null +++ b/docs/GroupRemoteInfoTwingateGroupSynced.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoTwingateGroupSynced + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the Twingate synced group. | + +## Methods + +### NewGroupRemoteInfoTwingateGroupSynced + +`func NewGroupRemoteInfoTwingateGroupSynced(groupId string, ) *GroupRemoteInfoTwingateGroupSynced` + +NewGroupRemoteInfoTwingateGroupSynced instantiates a new GroupRemoteInfoTwingateGroupSynced 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 + +### NewGroupRemoteInfoTwingateGroupSyncedWithDefaults + +`func NewGroupRemoteInfoTwingateGroupSyncedWithDefaults() *GroupRemoteInfoTwingateGroupSynced` + +NewGroupRemoteInfoTwingateGroupSyncedWithDefaults instantiates a new GroupRemoteInfoTwingateGroupSynced 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 *GroupRemoteInfoTwingateGroupSynced) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoTwingateGroupSynced) 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 *GroupRemoteInfoTwingateGroupSynced) 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/GroupRemoteInfoWorkdayUserSecurityGroup.md b/docs/GroupRemoteInfoWorkdayUserSecurityGroup.md new file mode 100644 index 0000000..48ef87e --- /dev/null +++ b/docs/GroupRemoteInfoWorkdayUserSecurityGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoWorkdayUserSecurityGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The id of the Workday User Security group. | + +## Methods + +### NewGroupRemoteInfoWorkdayUserSecurityGroup + +`func NewGroupRemoteInfoWorkdayUserSecurityGroup(groupId string, ) *GroupRemoteInfoWorkdayUserSecurityGroup` + +NewGroupRemoteInfoWorkdayUserSecurityGroup instantiates a new GroupRemoteInfoWorkdayUserSecurityGroup 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 + +### NewGroupRemoteInfoWorkdayUserSecurityGroupWithDefaults + +`func NewGroupRemoteInfoWorkdayUserSecurityGroupWithDefaults() *GroupRemoteInfoWorkdayUserSecurityGroup` + +NewGroupRemoteInfoWorkdayUserSecurityGroupWithDefaults instantiates a new GroupRemoteInfoWorkdayUserSecurityGroup 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 *GroupRemoteInfoWorkdayUserSecurityGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoWorkdayUserSecurityGroup) 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 *GroupRemoteInfoWorkdayUserSecurityGroup) 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/GroupRemoteInfoZendeskGroup.md b/docs/GroupRemoteInfoZendeskGroup.md new file mode 100644 index 0000000..5b1a9d8 --- /dev/null +++ b/docs/GroupRemoteInfoZendeskGroup.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoZendeskGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GroupId** | **string** | The ID of the Zendesk group. | + +## Methods + +### NewGroupRemoteInfoZendeskGroup + +`func NewGroupRemoteInfoZendeskGroup(groupId string, ) *GroupRemoteInfoZendeskGroup` + +NewGroupRemoteInfoZendeskGroup instantiates a new GroupRemoteInfoZendeskGroup 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 + +### NewGroupRemoteInfoZendeskGroupWithDefaults + +`func NewGroupRemoteInfoZendeskGroupWithDefaults() *GroupRemoteInfoZendeskGroup` + +NewGroupRemoteInfoZendeskGroupWithDefaults instantiates a new GroupRemoteInfoZendeskGroup 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 *GroupRemoteInfoZendeskGroup) GetGroupId() string` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *GroupRemoteInfoZendeskGroup) 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 *GroupRemoteInfoZendeskGroup) 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/GroupRemoteInfoZendeskOrganization.md b/docs/GroupRemoteInfoZendeskOrganization.md new file mode 100644 index 0000000..44538b3 --- /dev/null +++ b/docs/GroupRemoteInfoZendeskOrganization.md @@ -0,0 +1,51 @@ +# GroupRemoteInfoZendeskOrganization + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OrganizationId** | **string** | The ID of the Zendesk organization. | + +## Methods + +### NewGroupRemoteInfoZendeskOrganization + +`func NewGroupRemoteInfoZendeskOrganization(organizationId string, ) *GroupRemoteInfoZendeskOrganization` + +NewGroupRemoteInfoZendeskOrganization instantiates a new GroupRemoteInfoZendeskOrganization 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 + +### NewGroupRemoteInfoZendeskOrganizationWithDefaults + +`func NewGroupRemoteInfoZendeskOrganizationWithDefaults() *GroupRemoteInfoZendeskOrganization` + +NewGroupRemoteInfoZendeskOrganizationWithDefaults instantiates a new GroupRemoteInfoZendeskOrganization 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 + +### GetOrganizationId + +`func (o *GroupRemoteInfoZendeskOrganization) GetOrganizationId() string` + +GetOrganizationId returns the OrganizationId field if non-nil, zero value otherwise. + +### GetOrganizationIdOk + +`func (o *GroupRemoteInfoZendeskOrganization) GetOrganizationIdOk() (*string, bool)` + +GetOrganizationIdOk returns a tuple with the OrganizationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationId + +`func (o *GroupRemoteInfoZendeskOrganization) SetOrganizationId(v string)` + +SetOrganizationId sets OrganizationId 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..4ba8857 100644 --- a/docs/GroupTypeEnum.md +++ b/docs/GroupTypeEnum.md @@ -41,6 +41,32 @@ * `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"`) + +* `GIT_HUB_ENTERPRISE_TEAM` (value: `"GIT_HUB_ENTERPRISE_TEAM"`) + +* `GRAFANA_TEAM` (value: `"GRAFANA_TEAM"`) + +* `CLICKHOUSE_ROLE` (value: `"CLICKHOUSE_ROLE"`) + +* `SLACK_USER_GROUP` (value: `"SLACK_USER_GROUP"`) + +* `TWINGATE_GROUP` (value: `"TWINGATE_GROUP"`) + +* `TWINGATE_GROUP_SYNCED` (value: `"TWINGATE_GROUP_SYNCED"`) + +* `ZENDESK_GROUP` (value: `"ZENDESK_GROUP"`) + +* `ZENDESK_ORGANIZATION` (value: `"ZENDESK_ORGANIZATION"`) + +* `HUBSPOT_TEAM` (value: `"HUBSPOT_TEAM"`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/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/GroupUserList.md b/docs/GroupUserList.md index e5bf102..5d6c314 100644 --- a/docs/GroupUserList.md +++ b/docs/GroupUserList.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Results** | Pointer to [**[]GroupUser**](GroupUser.md) | | [optional] +**Next** | Pointer to **string** | The cursor with which to continue pagination if additional result pages exist. | [optional] +**Previous** | Pointer to **string** | The cursor used to obtain the current result page. | [optional] ## Methods @@ -50,6 +52,56 @@ SetResults sets Results field to given value. HasResults returns a boolean if a field has been set. +### GetNext + +`func (o *GroupUserList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *GroupUserList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *GroupUserList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *GroupUserList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *GroupUserList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *GroupUserList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *GroupUserList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *GroupUserList) HasPrevious() bool` + +HasPrevious 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/GroupsApi.md b/docs/GroupsApi.md index 32b6c6c..5d30292 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -10,9 +10,9 @@ Method | HTTP request | Description [**CreateGroup**](GroupsAPI.md#CreateGroup) | **Post** /groups | [**DeleteGroup**](GroupsAPI.md#DeleteGroup) | **Delete** /groups/{group_id} | [**DeleteGroupUser**](GroupsAPI.md#DeleteGroupUser) | **Delete** /groups/{group_id}/users/{user_id} | -[**GetGroup**](GroupsAPI.md#GetGroup) | **Get** /groups/{group_id} | -[**GetGroupContainingGroup**](GroupsAPI.md#GetGroupContainingGroup) | **Get** /groups/{group_id}/containing-groups/{containing_group_id} | -[**GetGroupContainingGroups**](GroupsAPI.md#GetGroupContainingGroups) | **Get** /groups/{group_id}/containing-groups | +[**GetGroup**](GroupsAPI.md#GetGroup) | **Get** /groups/{group_id} | Get group by ID +[**GetGroupContainingGroup**](GroupsAPI.md#GetGroupContainingGroup) | **Get** /groups/{group_id}/containing-groups/{containing_group_id} | Get nested group by ID +[**GetGroupContainingGroups**](GroupsAPI.md#GetGroupContainingGroups) | **Get** /groups/{group_id}/containing-groups | Get nested groups [**GetGroupMessageChannels**](GroupsAPI.md#GetGroupMessageChannels) | **Get** /groups/{group_id}/message-channels | [**GetGroupOnCallSchedules**](GroupsAPI.md#GetGroupOnCallSchedules) | **Get** /groups/{group_id}/on-call-schedules | [**GetGroupResources**](GroupsAPI.md#GetGroupResources) | **Get** /groups/{group_id}/resources | @@ -21,7 +21,8 @@ Method | HTTP request | Description [**GetGroupTags**](GroupsAPI.md#GetGroupTags) | **Get** /groups/{group_id}/tags | [**GetGroupUsers**](GroupsAPI.md#GetGroupUsers) | **Get** /groups/{group_id}/users | [**GetGroupVisibility**](GroupsAPI.md#GetGroupVisibility) | **Get** /groups/{group_id}/visibility | -[**GetGroups**](GroupsAPI.md#GetGroups) | **Get** /groups | +[**GetGroups**](GroupsAPI.md#GetGroups) | **Get** /groups | Get groups +[**GetUserGroups**](GroupsAPI.md#GetUserGroups) | **Get** /groups/users/{user_id} | [**RemoveGroupContainingGroup**](GroupsAPI.md#RemoveGroupContainingGroup) | **Delete** /groups/{group_id}/containing-groups/{containing_group_id} | [**SetGroupMessageChannels**](GroupsAPI.md#SetGroupMessageChannels) | **Put** /groups/{group_id}/message-channels | [**SetGroupOnCallSchedules**](GroupsAPI.md#SetGroupOnCallSchedules) | **Put** /groups/{group_id}/on-call-schedules | @@ -29,6 +30,7 @@ Method | HTTP request | Description [**SetGroupReviewerStages**](GroupsAPI.md#SetGroupReviewerStages) | **Put** /groups/{group_id}/reviewer-stages | [**SetGroupReviewers**](GroupsAPI.md#SetGroupReviewers) | **Put** /groups/{group_id}/reviewers | [**SetGroupVisibility**](GroupsAPI.md#SetGroupVisibility) | **Put** /groups/{group_id}/visibility | +[**UpdateGroupUser**](GroupsAPI.md#UpdateGroupUser) | **Put** /groups/{group_id}/users/{user_id} | [**UpdateGroups**](GroupsAPI.md#UpdateGroups) | **Put** /groups | @@ -397,7 +399,7 @@ Name | Type | Description | Notes ## DeleteGroupUser -> DeleteGroupUser(ctx, groupId, userId).Execute() +> DeleteGroupUser(ctx, groupId, userId).AccessLevelRemoteId(accessLevelRemoteId).Execute() @@ -418,10 +420,11 @@ import ( func main() { groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. userId := "f92aa855-cea9-4814-b9d8-f2a60d3e4a06" // string | The ID of a user to remove from this group. + accessLevelRemoteId := "30" // string | 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. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.GroupsAPI.DeleteGroupUser(context.Background(), groupId, userId).Execute() + r, err := apiClient.GroupsAPI.DeleteGroupUser(context.Background(), groupId, userId).AccessLevelRemoteId(accessLevelRemoteId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.DeleteGroupUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -447,6 +450,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **accessLevelRemoteId** | **string** | 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. | ### Return type @@ -470,7 +474,7 @@ Name | Type | Description | Notes > Group GetGroup(ctx, groupId).Execute() - +Get group by ID @@ -540,7 +544,7 @@ Name | Type | Description | Notes > GroupContainingGroup GetGroupContainingGroup(ctx, groupId, containingGroupId).Execute() - +Get nested group by ID @@ -611,9 +615,9 @@ Name | Type | Description | Notes ## GetGroupContainingGroups -> GroupContainingGroupList GetGroupContainingGroups(ctx, groupId).Execute() - +> GroupContainingGroupList GetGroupContainingGroups(ctx, groupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() +Get nested groups @@ -631,10 +635,11 @@ import ( func main() { groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. + accessLevelRemoteId := "arn:aws:iam::590304332660:role/AdministratorAccess" // string | The access level's remote ID to filter by. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GroupsAPI.GetGroupContainingGroups(context.Background(), groupId).Execute() + resp, r, err := apiClient.GroupsAPI.GetGroupContainingGroups(context.Background(), groupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.GetGroupContainingGroups``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -660,6 +665,7 @@ Other parameters are passed through a pointer to a apiGetGroupContainingGroupsRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **accessLevelRemoteId** | **string** | The access level's remote ID to filter by. | ### Return type @@ -1101,7 +1107,7 @@ Name | Type | Description | Notes ## GetGroupUsers -> GroupUserList GetGroupUsers(ctx, groupId).Execute() +> GroupUserList GetGroupUsers(ctx, groupId).Cursor(cursor).PageSize(pageSize).Execute() @@ -1121,10 +1127,12 @@ import ( func main() { groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) + pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GroupsAPI.GetGroupUsers(context.Background(), groupId).Execute() + resp, r, err := apiClient.GroupsAPI.GetGroupUsers(context.Background(), groupId).Cursor(cursor).PageSize(pageSize).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.GetGroupUsers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1150,6 +1158,8 @@ Other parameters are passed through a pointer to a apiGetGroupUsersRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **cursor** | **string** | The pagination cursor value. | + **pageSize** | **int32** | Number of results to return per page. Default is 200. | ### Return type @@ -1241,9 +1251,9 @@ Name | Type | Description | Notes ## GetGroups -> PaginatedGroupsList GetGroups(ctx).Cursor(cursor).PageSize(pageSize).GroupTypeFilter(groupTypeFilter).GroupIds(groupIds).GroupName(groupName).Execute() - +> PaginatedGroupsList GetGroups(ctx).Cursor(cursor).PageSize(pageSize).GroupTypeFilter(groupTypeFilter).GroupIds(groupIds).GroupName(groupName).TagIds(tagIds).Execute() +Get groups @@ -1265,10 +1275,11 @@ func main() { groupTypeFilter := openapiclient.GroupTypeEnum("ACTIVE_DIRECTORY_GROUP") // GroupTypeEnum | The group type to filter by. (optional) groupIds := []string{"1b978423-db0a-4037-a4cf-f79c60cb67b3"} // []string | The group ids to filter by. (optional) groupName := "example-name" // string | Group name. (optional) + tagIds := []string{"Inner_example"} // []string | The IDs of the tags to filter by. Returns only groups that have any of these tags applied. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.GroupsAPI.GetGroups(context.Background()).Cursor(cursor).PageSize(pageSize).GroupTypeFilter(groupTypeFilter).GroupIds(groupIds).GroupName(groupName).Execute() + resp, r, err := apiClient.GroupsAPI.GetGroups(context.Background()).Cursor(cursor).PageSize(pageSize).GroupTypeFilter(groupTypeFilter).GroupIds(groupIds).GroupName(groupName).TagIds(tagIds).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.GetGroups``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1294,6 +1305,7 @@ Name | Type | Description | Notes **groupTypeFilter** | [**GroupTypeEnum**](GroupTypeEnum.md) | The group type to filter by. | **groupIds** | **[]string** | The group ids to filter by. | **groupName** | **string** | Group name. | + **tagIds** | **[]string** | The IDs of the tags to filter by. Returns only groups that have any of these tags applied. | ### Return type @@ -1313,9 +1325,83 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetUserGroups + +> GroupUserList GetUserGroups(ctx, userId).Cursor(cursor).PageSize(pageSize).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + userId := "1b978423-db0a-4037-a4cf-f79c60cb67b3" // string | The ID of the user whose groups to return. + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) + pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.GetUserGroups(context.Background(), userId).Cursor(cursor).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.GetUserGroups``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUserGroups`: GroupUserList + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.GetUserGroups`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userId** | **string** | The ID of the user whose groups to return. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUserGroupsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **cursor** | **string** | The pagination cursor value. | + **pageSize** | **int32** | Number of results to return per page. Default is 200. | + +### Return type + +[**GroupUserList**](GroupUserList.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) + + ## RemoveGroupContainingGroup -> RemoveGroupContainingGroup(ctx, groupId, containingGroupId).Execute() +> RemoveGroupContainingGroup(ctx, groupId, containingGroupId).AccessLevelRemoteId(accessLevelRemoteId).Execute() @@ -1334,12 +1420,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) @@ -1353,7 +1440,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 @@ -1365,6 +1452,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **accessLevelRemoteId** | **string** | The remote ID of the member group's access level to filter by. | ### Return type @@ -1814,6 +1902,81 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## UpdateGroupUser + +> GroupUser UpdateGroupUser(ctx, groupId, userId).UpdateGroupUserRequest(updateGroupUserRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. + userId := "f92aa855-cea9-4814-b9d8-f2a60d3e4a06" // string | The ID of the user whose access is being updated. + updateGroupUserRequest := *openapiclient.NewUpdateGroupUserRequest(int32(120)) // UpdateGroupUserRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GroupsAPI.UpdateGroupUser(context.Background(), groupId, userId).UpdateGroupUserRequest(updateGroupUserRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GroupsAPI.UpdateGroupUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateGroupUser`: GroupUser + fmt.Fprintf(os.Stdout, "Response from `GroupsAPI.UpdateGroupUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**groupId** | **string** | The ID of the group. | +**userId** | **string** | The ID of the user whose access is being updated. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUpdateGroupUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **updateGroupUserRequest** | [**UpdateGroupUserRequest**](UpdateGroupUserRequest.md) | | + +### Return type + +[**GroupUser**](GroupUser.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## UpdateGroups > UpdateGroupInfoList UpdateGroups(ctx).UpdateGroupInfoList(updateGroupInfoList).Execute() @@ -1835,7 +1998,7 @@ import ( ) func main() { - updateGroupInfoList := *openapiclient.NewUpdateGroupInfoList([]openapiclient.UpdateGroupInfo{*openapiclient.NewUpdateGroupInfo("f454d283-ca87-4a8a-bdbb-df212eca5353")}) // UpdateGroupInfoList | Groups to be updated + updateGroupInfoList := *openapiclient.NewUpdateGroupInfoList([]openapiclient.UpdateGroupInfo{*openapiclient.NewUpdateGroupInfo("f454d283-ca87-4a87-bdbb-df212eca5353")}) // UpdateGroupInfoList | Groups to be updated configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/IdpGroupMapping.md b/docs/IdpGroupMapping.md index cf900a2..20180fb 100644 --- a/docs/IdpGroupMapping.md +++ b/docs/IdpGroupMapping.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**AppResourceId** | Pointer to **string** | The ID of the app resource. | [optional] **GroupId** | **string** | The ID of the group. | **Alias** | Pointer to **string** | The alias of the group. | [optional] **HiddenFromEndUser** | **bool** | A bool representing whether or not the group is hidden from the end user. | @@ -27,6 +28,31 @@ NewIdpGroupMappingWithDefaults instantiates a new IdpGroupMapping 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 +### GetAppResourceId + +`func (o *IdpGroupMapping) GetAppResourceId() string` + +GetAppResourceId returns the AppResourceId field if non-nil, zero value otherwise. + +### GetAppResourceIdOk + +`func (o *IdpGroupMapping) GetAppResourceIdOk() (*string, bool)` + +GetAppResourceIdOk returns a tuple with the AppResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppResourceId + +`func (o *IdpGroupMapping) SetAppResourceId(v string)` + +SetAppResourceId sets AppResourceId field to given value. + +### HasAppResourceId + +`func (o *IdpGroupMapping) HasAppResourceId() bool` + +HasAppResourceId returns a boolean if a field has been set. + ### GetGroupId `func (o *IdpGroupMapping) GetGroupId() string` diff --git a/docs/IdpGroupMappingsAPI.md b/docs/IdpGroupMappingsAPI.md index 43ecb31..b198ce1 100644 --- a/docs/IdpGroupMappingsAPI.md +++ b/docs/IdpGroupMappingsAPI.md @@ -4,12 +4,89 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DeleteIdpGroupMappings**](IdpGroupMappingsAPI.md#DeleteIdpGroupMappings) | **Delete** /idp-group-mappings/{app_resource_id}/{group_id}/ | +[**CreateIdpGroupMapping**](IdpGroupMappingsAPI.md#CreateIdpGroupMapping) | **Post** /idp-group-mappings/{app_resource_id}/groups/{group_id} | +[**DeleteIdpGroupMappings**](IdpGroupMappingsAPI.md#DeleteIdpGroupMappings) | **Delete** /idp-group-mappings/{app_resource_id}/groups/{group_id} | +[**GetIdpGroupMapping**](IdpGroupMappingsAPI.md#GetIdpGroupMapping) | **Get** /idp-group-mappings/{app_resource_id}/groups/{group_id} | [**GetIdpGroupMappings**](IdpGroupMappingsAPI.md#GetIdpGroupMappings) | **Get** /idp-group-mappings/{app_resource_id} | [**UpdateIdpGroupMappings**](IdpGroupMappingsAPI.md#UpdateIdpGroupMappings) | **Put** /idp-group-mappings/{app_resource_id} | +## CreateIdpGroupMapping + +> IdpGroupMapping CreateIdpGroupMapping(ctx, appResourceId, groupId).CreateIdpGroupMappingRequest(createIdpGroupMappingRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + appResourceId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the Okta app. + groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. + createIdpGroupMappingRequest := *openapiclient.NewCreateIdpGroupMappingRequest() // CreateIdpGroupMappingRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdpGroupMappingsAPI.CreateIdpGroupMapping(context.Background(), appResourceId, groupId).CreateIdpGroupMappingRequest(createIdpGroupMappingRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdpGroupMappingsAPI.CreateIdpGroupMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateIdpGroupMapping`: IdpGroupMapping + fmt.Fprintf(os.Stdout, "Response from `IdpGroupMappingsAPI.CreateIdpGroupMapping`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appResourceId** | **string** | The ID of the Okta app. | +**groupId** | **string** | The ID of the group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateIdpGroupMappingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **createIdpGroupMappingRequest** | [**CreateIdpGroupMappingRequest**](CreateIdpGroupMappingRequest.md) | | + +### Return type + +[**IdpGroupMapping**](IdpGroupMapping.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## DeleteIdpGroupMappings > DeleteIdpGroupMappings(ctx, appResourceId, groupId).Execute() @@ -81,6 +158,79 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetIdpGroupMapping + +> IdpGroupMapping GetIdpGroupMapping(ctx, appResourceId, groupId).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + appResourceId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the Okta app. + groupId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the group. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.IdpGroupMappingsAPI.GetIdpGroupMapping(context.Background(), appResourceId, groupId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `IdpGroupMappingsAPI.GetIdpGroupMapping``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetIdpGroupMapping`: IdpGroupMapping + fmt.Fprintf(os.Stdout, "Response from `IdpGroupMappingsAPI.GetIdpGroupMapping`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appResourceId** | **string** | The ID of the Okta app. | +**groupId** | **string** | The ID of the group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetIdpGroupMappingRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**IdpGroupMapping**](IdpGroupMapping.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) + + ## GetIdpGroupMappings > IdpGroupMappingList GetIdpGroupMappings(ctx, appResourceId).Execute() diff --git a/docs/MessageChannelsApi.md b/docs/MessageChannelsApi.md index c771352..a1af9f9 100644 --- a/docs/MessageChannelsApi.md +++ b/docs/MessageChannelsApi.md @@ -5,8 +5,8 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateMessageChannel**](MessageChannelsAPI.md#CreateMessageChannel) | **Post** /message-channels | -[**GetMessageChannel**](MessageChannelsAPI.md#GetMessageChannel) | **Get** /message-channels/{message_channel_id} | -[**GetMessageChannels**](MessageChannelsAPI.md#GetMessageChannels) | **Get** /message-channels | +[**GetMessageChannel**](MessageChannelsAPI.md#GetMessageChannel) | **Get** /message-channels/{message_channel_id} | Get message channel by ID +[**GetMessageChannels**](MessageChannelsAPI.md#GetMessageChannels) | **Get** /message-channels | Get message channels @@ -80,7 +80,7 @@ Name | Type | Description | Notes > MessageChannel GetMessageChannel(ctx, messageChannelId).Execute() - +Get message channel by ID @@ -150,7 +150,7 @@ Name | Type | Description | Notes > MessageChannelList GetMessageChannels(ctx).Execute() - +Get message channels diff --git a/docs/OnCallSchedulesApi.md b/docs/OnCallSchedulesApi.md index 101af2d..c0e0b40 100644 --- a/docs/OnCallSchedulesApi.md +++ b/docs/OnCallSchedulesApi.md @@ -5,8 +5,8 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateOnCallSchedule**](OnCallSchedulesAPI.md#CreateOnCallSchedule) | **Post** /on-call-schedules | -[**GetOnCallSchedule**](OnCallSchedulesAPI.md#GetOnCallSchedule) | **Get** /on-call-schedules/{on_call_schedule_id} | -[**GetOnCallSchedules**](OnCallSchedulesAPI.md#GetOnCallSchedules) | **Get** /on-call-schedules | +[**GetOnCallSchedule**](OnCallSchedulesAPI.md#GetOnCallSchedule) | **Get** /on-call-schedules/{on_call_schedule_id} | Get on call schedule by ID +[**GetOnCallSchedules**](OnCallSchedulesAPI.md#GetOnCallSchedules) | **Get** /on-call-schedules | Get on call schedules @@ -80,7 +80,7 @@ Name | Type | Description | Notes > OnCallSchedule GetOnCallSchedule(ctx, onCallScheduleId).Execute() - +Get on call schedule by ID @@ -150,7 +150,7 @@ Name | Type | Description | Notes > OnCallScheduleList GetOnCallSchedules(ctx).Execute() - +Get on call schedules diff --git a/docs/OpalNodeQuery.md b/docs/OpalNodeQuery.md new file mode 100644 index 0000000..58b1f4b --- /dev/null +++ b/docs/OpalNodeQuery.md @@ -0,0 +1,129 @@ +# OpalNodeQuery + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Query** | Pointer to [**OpalNodeQueryBody**](OpalNodeQueryBody.md) | | [optional] +**First** | Pointer to **int32** | Maximum number of results to return. Defaults to 200. | [optional] +**After** | Pointer to **string** | Cursor from a previous response to fetch the next page of results. | [optional] + +## Methods + +### NewOpalNodeQuery + +`func NewOpalNodeQuery(type_ string, ) *OpalNodeQuery` + +NewOpalNodeQuery instantiates a new OpalNodeQuery 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 + +### NewOpalNodeQueryWithDefaults + +`func NewOpalNodeQueryWithDefaults() *OpalNodeQuery` + +NewOpalNodeQueryWithDefaults instantiates a new OpalNodeQuery 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 + +### GetType + +`func (o *OpalNodeQuery) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OpalNodeQuery) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OpalNodeQuery) SetType(v string)` + +SetType sets Type field to given value. + + +### GetQuery + +`func (o *OpalNodeQuery) GetQuery() OpalNodeQueryBody` + +GetQuery returns the Query field if non-nil, zero value otherwise. + +### GetQueryOk + +`func (o *OpalNodeQuery) GetQueryOk() (*OpalNodeQueryBody, bool)` + +GetQueryOk returns a tuple with the Query field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuery + +`func (o *OpalNodeQuery) SetQuery(v OpalNodeQueryBody)` + +SetQuery sets Query field to given value. + +### HasQuery + +`func (o *OpalNodeQuery) HasQuery() bool` + +HasQuery returns a boolean if a field has been set. + +### GetFirst + +`func (o *OpalNodeQuery) GetFirst() int32` + +GetFirst returns the First field if non-nil, zero value otherwise. + +### GetFirstOk + +`func (o *OpalNodeQuery) GetFirstOk() (*int32, bool)` + +GetFirstOk returns a tuple with the First field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirst + +`func (o *OpalNodeQuery) SetFirst(v int32)` + +SetFirst sets First field to given value. + +### HasFirst + +`func (o *OpalNodeQuery) HasFirst() bool` + +HasFirst returns a boolean if a field has been set. + +### GetAfter + +`func (o *OpalNodeQuery) GetAfter() string` + +GetAfter returns the After field if non-nil, zero value otherwise. + +### GetAfterOk + +`func (o *OpalNodeQuery) GetAfterOk() (*string, bool)` + +GetAfterOk returns a tuple with the After field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAfter + +`func (o *OpalNodeQuery) SetAfter(v string)` + +SetAfter sets After field to given value. + +### HasAfter + +`func (o *OpalNodeQuery) HasAfter() bool` + +HasAfter 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/OpalNodeQueryBody.md b/docs/OpalNodeQueryBody.md new file mode 100644 index 0000000..3af285e --- /dev/null +++ b/docs/OpalNodeQueryBody.md @@ -0,0 +1,82 @@ +# OpalNodeQueryBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**NodeFilters** | Pointer to [**AccessEntityFilters**](AccessEntityFilters.md) | | [optional] +**AccessFilters** | Pointer to [**AccessRelationshipFilters**](AccessRelationshipFilters.md) | | [optional] + +## Methods + +### NewOpalNodeQueryBody + +`func NewOpalNodeQueryBody() *OpalNodeQueryBody` + +NewOpalNodeQueryBody instantiates a new OpalNodeQueryBody 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 + +### NewOpalNodeQueryBodyWithDefaults + +`func NewOpalNodeQueryBodyWithDefaults() *OpalNodeQueryBody` + +NewOpalNodeQueryBodyWithDefaults instantiates a new OpalNodeQueryBody 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 + +### GetNodeFilters + +`func (o *OpalNodeQueryBody) GetNodeFilters() AccessEntityFilters` + +GetNodeFilters returns the NodeFilters field if non-nil, zero value otherwise. + +### GetNodeFiltersOk + +`func (o *OpalNodeQueryBody) GetNodeFiltersOk() (*AccessEntityFilters, bool)` + +GetNodeFiltersOk returns a tuple with the NodeFilters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNodeFilters + +`func (o *OpalNodeQueryBody) SetNodeFilters(v AccessEntityFilters)` + +SetNodeFilters sets NodeFilters field to given value. + +### HasNodeFilters + +`func (o *OpalNodeQueryBody) HasNodeFilters() bool` + +HasNodeFilters returns a boolean if a field has been set. + +### GetAccessFilters + +`func (o *OpalNodeQueryBody) GetAccessFilters() AccessRelationshipFilters` + +GetAccessFilters returns the AccessFilters field if non-nil, zero value otherwise. + +### GetAccessFiltersOk + +`func (o *OpalNodeQueryBody) GetAccessFiltersOk() (*AccessRelationshipFilters, bool)` + +GetAccessFiltersOk returns a tuple with the AccessFilters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessFilters + +`func (o *OpalNodeQueryBody) SetAccessFilters(v AccessRelationshipFilters)` + +SetAccessFilters sets AccessFilters field to given value. + +### HasAccessFilters + +`func (o *OpalNodeQueryBody) HasAccessFilters() bool` + +HasAccessFilters 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/OpalNodeQueryResults.md b/docs/OpalNodeQueryResults.md new file mode 100644 index 0000000..0553125 --- /dev/null +++ b/docs/OpalNodeQueryResults.md @@ -0,0 +1,93 @@ +# OpalNodeQueryResults + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | **string** | | +**Edges** | [**[]OpalQueryResultEdge**](OpalQueryResultEdge.md) | List of matched entities. | +**PageInfo** | [**PageInfo**](PageInfo.md) | | + +## Methods + +### NewOpalNodeQueryResults + +`func NewOpalNodeQueryResults(type_ string, edges []OpalQueryResultEdge, pageInfo PageInfo, ) *OpalNodeQueryResults` + +NewOpalNodeQueryResults instantiates a new OpalNodeQueryResults 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 + +### NewOpalNodeQueryResultsWithDefaults + +`func NewOpalNodeQueryResultsWithDefaults() *OpalNodeQueryResults` + +NewOpalNodeQueryResultsWithDefaults instantiates a new OpalNodeQueryResults 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 + +### GetType + +`func (o *OpalNodeQueryResults) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *OpalNodeQueryResults) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *OpalNodeQueryResults) SetType(v string)` + +SetType sets Type field to given value. + + +### GetEdges + +`func (o *OpalNodeQueryResults) GetEdges() []OpalQueryResultEdge` + +GetEdges returns the Edges field if non-nil, zero value otherwise. + +### GetEdgesOk + +`func (o *OpalNodeQueryResults) GetEdgesOk() (*[]OpalQueryResultEdge, bool)` + +GetEdgesOk returns a tuple with the Edges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdges + +`func (o *OpalNodeQueryResults) SetEdges(v []OpalQueryResultEdge)` + +SetEdges sets Edges field to given value. + + +### GetPageInfo + +`func (o *OpalNodeQueryResults) GetPageInfo() PageInfo` + +GetPageInfo returns the PageInfo field if non-nil, zero value otherwise. + +### GetPageInfoOk + +`func (o *OpalNodeQueryResults) GetPageInfoOk() (*PageInfo, bool)` + +GetPageInfoOk returns a tuple with the PageInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageInfo + +`func (o *OpalNodeQueryResults) SetPageInfo(v PageInfo)` + +SetPageInfo sets PageInfo 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/OpalQueriesAPI.md b/docs/OpalQueriesAPI.md new file mode 100644 index 0000000..4247fca --- /dev/null +++ b/docs/OpalQueriesAPI.md @@ -0,0 +1,75 @@ +# \OpalQueriesAPI + +All URIs are relative to *https://api.opal.dev/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**RunOpalQuery**](OpalQueriesAPI.md#RunOpalQuery) | **Post** /queries/run | Run an ad-hoc OpalQuery + + + +## RunOpalQuery + +> OpalNodeQueryResults RunOpalQuery(ctx).Body(body).Execute() + +Run an ad-hoc OpalQuery + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + body := OpalNodeQuery(987) // OpalNodeQuery | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OpalQueriesAPI.RunOpalQuery(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OpalQueriesAPI.RunOpalQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunOpalQuery`: OpalNodeQueryResults + fmt.Fprintf(os.Stdout, "Response from `OpalQueriesAPI.RunOpalQuery`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunOpalQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **OpalNodeQuery** | | + +### Return type + +[**OpalNodeQueryResults**](OpalNodeQueryResults.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/OpalQueryResultEdge.md b/docs/OpalQueryResultEdge.md new file mode 100644 index 0000000..3a93d7b --- /dev/null +++ b/docs/OpalQueryResultEdge.md @@ -0,0 +1,72 @@ +# OpalQueryResultEdge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Node** | [**OpalQueryResultNode**](OpalQueryResultNode.md) | | +**Cursor** | **string** | Opaque cursor for this entity, used for pagination. | + +## Methods + +### NewOpalQueryResultEdge + +`func NewOpalQueryResultEdge(node OpalQueryResultNode, cursor string, ) *OpalQueryResultEdge` + +NewOpalQueryResultEdge instantiates a new OpalQueryResultEdge 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 + +### NewOpalQueryResultEdgeWithDefaults + +`func NewOpalQueryResultEdgeWithDefaults() *OpalQueryResultEdge` + +NewOpalQueryResultEdgeWithDefaults instantiates a new OpalQueryResultEdge 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 + +### GetNode + +`func (o *OpalQueryResultEdge) GetNode() OpalQueryResultNode` + +GetNode returns the Node field if non-nil, zero value otherwise. + +### GetNodeOk + +`func (o *OpalQueryResultEdge) GetNodeOk() (*OpalQueryResultNode, bool)` + +GetNodeOk returns a tuple with the Node field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNode + +`func (o *OpalQueryResultEdge) SetNode(v OpalQueryResultNode)` + +SetNode sets Node field to given value. + + +### GetCursor + +`func (o *OpalQueryResultEdge) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *OpalQueryResultEdge) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *OpalQueryResultEdge) SetCursor(v string)` + +SetCursor sets Cursor 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/OpalQueryResultNode.md b/docs/OpalQueryResultNode.md new file mode 100644 index 0000000..d6102ff --- /dev/null +++ b/docs/OpalQueryResultNode.md @@ -0,0 +1,114 @@ +# OpalQueryResultNode + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The entity's unique identifier. | +**Name** | **string** | The display name of the entity. | +**EntityType** | **string** | The top-level entity type. | +**EntityItemType** | [**EntityItemTypeEnum**](EntityItemTypeEnum.md) | | + +## Methods + +### NewOpalQueryResultNode + +`func NewOpalQueryResultNode(id string, name string, entityType string, entityItemType EntityItemTypeEnum, ) *OpalQueryResultNode` + +NewOpalQueryResultNode instantiates a new OpalQueryResultNode 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 + +### NewOpalQueryResultNodeWithDefaults + +`func NewOpalQueryResultNodeWithDefaults() *OpalQueryResultNode` + +NewOpalQueryResultNodeWithDefaults instantiates a new OpalQueryResultNode 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 + +### GetId + +`func (o *OpalQueryResultNode) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *OpalQueryResultNode) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *OpalQueryResultNode) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *OpalQueryResultNode) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OpalQueryResultNode) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *OpalQueryResultNode) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEntityType + +`func (o *OpalQueryResultNode) GetEntityType() string` + +GetEntityType returns the EntityType field if non-nil, zero value otherwise. + +### GetEntityTypeOk + +`func (o *OpalQueryResultNode) GetEntityTypeOk() (*string, bool)` + +GetEntityTypeOk returns a tuple with the EntityType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityType + +`func (o *OpalQueryResultNode) SetEntityType(v string)` + +SetEntityType sets EntityType field to given value. + + +### GetEntityItemType + +`func (o *OpalQueryResultNode) GetEntityItemType() EntityItemTypeEnum` + +GetEntityItemType returns the EntityItemType field if non-nil, zero value otherwise. + +### GetEntityItemTypeOk + +`func (o *OpalQueryResultNode) GetEntityItemTypeOk() (*EntityItemTypeEnum, bool)` + +GetEntityItemTypeOk returns a tuple with the EntityItemType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEntityItemType + +`func (o *OpalQueryResultNode) SetEntityItemType(v EntityItemTypeEnum)` + +SetEntityItemType sets EntityItemType 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/OwnersApi.md b/docs/OwnersApi.md index 9e89d59..3624687 100644 --- a/docs/OwnersApi.md +++ b/docs/OwnersApi.md @@ -6,10 +6,10 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**CreateOwner**](OwnersAPI.md#CreateOwner) | **Post** /owners | [**DeleteOwner**](OwnersAPI.md#DeleteOwner) | **Delete** /owners/{owner_id} | -[**GetOwner**](OwnersAPI.md#GetOwner) | **Get** /owners/{owner_id} | +[**GetOwner**](OwnersAPI.md#GetOwner) | **Get** /owners/{owner_id} | Get owner by ID [**GetOwnerFromName**](OwnersAPI.md#GetOwnerFromName) | **Get** /owners/name/{owner_name} | [**GetOwnerUsers**](OwnersAPI.md#GetOwnerUsers) | **Get** /owners/{owner_id}/users | -[**GetOwners**](OwnersAPI.md#GetOwners) | **Get** /owners | +[**GetOwners**](OwnersAPI.md#GetOwners) | **Get** /owners | Get owners [**SetOwnerUsers**](OwnersAPI.md#SetOwnerUsers) | **Put** /owners/{owner_id}/users | [**UpdateOwners**](OwnersAPI.md#UpdateOwners) | **Put** /owners | @@ -153,7 +153,7 @@ Name | Type | Description | Notes > Owner GetOwner(ctx, ownerId).Execute() - +Get owner by ID @@ -363,7 +363,7 @@ Name | Type | Description | Notes > PaginatedOwnersList GetOwners(ctx).Cursor(cursor).PageSize(pageSize).Name(name).Execute() - +Get owners diff --git a/docs/PageInfo.md b/docs/PageInfo.md new file mode 100644 index 0000000..7a016dd --- /dev/null +++ b/docs/PageInfo.md @@ -0,0 +1,114 @@ +# PageInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HasNextPage** | **bool** | Whether there are more items after the end cursor | +**EndCursor** | **string** | The cursor to continue pagination forwards | +**HasPreviousPage** | **bool** | Whether there are more items before the start cursor | +**StartCursor** | **string** | The cursor to continue pagination backwards | + +## Methods + +### NewPageInfo + +`func NewPageInfo(hasNextPage bool, endCursor string, hasPreviousPage bool, startCursor string, ) *PageInfo` + +NewPageInfo instantiates a new PageInfo 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 + +### NewPageInfoWithDefaults + +`func NewPageInfoWithDefaults() *PageInfo` + +NewPageInfoWithDefaults instantiates a new PageInfo 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 + +### GetHasNextPage + +`func (o *PageInfo) GetHasNextPage() bool` + +GetHasNextPage returns the HasNextPage field if non-nil, zero value otherwise. + +### GetHasNextPageOk + +`func (o *PageInfo) GetHasNextPageOk() (*bool, bool)` + +GetHasNextPageOk returns a tuple with the HasNextPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasNextPage + +`func (o *PageInfo) SetHasNextPage(v bool)` + +SetHasNextPage sets HasNextPage field to given value. + + +### GetEndCursor + +`func (o *PageInfo) GetEndCursor() string` + +GetEndCursor returns the EndCursor field if non-nil, zero value otherwise. + +### GetEndCursorOk + +`func (o *PageInfo) GetEndCursorOk() (*string, bool)` + +GetEndCursorOk returns a tuple with the EndCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEndCursor + +`func (o *PageInfo) SetEndCursor(v string)` + +SetEndCursor sets EndCursor field to given value. + + +### GetHasPreviousPage + +`func (o *PageInfo) GetHasPreviousPage() bool` + +GetHasPreviousPage returns the HasPreviousPage field if non-nil, zero value otherwise. + +### GetHasPreviousPageOk + +`func (o *PageInfo) GetHasPreviousPageOk() (*bool, bool)` + +GetHasPreviousPageOk returns a tuple with the HasPreviousPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasPreviousPage + +`func (o *PageInfo) SetHasPreviousPage(v bool)` + +SetHasPreviousPage sets HasPreviousPage field to given value. + + +### GetStartCursor + +`func (o *PageInfo) GetStartCursor() string` + +GetStartCursor returns the StartCursor field if non-nil, zero value otherwise. + +### GetStartCursorOk + +`func (o *PageInfo) GetStartCursorOk() (*string, bool)` + +GetStartCursorOk returns a tuple with the StartCursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartCursor + +`func (o *PageInfo) SetStartCursor(v string)` + +SetStartCursor sets StartCursor 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/PaginatedAccessRulesList.md b/docs/PaginatedAccessRulesList.md new file mode 100644 index 0000000..159c7e1 --- /dev/null +++ b/docs/PaginatedAccessRulesList.md @@ -0,0 +1,103 @@ +# PaginatedAccessRulesList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Next** | Pointer to **string** | The cursor with which to continue pagination if additional result pages exist. | [optional] +**Previous** | Pointer to **string** | The cursor used to retrieve the previous page of results. | [optional] +**Results** | [**[]AccessRule**](AccessRule.md) | | + +## Methods + +### NewPaginatedAccessRulesList + +`func NewPaginatedAccessRulesList(results []AccessRule, ) *PaginatedAccessRulesList` + +NewPaginatedAccessRulesList instantiates a new PaginatedAccessRulesList 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 + +### NewPaginatedAccessRulesListWithDefaults + +`func NewPaginatedAccessRulesListWithDefaults() *PaginatedAccessRulesList` + +NewPaginatedAccessRulesListWithDefaults instantiates a new PaginatedAccessRulesList 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 + +### GetNext + +`func (o *PaginatedAccessRulesList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedAccessRulesList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedAccessRulesList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedAccessRulesList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedAccessRulesList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedAccessRulesList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedAccessRulesList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedAccessRulesList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedAccessRulesList) GetResults() []AccessRule` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedAccessRulesList) GetResultsOk() (*[]AccessRule, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedAccessRulesList) SetResults(v []AccessRule)` + +SetResults sets Results 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/PaginatedAssignedRequestList.md b/docs/PaginatedAssignedRequestList.md new file mode 100644 index 0000000..3c13dd6 --- /dev/null +++ b/docs/PaginatedAssignedRequestList.md @@ -0,0 +1,72 @@ +# PaginatedAssignedRequestList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Requests** | [**[]Request**](Request.md) | | +**Cursor** | **string** | The cursor to continue pagination | + +## Methods + +### NewPaginatedAssignedRequestList + +`func NewPaginatedAssignedRequestList(requests []Request, cursor string, ) *PaginatedAssignedRequestList` + +NewPaginatedAssignedRequestList instantiates a new PaginatedAssignedRequestList 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 + +### NewPaginatedAssignedRequestListWithDefaults + +`func NewPaginatedAssignedRequestListWithDefaults() *PaginatedAssignedRequestList` + +NewPaginatedAssignedRequestListWithDefaults instantiates a new PaginatedAssignedRequestList 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 + +### GetRequests + +`func (o *PaginatedAssignedRequestList) GetRequests() []Request` + +GetRequests returns the Requests field if non-nil, zero value otherwise. + +### GetRequestsOk + +`func (o *PaginatedAssignedRequestList) GetRequestsOk() (*[]Request, bool)` + +GetRequestsOk returns a tuple with the Requests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequests + +`func (o *PaginatedAssignedRequestList) SetRequests(v []Request)` + +SetRequests sets Requests field to given value. + + +### GetCursor + +`func (o *PaginatedAssignedRequestList) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *PaginatedAssignedRequestList) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *PaginatedAssignedRequestList) SetCursor(v string)` + +SetCursor sets Cursor 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/PaginatedDelegationsList.md b/docs/PaginatedDelegationsList.md new file mode 100644 index 0000000..ac60a5d --- /dev/null +++ b/docs/PaginatedDelegationsList.md @@ -0,0 +1,134 @@ +# PaginatedDelegationsList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]Delegation**](Delegation.md) | The delegations in the result set. | [optional] +**Next** | Pointer to **string** | The cursor with which to continue pagination if additional result pages exist. | [optional] +**Previous** | Pointer to **string** | The cursor used to obtain the current result page. | [optional] +**TotalCount** | Pointer to **int32** | The total number of items in the result set. | [optional] + +## Methods + +### NewPaginatedDelegationsList + +`func NewPaginatedDelegationsList() *PaginatedDelegationsList` + +NewPaginatedDelegationsList instantiates a new PaginatedDelegationsList 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 + +### NewPaginatedDelegationsListWithDefaults + +`func NewPaginatedDelegationsListWithDefaults() *PaginatedDelegationsList` + +NewPaginatedDelegationsListWithDefaults instantiates a new PaginatedDelegationsList 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 + +### GetResults + +`func (o *PaginatedDelegationsList) GetResults() []Delegation` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedDelegationsList) GetResultsOk() (*[]Delegation, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedDelegationsList) SetResults(v []Delegation)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *PaginatedDelegationsList) HasResults() bool` + +HasResults returns a boolean if a field has been set. + +### GetNext + +`func (o *PaginatedDelegationsList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedDelegationsList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedDelegationsList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedDelegationsList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedDelegationsList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedDelegationsList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedDelegationsList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedDelegationsList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetTotalCount + +`func (o *PaginatedDelegationsList) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *PaginatedDelegationsList) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *PaginatedDelegationsList) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount field to given value. + +### HasTotalCount + +`func (o *PaginatedDelegationsList) HasTotalCount() bool` + +HasTotalCount 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/PaginatedRemoteUsersList.md b/docs/PaginatedRemoteUsersList.md new file mode 100644 index 0000000..0b51788 --- /dev/null +++ b/docs/PaginatedRemoteUsersList.md @@ -0,0 +1,103 @@ +# PaginatedRemoteUsersList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Next** | Pointer to **string** | The cursor with which to continue pagination if additional result pages exist. | [optional] +**Previous** | Pointer to **string** | The cursor used to obtain the current result page. | [optional] +**Results** | [**[]RemoteUser**](RemoteUser.md) | | + +## Methods + +### NewPaginatedRemoteUsersList + +`func NewPaginatedRemoteUsersList(results []RemoteUser, ) *PaginatedRemoteUsersList` + +NewPaginatedRemoteUsersList instantiates a new PaginatedRemoteUsersList 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 + +### NewPaginatedRemoteUsersListWithDefaults + +`func NewPaginatedRemoteUsersListWithDefaults() *PaginatedRemoteUsersList` + +NewPaginatedRemoteUsersListWithDefaults instantiates a new PaginatedRemoteUsersList 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 + +### GetNext + +`func (o *PaginatedRemoteUsersList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedRemoteUsersList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedRemoteUsersList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedRemoteUsersList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedRemoteUsersList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedRemoteUsersList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedRemoteUsersList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedRemoteUsersList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedRemoteUsersList) GetResults() []RemoteUser` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedRemoteUsersList) GetResultsOk() (*[]RemoteUser, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedRemoteUsersList) SetResults(v []RemoteUser)` + +SetResults sets Results 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/PaginatedTokensList.md b/docs/PaginatedTokensList.md new file mode 100644 index 0000000..ed67c45 --- /dev/null +++ b/docs/PaginatedTokensList.md @@ -0,0 +1,103 @@ +# PaginatedTokensList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Next** | Pointer to **string** | The cursor with which to continue pagination if additional result pages exist. | [optional] +**Previous** | Pointer to **string** | The cursor used to obtain the current result page. | [optional] +**Results** | [**[]Token**](Token.md) | | + +## Methods + +### NewPaginatedTokensList + +`func NewPaginatedTokensList(results []Token, ) *PaginatedTokensList` + +NewPaginatedTokensList instantiates a new PaginatedTokensList 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 + +### NewPaginatedTokensListWithDefaults + +`func NewPaginatedTokensListWithDefaults() *PaginatedTokensList` + +NewPaginatedTokensListWithDefaults instantiates a new PaginatedTokensList 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 + +### GetNext + +`func (o *PaginatedTokensList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedTokensList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedTokensList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedTokensList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *PaginatedTokensList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedTokensList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedTokensList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedTokensList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### GetResults + +`func (o *PaginatedTokensList) GetResults() []Token` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedTokensList) GetResultsOk() (*[]Token, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedTokensList) SetResults(v []Token)` + +SetResults sets Results 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/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/RemoteUser.md b/docs/RemoteUser.md new file mode 100644 index 0000000..d200da6 --- /dev/null +++ b/docs/RemoteUser.md @@ -0,0 +1,93 @@ +# RemoteUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UserId** | **string** | The ID of the user. | +**RemoteId** | **string** | The ID of the remote user. | +**ThirdPartyProvider** | [**ThirdPartyProviderEnum**](ThirdPartyProviderEnum.md) | The third party provider of the remote user. | + +## Methods + +### NewRemoteUser + +`func NewRemoteUser(userId string, remoteId string, thirdPartyProvider ThirdPartyProviderEnum, ) *RemoteUser` + +NewRemoteUser instantiates a new RemoteUser 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 + +### NewRemoteUserWithDefaults + +`func NewRemoteUserWithDefaults() *RemoteUser` + +NewRemoteUserWithDefaults instantiates a new RemoteUser 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 + +### GetUserId + +`func (o *RemoteUser) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *RemoteUser) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *RemoteUser) SetUserId(v string)` + +SetUserId sets UserId field to given value. + + +### GetRemoteId + +`func (o *RemoteUser) GetRemoteId() string` + +GetRemoteId returns the RemoteId field if non-nil, zero value otherwise. + +### GetRemoteIdOk + +`func (o *RemoteUser) GetRemoteIdOk() (*string, bool)` + +GetRemoteIdOk returns a tuple with the RemoteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteId + +`func (o *RemoteUser) SetRemoteId(v string)` + +SetRemoteId sets RemoteId field to given value. + + +### GetThirdPartyProvider + +`func (o *RemoteUser) GetThirdPartyProvider() ThirdPartyProviderEnum` + +GetThirdPartyProvider returns the ThirdPartyProvider field if non-nil, zero value otherwise. + +### GetThirdPartyProviderOk + +`func (o *RemoteUser) GetThirdPartyProviderOk() (*ThirdPartyProviderEnum, bool)` + +GetThirdPartyProviderOk returns a tuple with the ThirdPartyProvider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetThirdPartyProvider + +`func (o *RemoteUser) SetThirdPartyProvider(v ThirdPartyProviderEnum)` + +SetThirdPartyProvider sets ThirdPartyProvider 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/Request.md b/docs/Request.md index 5dc80a4..d7f3b20 100644 --- a/docs/Request.md +++ b/docs/Request.md @@ -10,11 +10,13 @@ Name | Type | Description | Notes **RequesterId** | **string** | The unique identifier of the user who created the request. | **TargetUserId** | Pointer to **string** | The unique identifier of the user who is the target of the request. | [optional] **TargetGroupId** | Pointer to **string** | The unique identifier of the group who is the target of the request. | [optional] -**Status** | [**RequestStatusEnum**](RequestStatusEnum.md) | | +**Status** | [**RequestStatusEnum**](RequestStatusEnum.md) | The status of the request. | **Reason** | **string** | The reason for the request. | **DurationMinutes** | Pointer to **int32** | The duration of the request in minutes. | [optional] **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) | | [optional] ## Methods @@ -280,6 +282,56 @@ SetCustomFieldsResponses sets CustomFieldsResponses field to given value. HasCustomFieldsResponses returns a boolean if a field has been set. +### GetStages + +`func (o *Request) GetStages() RequestItemStages` + +GetStages returns the Stages field if non-nil, zero value otherwise. + +### GetStagesOk + +`func (o *Request) GetStagesOk() (*RequestItemStages, 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 *Request) SetStages(v RequestItemStages)` + +SetStages sets Stages field to given value. + +### HasStages + +`func (o *Request) HasStages() bool` + +HasStages returns a boolean if a field has been set. + +### GetReviewerStages + +`func (o *Request) GetReviewerStages() RequestReviewerStages` + +GetReviewerStages returns the ReviewerStages field if non-nil, zero value otherwise. + +### GetReviewerStagesOk + +`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)` + +SetReviewerStages sets ReviewerStages field to given value. + +### HasReviewerStages + +`func (o *Request) HasReviewerStages() bool` + +HasReviewerStages 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/RequestApprovalEnum.md b/docs/RequestApprovalEnum.md new file mode 100644 index 0000000..7485b55 --- /dev/null +++ b/docs/RequestApprovalEnum.md @@ -0,0 +1,13 @@ +# RequestApprovalEnum + +## Enum + + +* `REGULAR` (value: `"REGULAR"`) + +* `ADMIN` (value: `"ADMIN"`) + + +[[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/RequestComment.md b/docs/RequestComment.md new file mode 100644 index 0000000..c3245aa --- /dev/null +++ b/docs/RequestComment.md @@ -0,0 +1,166 @@ +# RequestComment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **time.Time** | The date and time the comment was created. | +**RequestId** | **string** | The unique identifier of the request the comment is associated with. | +**UserId** | **string** | The unique identifier of the user who made the comment. | +**UserFullName** | Pointer to **string** | The user's full name. | [optional] +**UserEmail** | Pointer to **string** | The user's email address. | [optional] +**Comment** | **string** | The content of the comment. | + +## Methods + +### NewRequestComment + +`func NewRequestComment(createdAt time.Time, requestId string, userId string, comment string, ) *RequestComment` + +NewRequestComment instantiates a new RequestComment 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 + +### NewRequestCommentWithDefaults + +`func NewRequestCommentWithDefaults() *RequestComment` + +NewRequestCommentWithDefaults instantiates a new RequestComment 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 + +### GetCreatedAt + +`func (o *RequestComment) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *RequestComment) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *RequestComment) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetRequestId + +`func (o *RequestComment) GetRequestId() string` + +GetRequestId returns the RequestId field if non-nil, zero value otherwise. + +### GetRequestIdOk + +`func (o *RequestComment) GetRequestIdOk() (*string, bool)` + +GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestId + +`func (o *RequestComment) SetRequestId(v string)` + +SetRequestId sets RequestId field to given value. + + +### GetUserId + +`func (o *RequestComment) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *RequestComment) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *RequestComment) SetUserId(v string)` + +SetUserId sets UserId field to given value. + + +### GetUserFullName + +`func (o *RequestComment) GetUserFullName() string` + +GetUserFullName returns the UserFullName field if non-nil, zero value otherwise. + +### GetUserFullNameOk + +`func (o *RequestComment) GetUserFullNameOk() (*string, bool)` + +GetUserFullNameOk returns a tuple with the UserFullName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserFullName + +`func (o *RequestComment) SetUserFullName(v string)` + +SetUserFullName sets UserFullName field to given value. + +### HasUserFullName + +`func (o *RequestComment) HasUserFullName() bool` + +HasUserFullName returns a boolean if a field has been set. + +### GetUserEmail + +`func (o *RequestComment) GetUserEmail() string` + +GetUserEmail returns the UserEmail field if non-nil, zero value otherwise. + +### GetUserEmailOk + +`func (o *RequestComment) GetUserEmailOk() (*string, bool)` + +GetUserEmailOk returns a tuple with the UserEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserEmail + +`func (o *RequestComment) SetUserEmail(v string)` + +SetUserEmail sets UserEmail field to given value. + +### HasUserEmail + +`func (o *RequestComment) HasUserEmail() bool` + +HasUserEmail returns a boolean if a field has been set. + +### GetComment + +`func (o *RequestComment) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *RequestComment) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *RequestComment) SetComment(v string)` + +SetComment sets Comment 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/RequestCommentList.md b/docs/RequestCommentList.md new file mode 100644 index 0000000..dc8d82a --- /dev/null +++ b/docs/RequestCommentList.md @@ -0,0 +1,51 @@ +# RequestCommentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comments** | [**[]RequestComment**](RequestComment.md) | | + +## Methods + +### NewRequestCommentList + +`func NewRequestCommentList(comments []RequestComment, ) *RequestCommentList` + +NewRequestCommentList instantiates a new RequestCommentList 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 + +### NewRequestCommentListWithDefaults + +`func NewRequestCommentListWithDefaults() *RequestCommentList` + +NewRequestCommentListWithDefaults instantiates a new RequestCommentList 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 + +### GetComments + +`func (o *RequestCommentList) GetComments() []RequestComment` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RequestCommentList) GetCommentsOk() (*[]RequestComment, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RequestCommentList) SetComments(v []RequestComment)` + +SetComments sets Comments 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/RequestConfiguration.md b/docs/RequestConfiguration.md index 21833c2..d9e633d 100644 --- a/docs/RequestConfiguration.md +++ b/docs/RequestConfiguration.md @@ -4,13 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Condition** | Pointer to [**Condition**](Condition.md) | | [optional] +**Condition** | Pointer to [**Condition**](Condition.md) | The condition for the request configuration. | [optional] **AllowRequests** | **bool** | A bool representing whether or not to allow requests for this resource. | **AutoApproval** | **bool** | A bool representing whether or not to automatically approve requests for this resource. | **RequireMfaToRequest** | **bool** | A bool representing whether or not to require MFA for requesting access to this resource. | **MaxDurationMinutes** | Pointer to **int32** | The maximum duration for which the resource can be requested (in minutes). | [optional] **RecommendedDurationMinutes** | Pointer to **int32** | The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. | [optional] **RequireSupportTicket** | **bool** | A bool representing whether or not access requests to the resource require an access ticket. | +**ExtensionsDurationInMinutes** | Pointer to **int32** | 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. | [optional] **RequestTemplateId** | Pointer to **string** | The ID of the associated request template. | [optional] **ReviewerStages** | Pointer to [**[]ReviewerStage**](ReviewerStage.md) | The list of reviewer stages for the request configuration. | [optional] **Priority** | **int32** | The priority of the request configuration. | @@ -189,6 +190,31 @@ and a boolean to check if the value has been set. SetRequireSupportTicket sets RequireSupportTicket field to given value. +### GetExtensionsDurationInMinutes + +`func (o *RequestConfiguration) GetExtensionsDurationInMinutes() int32` + +GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field if non-nil, zero value otherwise. + +### GetExtensionsDurationInMinutesOk + +`func (o *RequestConfiguration) GetExtensionsDurationInMinutesOk() (*int32, bool)` + +GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionsDurationInMinutes + +`func (o *RequestConfiguration) SetExtensionsDurationInMinutes(v int32)` + +SetExtensionsDurationInMinutes sets ExtensionsDurationInMinutes field to given value. + +### HasExtensionsDurationInMinutes + +`func (o *RequestConfiguration) HasExtensionsDurationInMinutes() bool` + +HasExtensionsDurationInMinutes returns a boolean if a field has been set. + ### GetRequestTemplateId `func (o *RequestConfiguration) GetRequestTemplateId() string` diff --git a/docs/RequestConnection.md b/docs/RequestConnection.md new file mode 100644 index 0000000..0bad569 --- /dev/null +++ b/docs/RequestConnection.md @@ -0,0 +1,93 @@ +# RequestConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Edges** | [**[]RequestEdge**](RequestEdge.md) | | +**PageInfo** | [**PageInfo**](PageInfo.md) | | +**TotalCount** | **int32** | The total number of items available | + +## Methods + +### NewRequestConnection + +`func NewRequestConnection(edges []RequestEdge, pageInfo PageInfo, totalCount int32, ) *RequestConnection` + +NewRequestConnection instantiates a new RequestConnection 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 + +### NewRequestConnectionWithDefaults + +`func NewRequestConnectionWithDefaults() *RequestConnection` + +NewRequestConnectionWithDefaults instantiates a new RequestConnection 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 + +### GetEdges + +`func (o *RequestConnection) GetEdges() []RequestEdge` + +GetEdges returns the Edges field if non-nil, zero value otherwise. + +### GetEdgesOk + +`func (o *RequestConnection) GetEdgesOk() (*[]RequestEdge, bool)` + +GetEdgesOk returns a tuple with the Edges field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEdges + +`func (o *RequestConnection) SetEdges(v []RequestEdge)` + +SetEdges sets Edges field to given value. + + +### GetPageInfo + +`func (o *RequestConnection) GetPageInfo() PageInfo` + +GetPageInfo returns the PageInfo field if non-nil, zero value otherwise. + +### GetPageInfoOk + +`func (o *RequestConnection) GetPageInfoOk() (*PageInfo, bool)` + +GetPageInfoOk returns a tuple with the PageInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageInfo + +`func (o *RequestConnection) SetPageInfo(v PageInfo)` + +SetPageInfo sets PageInfo field to given value. + + +### GetTotalCount + +`func (o *RequestConnection) GetTotalCount() int32` + +GetTotalCount returns the TotalCount field if non-nil, zero value otherwise. + +### GetTotalCountOk + +`func (o *RequestConnection) GetTotalCountOk() (*int32, bool)` + +GetTotalCountOk returns a tuple with the TotalCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalCount + +`func (o *RequestConnection) SetTotalCount(v int32)` + +SetTotalCount sets TotalCount 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/RequestEdge.md b/docs/RequestEdge.md new file mode 100644 index 0000000..f02cfb7 --- /dev/null +++ b/docs/RequestEdge.md @@ -0,0 +1,72 @@ +# RequestEdge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Node** | [**Request**](Request.md) | | +**Cursor** | **string** | The cursor for this request edge | + +## Methods + +### NewRequestEdge + +`func NewRequestEdge(node Request, cursor string, ) *RequestEdge` + +NewRequestEdge instantiates a new RequestEdge 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 + +### NewRequestEdgeWithDefaults + +`func NewRequestEdgeWithDefaults() *RequestEdge` + +NewRequestEdgeWithDefaults instantiates a new RequestEdge 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 + +### GetNode + +`func (o *RequestEdge) GetNode() Request` + +GetNode returns the Node field if non-nil, zero value otherwise. + +### GetNodeOk + +`func (o *RequestEdge) GetNodeOk() (*Request, bool)` + +GetNodeOk returns a tuple with the Node field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNode + +`func (o *RequestEdge) SetNode(v Request)` + +SetNode sets Node field to given value. + + +### GetCursor + +`func (o *RequestEdge) GetCursor() string` + +GetCursor returns the Cursor field if non-nil, zero value otherwise. + +### GetCursorOk + +`func (o *RequestEdge) GetCursorOk() (*string, bool)` + +GetCursorOk returns a tuple with the Cursor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCursor + +`func (o *RequestEdge) SetCursor(v string)` + +SetCursor sets Cursor 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/RequestItemStages.md b/docs/RequestItemStages.md new file mode 100644 index 0000000..492183c --- /dev/null +++ b/docs/RequestItemStages.md @@ -0,0 +1,98 @@ +# RequestItemStages + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RequestedRoleName** | Pointer to **string** | The name of the requested role | [optional] +**RequestedItemName** | **string** | The name of the requested item | +**Stages** | [**[]RequestStage**](RequestStage.md) | The stages of review for this request | + +## Methods + +### NewRequestItemStages + +`func NewRequestItemStages(requestedItemName string, stages []RequestStage, ) *RequestItemStages` + +NewRequestItemStages instantiates a new RequestItemStages 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 + +### NewRequestItemStagesWithDefaults + +`func NewRequestItemStagesWithDefaults() *RequestItemStages` + +NewRequestItemStagesWithDefaults instantiates a new RequestItemStages 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 + +### GetRequestedRoleName + +`func (o *RequestItemStages) GetRequestedRoleName() string` + +GetRequestedRoleName returns the RequestedRoleName field if non-nil, zero value otherwise. + +### GetRequestedRoleNameOk + +`func (o *RequestItemStages) GetRequestedRoleNameOk() (*string, bool)` + +GetRequestedRoleNameOk returns a tuple with the RequestedRoleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedRoleName + +`func (o *RequestItemStages) SetRequestedRoleName(v string)` + +SetRequestedRoleName sets RequestedRoleName field to given value. + +### HasRequestedRoleName + +`func (o *RequestItemStages) HasRequestedRoleName() bool` + +HasRequestedRoleName returns a boolean if a field has been set. + +### GetRequestedItemName + +`func (o *RequestItemStages) GetRequestedItemName() string` + +GetRequestedItemName returns the RequestedItemName field if non-nil, zero value otherwise. + +### GetRequestedItemNameOk + +`func (o *RequestItemStages) GetRequestedItemNameOk() (*string, bool)` + +GetRequestedItemNameOk returns a tuple with the RequestedItemName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestedItemName + +`func (o *RequestItemStages) SetRequestedItemName(v string)` + +SetRequestedItemName sets RequestedItemName field to given value. + + +### GetStages + +`func (o *RequestItemStages) GetStages() []RequestStage` + +GetStages returns the Stages field if non-nil, zero value otherwise. + +### GetStagesOk + +`func (o *RequestItemStages) 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 *RequestItemStages) 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/RequestReviewer.md b/docs/RequestReviewer.md new file mode 100644 index 0000000..7459ced --- /dev/null +++ b/docs/RequestReviewer.md @@ -0,0 +1,98 @@ +# RequestReviewer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The unique identifier of the reviewer | +**FullName** | Pointer to **string** | The user's full name. | [optional] +**Status** | **string** | The status of this reviewer's review | + +## Methods + +### NewRequestReviewer + +`func NewRequestReviewer(id string, status string, ) *RequestReviewer` + +NewRequestReviewer instantiates a new RequestReviewer 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 + +### NewRequestReviewerWithDefaults + +`func NewRequestReviewerWithDefaults() *RequestReviewer` + +NewRequestReviewerWithDefaults instantiates a new RequestReviewer 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 + +### GetId + +`func (o *RequestReviewer) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RequestReviewer) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RequestReviewer) SetId(v string)` + +SetId sets Id field to given value. + + +### GetFullName + +`func (o *RequestReviewer) GetFullName() string` + +GetFullName returns the FullName field if non-nil, zero value otherwise. + +### GetFullNameOk + +`func (o *RequestReviewer) GetFullNameOk() (*string, bool)` + +GetFullNameOk returns a tuple with the FullName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullName + +`func (o *RequestReviewer) SetFullName(v string)` + +SetFullName sets FullName field to given value. + +### HasFullName + +`func (o *RequestReviewer) HasFullName() bool` + +HasFullName returns a boolean if a field has been set. + +### GetStatus + +`func (o *RequestReviewer) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RequestReviewer) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RequestReviewer) SetStatus(v string)` + +SetStatus sets Status 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/RequestReviewerStages.md b/docs/RequestReviewerStages.md new file mode 100644 index 0000000..58861a2 --- /dev/null +++ b/docs/RequestReviewerStages.md @@ -0,0 +1,30 @@ +# RequestReviewerStages + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Methods + +### NewRequestReviewerStages + +`func NewRequestReviewerStages() *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 + +### NewRequestReviewerStagesWithDefaults + +`func NewRequestReviewerStagesWithDefaults() *RequestReviewerStages` + +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 + + +[[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/RequestStage.md b/docs/RequestStage.md new file mode 100644 index 0000000..8c9a449 --- /dev/null +++ b/docs/RequestStage.md @@ -0,0 +1,93 @@ +# RequestStage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Stage** | **int32** | The stage number | +**Operator** | [**ReviewStageOperator**](ReviewStageOperator.md) | The operator to apply to reviewers in this stage | +**Reviewers** | [**[]RequestReviewer**](RequestReviewer.md) | The reviewers for this stage | + +## Methods + +### NewRequestStage + +`func NewRequestStage(stage int32, operator ReviewStageOperator, reviewers []RequestReviewer, ) *RequestStage` + +NewRequestStage instantiates a new RequestStage 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 + +### NewRequestStageWithDefaults + +`func NewRequestStageWithDefaults() *RequestStage` + +NewRequestStageWithDefaults instantiates a new RequestStage 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 + +### GetStage + +`func (o *RequestStage) GetStage() int32` + +GetStage returns the Stage field if non-nil, zero value otherwise. + +### GetStageOk + +`func (o *RequestStage) GetStageOk() (*int32, bool)` + +GetStageOk returns a tuple with the Stage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStage + +`func (o *RequestStage) SetStage(v int32)` + +SetStage sets Stage field to given value. + + +### GetOperator + +`func (o *RequestStage) GetOperator() ReviewStageOperator` + +GetOperator returns the Operator field if non-nil, zero value otherwise. + +### GetOperatorOk + +`func (o *RequestStage) GetOperatorOk() (*ReviewStageOperator, bool)` + +GetOperatorOk returns a tuple with the Operator field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOperator + +`func (o *RequestStage) SetOperator(v ReviewStageOperator)` + +SetOperator sets Operator field to given value. + + +### GetReviewers + +`func (o *RequestStage) GetReviewers() []RequestReviewer` + +GetReviewers returns the Reviewers field if non-nil, zero value otherwise. + +### GetReviewersOk + +`func (o *RequestStage) GetReviewersOk() (*[]RequestReviewer, bool)` + +GetReviewersOk returns a tuple with the Reviewers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReviewers + +`func (o *RequestStage) SetReviewers(v []RequestReviewer)` + +SetReviewers sets Reviewers 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/RequestStatusEnum.md b/docs/RequestStatusEnum.md index f04478c..fada469 100644 --- a/docs/RequestStatusEnum.md +++ b/docs/RequestStatusEnum.md @@ -3,13 +3,13 @@ ## Enum -* `PENDING` (value: `"pending"`) +* `PENDING` (value: `"PENDING"`) -* `APPROVED` (value: `"approved"`) +* `APPROVED` (value: `"APPROVED"`) -* `DENIED` (value: `"denied"`) +* `DENIED` (value: `"DENIED"`) -* `CANCELED` (value: `"canceled"`) +* `CANCELED` (value: `"CANCELED"`) [[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/RequestedItem.md b/docs/RequestedItem.md index 181ecdf..242ebf2 100644 --- a/docs/RequestedItem.md +++ b/docs/RequestedItem.md @@ -9,6 +9,8 @@ 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] **Name** | Pointer to **string** | The name of the target. | [optional] +**RemoteId** | Pointer to **string** | The ID of the target on the remote system. | [optional] +**RemoteName** | Pointer to **string** | The name of the target on the remote system. | [optional] ## Methods @@ -154,6 +156,56 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. +### GetRemoteId + +`func (o *RequestedItem) GetRemoteId() string` + +GetRemoteId returns the RemoteId field if non-nil, zero value otherwise. + +### GetRemoteIdOk + +`func (o *RequestedItem) GetRemoteIdOk() (*string, bool)` + +GetRemoteIdOk returns a tuple with the RemoteId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteId + +`func (o *RequestedItem) SetRemoteId(v string)` + +SetRemoteId sets RemoteId field to given value. + +### HasRemoteId + +`func (o *RequestedItem) HasRemoteId() bool` + +HasRemoteId returns a boolean if a field has been set. + +### GetRemoteName + +`func (o *RequestedItem) GetRemoteName() string` + +GetRemoteName returns the RemoteName field if non-nil, zero value otherwise. + +### GetRemoteNameOk + +`func (o *RequestedItem) GetRemoteNameOk() (*string, bool)` + +GetRemoteNameOk returns a tuple with the RemoteName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteName + +`func (o *RequestedItem) SetRemoteName(v string)` + +SetRemoteName sets RemoteName field to given value. + +### HasRemoteName + +`func (o *RequestedItem) HasRemoteName() bool` + +HasRemoteName 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/RequestsApi.md b/docs/RequestsApi.md index 1a372b8..ee196a9 100644 --- a/docs/RequestsApi.md +++ b/docs/RequestsApi.md @@ -4,11 +4,89 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**ApproveRequest**](RequestsAPI.md#ApproveRequest) | **Post** /requests/{id}/approve | [**CreateRequest**](RequestsAPI.md#CreateRequest) | **Post** /requests | -[**GetRequests**](RequestsAPI.md#GetRequests) | **Get** /requests | +[**CreateRequestComment**](RequestsAPI.md#CreateRequestComment) | **Post** /requests/{id}/comments | +[**DenyRequest**](RequestsAPI.md#DenyRequest) | **Post** /requests/{id}/deny | +[**GetRequest**](RequestsAPI.md#GetRequest) | **Get** /requests/{id} | Get request by ID +[**GetRequestComments**](RequestsAPI.md#GetRequestComments) | **Get** /requests/{id}/comments | +[**GetRequests**](RequestsAPI.md#GetRequests) | **Get** /requests | Get requests +[**GetRequestsRelay**](RequestsAPI.md#GetRequestsRelay) | **Get** /requests/relay | Get requests via Relay +## ApproveRequest + +> ApproveRequest200Response ApproveRequest(ctx, id).ApproveRequestRequest(approveRequestRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the request to approve + approveRequestRequest := *openapiclient.NewApproveRequestRequest(openapiclient.RequestApprovalEnum("REGULAR")) // ApproveRequestRequest | Approval parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RequestsAPI.ApproveRequest(context.Background(), id).ApproveRequestRequest(approveRequestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestsAPI.ApproveRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ApproveRequest`: ApproveRequest200Response + fmt.Fprintf(os.Stdout, "Response from `RequestsAPI.ApproveRequest`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of the request to approve | + +### Other Parameters + +Other parameters are passed through a pointer to a apiApproveRequestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **approveRequestRequest** | [**ApproveRequestRequest**](ApproveRequestRequest.md) | Approval parameters | + +### Return type + +[**ApproveRequest200Response**](ApproveRequest200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## CreateRequest > CreateRequest200Response CreateRequest(ctx).CreateRequestInfo(createRequestInfo).Execute() @@ -75,9 +153,223 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## GetRequests +## CreateRequestComment + +> ApproveRequest200Response CreateRequestComment(ctx, id).CreateRequestCommentRequest(createRequestCommentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the request to comment on + createRequestCommentRequest := *openapiclient.NewCreateRequestCommentRequest("Comment_example") // CreateRequestCommentRequest | Comment parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RequestsAPI.CreateRequestComment(context.Background(), id).CreateRequestCommentRequest(createRequestCommentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestsAPI.CreateRequestComment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateRequestComment`: ApproveRequest200Response + fmt.Fprintf(os.Stdout, "Response from `RequestsAPI.CreateRequestComment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of the request to comment on | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateRequestCommentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createRequestCommentRequest** | [**CreateRequestCommentRequest**](CreateRequestCommentRequest.md) | Comment parameters | + +### Return type + +[**ApproveRequest200Response**](ApproveRequest200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + +## DenyRequest + +> ApproveRequest200Response DenyRequest(ctx, id).DenyRequestRequest(denyRequestRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the request to deny + denyRequestRequest := *openapiclient.NewDenyRequestRequest("Denied due to insufficient justification") // DenyRequestRequest | Denial parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RequestsAPI.DenyRequest(context.Background(), id).DenyRequestRequest(denyRequestRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestsAPI.DenyRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DenyRequest`: ApproveRequest200Response + fmt.Fprintf(os.Stdout, "Response from `RequestsAPI.DenyRequest`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of the request to deny | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDenyRequestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **denyRequestRequest** | [**DenyRequestRequest**](DenyRequestRequest.md) | Denial parameters | + +### Return type + +[**ApproveRequest200Response**](ApproveRequest200Response.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + +## GetRequest + +> Request GetRequest(ctx, id).Execute() + +Get request by ID + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + id := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the request. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RequestsAPI.GetRequest(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestsAPI.GetRequest``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRequest`: Request + fmt.Fprintf(os.Stdout, "Response from `RequestsAPI.GetRequest`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of the request. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRequestRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Request**](Request.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json -> RequestList GetRequests(ctx).Cursor(cursor).PageSize(pageSize).ShowPendingOnly(showPendingOnly).Execute() +[[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) + + +## GetRequestComments + +> RequestCommentList GetRequestComments(ctx, id).Execute() @@ -96,13 +388,89 @@ import ( ) func main() { + id := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | The ID of the request to get comments for + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RequestsAPI.GetRequestComments(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestsAPI.GetRequestComments``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRequestComments`: RequestCommentList + fmt.Fprintf(os.Stdout, "Response from `RequestsAPI.GetRequestComments`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | The ID of the request to get comments for | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRequestCommentsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RequestCommentList**](RequestCommentList.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) + + +## GetRequests + +> RequestList GetRequests(ctx).StartDateFilter(startDateFilter).EndDateFilter(endDateFilter).RequesterId(requesterId).TargetUserId(targetUserId).ResourceId(resourceId).GroupId(groupId).Cursor(cursor).PageSize(pageSize).ShowPendingOnly(showPendingOnly).Execute() + +Get requests + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + startDateFilter := "2021-11-01" // string | A start date filter for the events. (optional) + endDateFilter := "2021-11-12" // string | An end date filter for the events. (optional) + requesterId := "37cb7e41-12ba-46da-92ff-030abe0450b1" // string | Filter requests by their requester ID. (optional) + targetUserId := "37cb7e41-12ba-46da-92ff-030abe0450b1" // string | Filter requests by their target user ID. (optional) + resourceId := "37cb7e41-12ba-46da-92ff-030abe0450b1" // string | Filter requests by the resource ID that was requested. (optional) + groupId := "37cb7e41-12ba-46da-92ff-030abe0450b1" // string | Filter requests by the group ID that was requested. (optional) cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) showPendingOnly := true // bool | Boolean toggle for if it should only show pending requests. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.RequestsAPI.GetRequests(context.Background()).Cursor(cursor).PageSize(pageSize).ShowPendingOnly(showPendingOnly).Execute() + resp, r, err := apiClient.RequestsAPI.GetRequests(context.Background()).StartDateFilter(startDateFilter).EndDateFilter(endDateFilter).RequesterId(requesterId).TargetUserId(targetUserId).ResourceId(resourceId).GroupId(groupId).Cursor(cursor).PageSize(pageSize).ShowPendingOnly(showPendingOnly).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `RequestsAPI.GetRequests``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -123,6 +491,12 @@ Other parameters are passed through a pointer to a apiGetRequestsRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **startDateFilter** | **string** | A start date filter for the events. | + **endDateFilter** | **string** | An end date filter for the events. | + **requesterId** | **string** | Filter requests by their requester ID. | + **targetUserId** | **string** | Filter requests by their target user ID. | + **resourceId** | **string** | Filter requests by the resource ID that was requested. | + **groupId** | **string** | Filter requests by the group ID that was requested. | **cursor** | **string** | The pagination cursor value. | **pageSize** | **int32** | Number of results to return per page. Default is 200. | **showPendingOnly** | **bool** | Boolean toggle for if it should only show pending requests. | @@ -144,3 +518,81 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## GetRequestsRelay + +> RequestConnection GetRequestsRelay(ctx).First(first).After(after).Last(last).Before(before).Status(status).To(to).From(from).Execute() + +Get requests via Relay + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + first := int32(10) // int32 | Number of results to return after the cursor. Use either first/after or last/before, not both. (optional) + after := "Y3Vyc29yOnYyOpK5MjAyMS0wMS0wN1QwNzo0MToyNy4xMTlaFjYwZmM2YmJlZjk4YzE1N2ZhNjFhYjk4Nw==" // string | Cursor to fetch results after. Used with 'first' for forward pagination. (optional) + last := int32(10) // int32 | Number of results to return before the cursor. Use either first/after or last/before, not both. (optional) + before := "Y3Vyc29yOnYyOpK5MjAyMS0wMS0wN1QwNzo0MToyNy4xMTlaFjYwZmM2YmJlZjk4YzE1N2ZhNjFhYjk4Nw==" // string | Cursor to fetch results before. Used with 'last' for backward pagination. (optional) + status := openapiclient.RequestStatusEnum("PENDING") // RequestStatusEnum | Filter requests by their status. (optional) + to := "37cb7e41-12ba-46da-92ff-030abe0450b1" // string | Filter requests assigned to a specific user ID. (optional) + from := "37cb7e41-12ba-46da-92ff-030abe0450b1" // string | Filter requests made by a specific user ID. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.RequestsAPI.GetRequestsRelay(context.Background()).First(first).After(after).Last(last).Before(before).Status(status).To(to).From(from).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `RequestsAPI.GetRequestsRelay``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRequestsRelay`: RequestConnection + fmt.Fprintf(os.Stdout, "Response from `RequestsAPI.GetRequestsRelay`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRequestsRelayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **first** | **int32** | Number of results to return after the cursor. Use either first/after or last/before, not both. | + **after** | **string** | Cursor to fetch results after. Used with 'first' for forward pagination. | + **last** | **int32** | Number of results to return before the cursor. Use either first/after or last/before, not both. | + **before** | **string** | Cursor to fetch results before. Used with 'last' for backward pagination. | + **status** | [**RequestStatusEnum**](RequestStatusEnum.md) | Filter requests by their status. | + **to** | **string** | Filter requests assigned to a specific user ID. | + **from** | **string** | Filter requests made by a specific user ID. | + +### Return type + +[**RequestConnection**](RequestConnection.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/Resource.md b/docs/Resource.md index ac429cf..a60aede 100644 --- a/docs/Resource.md +++ b/docs/Resource.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **ResourceType** | Pointer to [**ResourceTypeEnum**](ResourceTypeEnum.md) | | [optional] **MaxDuration** | Pointer to **int32** | The maximum duration for which the resource can be requested (in minutes). | [optional] **RecommendedDuration** | Pointer to **int32** | The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. | [optional] +**ExtensionsDurationInMinutes** | Pointer to **int32** | 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. | [optional] **RequireManagerApproval** | Pointer to **bool** | A bool representing whether or not access requests to the resource require manager approval. | [optional] **RequireSupportTicket** | Pointer to **bool** | A bool representing whether or not access requests to the resource require an access ticket. | [optional] **RequireMfaToApprove** | Pointer to **bool** | A bool representing whether or not to require MFA for reviewers to approve requests for this resource. | [optional] @@ -32,6 +33,9 @@ Name | Type | Description | Notes **RiskSensitivityOverride** | Pointer to [**RiskSensitivityEnum**](RiskSensitivityEnum.md) | | [optional] **Metadata** | Pointer to **string** | 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. | [optional] **RemoteInfo** | Pointer to [**ResourceRemoteInfo**](ResourceRemoteInfo.md) | | [optional] +**AncestorResourceIds** | Pointer to **[]string** | List of resource IDs that are ancestors of this resource. | [optional] +**DescendantResourceIds** | Pointer to **[]string** | List of resource IDs that are descendants of this resource. | [optional] +**LastSuccessfulSync** | Pointer to [**SyncTask**](SyncTask.md) | Information about the last successful sync of this resource. | [optional] [readonly] ## Methods @@ -297,6 +301,31 @@ SetRecommendedDuration sets RecommendedDuration field to given value. HasRecommendedDuration returns a boolean if a field has been set. +### GetExtensionsDurationInMinutes + +`func (o *Resource) GetExtensionsDurationInMinutes() int32` + +GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field if non-nil, zero value otherwise. + +### GetExtensionsDurationInMinutesOk + +`func (o *Resource) GetExtensionsDurationInMinutesOk() (*int32, bool)` + +GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionsDurationInMinutes + +`func (o *Resource) SetExtensionsDurationInMinutes(v int32)` + +SetExtensionsDurationInMinutes sets ExtensionsDurationInMinutes field to given value. + +### HasExtensionsDurationInMinutes + +`func (o *Resource) HasExtensionsDurationInMinutes() bool` + +HasExtensionsDurationInMinutes returns a boolean if a field has been set. + ### GetRequireManagerApproval `func (o *Resource) GetRequireManagerApproval() bool` @@ -747,6 +776,81 @@ SetRemoteInfo sets RemoteInfo field to given value. HasRemoteInfo returns a boolean if a field has been set. +### GetAncestorResourceIds + +`func (o *Resource) GetAncestorResourceIds() []string` + +GetAncestorResourceIds returns the AncestorResourceIds field if non-nil, zero value otherwise. + +### GetAncestorResourceIdsOk + +`func (o *Resource) GetAncestorResourceIdsOk() (*[]string, bool)` + +GetAncestorResourceIdsOk returns a tuple with the AncestorResourceIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAncestorResourceIds + +`func (o *Resource) SetAncestorResourceIds(v []string)` + +SetAncestorResourceIds sets AncestorResourceIds field to given value. + +### HasAncestorResourceIds + +`func (o *Resource) HasAncestorResourceIds() bool` + +HasAncestorResourceIds returns a boolean if a field has been set. + +### GetDescendantResourceIds + +`func (o *Resource) GetDescendantResourceIds() []string` + +GetDescendantResourceIds returns the DescendantResourceIds field if non-nil, zero value otherwise. + +### GetDescendantResourceIdsOk + +`func (o *Resource) GetDescendantResourceIdsOk() (*[]string, bool)` + +GetDescendantResourceIdsOk returns a tuple with the DescendantResourceIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescendantResourceIds + +`func (o *Resource) SetDescendantResourceIds(v []string)` + +SetDescendantResourceIds sets DescendantResourceIds field to given value. + +### HasDescendantResourceIds + +`func (o *Resource) HasDescendantResourceIds() bool` + +HasDescendantResourceIds returns a boolean if a field has been set. + +### GetLastSuccessfulSync + +`func (o *Resource) GetLastSuccessfulSync() SyncTask` + +GetLastSuccessfulSync returns the LastSuccessfulSync field if non-nil, zero value otherwise. + +### GetLastSuccessfulSyncOk + +`func (o *Resource) GetLastSuccessfulSyncOk() (*SyncTask, bool)` + +GetLastSuccessfulSyncOk returns a tuple with the LastSuccessfulSync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSuccessfulSync + +`func (o *Resource) SetLastSuccessfulSync(v SyncTask)` + +SetLastSuccessfulSync sets LastSuccessfulSync field to given value. + +### HasLastSuccessfulSync + +`func (o *Resource) HasLastSuccessfulSync() bool` + +HasLastSuccessfulSync 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/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/ResourceAccessUserList.md b/docs/ResourceAccessUserList.md index e107b71..bd5d76d 100644 --- a/docs/ResourceAccessUserList.md +++ b/docs/ResourceAccessUserList.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Next** | Pointer to **string** | The cursor with which to continue pagination if additional result pages exist. | [optional] +**Previous** | Pointer to **string** | The cursor used to obtain the current result page. | [optional] **Results** | Pointer to [**[]ResourceAccessUser**](ResourceAccessUser.md) | | [optional] ## Methods @@ -25,6 +27,56 @@ NewResourceAccessUserListWithDefaults instantiates a new ResourceAccessUserList 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 +### GetNext + +`func (o *ResourceAccessUserList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *ResourceAccessUserList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *ResourceAccessUserList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *ResourceAccessUserList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPrevious + +`func (o *ResourceAccessUserList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *ResourceAccessUserList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *ResourceAccessUserList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *ResourceAccessUserList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + ### GetResults `func (o *ResourceAccessUserList) GetResults() []ResourceAccessUser` diff --git a/docs/ResourceRemoteInfo.md b/docs/ResourceRemoteInfo.md index 7192f26..a6ac8ed 100644 --- a/docs/ResourceRemoteInfo.md +++ b/docs/ResourceRemoteInfo.md @@ -4,12 +4,29 @@ 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] **GcpOrganization** | Pointer to [**ResourceRemoteInfoGcpOrganization**](ResourceRemoteInfoGcpOrganization.md) | | [optional] **GcpBucket** | Pointer to [**ResourceRemoteInfoGcpBucket**](ResourceRemoteInfoGcpBucket.md) | | [optional] **GcpComputeInstance** | Pointer to [**ResourceRemoteInfoGcpComputeInstance**](ResourceRemoteInfoGcpComputeInstance.md) | | [optional] @@ -20,16 +37,45 @@ Name | Type | Description | Notes **GcpProject** | Pointer to [**ResourceRemoteInfoGcpProject**](ResourceRemoteInfoGcpProject.md) | | [optional] **GcpSqlInstance** | Pointer to [**ResourceRemoteInfoGcpSqlInstance**](ResourceRemoteInfoGcpSqlInstance.md) | | [optional] **GcpServiceAccount** | Pointer to [**ResourceRemoteInfoGcpServiceAccount**](ResourceRemoteInfoGcpServiceAccount.md) | | [optional] +**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] +**GithubEnterpriseRole** | Pointer to [**ResourceRemoteInfoGithubEnterpriseRole**](ResourceRemoteInfoGithubEnterpriseRole.md) | | [optional] **GitlabProject** | Pointer to [**ResourceRemoteInfoGitlabProject**](ResourceRemoteInfoGitlabProject.md) | | [optional] **OktaApp** | Pointer to [**ResourceRemoteInfoOktaApp**](ResourceRemoteInfoOktaApp.md) | | [optional] **OktaStandardRole** | Pointer to [**ResourceRemoteInfoOktaStandardRole**](ResourceRemoteInfoOktaStandardRole.md) | | [optional] **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] +**TwingateResource** | Pointer to [**ResourceRemoteInfoTwingateResource**](ResourceRemoteInfoTwingateResource.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] +**NetsuiteRole** | Pointer to [**ResourceRemoteInfoNetsuiteRole**](ResourceRemoteInfoNetsuiteRole.md) | | [optional] +**DatadogRole** | Pointer to [**ResourceRemoteInfoDatadogRole**](ResourceRemoteInfoDatadogRole.md) | | [optional] +**ClickhouseDatabase** | Pointer to [**ResourceRemoteInfoClickhouseDatabase**](ResourceRemoteInfoClickhouseDatabase.md) | | [optional] +**ClickhouseTable** | Pointer to [**ResourceRemoteInfoClickhouseTable**](ResourceRemoteInfoClickhouseTable.md) | | [optional] +**GrafanaFolder** | Pointer to [**ResourceRemoteInfoGrafanaFolder**](ResourceRemoteInfoGrafanaFolder.md) | | [optional] +**GrafanaDashboard** | Pointer to [**ResourceRemoteInfoGrafanaDashboard**](ResourceRemoteInfoGrafanaDashboard.md) | | [optional] +**GrafanaRole** | Pointer to [**ResourceRemoteInfoGrafanaRole**](ResourceRemoteInfoGrafanaRole.md) | | [optional] +**ZendeskRole** | Pointer to [**ResourceRemoteInfoZendeskRole**](ResourceRemoteInfoZendeskRole.md) | | [optional] +**HubspotRole** | Pointer to [**ResourceRemoteInfoHubspotRole**](ResourceRemoteInfoHubspotRole.md) | | [optional] ## Methods @@ -50,6 +96,381 @@ 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` + +GetAwsOrganizationalUnit returns the AwsOrganizationalUnit field if non-nil, zero value otherwise. + +### GetAwsOrganizationalUnitOk + +`func (o *ResourceRemoteInfo) GetAwsOrganizationalUnitOk() (*ResourceRemoteInfoAwsOrganizationalUnit, bool)` + +GetAwsOrganizationalUnitOk returns a tuple with the AwsOrganizationalUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAwsOrganizationalUnit + +`func (o *ResourceRemoteInfo) SetAwsOrganizationalUnit(v ResourceRemoteInfoAwsOrganizationalUnit)` + +SetAwsOrganizationalUnit sets AwsOrganizationalUnit field to given value. + +### HasAwsOrganizationalUnit + +`func (o *ResourceRemoteInfo) HasAwsOrganizationalUnit() bool` + +HasAwsOrganizationalUnit returns a boolean if a field has been set. + ### GetAwsAccount `func (o *ResourceRemoteInfo) GetAwsAccount() ResourceRemoteInfoAwsAccount` @@ -150,6 +571,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` @@ -200,6 +646,31 @@ SetAwsEksCluster sets AwsEksCluster field to given value. HasAwsEksCluster returns a boolean if a field has been set. +### GetCustomConnector + +`func (o *ResourceRemoteInfo) GetCustomConnector() ResourceRemoteInfoCustomConnector` + +GetCustomConnector returns the CustomConnector field if non-nil, zero value otherwise. + +### GetCustomConnectorOk + +`func (o *ResourceRemoteInfo) GetCustomConnectorOk() (*ResourceRemoteInfoCustomConnector, bool)` + +GetCustomConnectorOk returns a tuple with the CustomConnector field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomConnector + +`func (o *ResourceRemoteInfo) SetCustomConnector(v ResourceRemoteInfoCustomConnector)` + +SetCustomConnector sets CustomConnector field to given value. + +### HasCustomConnector + +`func (o *ResourceRemoteInfo) HasCustomConnector() bool` + +HasCustomConnector returns a boolean if a field has been set. + ### GetGcpOrganization `func (o *ResourceRemoteInfo) GetGcpOrganization() ResourceRemoteInfoGcpOrganization` @@ -450,6 +921,31 @@ SetGcpServiceAccount sets GcpServiceAccount field to given value. HasGcpServiceAccount returns a boolean if a field has been set. +### GetGoogleWorkspaceRole + +`func (o *ResourceRemoteInfo) GetGoogleWorkspaceRole() ResourceRemoteInfoGoogleWorkspaceRole` + +GetGoogleWorkspaceRole returns the GoogleWorkspaceRole field if non-nil, zero value otherwise. + +### GetGoogleWorkspaceRoleOk + +`func (o *ResourceRemoteInfo) GetGoogleWorkspaceRoleOk() (*ResourceRemoteInfoGoogleWorkspaceRole, bool)` + +GetGoogleWorkspaceRoleOk returns a tuple with the GoogleWorkspaceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGoogleWorkspaceRole + +`func (o *ResourceRemoteInfo) SetGoogleWorkspaceRole(v ResourceRemoteInfoGoogleWorkspaceRole)` + +SetGoogleWorkspaceRole sets GoogleWorkspaceRole field to given value. + +### HasGoogleWorkspaceRole + +`func (o *ResourceRemoteInfo) HasGoogleWorkspaceRole() bool` + +HasGoogleWorkspaceRole returns a boolean if a field has been set. + ### GetGithubRepo `func (o *ResourceRemoteInfo) GetGithubRepo() ResourceRemoteInfoGithubRepo` @@ -475,51 +971,126 @@ SetGithubRepo sets GithubRepo field to given value. HasGithubRepo returns a boolean if a field has been set. -### GetGitlabProject +### GetGithubOrgRole -`func (o *ResourceRemoteInfo) GetGitlabProject() ResourceRemoteInfoGitlabProject` +`func (o *ResourceRemoteInfo) GetGithubOrgRole() ResourceRemoteInfoGithubOrgRole` -GetGitlabProject returns the GitlabProject field if non-nil, zero value otherwise. +GetGithubOrgRole returns the GithubOrgRole field if non-nil, zero value otherwise. -### GetGitlabProjectOk +### GetGithubOrgRoleOk -`func (o *ResourceRemoteInfo) GetGitlabProjectOk() (*ResourceRemoteInfoGitlabProject, bool)` +`func (o *ResourceRemoteInfo) GetGithubOrgRoleOk() (*ResourceRemoteInfoGithubOrgRole, bool)` -GetGitlabProjectOk returns a tuple with the GitlabProject field if it's non-nil, zero value otherwise +GetGithubOrgRoleOk returns a tuple with the GithubOrgRole field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetGitlabProject +### SetGithubOrgRole -`func (o *ResourceRemoteInfo) SetGitlabProject(v ResourceRemoteInfoGitlabProject)` +`func (o *ResourceRemoteInfo) SetGithubOrgRole(v ResourceRemoteInfoGithubOrgRole)` -SetGitlabProject sets GitlabProject field to given value. +SetGithubOrgRole sets GithubOrgRole field to given value. -### HasGitlabProject +### HasGithubOrgRole -`func (o *ResourceRemoteInfo) HasGitlabProject() bool` +`func (o *ResourceRemoteInfo) HasGithubOrgRole() bool` -HasGitlabProject returns a boolean if a field has been set. +HasGithubOrgRole returns a boolean if a field has been set. -### GetOktaApp +### GetGithubOrg -`func (o *ResourceRemoteInfo) GetOktaApp() ResourceRemoteInfoOktaApp` +`func (o *ResourceRemoteInfo) GetGithubOrg() ResourceRemoteInfoGithubOrg` -GetOktaApp returns the OktaApp field if non-nil, zero value otherwise. +GetGithubOrg returns the GithubOrg field if non-nil, zero value otherwise. -### GetOktaAppOk +### GetGithubOrgOk -`func (o *ResourceRemoteInfo) GetOktaAppOk() (*ResourceRemoteInfoOktaApp, bool)` +`func (o *ResourceRemoteInfo) GetGithubOrgOk() (*ResourceRemoteInfoGithubOrg, bool)` -GetOktaAppOk returns a tuple with the OktaApp field if it's non-nil, zero value otherwise +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. -### SetOktaApp +### SetGithubOrg -`func (o *ResourceRemoteInfo) SetOktaApp(v ResourceRemoteInfoOktaApp)` +`func (o *ResourceRemoteInfo) SetGithubOrg(v ResourceRemoteInfoGithubOrg)` -SetOktaApp sets OktaApp field to given value. +SetGithubOrg sets GithubOrg field to given value. -### HasOktaApp +### HasGithubOrg + +`func (o *ResourceRemoteInfo) HasGithubOrg() bool` + +HasGithubOrg returns a boolean if a field has been set. + +### GetGithubEnterpriseRole + +`func (o *ResourceRemoteInfo) GetGithubEnterpriseRole() ResourceRemoteInfoGithubEnterpriseRole` + +GetGithubEnterpriseRole returns the GithubEnterpriseRole field if non-nil, zero value otherwise. + +### GetGithubEnterpriseRoleOk + +`func (o *ResourceRemoteInfo) GetGithubEnterpriseRoleOk() (*ResourceRemoteInfoGithubEnterpriseRole, bool)` + +GetGithubEnterpriseRoleOk returns a tuple with the GithubEnterpriseRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGithubEnterpriseRole + +`func (o *ResourceRemoteInfo) SetGithubEnterpriseRole(v ResourceRemoteInfoGithubEnterpriseRole)` + +SetGithubEnterpriseRole sets GithubEnterpriseRole field to given value. + +### HasGithubEnterpriseRole + +`func (o *ResourceRemoteInfo) HasGithubEnterpriseRole() bool` + +HasGithubEnterpriseRole returns a boolean if a field has been set. + +### GetGitlabProject + +`func (o *ResourceRemoteInfo) GetGitlabProject() ResourceRemoteInfoGitlabProject` + +GetGitlabProject returns the GitlabProject field if non-nil, zero value otherwise. + +### GetGitlabProjectOk + +`func (o *ResourceRemoteInfo) GetGitlabProjectOk() (*ResourceRemoteInfoGitlabProject, bool)` + +GetGitlabProjectOk returns a tuple with the GitlabProject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGitlabProject + +`func (o *ResourceRemoteInfo) SetGitlabProject(v ResourceRemoteInfoGitlabProject)` + +SetGitlabProject sets GitlabProject field to given value. + +### HasGitlabProject + +`func (o *ResourceRemoteInfo) HasGitlabProject() bool` + +HasGitlabProject returns a boolean if a field has been set. + +### GetOktaApp + +`func (o *ResourceRemoteInfo) GetOktaApp() ResourceRemoteInfoOktaApp` + +GetOktaApp returns the OktaApp field if non-nil, zero value otherwise. + +### GetOktaAppOk + +`func (o *ResourceRemoteInfo) GetOktaAppOk() (*ResourceRemoteInfoOktaApp, bool)` + +GetOktaAppOk returns a tuple with the OktaApp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOktaApp + +`func (o *ResourceRemoteInfo) SetOktaApp(v ResourceRemoteInfoOktaApp)` + +SetOktaApp sets OktaApp field to given value. + +### HasOktaApp `func (o *ResourceRemoteInfo) HasOktaApp() bool` @@ -575,6 +1146,156 @@ 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. + +### GetTwingateResource + +`func (o *ResourceRemoteInfo) GetTwingateResource() ResourceRemoteInfoTwingateResource` + +GetTwingateResource returns the TwingateResource field if non-nil, zero value otherwise. + +### GetTwingateResourceOk + +`func (o *ResourceRemoteInfo) GetTwingateResourceOk() (*ResourceRemoteInfoTwingateResource, bool)` + +GetTwingateResourceOk returns a tuple with the TwingateResource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTwingateResource + +`func (o *ResourceRemoteInfo) SetTwingateResource(v ResourceRemoteInfoTwingateResource)` + +SetTwingateResource sets TwingateResource field to given value. + +### HasTwingateResource + +`func (o *ResourceRemoteInfo) HasTwingateResource() bool` + +HasTwingateResource returns a boolean if a field has been set. + ### GetPagerdutyRole `func (o *ResourceRemoteInfo) GetPagerdutyRole() ResourceRemoteInfoPagerdutyRole` @@ -600,6 +1321,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` @@ -700,6 +1446,456 @@ SetTeleportRole sets TeleportRole field to given value. HasTeleportRole returns a boolean if a field has been set. +### GetDatastaxAstraRole + +`func (o *ResourceRemoteInfo) GetDatastaxAstraRole() ResourceRemoteInfoDatastaxAstraRole` + +GetDatastaxAstraRole returns the DatastaxAstraRole field if non-nil, zero value otherwise. + +### GetDatastaxAstraRoleOk + +`func (o *ResourceRemoteInfo) GetDatastaxAstraRoleOk() (*ResourceRemoteInfoDatastaxAstraRole, bool)` + +GetDatastaxAstraRoleOk returns a tuple with the DatastaxAstraRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatastaxAstraRole + +`func (o *ResourceRemoteInfo) SetDatastaxAstraRole(v ResourceRemoteInfoDatastaxAstraRole)` + +SetDatastaxAstraRole sets DatastaxAstraRole field to given value. + +### HasDatastaxAstraRole + +`func (o *ResourceRemoteInfo) HasDatastaxAstraRole() bool` + +HasDatastaxAstraRole returns a boolean if a field has been set. + +### GetCoupaRole + +`func (o *ResourceRemoteInfo) GetCoupaRole() ResourceRemoteInfoCoupaRole` + +GetCoupaRole returns the CoupaRole field if non-nil, zero value otherwise. + +### GetCoupaRoleOk + +`func (o *ResourceRemoteInfo) GetCoupaRoleOk() (*ResourceRemoteInfoCoupaRole, bool)` + +GetCoupaRoleOk returns a tuple with the CoupaRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCoupaRole + +`func (o *ResourceRemoteInfo) SetCoupaRole(v ResourceRemoteInfoCoupaRole)` + +SetCoupaRole sets CoupaRole field to given value. + +### HasCoupaRole + +`func (o *ResourceRemoteInfo) HasCoupaRole() bool` + +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. + +### GetNetsuiteRole + +`func (o *ResourceRemoteInfo) GetNetsuiteRole() ResourceRemoteInfoNetsuiteRole` + +GetNetsuiteRole returns the NetsuiteRole field if non-nil, zero value otherwise. + +### GetNetsuiteRoleOk + +`func (o *ResourceRemoteInfo) GetNetsuiteRoleOk() (*ResourceRemoteInfoNetsuiteRole, bool)` + +GetNetsuiteRoleOk returns a tuple with the NetsuiteRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNetsuiteRole + +`func (o *ResourceRemoteInfo) SetNetsuiteRole(v ResourceRemoteInfoNetsuiteRole)` + +SetNetsuiteRole sets NetsuiteRole field to given value. + +### HasNetsuiteRole + +`func (o *ResourceRemoteInfo) HasNetsuiteRole() bool` + +HasNetsuiteRole returns a boolean if a field has been set. + +### GetDatadogRole + +`func (o *ResourceRemoteInfo) GetDatadogRole() ResourceRemoteInfoDatadogRole` + +GetDatadogRole returns the DatadogRole field if non-nil, zero value otherwise. + +### GetDatadogRoleOk + +`func (o *ResourceRemoteInfo) GetDatadogRoleOk() (*ResourceRemoteInfoDatadogRole, bool)` + +GetDatadogRoleOk returns a tuple with the DatadogRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDatadogRole + +`func (o *ResourceRemoteInfo) SetDatadogRole(v ResourceRemoteInfoDatadogRole)` + +SetDatadogRole sets DatadogRole field to given value. + +### HasDatadogRole + +`func (o *ResourceRemoteInfo) HasDatadogRole() bool` + +HasDatadogRole returns a boolean if a field has been set. + +### GetClickhouseDatabase + +`func (o *ResourceRemoteInfo) GetClickhouseDatabase() ResourceRemoteInfoClickhouseDatabase` + +GetClickhouseDatabase returns the ClickhouseDatabase field if non-nil, zero value otherwise. + +### GetClickhouseDatabaseOk + +`func (o *ResourceRemoteInfo) GetClickhouseDatabaseOk() (*ResourceRemoteInfoClickhouseDatabase, bool)` + +GetClickhouseDatabaseOk returns a tuple with the ClickhouseDatabase field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClickhouseDatabase + +`func (o *ResourceRemoteInfo) SetClickhouseDatabase(v ResourceRemoteInfoClickhouseDatabase)` + +SetClickhouseDatabase sets ClickhouseDatabase field to given value. + +### HasClickhouseDatabase + +`func (o *ResourceRemoteInfo) HasClickhouseDatabase() bool` + +HasClickhouseDatabase returns a boolean if a field has been set. + +### GetClickhouseTable + +`func (o *ResourceRemoteInfo) GetClickhouseTable() ResourceRemoteInfoClickhouseTable` + +GetClickhouseTable returns the ClickhouseTable field if non-nil, zero value otherwise. + +### GetClickhouseTableOk + +`func (o *ResourceRemoteInfo) GetClickhouseTableOk() (*ResourceRemoteInfoClickhouseTable, bool)` + +GetClickhouseTableOk returns a tuple with the ClickhouseTable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClickhouseTable + +`func (o *ResourceRemoteInfo) SetClickhouseTable(v ResourceRemoteInfoClickhouseTable)` + +SetClickhouseTable sets ClickhouseTable field to given value. + +### HasClickhouseTable + +`func (o *ResourceRemoteInfo) HasClickhouseTable() bool` + +HasClickhouseTable returns a boolean if a field has been set. + +### GetGrafanaFolder + +`func (o *ResourceRemoteInfo) GetGrafanaFolder() ResourceRemoteInfoGrafanaFolder` + +GetGrafanaFolder returns the GrafanaFolder field if non-nil, zero value otherwise. + +### GetGrafanaFolderOk + +`func (o *ResourceRemoteInfo) GetGrafanaFolderOk() (*ResourceRemoteInfoGrafanaFolder, bool)` + +GetGrafanaFolderOk returns a tuple with the GrafanaFolder field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrafanaFolder + +`func (o *ResourceRemoteInfo) SetGrafanaFolder(v ResourceRemoteInfoGrafanaFolder)` + +SetGrafanaFolder sets GrafanaFolder field to given value. + +### HasGrafanaFolder + +`func (o *ResourceRemoteInfo) HasGrafanaFolder() bool` + +HasGrafanaFolder returns a boolean if a field has been set. + +### GetGrafanaDashboard + +`func (o *ResourceRemoteInfo) GetGrafanaDashboard() ResourceRemoteInfoGrafanaDashboard` + +GetGrafanaDashboard returns the GrafanaDashboard field if non-nil, zero value otherwise. + +### GetGrafanaDashboardOk + +`func (o *ResourceRemoteInfo) GetGrafanaDashboardOk() (*ResourceRemoteInfoGrafanaDashboard, bool)` + +GetGrafanaDashboardOk returns a tuple with the GrafanaDashboard field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrafanaDashboard + +`func (o *ResourceRemoteInfo) SetGrafanaDashboard(v ResourceRemoteInfoGrafanaDashboard)` + +SetGrafanaDashboard sets GrafanaDashboard field to given value. + +### HasGrafanaDashboard + +`func (o *ResourceRemoteInfo) HasGrafanaDashboard() bool` + +HasGrafanaDashboard returns a boolean if a field has been set. + +### GetGrafanaRole + +`func (o *ResourceRemoteInfo) GetGrafanaRole() ResourceRemoteInfoGrafanaRole` + +GetGrafanaRole returns the GrafanaRole field if non-nil, zero value otherwise. + +### GetGrafanaRoleOk + +`func (o *ResourceRemoteInfo) GetGrafanaRoleOk() (*ResourceRemoteInfoGrafanaRole, bool)` + +GetGrafanaRoleOk returns a tuple with the GrafanaRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrafanaRole + +`func (o *ResourceRemoteInfo) SetGrafanaRole(v ResourceRemoteInfoGrafanaRole)` + +SetGrafanaRole sets GrafanaRole field to given value. + +### HasGrafanaRole + +`func (o *ResourceRemoteInfo) HasGrafanaRole() bool` + +HasGrafanaRole returns a boolean if a field has been set. + +### GetZendeskRole + +`func (o *ResourceRemoteInfo) GetZendeskRole() ResourceRemoteInfoZendeskRole` + +GetZendeskRole returns the ZendeskRole field if non-nil, zero value otherwise. + +### GetZendeskRoleOk + +`func (o *ResourceRemoteInfo) GetZendeskRoleOk() (*ResourceRemoteInfoZendeskRole, bool)` + +GetZendeskRoleOk returns a tuple with the ZendeskRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetZendeskRole + +`func (o *ResourceRemoteInfo) SetZendeskRole(v ResourceRemoteInfoZendeskRole)` + +SetZendeskRole sets ZendeskRole field to given value. + +### HasZendeskRole + +`func (o *ResourceRemoteInfo) HasZendeskRole() bool` + +HasZendeskRole returns a boolean if a field has been set. + +### GetHubspotRole + +`func (o *ResourceRemoteInfo) GetHubspotRole() ResourceRemoteInfoHubspotRole` + +GetHubspotRole returns the HubspotRole field if non-nil, zero value otherwise. + +### GetHubspotRoleOk + +`func (o *ResourceRemoteInfo) GetHubspotRoleOk() (*ResourceRemoteInfoHubspotRole, bool)` + +GetHubspotRoleOk returns a tuple with the HubspotRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHubspotRole + +`func (o *ResourceRemoteInfo) SetHubspotRole(v ResourceRemoteInfoHubspotRole)` + +SetHubspotRole sets HubspotRole field to given value. + +### HasHubspotRole + +`func (o *ResourceRemoteInfo) HasHubspotRole() bool` + +HasHubspotRole 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/ResourceRemoteInfoAwsAccount.md b/docs/ResourceRemoteInfoAwsAccount.md index 1f238c2..5a2dee9 100644 --- a/docs/ResourceRemoteInfoAwsAccount.md +++ b/docs/ResourceRemoteInfoAwsAccount.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccountId** | **string** | The id of the AWS account. | +**OrganizationalUnitId** | Pointer to **string** | The id of the AWS organizational unit. Required only if customer has OUs enabled. | [optional] ## Methods @@ -45,6 +46,31 @@ and a boolean to check if the value has been set. SetAccountId sets AccountId field to given value. +### GetOrganizationalUnitId + +`func (o *ResourceRemoteInfoAwsAccount) GetOrganizationalUnitId() string` + +GetOrganizationalUnitId returns the OrganizationalUnitId field if non-nil, zero value otherwise. + +### GetOrganizationalUnitIdOk + +`func (o *ResourceRemoteInfoAwsAccount) GetOrganizationalUnitIdOk() (*string, bool)` + +GetOrganizationalUnitIdOk returns a tuple with the OrganizationalUnitId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationalUnitId + +`func (o *ResourceRemoteInfoAwsAccount) SetOrganizationalUnitId(v string)` + +SetOrganizationalUnitId sets OrganizationalUnitId field to given value. + +### HasOrganizationalUnitId + +`func (o *ResourceRemoteInfoAwsAccount) HasOrganizationalUnitId() bool` + +HasOrganizationalUnitId 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/ResourceRemoteInfoAwsOrganizationalUnit.md b/docs/ResourceRemoteInfoAwsOrganizationalUnit.md new file mode 100644 index 0000000..383fa5d --- /dev/null +++ b/docs/ResourceRemoteInfoAwsOrganizationalUnit.md @@ -0,0 +1,77 @@ +# ResourceRemoteInfoAwsOrganizationalUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ParentId** | Pointer to **string** | The id of the parent organizational unit. | [optional] +**OrganizationalUnitId** | **string** | The id of the AWS organizational unit that is being created. | + +## Methods + +### NewResourceRemoteInfoAwsOrganizationalUnit + +`func NewResourceRemoteInfoAwsOrganizationalUnit(organizationalUnitId string, ) *ResourceRemoteInfoAwsOrganizationalUnit` + +NewResourceRemoteInfoAwsOrganizationalUnit instantiates a new ResourceRemoteInfoAwsOrganizationalUnit 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 + +### NewResourceRemoteInfoAwsOrganizationalUnitWithDefaults + +`func NewResourceRemoteInfoAwsOrganizationalUnitWithDefaults() *ResourceRemoteInfoAwsOrganizationalUnit` + +NewResourceRemoteInfoAwsOrganizationalUnitWithDefaults instantiates a new ResourceRemoteInfoAwsOrganizationalUnit 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 + +### GetParentId + +`func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentId + +`func (o *ResourceRemoteInfoAwsOrganizationalUnit) SetParentId(v string)` + +SetParentId sets ParentId field to given value. + +### HasParentId + +`func (o *ResourceRemoteInfoAwsOrganizationalUnit) HasParentId() bool` + +HasParentId returns a boolean if a field has been set. + +### GetOrganizationalUnitId + +`func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetOrganizationalUnitId() string` + +GetOrganizationalUnitId returns the OrganizationalUnitId field if non-nil, zero value otherwise. + +### GetOrganizationalUnitIdOk + +`func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetOrganizationalUnitIdOk() (*string, bool)` + +GetOrganizationalUnitIdOk returns a tuple with the OrganizationalUnitId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationalUnitId + +`func (o *ResourceRemoteInfoAwsOrganizationalUnit) SetOrganizationalUnitId(v string)` + +SetOrganizationalUnitId sets OrganizationalUnitId 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/ResourceRemoteInfoClickhouseDatabase.md b/docs/ResourceRemoteInfoClickhouseDatabase.md new file mode 100644 index 0000000..ddea7a9 --- /dev/null +++ b/docs/ResourceRemoteInfoClickhouseDatabase.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoClickhouseDatabase + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DatabaseName** | **string** | The name of the ClickHouse database. | + +## Methods + +### NewResourceRemoteInfoClickhouseDatabase + +`func NewResourceRemoteInfoClickhouseDatabase(databaseName string, ) *ResourceRemoteInfoClickhouseDatabase` + +NewResourceRemoteInfoClickhouseDatabase instantiates a new ResourceRemoteInfoClickhouseDatabase 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 + +### NewResourceRemoteInfoClickhouseDatabaseWithDefaults + +`func NewResourceRemoteInfoClickhouseDatabaseWithDefaults() *ResourceRemoteInfoClickhouseDatabase` + +NewResourceRemoteInfoClickhouseDatabaseWithDefaults instantiates a new ResourceRemoteInfoClickhouseDatabase 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 *ResourceRemoteInfoClickhouseDatabase) GetDatabaseName() string` + +GetDatabaseName returns the DatabaseName field if non-nil, zero value otherwise. + +### GetDatabaseNameOk + +`func (o *ResourceRemoteInfoClickhouseDatabase) 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 *ResourceRemoteInfoClickhouseDatabase) 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/ResourceRemoteInfoClickhouseTable.md b/docs/ResourceRemoteInfoClickhouseTable.md new file mode 100644 index 0000000..07284d1 --- /dev/null +++ b/docs/ResourceRemoteInfoClickhouseTable.md @@ -0,0 +1,72 @@ +# ResourceRemoteInfoClickhouseTable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DatabaseName** | **string** | The name of the ClickHouse database containing the table. | +**TableName** | **string** | The name of the ClickHouse table. | + +## Methods + +### NewResourceRemoteInfoClickhouseTable + +`func NewResourceRemoteInfoClickhouseTable(databaseName string, tableName string, ) *ResourceRemoteInfoClickhouseTable` + +NewResourceRemoteInfoClickhouseTable instantiates a new ResourceRemoteInfoClickhouseTable 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 + +### NewResourceRemoteInfoClickhouseTableWithDefaults + +`func NewResourceRemoteInfoClickhouseTableWithDefaults() *ResourceRemoteInfoClickhouseTable` + +NewResourceRemoteInfoClickhouseTableWithDefaults instantiates a new ResourceRemoteInfoClickhouseTable 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 *ResourceRemoteInfoClickhouseTable) GetDatabaseName() string` + +GetDatabaseName returns the DatabaseName field if non-nil, zero value otherwise. + +### GetDatabaseNameOk + +`func (o *ResourceRemoteInfoClickhouseTable) 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 *ResourceRemoteInfoClickhouseTable) SetDatabaseName(v string)` + +SetDatabaseName sets DatabaseName field to given value. + + +### GetTableName + +`func (o *ResourceRemoteInfoClickhouseTable) GetTableName() string` + +GetTableName returns the TableName field if non-nil, zero value otherwise. + +### GetTableNameOk + +`func (o *ResourceRemoteInfoClickhouseTable) 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 *ResourceRemoteInfoClickhouseTable) 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/ResourceRemoteInfoCoupaRole.md b/docs/ResourceRemoteInfoCoupaRole.md new file mode 100644 index 0000000..aabb397 --- /dev/null +++ b/docs/ResourceRemoteInfoCoupaRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoCoupaRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoCoupaRole + +`func NewResourceRemoteInfoCoupaRole(roleId string, ) *ResourceRemoteInfoCoupaRole` + +NewResourceRemoteInfoCoupaRole instantiates a new ResourceRemoteInfoCoupaRole 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 + +### NewResourceRemoteInfoCoupaRoleWithDefaults + +`func NewResourceRemoteInfoCoupaRoleWithDefaults() *ResourceRemoteInfoCoupaRole` + +NewResourceRemoteInfoCoupaRoleWithDefaults instantiates a new ResourceRemoteInfoCoupaRole 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 *ResourceRemoteInfoCoupaRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoCoupaRole) 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 *ResourceRemoteInfoCoupaRole) 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/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/ResourceRemoteInfoCustomConnector.md b/docs/ResourceRemoteInfoCustomConnector.md new file mode 100644 index 0000000..732a145 --- /dev/null +++ b/docs/ResourceRemoteInfoCustomConnector.md @@ -0,0 +1,72 @@ +# ResourceRemoteInfoCustomConnector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RemoteResourceId** | **string** | The id of the resource in the end system | +**CanHaveUsageEvents** | **bool** | A bool representing whether or not the resource can have usage data. | + +## Methods + +### NewResourceRemoteInfoCustomConnector + +`func NewResourceRemoteInfoCustomConnector(remoteResourceId string, canHaveUsageEvents bool, ) *ResourceRemoteInfoCustomConnector` + +NewResourceRemoteInfoCustomConnector instantiates a new ResourceRemoteInfoCustomConnector 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 + +### NewResourceRemoteInfoCustomConnectorWithDefaults + +`func NewResourceRemoteInfoCustomConnectorWithDefaults() *ResourceRemoteInfoCustomConnector` + +NewResourceRemoteInfoCustomConnectorWithDefaults instantiates a new ResourceRemoteInfoCustomConnector 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 + +### GetRemoteResourceId + +`func (o *ResourceRemoteInfoCustomConnector) GetRemoteResourceId() string` + +GetRemoteResourceId returns the RemoteResourceId field if non-nil, zero value otherwise. + +### GetRemoteResourceIdOk + +`func (o *ResourceRemoteInfoCustomConnector) GetRemoteResourceIdOk() (*string, bool)` + +GetRemoteResourceIdOk returns a tuple with the RemoteResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoteResourceId + +`func (o *ResourceRemoteInfoCustomConnector) SetRemoteResourceId(v string)` + +SetRemoteResourceId sets RemoteResourceId field to given value. + + +### GetCanHaveUsageEvents + +`func (o *ResourceRemoteInfoCustomConnector) GetCanHaveUsageEvents() bool` + +GetCanHaveUsageEvents returns the CanHaveUsageEvents field if non-nil, zero value otherwise. + +### GetCanHaveUsageEventsOk + +`func (o *ResourceRemoteInfoCustomConnector) GetCanHaveUsageEventsOk() (*bool, bool)` + +GetCanHaveUsageEventsOk returns a tuple with the CanHaveUsageEvents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCanHaveUsageEvents + +`func (o *ResourceRemoteInfoCustomConnector) SetCanHaveUsageEvents(v bool)` + +SetCanHaveUsageEvents sets CanHaveUsageEvents 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/ResourceRemoteInfoDatadogRole.md b/docs/ResourceRemoteInfoDatadogRole.md new file mode 100644 index 0000000..b31bebb --- /dev/null +++ b/docs/ResourceRemoteInfoDatadogRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoDatadogRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoDatadogRole + +`func NewResourceRemoteInfoDatadogRole(roleId string, ) *ResourceRemoteInfoDatadogRole` + +NewResourceRemoteInfoDatadogRole instantiates a new ResourceRemoteInfoDatadogRole 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 + +### NewResourceRemoteInfoDatadogRoleWithDefaults + +`func NewResourceRemoteInfoDatadogRoleWithDefaults() *ResourceRemoteInfoDatadogRole` + +NewResourceRemoteInfoDatadogRoleWithDefaults instantiates a new ResourceRemoteInfoDatadogRole 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 *ResourceRemoteInfoDatadogRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoDatadogRole) 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 *ResourceRemoteInfoDatadogRole) 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/ResourceRemoteInfoDatastaxAstraRole.md b/docs/ResourceRemoteInfoDatastaxAstraRole.md new file mode 100644 index 0000000..fea7d98 --- /dev/null +++ b/docs/ResourceRemoteInfoDatastaxAstraRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoDatastaxAstraRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoDatastaxAstraRole + +`func NewResourceRemoteInfoDatastaxAstraRole(roleId string, ) *ResourceRemoteInfoDatastaxAstraRole` + +NewResourceRemoteInfoDatastaxAstraRole instantiates a new ResourceRemoteInfoDatastaxAstraRole 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 + +### NewResourceRemoteInfoDatastaxAstraRoleWithDefaults + +`func NewResourceRemoteInfoDatastaxAstraRoleWithDefaults() *ResourceRemoteInfoDatastaxAstraRole` + +NewResourceRemoteInfoDatastaxAstraRoleWithDefaults instantiates a new ResourceRemoteInfoDatastaxAstraRole 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 *ResourceRemoteInfoDatastaxAstraRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoDatastaxAstraRole) 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 *ResourceRemoteInfoDatastaxAstraRole) 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/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/ResourceRemoteInfoGithubEnterpriseRole.md b/docs/ResourceRemoteInfoGithubEnterpriseRole.md new file mode 100644 index 0000000..0ce346a --- /dev/null +++ b/docs/ResourceRemoteInfoGithubEnterpriseRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoGithubEnterpriseRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoGithubEnterpriseRole + +`func NewResourceRemoteInfoGithubEnterpriseRole(roleId string, ) *ResourceRemoteInfoGithubEnterpriseRole` + +NewResourceRemoteInfoGithubEnterpriseRole instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults + +`func NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults() *ResourceRemoteInfoGithubEnterpriseRole` + +NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetRoleId + +`func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleIdOk() (*string, bool)` + +GetRoleIdOk returns a tuple with the RoleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleId + +`func (o *ResourceRemoteInfoGithubEnterpriseRole) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/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/ResourceRemoteInfoGithubOrgRole.md b/docs/ResourceRemoteInfoGithubOrgRole.md new file mode 100644 index 0000000..749442c --- /dev/null +++ b/docs/ResourceRemoteInfoGithubOrgRole.md @@ -0,0 +1,77 @@ +# ResourceRemoteInfoGithubOrgRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | +**OrgName** | Pointer to **string** | GitHub org role's org name, required only for Enterprise. | [optional] + +## Methods + +### NewResourceRemoteInfoGithubOrgRole + +`func NewResourceRemoteInfoGithubOrgRole(roleId string, ) *ResourceRemoteInfoGithubOrgRole` + +NewResourceRemoteInfoGithubOrgRole instantiates a new ResourceRemoteInfoGithubOrgRole 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 + +### NewResourceRemoteInfoGithubOrgRoleWithDefaults + +`func NewResourceRemoteInfoGithubOrgRoleWithDefaults() *ResourceRemoteInfoGithubOrgRole` + +NewResourceRemoteInfoGithubOrgRoleWithDefaults instantiates a new ResourceRemoteInfoGithubOrgRole 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 *ResourceRemoteInfoGithubOrgRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoGithubOrgRole) 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 *ResourceRemoteInfoGithubOrgRole) SetRoleId(v string)` + +SetRoleId sets RoleId field to given value. + + +### GetOrgName + +`func (o *ResourceRemoteInfoGithubOrgRole) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *ResourceRemoteInfoGithubOrgRole) 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 *ResourceRemoteInfoGithubOrgRole) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *ResourceRemoteInfoGithubOrgRole) HasOrgName() bool` + +HasOrgName 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/ResourceRemoteInfoGithubRepo.md b/docs/ResourceRemoteInfoGithubRepo.md index 64eff64..f4aab16 100644 --- a/docs/ResourceRemoteInfoGithubRepo.md +++ b/docs/ResourceRemoteInfoGithubRepo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **RepoId** | Pointer to **string** | The id of the repository. | [optional] **RepoName** | **string** | The name of the repository. | +**OrgName** | Pointer to **string** | GitHub repo's org name, required only for Enterprise. | [optional] ## Methods @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetRepoName sets RepoName field to given value. +### GetOrgName + +`func (o *ResourceRemoteInfoGithubRepo) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *ResourceRemoteInfoGithubRepo) 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 *ResourceRemoteInfoGithubRepo) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *ResourceRemoteInfoGithubRepo) HasOrgName() bool` + +HasOrgName 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/ResourceRemoteInfoGoogleWorkspaceRole.md b/docs/ResourceRemoteInfoGoogleWorkspaceRole.md new file mode 100644 index 0000000..3de67a9 --- /dev/null +++ b/docs/ResourceRemoteInfoGoogleWorkspaceRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoGoogleWorkspaceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoGoogleWorkspaceRole + +`func NewResourceRemoteInfoGoogleWorkspaceRole(roleId string, ) *ResourceRemoteInfoGoogleWorkspaceRole` + +NewResourceRemoteInfoGoogleWorkspaceRole instantiates a new ResourceRemoteInfoGoogleWorkspaceRole 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 + +### NewResourceRemoteInfoGoogleWorkspaceRoleWithDefaults + +`func NewResourceRemoteInfoGoogleWorkspaceRoleWithDefaults() *ResourceRemoteInfoGoogleWorkspaceRole` + +NewResourceRemoteInfoGoogleWorkspaceRoleWithDefaults instantiates a new ResourceRemoteInfoGoogleWorkspaceRole 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 *ResourceRemoteInfoGoogleWorkspaceRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoGoogleWorkspaceRole) 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 *ResourceRemoteInfoGoogleWorkspaceRole) 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/ResourceRemoteInfoGrafanaDashboard.md b/docs/ResourceRemoteInfoGrafanaDashboard.md new file mode 100644 index 0000000..ffcb9df --- /dev/null +++ b/docs/ResourceRemoteInfoGrafanaDashboard.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoGrafanaDashboard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DashboardUid** | **string** | The UID of the Grafana dashboard. | + +## Methods + +### NewResourceRemoteInfoGrafanaDashboard + +`func NewResourceRemoteInfoGrafanaDashboard(dashboardUid string, ) *ResourceRemoteInfoGrafanaDashboard` + +NewResourceRemoteInfoGrafanaDashboard instantiates a new ResourceRemoteInfoGrafanaDashboard 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 + +### NewResourceRemoteInfoGrafanaDashboardWithDefaults + +`func NewResourceRemoteInfoGrafanaDashboardWithDefaults() *ResourceRemoteInfoGrafanaDashboard` + +NewResourceRemoteInfoGrafanaDashboardWithDefaults instantiates a new ResourceRemoteInfoGrafanaDashboard 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 + +### GetDashboardUid + +`func (o *ResourceRemoteInfoGrafanaDashboard) GetDashboardUid() string` + +GetDashboardUid returns the DashboardUid field if non-nil, zero value otherwise. + +### GetDashboardUidOk + +`func (o *ResourceRemoteInfoGrafanaDashboard) GetDashboardUidOk() (*string, bool)` + +GetDashboardUidOk returns a tuple with the DashboardUid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDashboardUid + +`func (o *ResourceRemoteInfoGrafanaDashboard) SetDashboardUid(v string)` + +SetDashboardUid sets DashboardUid 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/ResourceRemoteInfoGrafanaFolder.md b/docs/ResourceRemoteInfoGrafanaFolder.md new file mode 100644 index 0000000..74d5ac9 --- /dev/null +++ b/docs/ResourceRemoteInfoGrafanaFolder.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoGrafanaFolder + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FolderUid** | **string** | The UID of the Grafana folder. | + +## Methods + +### NewResourceRemoteInfoGrafanaFolder + +`func NewResourceRemoteInfoGrafanaFolder(folderUid string, ) *ResourceRemoteInfoGrafanaFolder` + +NewResourceRemoteInfoGrafanaFolder instantiates a new ResourceRemoteInfoGrafanaFolder 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 + +### NewResourceRemoteInfoGrafanaFolderWithDefaults + +`func NewResourceRemoteInfoGrafanaFolderWithDefaults() *ResourceRemoteInfoGrafanaFolder` + +NewResourceRemoteInfoGrafanaFolderWithDefaults instantiates a new ResourceRemoteInfoGrafanaFolder 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 + +### GetFolderUid + +`func (o *ResourceRemoteInfoGrafanaFolder) GetFolderUid() string` + +GetFolderUid returns the FolderUid field if non-nil, zero value otherwise. + +### GetFolderUidOk + +`func (o *ResourceRemoteInfoGrafanaFolder) GetFolderUidOk() (*string, bool)` + +GetFolderUidOk returns a tuple with the FolderUid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFolderUid + +`func (o *ResourceRemoteInfoGrafanaFolder) SetFolderUid(v string)` + +SetFolderUid sets FolderUid 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/ResourceRemoteInfoGrafanaRole.md b/docs/ResourceRemoteInfoGrafanaRole.md new file mode 100644 index 0000000..3ebb397 --- /dev/null +++ b/docs/ResourceRemoteInfoGrafanaRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoGrafanaRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleUid** | **string** | The UID of the Grafana role. | + +## Methods + +### NewResourceRemoteInfoGrafanaRole + +`func NewResourceRemoteInfoGrafanaRole(roleUid string, ) *ResourceRemoteInfoGrafanaRole` + +NewResourceRemoteInfoGrafanaRole instantiates a new ResourceRemoteInfoGrafanaRole 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 + +### NewResourceRemoteInfoGrafanaRoleWithDefaults + +`func NewResourceRemoteInfoGrafanaRoleWithDefaults() *ResourceRemoteInfoGrafanaRole` + +NewResourceRemoteInfoGrafanaRoleWithDefaults instantiates a new ResourceRemoteInfoGrafanaRole 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 + +### GetRoleUid + +`func (o *ResourceRemoteInfoGrafanaRole) GetRoleUid() string` + +GetRoleUid returns the RoleUid field if non-nil, zero value otherwise. + +### GetRoleUidOk + +`func (o *ResourceRemoteInfoGrafanaRole) GetRoleUidOk() (*string, bool)` + +GetRoleUidOk returns a tuple with the RoleUid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleUid + +`func (o *ResourceRemoteInfoGrafanaRole) SetRoleUid(v string)` + +SetRoleUid sets RoleUid 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/ResourceRemoteInfoHubspotRole.md b/docs/ResourceRemoteInfoHubspotRole.md new file mode 100644 index 0000000..69d4d46 --- /dev/null +++ b/docs/ResourceRemoteInfoHubspotRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoHubspotRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The ID of the HubSpot role. | + +## Methods + +### NewResourceRemoteInfoHubspotRole + +`func NewResourceRemoteInfoHubspotRole(roleId string, ) *ResourceRemoteInfoHubspotRole` + +NewResourceRemoteInfoHubspotRole instantiates a new ResourceRemoteInfoHubspotRole 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 + +### NewResourceRemoteInfoHubspotRoleWithDefaults + +`func NewResourceRemoteInfoHubspotRoleWithDefaults() *ResourceRemoteInfoHubspotRole` + +NewResourceRemoteInfoHubspotRoleWithDefaults instantiates a new ResourceRemoteInfoHubspotRole 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 *ResourceRemoteInfoHubspotRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoHubspotRole) 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 *ResourceRemoteInfoHubspotRole) 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/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/ResourceRemoteInfoNetsuiteRole.md b/docs/ResourceRemoteInfoNetsuiteRole.md new file mode 100644 index 0000000..a2aef37 --- /dev/null +++ b/docs/ResourceRemoteInfoNetsuiteRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoNetsuiteRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The id of the role. | + +## Methods + +### NewResourceRemoteInfoNetsuiteRole + +`func NewResourceRemoteInfoNetsuiteRole(roleId string, ) *ResourceRemoteInfoNetsuiteRole` + +NewResourceRemoteInfoNetsuiteRole instantiates a new ResourceRemoteInfoNetsuiteRole 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 + +### NewResourceRemoteInfoNetsuiteRoleWithDefaults + +`func NewResourceRemoteInfoNetsuiteRoleWithDefaults() *ResourceRemoteInfoNetsuiteRole` + +NewResourceRemoteInfoNetsuiteRoleWithDefaults instantiates a new ResourceRemoteInfoNetsuiteRole 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 *ResourceRemoteInfoNetsuiteRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoNetsuiteRole) 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 *ResourceRemoteInfoNetsuiteRole) 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/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/ResourceRemoteInfoTwingateResource.md b/docs/ResourceRemoteInfoTwingateResource.md new file mode 100644 index 0000000..ecc0b5a --- /dev/null +++ b/docs/ResourceRemoteInfoTwingateResource.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoTwingateResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResourceId** | **string** | The id of the Twingate resource. | + +## Methods + +### NewResourceRemoteInfoTwingateResource + +`func NewResourceRemoteInfoTwingateResource(resourceId string, ) *ResourceRemoteInfoTwingateResource` + +NewResourceRemoteInfoTwingateResource instantiates a new ResourceRemoteInfoTwingateResource 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 + +### NewResourceRemoteInfoTwingateResourceWithDefaults + +`func NewResourceRemoteInfoTwingateResourceWithDefaults() *ResourceRemoteInfoTwingateResource` + +NewResourceRemoteInfoTwingateResourceWithDefaults instantiates a new ResourceRemoteInfoTwingateResource 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 *ResourceRemoteInfoTwingateResource) GetResourceId() string` + +GetResourceId returns the ResourceId field if non-nil, zero value otherwise. + +### GetResourceIdOk + +`func (o *ResourceRemoteInfoTwingateResource) 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 *ResourceRemoteInfoTwingateResource) 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/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/ResourceRemoteInfoZendeskRole.md b/docs/ResourceRemoteInfoZendeskRole.md new file mode 100644 index 0000000..fc2915f --- /dev/null +++ b/docs/ResourceRemoteInfoZendeskRole.md @@ -0,0 +1,51 @@ +# ResourceRemoteInfoZendeskRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**RoleId** | **string** | The ID of the Zendesk custom role. | + +## Methods + +### NewResourceRemoteInfoZendeskRole + +`func NewResourceRemoteInfoZendeskRole(roleId string, ) *ResourceRemoteInfoZendeskRole` + +NewResourceRemoteInfoZendeskRole instantiates a new ResourceRemoteInfoZendeskRole 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 + +### NewResourceRemoteInfoZendeskRoleWithDefaults + +`func NewResourceRemoteInfoZendeskRoleWithDefaults() *ResourceRemoteInfoZendeskRole` + +NewResourceRemoteInfoZendeskRoleWithDefaults instantiates a new ResourceRemoteInfoZendeskRole 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 *ResourceRemoteInfoZendeskRole) GetRoleId() string` + +GetRoleId returns the RoleId field if non-nil, zero value otherwise. + +### GetRoleIdOk + +`func (o *ResourceRemoteInfoZendeskRole) 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 *ResourceRemoteInfoZendeskRole) 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 dba1af9..e229376 100644 --- a/docs/ResourceTypeEnum.md +++ b/docs/ResourceTypeEnum.md @@ -21,6 +21,8 @@ * `AWS_SSO_PERMISSION_SET` (value: `"AWS_SSO_PERMISSION_SET"`) +* `AWS_ORGANIZATIONAL_UNIT` (value: `"AWS_ORGANIZATIONAL_UNIT"`) + * `AZURE_MANAGEMENT_GROUP` (value: `"AZURE_MANAGEMENT_GROUP"`) * `AZURE_RESOURCE_GROUP` (value: `"AZURE_RESOURCE_GROUP"`) @@ -77,6 +79,8 @@ * `GIT_HUB_REPO` (value: `"GIT_HUB_REPO"`) +* `GIT_HUB_ORG_ROLE` (value: `"GIT_HUB_ORG_ROLE"`) + * `GIT_LAB_PROJECT` (value: `"GIT_LAB_PROJECT"`) * `GOOGLE_WORKSPACE_ROLE` (value: `"GOOGLE_WORKSPACE_ROLE"`) @@ -85,6 +89,10 @@ * `MONGO_ATLAS_INSTANCE` (value: `"MONGO_ATLAS_INSTANCE"`) +* `NETSUITE_ROLE` (value: `"NETSUITE_ROLE"`) + +* `DATADOG_ROLE` (value: `"DATADOG_ROLE"`) + * `OKTA_APP` (value: `"OKTA_APP"`) * `OKTA_ROLE` (value: `"OKTA_ROLE"`) @@ -119,6 +127,54 @@ * `TELEPORT_ROLE` (value: `"TELEPORT_ROLE"`) +* `ILEVEL_ADVANCED_ROLE` (value: `"ILEVEL_ADVANCED_ROLE"`) + +* `DATASTAX_ASTRA_ROLE` (value: `"DATASTAX_ASTRA_ROLE"`) + +* `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"`) + +* `GIT_HUB_ENTERPRISE_ROLE` (value: `"GIT_HUB_ENTERPRISE_ROLE"`) + +* `GRAFANA_FOLDER` (value: `"GRAFANA_FOLDER"`) + +* `GRAFANA_DASHBOARD` (value: `"GRAFANA_DASHBOARD"`) + +* `GRAFANA_BASIC_ROLE` (value: `"GRAFANA_BASIC_ROLE"`) + +* `GRAFANA_ROLE` (value: `"GRAFANA_ROLE"`) + +* `CLICKHOUSE_DATABASE` (value: `"CLICKHOUSE_DATABASE"`) + +* `CLICKHOUSE_TABLE` (value: `"CLICKHOUSE_TABLE"`) + +* `TWINGATE_RESOURCE` (value: `"TWINGATE_RESOURCE"`) + +* `ZENDESK_ROLE` (value: `"ZENDESK_ROLE"`) + +* `HUBSPOT_ROLE` (value: `"HUBSPOT_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 b1c674a..a50622b 100644 --- a/docs/ResourcesApi.md +++ b/docs/ResourcesApi.md @@ -10,19 +10,24 @@ Method | HTTP request | Description [**DeleteResource**](ResourcesAPI.md#DeleteResource) | **Delete** /resources/{resource_id} | [**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} | +[**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 | [**GetResourceReviewers**](ResourcesAPI.md#GetResourceReviewers) | **Get** /resources/{resource_id}/reviewers | +[**GetResourceScopedRolePermissions**](ResourcesAPI.md#GetResourceScopedRolePermissions) | **Get** /resources/{resource_id}/scoped-role-permissions | [**GetResourceTags**](ResourcesAPI.md#GetResourceTags) | **Get** /resources/{resource_id}/tags | -[**GetResourceUsers**](ResourcesAPI.md#GetResourceUsers) | **Get** /resources/{resource_id}/users | +[**GetResourceUser**](ResourcesAPI.md#GetResourceUser) | **Get** /resources/{resource_id}/users/{user_id} | Get resource user +[**GetResourceUsers**](ResourcesAPI.md#GetResourceUsers) | **Get** /resources/{resource_id}/users | Get resource users [**GetResourceVisibility**](ResourcesAPI.md#GetResourceVisibility) | **Get** /resources/{resource_id}/visibility | -[**GetResources**](ResourcesAPI.md#GetResources) | **Get** /resources | +[**GetResources**](ResourcesAPI.md#GetResources) | **Get** /resources | Get resources +[**GetUserResources**](ResourcesAPI.md#GetUserResources) | **Get** /resources/users/{user_id} | [**ResourceUserAccessStatusRetrieve**](ResourcesAPI.md#ResourceUserAccessStatusRetrieve) | **Get** /resource-user-access-status/{resource_id}/{user_id} | [**SetResourceMessageChannels**](ResourcesAPI.md#SetResourceMessageChannels) | **Put** /resources/{resource_id}/message-channels | [**SetResourceReviewerStages**](ResourcesAPI.md#SetResourceReviewerStages) | **Put** /resources/{resource_id}/reviewer-stages | [**SetResourceReviewers**](ResourcesAPI.md#SetResourceReviewers) | **Put** /resources/{resource_id}/reviewers | +[**SetResourceScopedRolePermissions**](ResourcesAPI.md#SetResourceScopedRolePermissions) | **Put** /resources/{resource_id}/scoped-role-permissions | [**SetResourceVisibility**](ResourcesAPI.md#SetResourceVisibility) | **Put** /resources/{resource_id}/visibility | [**UpdateResourceUser**](ResourcesAPI.md#UpdateResourceUser) | **Put** /resources/{resource_id}/users/{user_id} | [**UpdateResources**](ResourcesAPI.md#UpdateResources) | **Put** /resources | @@ -467,7 +472,7 @@ Name | Type | Description | Notes > Resource GetResource(ctx, resourceId).Execute() - +Get resource by ID @@ -533,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() @@ -815,6 +890,76 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetResourceScopedRolePermissions + +> ScopedRolePermissionList GetResourceScopedRolePermissions(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 whose scoped role permissions belong to. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourcesAPI.GetResourceScopedRolePermissions(context.Background(), resourceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.GetResourceScopedRolePermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetResourceScopedRolePermissions`: ScopedRolePermissionList + fmt.Fprintf(os.Stdout, "Response from `ResourcesAPI.GetResourceScopedRolePermissions`: %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 whose scoped role permissions belong to. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetResourceScopedRolePermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ScopedRolePermissionList**](ScopedRolePermissionList.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) + + ## GetResourceTags > TagsList GetResourceTags(ctx, resourceId).Execute() @@ -885,11 +1030,86 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetResourceUser + +> GetResourceUser200Response GetResourceUser(ctx, resourceId, userId).Cursor(cursor).Execute() + +Get resource user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + resourceId := "32acc112-21ff-4669-91c2-21e27683eaa1" // string | The ID of the resource. + userId := "29827fb8-f2dd-4e80-9576-28e31e9934ac" // string | The ID of the user. + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourcesAPI.GetResourceUser(context.Background(), resourceId, userId).Cursor(cursor).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.GetResourceUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetResourceUser`: GetResourceUser200Response + fmt.Fprintf(os.Stdout, "Response from `ResourcesAPI.GetResourceUser`: %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. | +**userId** | **string** | The ID of the user. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetResourceUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **cursor** | **string** | The pagination cursor value. | + +### Return type + +[**GetResourceUser200Response**](GetResourceUser200Response.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) + + ## GetResourceUsers > ResourceAccessUserList GetResourceUsers(ctx, resourceId).Limit(limit).Execute() - +Get resource users @@ -1029,9 +1249,9 @@ Name | Type | Description | Notes ## GetResources -> PaginatedResourcesList GetResources(ctx).Cursor(cursor).PageSize(pageSize).ResourceTypeFilter(resourceTypeFilter).ResourceIds(resourceIds).ResourceName(resourceName).ParentResourceId(parentResourceId).Execute() - +> PaginatedResourcesList GetResources(ctx).Cursor(cursor).PageSize(pageSize).ResourceTypeFilter(resourceTypeFilter).ResourceIds(resourceIds).ResourceName(resourceName).ParentResourceId(parentResourceId).AncestorResourceId(ancestorResourceId).RemoteId(remoteId).TagIds(tagIds).Execute() +Get resources @@ -1050,14 +1270,17 @@ import ( func main() { cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) - resourceTypeFilter := openapiclient.ResourceTypeEnum("AWS_IAM_ROLE") // ResourceTypeEnum | The resource type to filter by. (optional) + resourceTypeFilter := openapiclient.ResourceTypeEnum("AWS_IAM_ROLE") // ResourceTypeEnum | The resource type to filter by. Required when remote_id is provided. (optional) resourceIds := []string{"1b978423-db0a-4037-a4cf-f79c60cb67b3"} // []string | The resource ids to filter by. (optional) resourceName := "example-name" // string | Resource name. (optional) parentResourceId := "["4baf8423-db0a-4037-a4cf-f79c60cb67a5"]" // string | The parent resource id to filter by. (optional) + ancestorResourceId := "["4baf8423-db0a-4037-a4cf-f79c60cb67a5"]" // string | The ancestor resource id to filter by. Returns all resources that are descendants of the specified resource. (optional) + remoteId := "remoteId_example" // string | 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. (optional) + tagIds := []string{"Inner_example"} // []string | The IDs of the tags to filter by. Returns only resources that have any of these tags applied. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ResourcesAPI.GetResources(context.Background()).Cursor(cursor).PageSize(pageSize).ResourceTypeFilter(resourceTypeFilter).ResourceIds(resourceIds).ResourceName(resourceName).ParentResourceId(parentResourceId).Execute() + resp, r, err := apiClient.ResourcesAPI.GetResources(context.Background()).Cursor(cursor).PageSize(pageSize).ResourceTypeFilter(resourceTypeFilter).ResourceIds(resourceIds).ResourceName(resourceName).ParentResourceId(parentResourceId).AncestorResourceId(ancestorResourceId).RemoteId(remoteId).TagIds(tagIds).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.GetResources``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1080,10 +1303,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cursor** | **string** | The pagination cursor value. | **pageSize** | **int32** | Number of results to return per page. Default is 200. | - **resourceTypeFilter** | [**ResourceTypeEnum**](ResourceTypeEnum.md) | The resource type to filter by. | + **resourceTypeFilter** | [**ResourceTypeEnum**](ResourceTypeEnum.md) | The resource type to filter by. Required when remote_id is provided. | **resourceIds** | **[]string** | The resource ids to filter by. | **resourceName** | **string** | Resource name. | **parentResourceId** | **string** | The parent resource id to filter by. | + **ancestorResourceId** | **string** | The ancestor resource id to filter by. Returns all resources that are descendants of the specified resource. | + **remoteId** | **string** | 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. | + **tagIds** | **[]string** | The IDs of the tags to filter by. Returns only resources that have any of these tags applied. | ### Return type @@ -1103,6 +1329,82 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## GetUserResources + +> ResourceAccessUserList GetUserResources(ctx, userId).Limit(limit).Cursor(cursor).IncludeUnmanaged(includeUnmanaged).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + userId := "4baf8423-db0a-4037-a4cf-f79c60cb67a5" // string | The ID of the user. + limit := int32(200) // int32 | Limit the number of results returned. (optional) + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) + includeUnmanaged := false // bool | Include user's access to unmanaged resources. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourcesAPI.GetUserResources(context.Background(), userId).Limit(limit).Cursor(cursor).IncludeUnmanaged(includeUnmanaged).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.GetUserResources``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetUserResources`: ResourceAccessUserList + fmt.Fprintf(os.Stdout, "Response from `ResourcesAPI.GetUserResources`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userId** | **string** | The ID of the user. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetUserResourcesRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **limit** | **int32** | Limit the number of results returned. | + **cursor** | **string** | The pagination cursor value. | + **includeUnmanaged** | **bool** | Include user's access to unmanaged resources. | + +### Return type + +[**ResourceAccessUserList**](ResourceAccessUserList.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) + + ## ResourceUserAccessStatusRetrieve > ResourceUserAccessStatus ResourceUserAccessStatusRetrieve(ctx, resourceId, userId).AccessLevelRemoteId(accessLevelRemoteId).Cursor(cursor).PageSize(pageSize).Execute() @@ -1398,6 +1700,78 @@ Name | Type | Description | Notes [[Back to README]](../README.md) +## SetResourceScopedRolePermissions + +> ScopedRolePermissionList SetResourceScopedRolePermissions(ctx, resourceId).ScopedRolePermissionList(scopedRolePermissionList).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 whose scoped role permissions belong to. Must be of OPAL_SCOPED_ROLE resource type. + scopedRolePermissionList := *openapiclient.NewScopedRolePermissionList([]openapiclient.ScopedRolePermission{*openapiclient.NewScopedRolePermission(openapiclient.RolePermissionTargetTypeEnum("RESOURCE"), openapiclient.RolePermissionNameEnum("READ"), false)}) // ScopedRolePermissionList | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ResourcesAPI.SetResourceScopedRolePermissions(context.Background(), resourceId).ScopedRolePermissionList(scopedRolePermissionList).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ResourcesAPI.SetResourceScopedRolePermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SetResourceScopedRolePermissions`: ScopedRolePermissionList + fmt.Fprintf(os.Stdout, "Response from `ResourcesAPI.SetResourceScopedRolePermissions`: %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 whose scoped role permissions belong to. Must be of OPAL_SCOPED_ROLE resource type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSetResourceScopedRolePermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **scopedRolePermissionList** | [**ScopedRolePermissionList**](ScopedRolePermissionList.md) | | + +### Return type + +[**ScopedRolePermissionList**](ScopedRolePermissionList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **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) + + ## SetResourceVisibility > VisibilityInfo SetResourceVisibility(ctx, resourceId).VisibilityInfo(visibilityInfo).Execute() diff --git a/docs/ReviewStageOperator.md b/docs/ReviewStageOperator.md new file mode 100644 index 0000000..1ffefd9 --- /dev/null +++ b/docs/ReviewStageOperator.md @@ -0,0 +1,13 @@ +# ReviewStageOperator + +## Enum + + +* `AND` (value: `"AND"`) + +* `OR` (value: `"OR"`) + + +[[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/ReviewerStage.md b/docs/ReviewerStage.md index 31b8e57..894644e 100644 --- a/docs/ReviewerStage.md +++ b/docs/ReviewerStage.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **RequireManagerApproval** | **bool** | Whether this reviewer stage should require manager approval. | **RequireAdminApproval** | Pointer to **bool** | Whether this reviewer stage should require admin approval. | [optional] **Operator** | **string** | The operator of the reviewer stage. Admin and manager approval are also treated as reviewers. | -**OwnerIds** | **[]string** | | +**OwnerIds** | **[]string** | The IDs of owners assigned as reviewers for this stage. | +**ServiceUserIds** | Pointer to **[]string** | The IDs of service users assigned as reviewers for this stage. | [optional] ## Methods @@ -113,6 +114,31 @@ and a boolean to check if the value has been set. SetOwnerIds sets OwnerIds field to given value. +### GetServiceUserIds + +`func (o *ReviewerStage) GetServiceUserIds() []string` + +GetServiceUserIds returns the ServiceUserIds field if non-nil, zero value otherwise. + +### GetServiceUserIdsOk + +`func (o *ReviewerStage) GetServiceUserIdsOk() (*[]string, bool)` + +GetServiceUserIdsOk returns a tuple with the ServiceUserIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceUserIds + +`func (o *ReviewerStage) SetServiceUserIds(v []string)` + +SetServiceUserIds sets ServiceUserIds field to given value. + +### HasServiceUserIds + +`func (o *ReviewerStage) HasServiceUserIds() bool` + +HasServiceUserIds 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/RolePermissionNameEnum.md b/docs/RolePermissionNameEnum.md new file mode 100644 index 0000000..cddea6a --- /dev/null +++ b/docs/RolePermissionNameEnum.md @@ -0,0 +1,47 @@ +# RolePermissionNameEnum + +## Enum + + +* `READ` (value: `"READ"`) + +* `READ_ASSIGNMENTS` (value: `"READ_ASSIGNMENTS"`) + +* `CREATE` (value: `"CREATE"`) + +* `IMPORT` (value: `"IMPORT"`) + +* `EXPORT` (value: `"EXPORT"`) + +* `SYNC` (value: `"SYNC"`) + +* `DELETE` (value: `"DELETE"`) + +* `READ_SETTINGS` (value: `"READ_SETTINGS"`) + +* `EDIT_TAGS` (value: `"EDIT_TAGS"`) + +* `EDIT_SETTINGS` (value: `"EDIT_SETTINGS"`) + +* `EDIT_SYNC_SETTINGS` (value: `"EDIT_SYNC_SETTINGS"`) + +* `EDIT_ASSIGNMENTS` (value: `"EDIT_ASSIGNMENTS"`) + +* `EDIT_REQUEST_CONFIGURATIONS` (value: `"EDIT_REQUEST_CONFIGURATIONS"`) + +* `EDIT_EVENT_STREAM` (value: `"EDIT_EVENT_STREAM"`) + +* `ASSIGN_UAR_REVIEWERS` (value: `"ASSIGN_UAR_REVIEWERS"`) + +* `SEND_REMINDERS` (value: `"SEND_REMINDERS"`) + +* `STOP` (value: `"STOP"`) + +* `REQUEST_ON_BEHALF` (value: `"REQUEST_ON_BEHALF"`) + +* `RESET_MFA` (value: `"RESET_MFA"`) + + +[[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/RolePermissionTargetTypeEnum.md b/docs/RolePermissionTargetTypeEnum.md new file mode 100644 index 0000000..ed03850 --- /dev/null +++ b/docs/RolePermissionTargetTypeEnum.md @@ -0,0 +1,23 @@ +# RolePermissionTargetTypeEnum + +## Enum + + +* `RESOURCE` (value: `"RESOURCE"`) + +* `CONNECTION` (value: `"CONNECTION"`) + +* `GROUP` (value: `"GROUP"`) + +* `BUNDLE` (value: `"BUNDLE"`) + +* `USER` (value: `"USER"`) + +* `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/RuleDisjunction.md b/docs/RuleDisjunction.md index 9a8dfdc..0bdd650 100644 --- a/docs/RuleDisjunction.md +++ b/docs/RuleDisjunction.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Selectors** | [**[]TagSelector**](TagSelector.md) | | +**AttributeSelectors** | Pointer to [**[]UserAttributeSelector**](UserAttributeSelector.md) | | [optional] ## Methods @@ -45,6 +46,31 @@ and a boolean to check if the value has been set. SetSelectors sets Selectors field to given value. +### GetAttributeSelectors + +`func (o *RuleDisjunction) GetAttributeSelectors() []UserAttributeSelector` + +GetAttributeSelectors returns the AttributeSelectors field if non-nil, zero value otherwise. + +### GetAttributeSelectorsOk + +`func (o *RuleDisjunction) GetAttributeSelectorsOk() (*[]UserAttributeSelector, bool)` + +GetAttributeSelectorsOk returns a tuple with the AttributeSelectors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttributeSelectors + +`func (o *RuleDisjunction) SetAttributeSelectors(v []UserAttributeSelector)` + +SetAttributeSelectors sets AttributeSelectors field to given value. + +### HasAttributeSelectors + +`func (o *RuleDisjunction) HasAttributeSelectors() bool` + +HasAttributeSelectors 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/ScopedRolePermission.md b/docs/ScopedRolePermission.md new file mode 100644 index 0000000..1517646 --- /dev/null +++ b/docs/ScopedRolePermission.md @@ -0,0 +1,119 @@ +# ScopedRolePermission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TargetIds** | Pointer to **[]string** | The IDs of the entities that this permission applies to. If empty of missing, the permission will have untargeted scope. | [optional] +**TargetType** | [**RolePermissionTargetTypeEnum**](RolePermissionTargetTypeEnum.md) | | +**PermissionName** | [**RolePermissionNameEnum**](RolePermissionNameEnum.md) | | +**AllowAll** | **bool** | | + +## Methods + +### NewScopedRolePermission + +`func NewScopedRolePermission(targetType RolePermissionTargetTypeEnum, permissionName RolePermissionNameEnum, allowAll bool, ) *ScopedRolePermission` + +NewScopedRolePermission instantiates a new ScopedRolePermission 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 + +### NewScopedRolePermissionWithDefaults + +`func NewScopedRolePermissionWithDefaults() *ScopedRolePermission` + +NewScopedRolePermissionWithDefaults instantiates a new ScopedRolePermission 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 + +### GetTargetIds + +`func (o *ScopedRolePermission) GetTargetIds() []string` + +GetTargetIds returns the TargetIds field if non-nil, zero value otherwise. + +### GetTargetIdsOk + +`func (o *ScopedRolePermission) GetTargetIdsOk() (*[]string, bool)` + +GetTargetIdsOk returns a tuple with the TargetIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetIds + +`func (o *ScopedRolePermission) SetTargetIds(v []string)` + +SetTargetIds sets TargetIds field to given value. + +### HasTargetIds + +`func (o *ScopedRolePermission) HasTargetIds() bool` + +HasTargetIds returns a boolean if a field has been set. + +### GetTargetType + +`func (o *ScopedRolePermission) GetTargetType() RolePermissionTargetTypeEnum` + +GetTargetType returns the TargetType field if non-nil, zero value otherwise. + +### GetTargetTypeOk + +`func (o *ScopedRolePermission) GetTargetTypeOk() (*RolePermissionTargetTypeEnum, bool)` + +GetTargetTypeOk returns a tuple with the TargetType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetType + +`func (o *ScopedRolePermission) SetTargetType(v RolePermissionTargetTypeEnum)` + +SetTargetType sets TargetType field to given value. + + +### GetPermissionName + +`func (o *ScopedRolePermission) GetPermissionName() RolePermissionNameEnum` + +GetPermissionName returns the PermissionName field if non-nil, zero value otherwise. + +### GetPermissionNameOk + +`func (o *ScopedRolePermission) GetPermissionNameOk() (*RolePermissionNameEnum, bool)` + +GetPermissionNameOk returns a tuple with the PermissionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissionName + +`func (o *ScopedRolePermission) SetPermissionName(v RolePermissionNameEnum)` + +SetPermissionName sets PermissionName field to given value. + + +### GetAllowAll + +`func (o *ScopedRolePermission) GetAllowAll() bool` + +GetAllowAll returns the AllowAll field if non-nil, zero value otherwise. + +### GetAllowAllOk + +`func (o *ScopedRolePermission) GetAllowAllOk() (*bool, bool)` + +GetAllowAllOk returns a tuple with the AllowAll field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllowAll + +`func (o *ScopedRolePermission) SetAllowAll(v bool)` + +SetAllowAll sets AllowAll 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/ScopedRolePermissionList.md b/docs/ScopedRolePermissionList.md new file mode 100644 index 0000000..55c9023 --- /dev/null +++ b/docs/ScopedRolePermissionList.md @@ -0,0 +1,51 @@ +# ScopedRolePermissionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permissions** | [**[]ScopedRolePermission**](ScopedRolePermission.md) | | + +## Methods + +### NewScopedRolePermissionList + +`func NewScopedRolePermissionList(permissions []ScopedRolePermission, ) *ScopedRolePermissionList` + +NewScopedRolePermissionList instantiates a new ScopedRolePermissionList 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 + +### NewScopedRolePermissionListWithDefaults + +`func NewScopedRolePermissionListWithDefaults() *ScopedRolePermissionList` + +NewScopedRolePermissionListWithDefaults instantiates a new ScopedRolePermissionList 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 + +### GetPermissions + +`func (o *ScopedRolePermissionList) GetPermissions() []ScopedRolePermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *ScopedRolePermissionList) GetPermissionsOk() (*[]ScopedRolePermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *ScopedRolePermissionList) SetPermissions(v []ScopedRolePermission)` + +SetPermissions sets Permissions 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/StringMatchType.md b/docs/StringMatchType.md new file mode 100644 index 0000000..aa75cf1 --- /dev/null +++ b/docs/StringMatchType.md @@ -0,0 +1,17 @@ +# StringMatchType + +## Enum + + +* `CONTAINS` (value: `"CONTAINS"`) + +* `EQUALS` (value: `"EQUALS"`) + +* `STARTS_WITH` (value: `"STARTS_WITH"`) + +* `ENDS_WITH` (value: `"ENDS_WITH"`) + + +[[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/SubEvent.md b/docs/SubEvent.md index 69ded0e..e742b15 100644 --- a/docs/SubEvent.md +++ b/docs/SubEvent.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**SubEventType** | **interface{}** | The subevent type. | +**SubEventType** | **string** | The subevent type. | ## Methods ### NewSubEvent -`func NewSubEvent(subEventType interface{}, ) *SubEvent` +`func NewSubEvent(subEventType string, ) *SubEvent` NewSubEvent instantiates a new SubEvent object This constructor will assign default values to properties that have it defined, @@ -27,34 +27,24 @@ but it doesn't guarantee that properties required by API are set ### GetSubEventType -`func (o *SubEvent) GetSubEventType() interface{}` +`func (o *SubEvent) GetSubEventType() string` GetSubEventType returns the SubEventType field if non-nil, zero value otherwise. ### GetSubEventTypeOk -`func (o *SubEvent) GetSubEventTypeOk() (*interface{}, bool)` +`func (o *SubEvent) GetSubEventTypeOk() (*string, bool)` GetSubEventTypeOk returns a tuple with the SubEventType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSubEventType -`func (o *SubEvent) SetSubEventType(v interface{})` +`func (o *SubEvent) SetSubEventType(v string)` SetSubEventType sets SubEventType field to given value. -### SetSubEventTypeNil - -`func (o *SubEvent) SetSubEventTypeNil(b bool)` - - SetSubEventTypeNil sets the value for SubEventType to be an explicit nil - -### UnsetSubEventType -`func (o *SubEvent) UnsetSubEventType()` - -UnsetSubEventType ensures that no value is present for SubEventType, not even an explicit nil [[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/SyncTask.md b/docs/SyncTask.md new file mode 100644 index 0000000..86d6143 --- /dev/null +++ b/docs/SyncTask.md @@ -0,0 +1,72 @@ +# SyncTask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the sync task. | +**CompletedAt** | **time.Time** | The time when the sync task was completed. | + +## Methods + +### NewSyncTask + +`func NewSyncTask(id string, completedAt time.Time, ) *SyncTask` + +NewSyncTask instantiates a new SyncTask 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 + +### NewSyncTaskWithDefaults + +`func NewSyncTaskWithDefaults() *SyncTask` + +NewSyncTaskWithDefaults instantiates a new SyncTask 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 + +### GetId + +`func (o *SyncTask) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SyncTask) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SyncTask) SetId(v string)` + +SetId sets Id field to given value. + + +### GetCompletedAt + +`func (o *SyncTask) GetCompletedAt() time.Time` + +GetCompletedAt returns the CompletedAt field if non-nil, zero value otherwise. + +### GetCompletedAtOk + +`func (o *SyncTask) GetCompletedAtOk() (*time.Time, bool)` + +GetCompletedAtOk returns a tuple with the CompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompletedAt + +`func (o *SyncTask) SetCompletedAt(v time.Time)` + +SetCompletedAt sets CompletedAt 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/TagsApi.md b/docs/TagsApi.md index 982a52a..1fbf942 100644 --- a/docs/TagsApi.md +++ b/docs/TagsApi.md @@ -10,8 +10,8 @@ Method | HTTP request | Description [**CreateTag**](TagsAPI.md#CreateTag) | **Post** /tag | [**DeleteTagByID**](TagsAPI.md#DeleteTagByID) | **Delete** /tag/{tag_id} | [**GetTag**](TagsAPI.md#GetTag) | **Get** /tag | -[**GetTagByID**](TagsAPI.md#GetTagByID) | **Get** /tag/{tag_id} | -[**GetTags**](TagsAPI.md#GetTags) | **Get** /tags | +[**GetTagByID**](TagsAPI.md#GetTagByID) | **Get** /tag/{tag_id} | Get tag by ID +[**GetTags**](TagsAPI.md#GetTags) | **Get** /tags | Get tags [**RemoveGroupTag**](TagsAPI.md#RemoveGroupTag) | **Delete** /tags/{tag_id}/groups/{group_id} | [**RemoveResourceTag**](TagsAPI.md#RemoveResourceTag) | **Delete** /tags/{tag_id}/resources/{resource_id} | [**RemoveUserTag**](TagsAPI.md#RemoveUserTag) | **Delete** /tags/{tag_id}/users/{user_id} | @@ -162,7 +162,7 @@ Name | Type | Description | Notes ## AddUserTag -> AddUserTag(ctx, tagId, userId).Execute() +> AddUserTag(ctx, tagId, userId).Body(body).Execute() @@ -183,10 +183,11 @@ import ( func main() { tagId := "1b978423-db0a-4037-a4cf-f79c60cb67b3" // string | The ID of the tag to apply. userId := "1b978423-db0a-4037-a4cf-f79c60cb67b3" // string | The ID of the user to apply the tag to. + body := map[string]interface{}{ ... } // map[string]interface{} | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TagsAPI.AddUserTag(context.Background(), tagId, userId).Execute() + r, err := apiClient.TagsAPI.AddUserTag(context.Background(), tagId, userId).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `TagsAPI.AddUserTag``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -212,6 +213,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | | ### Return type @@ -223,7 +225,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -443,7 +445,7 @@ Name | Type | Description | Notes > Tag GetTagByID(ctx, tagId).Execute() - +Get tag by ID @@ -513,7 +515,7 @@ Name | Type | Description | Notes > PaginatedTagsList GetTags(ctx).Cursor(cursor).PageSize(pageSize).Execute() - +Get tags diff --git a/docs/ThirdPartyProviderEnum.md b/docs/ThirdPartyProviderEnum.md new file mode 100644 index 0000000..b24ca6b --- /dev/null +++ b/docs/ThirdPartyProviderEnum.md @@ -0,0 +1,37 @@ +# ThirdPartyProviderEnum + +## Enum + + +* `AUTH0` (value: `"AUTH0"`) + +* `SLACK` (value: `"SLACK"`) + +* `GOOGLE_CHAT` (value: `"GOOGLE_CHAT"`) + +* `JIRA` (value: `"JIRA"`) + +* `LINEAR` (value: `"LINEAR"`) + +* `SERVICE_NOW` (value: `"SERVICE_NOW"`) + +* `FRESH_SERVICE` (value: `"FRESH_SERVICE"`) + +* `SHORTCUT` (value: `"SHORTCUT"`) + +* `PAGER_DUTY` (value: `"PAGER_DUTY"`) + +* `OPSGENIE` (value: `"OPSGENIE"`) + +* `GIT_HUB` (value: `"GIT_HUB"`) + +* `GIT_LAB` (value: `"GIT_LAB"`) + +* `GIT_LAB_CONNECTION` (value: `"GIT_LAB_CONNECTION"`) + +* `TELEPORT` (value: `"TELEPORT"`) + + +[[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/Token.md b/docs/Token.md new file mode 100644 index 0000000..2955c90 --- /dev/null +++ b/docs/Token.md @@ -0,0 +1,208 @@ +# Token + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TokenId** | **string** | The ID of the API token. | +**CreatedAt** | **time.Time** | The date and time the token was created. | +**TokenLabel** | **string** | A human-readable label for the token. | +**CreatorUserId** | **string** | The ID of the user who created the token. | +**UserId** | **string** | The ID of the user the token authenticates as. | +**LastUsedAt** | Pointer to **time.Time** | The date and time the token was last used. | [optional] +**AccessLevel** | [**ApiAccessLevelEnum**](ApiAccessLevelEnum.md) | | +**ExpiresAt** | Pointer to **time.Time** | The date and time the token expires. | [optional] + +## Methods + +### NewToken + +`func NewToken(tokenId string, createdAt time.Time, tokenLabel string, creatorUserId string, userId string, accessLevel ApiAccessLevelEnum, ) *Token` + +NewToken instantiates a new Token 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 + +### NewTokenWithDefaults + +`func NewTokenWithDefaults() *Token` + +NewTokenWithDefaults instantiates a new Token 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 + +### GetTokenId + +`func (o *Token) GetTokenId() string` + +GetTokenId returns the TokenId field if non-nil, zero value otherwise. + +### GetTokenIdOk + +`func (o *Token) GetTokenIdOk() (*string, bool)` + +GetTokenIdOk returns a tuple with the TokenId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenId + +`func (o *Token) SetTokenId(v string)` + +SetTokenId sets TokenId field to given value. + + +### GetCreatedAt + +`func (o *Token) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Token) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Token) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetTokenLabel + +`func (o *Token) GetTokenLabel() string` + +GetTokenLabel returns the TokenLabel field if non-nil, zero value otherwise. + +### GetTokenLabelOk + +`func (o *Token) GetTokenLabelOk() (*string, bool)` + +GetTokenLabelOk returns a tuple with the TokenLabel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTokenLabel + +`func (o *Token) SetTokenLabel(v string)` + +SetTokenLabel sets TokenLabel field to given value. + + +### GetCreatorUserId + +`func (o *Token) GetCreatorUserId() string` + +GetCreatorUserId returns the CreatorUserId field if non-nil, zero value otherwise. + +### GetCreatorUserIdOk + +`func (o *Token) GetCreatorUserIdOk() (*string, bool)` + +GetCreatorUserIdOk returns a tuple with the CreatorUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatorUserId + +`func (o *Token) SetCreatorUserId(v string)` + +SetCreatorUserId sets CreatorUserId field to given value. + + +### GetUserId + +`func (o *Token) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *Token) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *Token) SetUserId(v string)` + +SetUserId sets UserId field to given value. + + +### GetLastUsedAt + +`func (o *Token) GetLastUsedAt() time.Time` + +GetLastUsedAt returns the LastUsedAt field if non-nil, zero value otherwise. + +### GetLastUsedAtOk + +`func (o *Token) GetLastUsedAtOk() (*time.Time, bool)` + +GetLastUsedAtOk returns a tuple with the LastUsedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUsedAt + +`func (o *Token) SetLastUsedAt(v time.Time)` + +SetLastUsedAt sets LastUsedAt field to given value. + +### HasLastUsedAt + +`func (o *Token) HasLastUsedAt() bool` + +HasLastUsedAt returns a boolean if a field has been set. + +### GetAccessLevel + +`func (o *Token) GetAccessLevel() ApiAccessLevelEnum` + +GetAccessLevel returns the AccessLevel field if non-nil, zero value otherwise. + +### GetAccessLevelOk + +`func (o *Token) GetAccessLevelOk() (*ApiAccessLevelEnum, bool)` + +GetAccessLevelOk returns a tuple with the AccessLevel field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessLevel + +`func (o *Token) SetAccessLevel(v ApiAccessLevelEnum)` + +SetAccessLevel sets AccessLevel field to given value. + + +### GetExpiresAt + +`func (o *Token) GetExpiresAt() time.Time` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *Token) GetExpiresAtOk() (*time.Time, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *Token) SetExpiresAt(v time.Time)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *Token) HasExpiresAt() bool` + +HasExpiresAt 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/TokensAPI.md b/docs/TokensAPI.md new file mode 100644 index 0000000..9e81864 --- /dev/null +++ b/docs/TokensAPI.md @@ -0,0 +1,150 @@ +# \TokensAPI + +All URIs are relative to *https://api.opal.dev/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DeleteToken**](TokensAPI.md#DeleteToken) | **Delete** /tokens/{token_id} | Delete token +[**GetTokens**](TokensAPI.md#GetTokens) | **Get** /tokens | Get tokens + + + +## DeleteToken + +> DeleteToken(ctx, tokenId).Execute() + +Delete token + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + tokenId := "f454d283-ca87-4a8a-bdbb-df212eca5353" // string | The ID of the token to delete. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.TokensAPI.DeleteToken(context.Background(), tokenId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.DeleteToken``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tokenId** | **string** | The ID of the token to delete. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteTokenRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[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) + + +## GetTokens + +> PaginatedTokensList GetTokens(ctx).Cursor(cursor).PageSize(pageSize).TokenIds(tokenIds).UserId(userId).Execute() + +Get tokens + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) + pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) + tokenIds := []string{"Inner_example"} // []string | Filter by token IDs. (optional) + userId := "29827fb8-f2dd-4e80-9576-28e31e9934ac" // string | Filter by user ID. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TokensAPI.GetTokens(context.Background()).Cursor(cursor).PageSize(pageSize).TokenIds(tokenIds).UserId(userId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TokensAPI.GetTokens``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetTokens`: PaginatedTokensList + fmt.Fprintf(os.Stdout, "Response from `TokensAPI.GetTokens`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetTokensRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **cursor** | **string** | The pagination cursor value. | + **pageSize** | **int32** | Number of results to return per page. Default is 200. | + **tokenIds** | **[]string** | Filter by token IDs. | + **userId** | **string** | Filter by user ID. | + +### Return type + +[**PaginatedTokensList**](PaginatedTokensList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/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/docs/UpdateAccessRuleInfo.md b/docs/UpdateAccessRuleInfo.md new file mode 100644 index 0000000..2555a8c --- /dev/null +++ b/docs/UpdateAccessRuleInfo.md @@ -0,0 +1,135 @@ +# UpdateAccessRuleInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the access rule. | +**Description** | **string** | A description of the group. | +**AdminOwnerId** | **string** | The ID of the owner of the group. | +**Status** | **string** | The status of the access rule. | +**RuleClauses** | [**RuleClauses**](RuleClauses.md) | | + +## Methods + +### NewUpdateAccessRuleInfo + +`func NewUpdateAccessRuleInfo(name string, description string, adminOwnerId string, status string, ruleClauses RuleClauses, ) *UpdateAccessRuleInfo` + +NewUpdateAccessRuleInfo instantiates a new UpdateAccessRuleInfo 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 + +### NewUpdateAccessRuleInfoWithDefaults + +`func NewUpdateAccessRuleInfoWithDefaults() *UpdateAccessRuleInfo` + +NewUpdateAccessRuleInfoWithDefaults instantiates a new UpdateAccessRuleInfo 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 + +### GetName + +`func (o *UpdateAccessRuleInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateAccessRuleInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateAccessRuleInfo) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *UpdateAccessRuleInfo) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *UpdateAccessRuleInfo) 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 *UpdateAccessRuleInfo) SetDescription(v string)` + +SetDescription sets Description field to given value. + + +### GetAdminOwnerId + +`func (o *UpdateAccessRuleInfo) GetAdminOwnerId() string` + +GetAdminOwnerId returns the AdminOwnerId field if non-nil, zero value otherwise. + +### GetAdminOwnerIdOk + +`func (o *UpdateAccessRuleInfo) GetAdminOwnerIdOk() (*string, bool)` + +GetAdminOwnerIdOk returns a tuple with the AdminOwnerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdminOwnerId + +`func (o *UpdateAccessRuleInfo) SetAdminOwnerId(v string)` + +SetAdminOwnerId sets AdminOwnerId field to given value. + + +### GetStatus + +`func (o *UpdateAccessRuleInfo) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateAccessRuleInfo) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateAccessRuleInfo) SetStatus(v string)` + +SetStatus sets Status field to given value. + + +### GetRuleClauses + +`func (o *UpdateAccessRuleInfo) GetRuleClauses() RuleClauses` + +GetRuleClauses returns the RuleClauses field if non-nil, zero value otherwise. + +### GetRuleClausesOk + +`func (o *UpdateAccessRuleInfo) GetRuleClausesOk() (*RuleClauses, bool)` + +GetRuleClausesOk returns a tuple with the RuleClauses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRuleClauses + +`func (o *UpdateAccessRuleInfo) SetRuleClauses(v RuleClauses)` + +SetRuleClauses sets RuleClauses 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/UpdateConfigurationTemplateInfo.md b/docs/UpdateConfigurationTemplateInfo.md index 78390c9..b268c04 100644 --- a/docs/UpdateConfigurationTemplateInfo.md +++ b/docs/UpdateConfigurationTemplateInfo.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **ConfigurationTemplateId** | **string** | The ID of the configuration template. | **Name** | Pointer to **string** | The name of the configuration template. | [optional] **AdminOwnerId** | Pointer to **string** | The ID of the owner of the configuration template. | [optional] -**Visibility** | Pointer to [**VisibilityInfo**](VisibilityInfo.md) | | [optional] +**Visibility** | Pointer to [**VisibilityInfo**](VisibilityInfo.md) | The visibility info of the configuration template. | [optional] **LinkedAuditMessageChannelIds** | Pointer to **[]string** | The IDs of the audit message channels linked to the configuration template. | [optional] **RequestConfigurations** | Pointer to [**[]RequestConfiguration**](RequestConfiguration.md) | The request configuration list linked to the configuration template. | [optional] -**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | | [optional] +**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | The request configuration list linked to the configuration template. Deprecated in favor of `request_configurations`. | [optional] **MemberOncallScheduleIds** | Pointer to **[]string** | The IDs of the on-call schedules linked to the configuration template. | [optional] **BreakGlassUserIds** | Pointer to **[]string** | The IDs of the break glass users linked to the configuration template. | [optional] **RequireMfaToApprove** | Pointer to **bool** | A bool representing whether or not to require MFA for reviewers to approve requests for this configuration template. | [optional] diff --git a/docs/UpdateEventStreamInfo.md b/docs/UpdateEventStreamInfo.md new file mode 100644 index 0000000..8d3552b --- /dev/null +++ b/docs/UpdateEventStreamInfo.md @@ -0,0 +1,134 @@ +# UpdateEventStreamInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | Updated name for the event stream. | [optional] +**Enabled** | Pointer to **bool** | Whether the event stream should be enabled. | [optional] +**WebhookUrl** | Pointer to **string** | Updated webhook URL. | [optional] +**Credentials** | Pointer to [**WebhookCredentials**](WebhookCredentials.md) | | [optional] + +## Methods + +### NewUpdateEventStreamInfo + +`func NewUpdateEventStreamInfo() *UpdateEventStreamInfo` + +NewUpdateEventStreamInfo instantiates a new UpdateEventStreamInfo 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 + +### NewUpdateEventStreamInfoWithDefaults + +`func NewUpdateEventStreamInfoWithDefaults() *UpdateEventStreamInfo` + +NewUpdateEventStreamInfoWithDefaults instantiates a new UpdateEventStreamInfo 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 + +### GetName + +`func (o *UpdateEventStreamInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateEventStreamInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateEventStreamInfo) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *UpdateEventStreamInfo) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetEnabled + +`func (o *UpdateEventStreamInfo) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *UpdateEventStreamInfo) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *UpdateEventStreamInfo) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *UpdateEventStreamInfo) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetWebhookUrl + +`func (o *UpdateEventStreamInfo) GetWebhookUrl() string` + +GetWebhookUrl returns the WebhookUrl field if non-nil, zero value otherwise. + +### GetWebhookUrlOk + +`func (o *UpdateEventStreamInfo) GetWebhookUrlOk() (*string, bool)` + +GetWebhookUrlOk returns a tuple with the WebhookUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWebhookUrl + +`func (o *UpdateEventStreamInfo) SetWebhookUrl(v string)` + +SetWebhookUrl sets WebhookUrl field to given value. + +### HasWebhookUrl + +`func (o *UpdateEventStreamInfo) HasWebhookUrl() bool` + +HasWebhookUrl returns a boolean if a field has been set. + +### GetCredentials + +`func (o *UpdateEventStreamInfo) GetCredentials() WebhookCredentials` + +GetCredentials returns the Credentials field if non-nil, zero value otherwise. + +### GetCredentialsOk + +`func (o *UpdateEventStreamInfo) GetCredentialsOk() (*WebhookCredentials, bool)` + +GetCredentialsOk returns a tuple with the Credentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentials + +`func (o *UpdateEventStreamInfo) SetCredentials(v WebhookCredentials)` + +SetCredentials sets Credentials field to given value. + +### HasCredentials + +`func (o *UpdateEventStreamInfo) HasCredentials() bool` + +HasCredentials 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/UpdateGroupInfo.md b/docs/UpdateGroupInfo.md index 98405cf..5ef207a 100644 --- a/docs/UpdateGroupInfo.md +++ b/docs/UpdateGroupInfo.md @@ -20,8 +20,9 @@ Name | Type | Description | Notes **RequestTemplateId** | Pointer to **string** | The ID of the associated request template. Deprecated in favor of `request_configurations`. | [optional] **IsRequestable** | Pointer to **bool** | A bool representing whether or not to allow access requests to this group. Deprecated in favor of `request_configurations`. | [optional] **GroupLeaderUserIds** | Pointer to **[]string** | A list of User IDs for the group leaders of the group | [optional] +**ExtensionsDurationInMinutes** | Pointer to **int32** | 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. | [optional] **RequestConfigurations** | Pointer to [**[]RequestConfiguration**](RequestConfiguration.md) | The request configuration list of the configuration template. If not provided, the default request configuration will be used. | [optional] -**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | | [optional] +**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | The request configuration list of the configuration template. If not provided, the default request configuration will be used. Deprecated in favor of `request_configurations`. | [optional] **CustomRequestNotification** | Pointer to **string** | Custom request notification sent to the requester when the request is approved. | [optional] **RiskSensitivityOverride** | Pointer to [**RiskSensitivityEnum**](RiskSensitivityEnum.md) | | [optional] @@ -439,6 +440,31 @@ SetGroupLeaderUserIds sets GroupLeaderUserIds field to given value. HasGroupLeaderUserIds returns a boolean if a field has been set. +### GetExtensionsDurationInMinutes + +`func (o *UpdateGroupInfo) GetExtensionsDurationInMinutes() int32` + +GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field if non-nil, zero value otherwise. + +### GetExtensionsDurationInMinutesOk + +`func (o *UpdateGroupInfo) GetExtensionsDurationInMinutesOk() (*int32, bool)` + +GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionsDurationInMinutes + +`func (o *UpdateGroupInfo) SetExtensionsDurationInMinutes(v int32)` + +SetExtensionsDurationInMinutes sets ExtensionsDurationInMinutes field to given value. + +### HasExtensionsDurationInMinutes + +`func (o *UpdateGroupInfo) HasExtensionsDurationInMinutes() bool` + +HasExtensionsDurationInMinutes returns a boolean if a field has been set. + ### GetRequestConfigurations `func (o *UpdateGroupInfo) GetRequestConfigurations() []RequestConfiguration` diff --git a/docs/UpdateGroupUserRequest.md b/docs/UpdateGroupUserRequest.md new file mode 100644 index 0000000..b5f79b1 --- /dev/null +++ b/docs/UpdateGroupUserRequest.md @@ -0,0 +1,77 @@ +# UpdateGroupUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DurationMinutes** | **int32** | The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite, or a negative value to revoke access. | +**AccessLevelRemoteId** | Pointer to **string** | The updated remote ID of the access level granted to this user. | [optional] + +## Methods + +### NewUpdateGroupUserRequest + +`func NewUpdateGroupUserRequest(durationMinutes int32, ) *UpdateGroupUserRequest` + +NewUpdateGroupUserRequest instantiates a new UpdateGroupUserRequest 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 + +### NewUpdateGroupUserRequestWithDefaults + +`func NewUpdateGroupUserRequestWithDefaults() *UpdateGroupUserRequest` + +NewUpdateGroupUserRequestWithDefaults instantiates a new UpdateGroupUserRequest 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 + +### GetDurationMinutes + +`func (o *UpdateGroupUserRequest) GetDurationMinutes() int32` + +GetDurationMinutes returns the DurationMinutes field if non-nil, zero value otherwise. + +### GetDurationMinutesOk + +`func (o *UpdateGroupUserRequest) 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 *UpdateGroupUserRequest) SetDurationMinutes(v int32)` + +SetDurationMinutes sets DurationMinutes field to given value. + + +### GetAccessLevelRemoteId + +`func (o *UpdateGroupUserRequest) GetAccessLevelRemoteId() string` + +GetAccessLevelRemoteId returns the AccessLevelRemoteId field if non-nil, zero value otherwise. + +### GetAccessLevelRemoteIdOk + +`func (o *UpdateGroupUserRequest) 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 *UpdateGroupUserRequest) SetAccessLevelRemoteId(v string)` + +SetAccessLevelRemoteId sets AccessLevelRemoteId field to given value. + +### HasAccessLevelRemoteId + +`func (o *UpdateGroupUserRequest) 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/UpdateResourceInfo.md b/docs/UpdateResourceInfo.md index 146e268..7f9c0a7 100644 --- a/docs/UpdateResourceInfo.md +++ b/docs/UpdateResourceInfo.md @@ -23,8 +23,10 @@ Name | Type | Description | Notes **ConfigurationTemplateId** | Pointer to **string** | The ID of the associated configuration template. | [optional] **RequestTemplateId** | Pointer to **string** | The ID of the associated request template. Deprecated in favor of `request_configurations`. | [optional] **IsRequestable** | Pointer to **bool** | A bool representing whether or not to allow access requests to this resource. Deprecated in favor of `request_configurations`. | [optional] +**ExtensionsDurationInMinutes** | Pointer to **int32** | 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. | [optional] +**ParentResourceId** | Pointer to **string** | The ID of the parent resource. | [optional] **RequestConfigurations** | Pointer to [**[]RequestConfiguration**](RequestConfiguration.md) | A list of configurations for requests to this resource. If not provided, the default request configuration will be used. | [optional] -**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | | [optional] +**RequestConfigurationList** | Pointer to [**CreateRequestConfigurationInfoList**](CreateRequestConfigurationInfoList.md) | 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`. | [optional] ## Methods @@ -515,6 +517,56 @@ SetIsRequestable sets IsRequestable field to given value. HasIsRequestable returns a boolean if a field has been set. +### GetExtensionsDurationInMinutes + +`func (o *UpdateResourceInfo) GetExtensionsDurationInMinutes() int32` + +GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field if non-nil, zero value otherwise. + +### GetExtensionsDurationInMinutesOk + +`func (o *UpdateResourceInfo) GetExtensionsDurationInMinutesOk() (*int32, bool)` + +GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtensionsDurationInMinutes + +`func (o *UpdateResourceInfo) SetExtensionsDurationInMinutes(v int32)` + +SetExtensionsDurationInMinutes sets ExtensionsDurationInMinutes field to given value. + +### HasExtensionsDurationInMinutes + +`func (o *UpdateResourceInfo) HasExtensionsDurationInMinutes() bool` + +HasExtensionsDurationInMinutes returns a boolean if a field has been set. + +### GetParentResourceId + +`func (o *UpdateResourceInfo) GetParentResourceId() string` + +GetParentResourceId returns the ParentResourceId field if non-nil, zero value otherwise. + +### GetParentResourceIdOk + +`func (o *UpdateResourceInfo) GetParentResourceIdOk() (*string, bool)` + +GetParentResourceIdOk returns a tuple with the ParentResourceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentResourceId + +`func (o *UpdateResourceInfo) SetParentResourceId(v string)` + +SetParentResourceId sets ParentResourceId field to given value. + +### HasParentResourceId + +`func (o *UpdateResourceInfo) HasParentResourceId() bool` + +HasParentResourceId returns a boolean if a field has been set. + ### GetRequestConfigurations `func (o *UpdateResourceInfo) GetRequestConfigurations() []RequestConfiguration` diff --git a/docs/UserAttributeSelector.md b/docs/UserAttributeSelector.md new file mode 100644 index 0000000..28e747a --- /dev/null +++ b/docs/UserAttributeSelector.md @@ -0,0 +1,72 @@ +# UserAttributeSelector + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Attribute** | **string** | | +**Values** | **[]string** | | + +## Methods + +### NewUserAttributeSelector + +`func NewUserAttributeSelector(attribute string, values []string, ) *UserAttributeSelector` + +NewUserAttributeSelector instantiates a new UserAttributeSelector 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 + +### NewUserAttributeSelectorWithDefaults + +`func NewUserAttributeSelectorWithDefaults() *UserAttributeSelector` + +NewUserAttributeSelectorWithDefaults instantiates a new UserAttributeSelector 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 + +### GetAttribute + +`func (o *UserAttributeSelector) GetAttribute() string` + +GetAttribute returns the Attribute field if non-nil, zero value otherwise. + +### GetAttributeOk + +`func (o *UserAttributeSelector) GetAttributeOk() (*string, bool)` + +GetAttributeOk returns a tuple with the Attribute field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttribute + +`func (o *UserAttributeSelector) SetAttribute(v string)` + +SetAttribute sets Attribute field to given value. + + +### GetValues + +`func (o *UserAttributeSelector) GetValues() []string` + +GetValues returns the Values field if non-nil, zero value otherwise. + +### GetValuesOk + +`func (o *UserAttributeSelector) GetValuesOk() (*[]string, bool)` + +GetValuesOk returns a tuple with the Values field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValues + +`func (o *UserAttributeSelector) SetValues(v []string)` + +SetValues sets Values 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/UsersApi.md b/docs/UsersApi.md index fa84029..add784f 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -4,12 +4,87 @@ All URIs are relative to *https://api.opal.dev/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**GetRemoteUsers**](UsersAPI.md#GetRemoteUsers) | **Get** /users/remote_users | [**GetUserTags**](UsersAPI.md#GetUserTags) | **Get** /users/{user_id}/tags | [**GetUsers**](UsersAPI.md#GetUsers) | **Get** /users | [**User**](UsersAPI.md#User) | **Get** /user | +## GetRemoteUsers + +> PaginatedRemoteUsersList GetRemoteUsers(ctx).ThirdPartyProvider(thirdPartyProvider).UserId(userId).RemoteId(remoteId).Cursor(cursor).PageSize(pageSize).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/opalsecurity/opal-go" +) + +func main() { + thirdPartyProvider := []openapiclient.ThirdPartyProviderEnum{openapiclient.ThirdPartyProviderEnum("AUTH0")} // []ThirdPartyProviderEnum | Filter remote users by their third party provider. (optional) + userId := []string{"Inner_example"} // []string | Filter remote users by their user ID. (optional) + remoteId := []string{"Inner_example"} // []string | Filter remote users by their remote ID. (optional) + cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) + pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UsersAPI.GetRemoteUsers(context.Background()).ThirdPartyProvider(thirdPartyProvider).UserId(userId).RemoteId(remoteId).Cursor(cursor).PageSize(pageSize).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.GetRemoteUsers``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetRemoteUsers`: PaginatedRemoteUsersList + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.GetRemoteUsers`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetRemoteUsersRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **thirdPartyProvider** | [**[]ThirdPartyProviderEnum**](ThirdPartyProviderEnum.md) | Filter remote users by their third party provider. | + **userId** | **[]string** | Filter remote users by their user ID. | + **remoteId** | **[]string** | Filter remote users by their remote ID. | + **cursor** | **string** | The pagination cursor value. | + **pageSize** | **int32** | Number of results to return per page. Default is 200. | + +### Return type + +[**PaginatedRemoteUsersList**](PaginatedRemoteUsersList.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) + + ## GetUserTags > TagsList GetUserTags(ctx, userId).Execute() @@ -82,7 +157,7 @@ Name | Type | Description | Notes ## GetUsers -> PaginatedUsersList GetUsers(ctx).Cursor(cursor).PageSize(pageSize).Execute() +> PaginatedUsersList GetUsers(ctx).Cursor(cursor).PageSize(pageSize).TagIds(tagIds).Execute() @@ -103,10 +178,11 @@ import ( func main() { cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional) pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional) + tagIds := []string{"Inner_example"} // []string | The IDs of the tags to filter by. Returns only users that have any of these tags applied. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.GetUsers(context.Background()).Cursor(cursor).PageSize(pageSize).Execute() + resp, r, err := apiClient.UsersAPI.GetUsers(context.Background()).Cursor(cursor).PageSize(pageSize).TagIds(tagIds).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.GetUsers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -129,6 +205,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cursor** | **string** | The pagination cursor value. | **pageSize** | **int32** | Number of results to return per page. Default is 200. | + **tagIds** | **[]string** | The IDs of the tags to filter by. Returns only users that have any of these tags applied. | ### Return type diff --git a/docs/WebhookApiKeyCredential.md b/docs/WebhookApiKeyCredential.md new file mode 100644 index 0000000..3e17aa9 --- /dev/null +++ b/docs/WebhookApiKeyCredential.md @@ -0,0 +1,114 @@ +# WebhookApiKeyCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The unique identifier for the credential. | +**Name** | **string** | The name of the API key. | +**Value** | **string** | The value of the API key. | +**Location** | [**WebhookApiKeyLocationEnum**](WebhookApiKeyLocationEnum.md) | | + +## Methods + +### NewWebhookApiKeyCredential + +`func NewWebhookApiKeyCredential(id string, name string, value string, location WebhookApiKeyLocationEnum, ) *WebhookApiKeyCredential` + +NewWebhookApiKeyCredential instantiates a new WebhookApiKeyCredential 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 + +### NewWebhookApiKeyCredentialWithDefaults + +`func NewWebhookApiKeyCredentialWithDefaults() *WebhookApiKeyCredential` + +NewWebhookApiKeyCredentialWithDefaults instantiates a new WebhookApiKeyCredential 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 + +### GetId + +`func (o *WebhookApiKeyCredential) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WebhookApiKeyCredential) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WebhookApiKeyCredential) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *WebhookApiKeyCredential) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WebhookApiKeyCredential) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *WebhookApiKeyCredential) SetName(v string)` + +SetName sets Name field to given value. + + +### GetValue + +`func (o *WebhookApiKeyCredential) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *WebhookApiKeyCredential) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *WebhookApiKeyCredential) SetValue(v string)` + +SetValue sets Value field to given value. + + +### GetLocation + +`func (o *WebhookApiKeyCredential) GetLocation() WebhookApiKeyLocationEnum` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *WebhookApiKeyCredential) GetLocationOk() (*WebhookApiKeyLocationEnum, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *WebhookApiKeyCredential) SetLocation(v WebhookApiKeyLocationEnum)` + +SetLocation sets Location 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/WebhookApiKeyLocationEnum.md b/docs/WebhookApiKeyLocationEnum.md new file mode 100644 index 0000000..4850d8c --- /dev/null +++ b/docs/WebhookApiKeyLocationEnum.md @@ -0,0 +1,13 @@ +# WebhookApiKeyLocationEnum + +## Enum + + +* `HEADER` (value: `"HEADER"`) + +* `QUERY_PARAM` (value: `"QUERY_PARAM"`) + + +[[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/WebhookAuthTypeEnum.md b/docs/WebhookAuthTypeEnum.md new file mode 100644 index 0000000..2947b16 --- /dev/null +++ b/docs/WebhookAuthTypeEnum.md @@ -0,0 +1,15 @@ +# WebhookAuthTypeEnum + +## Enum + + +* `NONE` (value: `"NONE"`) + +* `API_KEY` (value: `"API_KEY"`) + +* `HMAC` (value: `"HMAC"`) + + +[[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/WebhookCredentials.md b/docs/WebhookCredentials.md new file mode 100644 index 0000000..9d0342b --- /dev/null +++ b/docs/WebhookCredentials.md @@ -0,0 +1,129 @@ +# WebhookCredentials + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthType** | [**WebhookAuthTypeEnum**](WebhookAuthTypeEnum.md) | | +**ApiKeyCredentials** | Pointer to [**[]WebhookApiKeyCredential**](WebhookApiKeyCredential.md) | API key credentials, present when auth_type is API_KEY. | [optional] +**HmacCredential1** | Pointer to [**WebhookHmacCredential**](WebhookHmacCredential.md) | Primary HMAC credential, present when auth_type is HMAC. | [optional] +**HmacCredential2** | Pointer to [**WebhookHmacCredential**](WebhookHmacCredential.md) | Secondary HMAC credential for rotation, present when auth_type is HMAC. | [optional] + +## Methods + +### NewWebhookCredentials + +`func NewWebhookCredentials(authType WebhookAuthTypeEnum, ) *WebhookCredentials` + +NewWebhookCredentials instantiates a new WebhookCredentials 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 + +### NewWebhookCredentialsWithDefaults + +`func NewWebhookCredentialsWithDefaults() *WebhookCredentials` + +NewWebhookCredentialsWithDefaults instantiates a new WebhookCredentials 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 + +### GetAuthType + +`func (o *WebhookCredentials) GetAuthType() WebhookAuthTypeEnum` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *WebhookCredentials) GetAuthTypeOk() (*WebhookAuthTypeEnum, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *WebhookCredentials) SetAuthType(v WebhookAuthTypeEnum)` + +SetAuthType sets AuthType field to given value. + + +### GetApiKeyCredentials + +`func (o *WebhookCredentials) GetApiKeyCredentials() []WebhookApiKeyCredential` + +GetApiKeyCredentials returns the ApiKeyCredentials field if non-nil, zero value otherwise. + +### GetApiKeyCredentialsOk + +`func (o *WebhookCredentials) GetApiKeyCredentialsOk() (*[]WebhookApiKeyCredential, bool)` + +GetApiKeyCredentialsOk returns a tuple with the ApiKeyCredentials field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApiKeyCredentials + +`func (o *WebhookCredentials) SetApiKeyCredentials(v []WebhookApiKeyCredential)` + +SetApiKeyCredentials sets ApiKeyCredentials field to given value. + +### HasApiKeyCredentials + +`func (o *WebhookCredentials) HasApiKeyCredentials() bool` + +HasApiKeyCredentials returns a boolean if a field has been set. + +### GetHmacCredential1 + +`func (o *WebhookCredentials) GetHmacCredential1() WebhookHmacCredential` + +GetHmacCredential1 returns the HmacCredential1 field if non-nil, zero value otherwise. + +### GetHmacCredential1Ok + +`func (o *WebhookCredentials) GetHmacCredential1Ok() (*WebhookHmacCredential, bool)` + +GetHmacCredential1Ok returns a tuple with the HmacCredential1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHmacCredential1 + +`func (o *WebhookCredentials) SetHmacCredential1(v WebhookHmacCredential)` + +SetHmacCredential1 sets HmacCredential1 field to given value. + +### HasHmacCredential1 + +`func (o *WebhookCredentials) HasHmacCredential1() bool` + +HasHmacCredential1 returns a boolean if a field has been set. + +### GetHmacCredential2 + +`func (o *WebhookCredentials) GetHmacCredential2() WebhookHmacCredential` + +GetHmacCredential2 returns the HmacCredential2 field if non-nil, zero value otherwise. + +### GetHmacCredential2Ok + +`func (o *WebhookCredentials) GetHmacCredential2Ok() (*WebhookHmacCredential, bool)` + +GetHmacCredential2Ok returns a tuple with the HmacCredential2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHmacCredential2 + +`func (o *WebhookCredentials) SetHmacCredential2(v WebhookHmacCredential)` + +SetHmacCredential2 sets HmacCredential2 field to given value. + +### HasHmacCredential2 + +`func (o *WebhookCredentials) HasHmacCredential2() bool` + +HasHmacCredential2 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/WebhookHmacCredential.md b/docs/WebhookHmacCredential.md new file mode 100644 index 0000000..ef0b54b --- /dev/null +++ b/docs/WebhookHmacCredential.md @@ -0,0 +1,93 @@ +# WebhookHmacCredential + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The unique identifier for the credential. | +**Secret** | **string** | The HMAC secret value. | +**CreatedAt** | **time.Time** | When the credential was created. | + +## Methods + +### NewWebhookHmacCredential + +`func NewWebhookHmacCredential(id string, secret string, createdAt time.Time, ) *WebhookHmacCredential` + +NewWebhookHmacCredential instantiates a new WebhookHmacCredential 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 + +### NewWebhookHmacCredentialWithDefaults + +`func NewWebhookHmacCredentialWithDefaults() *WebhookHmacCredential` + +NewWebhookHmacCredentialWithDefaults instantiates a new WebhookHmacCredential 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 + +### GetId + +`func (o *WebhookHmacCredential) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WebhookHmacCredential) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WebhookHmacCredential) SetId(v string)` + +SetId sets Id field to given value. + + +### GetSecret + +`func (o *WebhookHmacCredential) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *WebhookHmacCredential) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *WebhookHmacCredential) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + +### GetCreatedAt + +`func (o *WebhookHmacCredential) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *WebhookHmacCredential) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *WebhookHmacCredential) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt 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/go.mod b/go.mod index 88f3523..01d2c1a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/opalsecurity/opal-go -go 1.18 +go 1.23 require ( gopkg.in/validator.v2 v2.0.1 diff --git a/model_access_entity_filters.go b/model_access_entity_filters.go new file mode 100644 index 0000000..2dd1002 --- /dev/null +++ b/model_access_entity_filters.go @@ -0,0 +1,496 @@ +/* +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" +) + +// checks if the AccessEntityFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessEntityFilters{} + +// AccessEntityFilters Filters for matching entities by type, name, tag, IDs, connections, or access levels. Supports recursive logical composition via allOf/anyOf. +type AccessEntityFilters struct { + // Filter by entity type. Only RESOURCE, GROUP, and USER are queryable via OpalQuery. + EntityTypes []string `json:"entityTypes,omitempty"` + // Filter by entity item types. + EntityItemTypes []EntityItemTypeEnum `json:"entityItemTypes,omitempty"` + EntityName *EntityNameFilter `json:"entityName,omitempty"` + EntityTag *EntityTagFilter `json:"entityTag,omitempty"` + // Filter by specific entity UUIDs. + EntityIDs []string `json:"entityIDs,omitempty"` + // Filter by app IDs from which returned nodes will be imported from. + ImportedFromApp []string `json:"importedFromApp,omitempty"` + // Filter by role remote IDs. Can only be applied within a hasAccessTo clause. + RoleRemoteIds []string `json:"roleRemoteIds,omitempty"` + // Filter by role display names (e.g. \"Admin\", \"Read\"). Can only be applied within a hasAccessTo clause. + RoleNames []string `json:"roleNames,omitempty"` + // A list of nested filters that must all match (logical AND). Each item has the same shape as this object — scalar fields like `entityTypes` or `entityTag`, and can further nest `allOf`, `anyOf`, or `not`. + AllOf []AccessEntityFilters `json:"allOf,omitempty"` + // A list of nested filters where at least one must match (logical OR). Each item has the same shape as this object. + AnyOf []AccessEntityFilters `json:"anyOf,omitempty"` + // Excludes entities matching the embedded filter (logical NOT). Pass a filter object with the same shape as this one — typically a single scalar field, like `{not: {entityTypes: [\"RESOURCE\"]}}` to exclude resources. + Not map[string]interface{} `json:"not,omitempty"` +} + +// NewAccessEntityFilters instantiates a new AccessEntityFilters 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 NewAccessEntityFilters() *AccessEntityFilters { + this := AccessEntityFilters{} + return &this +} + +// NewAccessEntityFiltersWithDefaults instantiates a new AccessEntityFilters 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 NewAccessEntityFiltersWithDefaults() *AccessEntityFilters { + this := AccessEntityFilters{} + return &this +} + +// GetEntityTypes returns the EntityTypes field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetEntityTypes() []string { + if o == nil || IsNil(o.EntityTypes) { + var ret []string + return ret + } + return o.EntityTypes +} + +// GetEntityTypesOk returns a tuple with the EntityTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetEntityTypesOk() ([]string, bool) { + if o == nil || IsNil(o.EntityTypes) { + return nil, false + } + return o.EntityTypes, true +} + +// HasEntityTypes returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasEntityTypes() bool { + if o != nil && !IsNil(o.EntityTypes) { + return true + } + + return false +} + +// SetEntityTypes gets a reference to the given []string and assigns it to the EntityTypes field. +func (o *AccessEntityFilters) SetEntityTypes(v []string) { + o.EntityTypes = v +} + +// GetEntityItemTypes returns the EntityItemTypes field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetEntityItemTypes() []EntityItemTypeEnum { + if o == nil || IsNil(o.EntityItemTypes) { + var ret []EntityItemTypeEnum + return ret + } + return o.EntityItemTypes +} + +// GetEntityItemTypesOk returns a tuple with the EntityItemTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetEntityItemTypesOk() ([]EntityItemTypeEnum, bool) { + if o == nil || IsNil(o.EntityItemTypes) { + return nil, false + } + return o.EntityItemTypes, true +} + +// HasEntityItemTypes returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasEntityItemTypes() bool { + if o != nil && !IsNil(o.EntityItemTypes) { + return true + } + + return false +} + +// SetEntityItemTypes gets a reference to the given []EntityItemTypeEnum and assigns it to the EntityItemTypes field. +func (o *AccessEntityFilters) SetEntityItemTypes(v []EntityItemTypeEnum) { + o.EntityItemTypes = v +} + +// GetEntityName returns the EntityName field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetEntityName() EntityNameFilter { + if o == nil || IsNil(o.EntityName) { + var ret EntityNameFilter + return ret + } + return *o.EntityName +} + +// GetEntityNameOk returns a tuple with the EntityName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetEntityNameOk() (*EntityNameFilter, bool) { + if o == nil || IsNil(o.EntityName) { + return nil, false + } + return o.EntityName, true +} + +// HasEntityName returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasEntityName() bool { + if o != nil && !IsNil(o.EntityName) { + return true + } + + return false +} + +// SetEntityName gets a reference to the given EntityNameFilter and assigns it to the EntityName field. +func (o *AccessEntityFilters) SetEntityName(v EntityNameFilter) { + o.EntityName = &v +} + +// GetEntityTag returns the EntityTag field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetEntityTag() EntityTagFilter { + if o == nil || IsNil(o.EntityTag) { + var ret EntityTagFilter + return ret + } + return *o.EntityTag +} + +// GetEntityTagOk returns a tuple with the EntityTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetEntityTagOk() (*EntityTagFilter, bool) { + if o == nil || IsNil(o.EntityTag) { + return nil, false + } + return o.EntityTag, true +} + +// HasEntityTag returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasEntityTag() bool { + if o != nil && !IsNil(o.EntityTag) { + return true + } + + return false +} + +// SetEntityTag gets a reference to the given EntityTagFilter and assigns it to the EntityTag field. +func (o *AccessEntityFilters) SetEntityTag(v EntityTagFilter) { + o.EntityTag = &v +} + +// GetEntityIDs returns the EntityIDs field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetEntityIDs() []string { + if o == nil || IsNil(o.EntityIDs) { + var ret []string + return ret + } + return o.EntityIDs +} + +// GetEntityIDsOk returns a tuple with the EntityIDs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetEntityIDsOk() ([]string, bool) { + if o == nil || IsNil(o.EntityIDs) { + return nil, false + } + return o.EntityIDs, true +} + +// HasEntityIDs returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasEntityIDs() bool { + if o != nil && !IsNil(o.EntityIDs) { + return true + } + + return false +} + +// SetEntityIDs gets a reference to the given []string and assigns it to the EntityIDs field. +func (o *AccessEntityFilters) SetEntityIDs(v []string) { + o.EntityIDs = v +} + +// GetImportedFromApp returns the ImportedFromApp field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetImportedFromApp() []string { + if o == nil || IsNil(o.ImportedFromApp) { + var ret []string + return ret + } + return o.ImportedFromApp +} + +// GetImportedFromAppOk returns a tuple with the ImportedFromApp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetImportedFromAppOk() ([]string, bool) { + if o == nil || IsNil(o.ImportedFromApp) { + return nil, false + } + return o.ImportedFromApp, true +} + +// HasImportedFromApp returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasImportedFromApp() bool { + if o != nil && !IsNil(o.ImportedFromApp) { + return true + } + + return false +} + +// SetImportedFromApp gets a reference to the given []string and assigns it to the ImportedFromApp field. +func (o *AccessEntityFilters) SetImportedFromApp(v []string) { + o.ImportedFromApp = v +} + +// GetRoleRemoteIds returns the RoleRemoteIds field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetRoleRemoteIds() []string { + if o == nil || IsNil(o.RoleRemoteIds) { + var ret []string + return ret + } + return o.RoleRemoteIds +} + +// GetRoleRemoteIdsOk returns a tuple with the RoleRemoteIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetRoleRemoteIdsOk() ([]string, bool) { + if o == nil || IsNil(o.RoleRemoteIds) { + return nil, false + } + return o.RoleRemoteIds, true +} + +// HasRoleRemoteIds returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasRoleRemoteIds() bool { + if o != nil && !IsNil(o.RoleRemoteIds) { + return true + } + + return false +} + +// SetRoleRemoteIds gets a reference to the given []string and assigns it to the RoleRemoteIds field. +func (o *AccessEntityFilters) SetRoleRemoteIds(v []string) { + o.RoleRemoteIds = v +} + +// GetRoleNames returns the RoleNames field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetRoleNames() []string { + if o == nil || IsNil(o.RoleNames) { + var ret []string + return ret + } + return o.RoleNames +} + +// GetRoleNamesOk returns a tuple with the RoleNames field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetRoleNamesOk() ([]string, bool) { + if o == nil || IsNil(o.RoleNames) { + return nil, false + } + return o.RoleNames, true +} + +// HasRoleNames returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasRoleNames() bool { + if o != nil && !IsNil(o.RoleNames) { + return true + } + + return false +} + +// SetRoleNames gets a reference to the given []string and assigns it to the RoleNames field. +func (o *AccessEntityFilters) SetRoleNames(v []string) { + o.RoleNames = v +} + +// GetAllOf returns the AllOf field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetAllOf() []AccessEntityFilters { + if o == nil || IsNil(o.AllOf) { + var ret []AccessEntityFilters + return ret + } + return o.AllOf +} + +// GetAllOfOk returns a tuple with the AllOf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetAllOfOk() ([]AccessEntityFilters, bool) { + if o == nil || IsNil(o.AllOf) { + return nil, false + } + return o.AllOf, true +} + +// HasAllOf returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasAllOf() bool { + if o != nil && !IsNil(o.AllOf) { + return true + } + + return false +} + +// SetAllOf gets a reference to the given []AccessEntityFilters and assigns it to the AllOf field. +func (o *AccessEntityFilters) SetAllOf(v []AccessEntityFilters) { + o.AllOf = v +} + +// GetAnyOf returns the AnyOf field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetAnyOf() []AccessEntityFilters { + if o == nil || IsNil(o.AnyOf) { + var ret []AccessEntityFilters + return ret + } + return o.AnyOf +} + +// GetAnyOfOk returns a tuple with the AnyOf field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetAnyOfOk() ([]AccessEntityFilters, bool) { + if o == nil || IsNil(o.AnyOf) { + return nil, false + } + return o.AnyOf, true +} + +// HasAnyOf returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasAnyOf() bool { + if o != nil && !IsNil(o.AnyOf) { + return true + } + + return false +} + +// SetAnyOf gets a reference to the given []AccessEntityFilters and assigns it to the AnyOf field. +func (o *AccessEntityFilters) SetAnyOf(v []AccessEntityFilters) { + o.AnyOf = v +} + +// GetNot returns the Not field value if set, zero value otherwise. +func (o *AccessEntityFilters) GetNot() map[string]interface{} { + if o == nil || IsNil(o.Not) { + var ret map[string]interface{} + return ret + } + return o.Not +} + +// GetNotOk returns a tuple with the Not field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessEntityFilters) GetNotOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Not) { + return map[string]interface{}{}, false + } + return o.Not, true +} + +// HasNot returns a boolean if a field has been set. +func (o *AccessEntityFilters) HasNot() bool { + if o != nil && !IsNil(o.Not) { + return true + } + + return false +} + +// SetNot gets a reference to the given map[string]interface{} and assigns it to the Not field. +func (o *AccessEntityFilters) SetNot(v map[string]interface{}) { + o.Not = v +} + +func (o AccessEntityFilters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessEntityFilters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.EntityTypes) { + toSerialize["entityTypes"] = o.EntityTypes + } + if !IsNil(o.EntityItemTypes) { + toSerialize["entityItemTypes"] = o.EntityItemTypes + } + if !IsNil(o.EntityName) { + toSerialize["entityName"] = o.EntityName + } + if !IsNil(o.EntityTag) { + toSerialize["entityTag"] = o.EntityTag + } + if !IsNil(o.EntityIDs) { + toSerialize["entityIDs"] = o.EntityIDs + } + if !IsNil(o.ImportedFromApp) { + toSerialize["importedFromApp"] = o.ImportedFromApp + } + if !IsNil(o.RoleRemoteIds) { + toSerialize["roleRemoteIds"] = o.RoleRemoteIds + } + if !IsNil(o.RoleNames) { + toSerialize["roleNames"] = o.RoleNames + } + if !IsNil(o.AllOf) { + toSerialize["allOf"] = o.AllOf + } + if !IsNil(o.AnyOf) { + toSerialize["anyOf"] = o.AnyOf + } + if !IsNil(o.Not) { + toSerialize["not"] = o.Not + } + return toSerialize, nil +} + +type NullableAccessEntityFilters struct { + value *AccessEntityFilters + isSet bool +} + +func (v NullableAccessEntityFilters) Get() *AccessEntityFilters { + return v.value +} + +func (v *NullableAccessEntityFilters) Set(val *AccessEntityFilters) { + v.value = val + v.isSet = true +} + +func (v NullableAccessEntityFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessEntityFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessEntityFilters(val *AccessEntityFilters) *NullableAccessEntityFilters { + return &NullableAccessEntityFilters{value: val, isSet: true} +} + +func (v NullableAccessEntityFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessEntityFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_access_relationship_filters.go b/model_access_relationship_filters.go new file mode 100644 index 0000000..85f4d8d --- /dev/null +++ b/model_access_relationship_filters.go @@ -0,0 +1,165 @@ +/* +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" +) + +// checks if the AccessRelationshipFilters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessRelationshipFilters{} + +// AccessRelationshipFilters Filters the returned nodes by the access edges connected to them. When `isAccessibleBy` and `hasAccessTo` are provided, the returned nodes must satisfy both edge constraints simultaneously. +type AccessRelationshipFilters struct { + // Inbound-edge filter. The returned node must be accessible by at least one entity matching this filter. + IsAccessibleBy *AccessEntityFilters `json:"isAccessibleBy,omitempty"` + // Outbound-edge filter. The returned node must have access to at least one entity matching this filter. + HasAccessTo *AccessEntityFilters `json:"hasAccessTo,omitempty"` +} + +// NewAccessRelationshipFilters instantiates a new AccessRelationshipFilters 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 NewAccessRelationshipFilters() *AccessRelationshipFilters { + this := AccessRelationshipFilters{} + return &this +} + +// NewAccessRelationshipFiltersWithDefaults instantiates a new AccessRelationshipFilters 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 NewAccessRelationshipFiltersWithDefaults() *AccessRelationshipFilters { + this := AccessRelationshipFilters{} + return &this +} + +// GetIsAccessibleBy returns the IsAccessibleBy field value if set, zero value otherwise. +func (o *AccessRelationshipFilters) GetIsAccessibleBy() AccessEntityFilters { + if o == nil || IsNil(o.IsAccessibleBy) { + var ret AccessEntityFilters + return ret + } + return *o.IsAccessibleBy +} + +// GetIsAccessibleByOk returns a tuple with the IsAccessibleBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessRelationshipFilters) GetIsAccessibleByOk() (*AccessEntityFilters, bool) { + if o == nil || IsNil(o.IsAccessibleBy) { + return nil, false + } + return o.IsAccessibleBy, true +} + +// HasIsAccessibleBy returns a boolean if a field has been set. +func (o *AccessRelationshipFilters) HasIsAccessibleBy() bool { + if o != nil && !IsNil(o.IsAccessibleBy) { + return true + } + + return false +} + +// SetIsAccessibleBy gets a reference to the given AccessEntityFilters and assigns it to the IsAccessibleBy field. +func (o *AccessRelationshipFilters) SetIsAccessibleBy(v AccessEntityFilters) { + o.IsAccessibleBy = &v +} + +// GetHasAccessTo returns the HasAccessTo field value if set, zero value otherwise. +func (o *AccessRelationshipFilters) GetHasAccessTo() AccessEntityFilters { + if o == nil || IsNil(o.HasAccessTo) { + var ret AccessEntityFilters + return ret + } + return *o.HasAccessTo +} + +// GetHasAccessToOk returns a tuple with the HasAccessTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AccessRelationshipFilters) GetHasAccessToOk() (*AccessEntityFilters, bool) { + if o == nil || IsNil(o.HasAccessTo) { + return nil, false + } + return o.HasAccessTo, true +} + +// HasHasAccessTo returns a boolean if a field has been set. +func (o *AccessRelationshipFilters) HasHasAccessTo() bool { + if o != nil && !IsNil(o.HasAccessTo) { + return true + } + + return false +} + +// SetHasAccessTo gets a reference to the given AccessEntityFilters and assigns it to the HasAccessTo field. +func (o *AccessRelationshipFilters) SetHasAccessTo(v AccessEntityFilters) { + o.HasAccessTo = &v +} + +func (o AccessRelationshipFilters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessRelationshipFilters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsAccessibleBy) { + toSerialize["isAccessibleBy"] = o.IsAccessibleBy + } + if !IsNil(o.HasAccessTo) { + toSerialize["hasAccessTo"] = o.HasAccessTo + } + return toSerialize, nil +} + +type NullableAccessRelationshipFilters struct { + value *AccessRelationshipFilters + isSet bool +} + +func (v NullableAccessRelationshipFilters) Get() *AccessRelationshipFilters { + return v.value +} + +func (v *NullableAccessRelationshipFilters) Set(val *AccessRelationshipFilters) { + v.value = val + v.isSet = true +} + +func (v NullableAccessRelationshipFilters) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessRelationshipFilters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessRelationshipFilters(val *AccessRelationshipFilters) *NullableAccessRelationshipFilters { + return &NullableAccessRelationshipFilters{value: val, isSet: true} +} + +func (v NullableAccessRelationshipFilters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessRelationshipFilters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_access_rule.go b/model_access_rule.go new file mode 100644 index 0000000..dc30ab2 --- /dev/null +++ b/model_access_rule.go @@ -0,0 +1,304 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the AccessRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AccessRule{} + +// AccessRule # Access Rule Object ### Description The `AccessRule` object is used to represent an access rule configuration. ### Usage Example List access rules from the `GET /access-rules` endpoint, or retrieve a single access rule from the `GET /access-rules/{access_rule_id}` endpoint. +type AccessRule struct { + // The ID (group ID) of the access rule. + AccessRuleId string `json:"access_rule_id"` + // The name of the access rule. + Name string `json:"name"` + // A description of the group. + Description string `json:"description"` + // The ID of the owner of the group. + AdminOwnerId string `json:"admin_owner_id"` + // The status of the access rule. + Status string `json:"status"` + RuleClauses RuleClauses `json:"ruleClauses"` +} + +type _AccessRule AccessRule + +// NewAccessRule instantiates a new AccessRule 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 NewAccessRule(accessRuleId string, name string, description string, adminOwnerId string, status string, ruleClauses RuleClauses) *AccessRule { + this := AccessRule{} + this.AccessRuleId = accessRuleId + this.Name = name + this.Description = description + this.AdminOwnerId = adminOwnerId + this.Status = status + this.RuleClauses = ruleClauses + return &this +} + +// NewAccessRuleWithDefaults instantiates a new AccessRule 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 NewAccessRuleWithDefaults() *AccessRule { + this := AccessRule{} + return &this +} + +// GetAccessRuleId returns the AccessRuleId field value +func (o *AccessRule) GetAccessRuleId() string { + if o == nil { + var ret string + return ret + } + + return o.AccessRuleId +} + +// GetAccessRuleIdOk returns a tuple with the AccessRuleId field value +// and a boolean to check if the value has been set. +func (o *AccessRule) GetAccessRuleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AccessRuleId, true +} + +// SetAccessRuleId sets field value +func (o *AccessRule) SetAccessRuleId(v string) { + o.AccessRuleId = v +} + +// GetName returns the Name field value +func (o *AccessRule) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *AccessRule) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *AccessRule) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *AccessRule) 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 *AccessRule) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *AccessRule) SetDescription(v string) { + o.Description = v +} + +// GetAdminOwnerId returns the AdminOwnerId field value +func (o *AccessRule) GetAdminOwnerId() string { + if o == nil { + var ret string + return ret + } + + return o.AdminOwnerId +} + +// GetAdminOwnerIdOk returns a tuple with the AdminOwnerId field value +// and a boolean to check if the value has been set. +func (o *AccessRule) GetAdminOwnerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AdminOwnerId, true +} + +// SetAdminOwnerId sets field value +func (o *AccessRule) SetAdminOwnerId(v string) { + o.AdminOwnerId = v +} + +// GetStatus returns the Status field value +func (o *AccessRule) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AccessRule) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AccessRule) SetStatus(v string) { + o.Status = v +} + +// GetRuleClauses returns the RuleClauses field value +func (o *AccessRule) GetRuleClauses() RuleClauses { + if o == nil { + var ret RuleClauses + return ret + } + + return o.RuleClauses +} + +// GetRuleClausesOk returns a tuple with the RuleClauses field value +// and a boolean to check if the value has been set. +func (o *AccessRule) GetRuleClausesOk() (*RuleClauses, bool) { + if o == nil { + return nil, false + } + return &o.RuleClauses, true +} + +// SetRuleClauses sets field value +func (o *AccessRule) SetRuleClauses(v RuleClauses) { + o.RuleClauses = v +} + +func (o AccessRule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AccessRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["access_rule_id"] = o.AccessRuleId + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description + toSerialize["admin_owner_id"] = o.AdminOwnerId + toSerialize["status"] = o.Status + toSerialize["ruleClauses"] = o.RuleClauses + return toSerialize, nil +} + +func (o *AccessRule) 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{ + "access_rule_id", + "name", + "description", + "admin_owner_id", + "status", + "ruleClauses", + } + + 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) + } + } + + varAccessRule := _AccessRule{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varAccessRule) + + if err != nil { + return err + } + + *o = AccessRule(varAccessRule) + + return err +} + +type NullableAccessRule struct { + value *AccessRule + isSet bool +} + +func (v NullableAccessRule) Get() *AccessRule { + return v.value +} + +func (v *NullableAccessRule) Set(val *AccessRule) { + v.value = val + v.isSet = true +} + +func (v NullableAccessRule) IsSet() bool { + return v.isSet +} + +func (v *NullableAccessRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAccessRule(val *AccessRule) *NullableAccessRule { + return &NullableAccessRule{value: val, isSet: true} +} + +func (v NullableAccessRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAccessRule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_add_bundle_group_request.go b/model_add_bundle_group_request.go index 4f64fd3..fa12e4e 100644 --- a/model_add_bundle_group_request.go +++ b/model_add_bundle_group_request.go @@ -24,6 +24,10 @@ var _ MappedNullable = &AddBundleGroupRequest{} type AddBundleGroupRequest struct { // The ID of the group to add. GroupId string `json:"group_id"` + // 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. + AccessLevelRemoteId *string `json:"access_level_remote_id,omitempty"` + // The name of the access level to grant to this user. If omitted, the default access level name value (empty string) is used. + AccessLevelName *string `json:"access_level_name,omitempty"` } type _AddBundleGroupRequest AddBundleGroupRequest @@ -70,6 +74,70 @@ func (o *AddBundleGroupRequest) SetGroupId(v string) { o.GroupId = v } +// GetAccessLevelRemoteId returns the AccessLevelRemoteId field value if set, zero value otherwise. +func (o *AddBundleGroupRequest) 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 *AddBundleGroupRequest) 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 *AddBundleGroupRequest) 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 *AddBundleGroupRequest) SetAccessLevelRemoteId(v string) { + o.AccessLevelRemoteId = &v +} + +// GetAccessLevelName returns the AccessLevelName field value if set, zero value otherwise. +func (o *AddBundleGroupRequest) 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 *AddBundleGroupRequest) 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 *AddBundleGroupRequest) 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 *AddBundleGroupRequest) SetAccessLevelName(v string) { + o.AccessLevelName = &v +} + func (o AddBundleGroupRequest) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -81,6 +149,12 @@ func (o AddBundleGroupRequest) MarshalJSON() ([]byte, error) { func (o AddBundleGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["group_id"] = o.GroupId + if !IsNil(o.AccessLevelRemoteId) { + toSerialize["access_level_remote_id"] = o.AccessLevelRemoteId + } + if !IsNil(o.AccessLevelName) { + toSerialize["access_level_name"] = o.AccessLevelName + } return toSerialize, nil } diff --git a/model_api_access_level_enum.go b/model_api_access_level_enum.go new file mode 100644 index 0000000..6e23653 --- /dev/null +++ b/model_api_access_level_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" +) + +// ApiAccessLevelEnum The access level of an API token. +type ApiAccessLevelEnum string + +// List of ApiAccessLevelEnum +const ( + APIACCESSLEVELENUM_READ_ONLY ApiAccessLevelEnum = "READ_ONLY" + APIACCESSLEVELENUM_FULL_ACCESS ApiAccessLevelEnum = "FULL_ACCESS" +) + +// All allowed values of ApiAccessLevelEnum enum +var AllowedApiAccessLevelEnumEnumValues = []ApiAccessLevelEnum{ + "READ_ONLY", + "FULL_ACCESS", +} + +func (v *ApiAccessLevelEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ApiAccessLevelEnum(value) + for _, existing := range AllowedApiAccessLevelEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ApiAccessLevelEnum", value) +} + +// NewApiAccessLevelEnumFromValue returns a pointer to a valid ApiAccessLevelEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewApiAccessLevelEnumFromValue(v string) (*ApiAccessLevelEnum, error) { + ev := ApiAccessLevelEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ApiAccessLevelEnum: valid values are %v", v, AllowedApiAccessLevelEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ApiAccessLevelEnum) IsValid() bool { + for _, existing := range AllowedApiAccessLevelEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ApiAccessLevelEnum value +func (v ApiAccessLevelEnum) Ptr() *ApiAccessLevelEnum { + return &v +} + +type NullableApiAccessLevelEnum struct { + value *ApiAccessLevelEnum + isSet bool +} + +func (v NullableApiAccessLevelEnum) Get() *ApiAccessLevelEnum { + return v.value +} + +func (v *NullableApiAccessLevelEnum) Set(val *ApiAccessLevelEnum) { + v.value = val + v.isSet = true +} + +func (v NullableApiAccessLevelEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableApiAccessLevelEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApiAccessLevelEnum(val *ApiAccessLevelEnum) *NullableApiAccessLevelEnum { + return &NullableApiAccessLevelEnum{value: val, isSet: true} +} + +func (v NullableApiAccessLevelEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApiAccessLevelEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_app_type_enum.go b/model_app_type_enum.go index fae753a..d20389c 100644 --- a/model_app_type_enum.go +++ b/model_app_type_enum.go @@ -22,54 +22,82 @@ 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_CUSTOM_CONNECTOR AppTypeEnum = "CUSTOM_CONNECTOR" + 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_NETSUITE AppTypeEnum = "NETSUITE" + APPTYPEENUM_DATADOG AppTypeEnum = "DATADOG" 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_SLACK AppTypeEnum = "SLACK" APPTYPEENUM_TAILSCALE AppTypeEnum = "TAILSCALE" APPTYPEENUM_TELEPORT AppTypeEnum = "TELEPORT" + APPTYPEENUM_TWINGATE AppTypeEnum = "TWINGATE" APPTYPEENUM_WORKDAY AppTypeEnum = "WORKDAY" ) // All allowed values of AppTypeEnum enum var AllowedAppTypeEnumEnumValues = []AppTypeEnum{ "ACTIVE_DIRECTORY", + "ANTHROPIC", "AZURE_AD", "AWS", "AWS_SSO", + "COUPA", + "CURSOR", "CUSTOM", + "CUSTOM_CONNECTOR", + "DATABRICKS", + "DATASTAX_ASTRA", "DUO", "GCP", "GIT_HUB", "GIT_LAB", "GOOGLE_GROUPS", "GOOGLE_WORKSPACE", + "ILEVEL", + "INCIDENTIO", "LDAP", "MARIADB", "MONGO", "MONGO_ATLAS", "MYSQL", + "NETSUITE", + "DATADOG", "OKTA_DIRECTORY", + "OPENAI_PLATFORM", "OPAL", "PAGERDUTY", "SALESFORCE", + "SNOWFLAKE", + "SLACK", "TAILSCALE", "TELEPORT", + "TWINGATE", "WORKDAY", } diff --git a/model_approve_request_200_response.go b/model_approve_request_200_response.go new file mode 100644 index 0000000..a4c3e92 --- /dev/null +++ b/model_approve_request_200_response.go @@ -0,0 +1,127 @@ +/* +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" +) + +// checks if the ApproveRequest200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApproveRequest200Response{} + +// ApproveRequest200Response struct for ApproveRequest200Response +type ApproveRequest200Response struct { + Request *Request `json:"request,omitempty"` +} + +// NewApproveRequest200Response instantiates a new ApproveRequest200Response 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 NewApproveRequest200Response() *ApproveRequest200Response { + this := ApproveRequest200Response{} + return &this +} + +// NewApproveRequest200ResponseWithDefaults instantiates a new ApproveRequest200Response 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 NewApproveRequest200ResponseWithDefaults() *ApproveRequest200Response { + this := ApproveRequest200Response{} + return &this +} + +// GetRequest returns the Request field value if set, zero value otherwise. +func (o *ApproveRequest200Response) GetRequest() Request { + if o == nil || IsNil(o.Request) { + var ret Request + return ret + } + return *o.Request +} + +// GetRequestOk returns a tuple with the Request field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApproveRequest200Response) GetRequestOk() (*Request, bool) { + if o == nil || IsNil(o.Request) { + return nil, false + } + return o.Request, true +} + +// HasRequest returns a boolean if a field has been set. +func (o *ApproveRequest200Response) HasRequest() bool { + if o != nil && !IsNil(o.Request) { + return true + } + + return false +} + +// SetRequest gets a reference to the given Request and assigns it to the Request field. +func (o *ApproveRequest200Response) SetRequest(v Request) { + o.Request = &v +} + +func (o ApproveRequest200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApproveRequest200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Request) { + toSerialize["request"] = o.Request + } + return toSerialize, nil +} + +type NullableApproveRequest200Response struct { + value *ApproveRequest200Response + isSet bool +} + +func (v NullableApproveRequest200Response) Get() *ApproveRequest200Response { + return v.value +} + +func (v *NullableApproveRequest200Response) Set(val *ApproveRequest200Response) { + v.value = val + v.isSet = true +} + +func (v NullableApproveRequest200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableApproveRequest200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApproveRequest200Response(val *ApproveRequest200Response) *NullableApproveRequest200Response { + return &NullableApproveRequest200Response{value: val, isSet: true} +} + +func (v NullableApproveRequest200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApproveRequest200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_approve_request_request.go b/model_approve_request_request.go new file mode 100644 index 0000000..8c2660f --- /dev/null +++ b/model_approve_request_request.go @@ -0,0 +1,196 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ApproveRequestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApproveRequestRequest{} + +// ApproveRequestRequest struct for ApproveRequestRequest +type ApproveRequestRequest struct { + Level RequestApprovalEnum `json:"level"` + // Optional comment for the approval + Comment *string `json:"comment,omitempty"` +} + +type _ApproveRequestRequest ApproveRequestRequest + +// NewApproveRequestRequest instantiates a new ApproveRequestRequest 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 NewApproveRequestRequest(level RequestApprovalEnum) *ApproveRequestRequest { + this := ApproveRequestRequest{} + this.Level = level + return &this +} + +// NewApproveRequestRequestWithDefaults instantiates a new ApproveRequestRequest 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 NewApproveRequestRequestWithDefaults() *ApproveRequestRequest { + this := ApproveRequestRequest{} + return &this +} + +// GetLevel returns the Level field value +func (o *ApproveRequestRequest) GetLevel() RequestApprovalEnum { + if o == nil { + var ret RequestApprovalEnum + return ret + } + + return o.Level +} + +// GetLevelOk returns a tuple with the Level field value +// and a boolean to check if the value has been set. +func (o *ApproveRequestRequest) GetLevelOk() (*RequestApprovalEnum, bool) { + if o == nil { + return nil, false + } + return &o.Level, true +} + +// SetLevel sets field value +func (o *ApproveRequestRequest) SetLevel(v RequestApprovalEnum) { + o.Level = v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *ApproveRequestRequest) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApproveRequestRequest) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *ApproveRequestRequest) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *ApproveRequestRequest) SetComment(v string) { + o.Comment = &v +} + +func (o ApproveRequestRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApproveRequestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["level"] = o.Level + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + return toSerialize, nil +} + +func (o *ApproveRequestRequest) 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{ + "level", + } + + 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) + } + } + + varApproveRequestRequest := _ApproveRequestRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varApproveRequestRequest) + + if err != nil { + return err + } + + *o = ApproveRequestRequest(varApproveRequestRequest) + + return err +} + +type NullableApproveRequestRequest struct { + value *ApproveRequestRequest + isSet bool +} + +func (v NullableApproveRequestRequest) Get() *ApproveRequestRequest { + return v.value +} + +func (v *NullableApproveRequestRequest) Set(val *ApproveRequestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableApproveRequestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableApproveRequestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApproveRequestRequest(val *ApproveRequestRequest) *NullableApproveRequestRequest { + return &NullableApproveRequestRequest{value: val, isSet: true} +} + +func (v NullableApproveRequestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApproveRequestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_bundle_group.go b/model_bundle_group.go index c9b562d..bbb1621 100644 --- a/model_bundle_group.go +++ b/model_bundle_group.go @@ -24,6 +24,10 @@ type BundleGroup struct { BundleId *string `json:"bundle_id,omitempty"` // The ID of the group within a bundle. GroupId *string `json:"group_id,omitempty"` + // The access level of the group within a bundle. + AccessLevelName *string `json:"access_level_name,omitempty"` + // The remote ID of the access level of the group within a bundle. + AccessLevelRemoteId *string `json:"access_level_remote_id,omitempty"` } // NewBundleGroup instantiates a new BundleGroup object @@ -107,6 +111,70 @@ func (o *BundleGroup) SetGroupId(v string) { o.GroupId = &v } +// GetAccessLevelName returns the AccessLevelName field value if set, zero value otherwise. +func (o *BundleGroup) 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 *BundleGroup) 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 *BundleGroup) 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 *BundleGroup) SetAccessLevelName(v string) { + o.AccessLevelName = &v +} + +// GetAccessLevelRemoteId returns the AccessLevelRemoteId field value if set, zero value otherwise. +func (o *BundleGroup) 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 *BundleGroup) 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 *BundleGroup) 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 *BundleGroup) SetAccessLevelRemoteId(v string) { + o.AccessLevelRemoteId = &v +} + func (o BundleGroup) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -123,6 +191,12 @@ func (o BundleGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.GroupId) { toSerialize["group_id"] = o.GroupId } + if !IsNil(o.AccessLevelName) { + toSerialize["access_level_name"] = o.AccessLevelName + } + if !IsNil(o.AccessLevelRemoteId) { + toSerialize["access_level_remote_id"] = o.AccessLevelRemoteId + } return toSerialize, nil } diff --git a/model_configuration_template.go b/model_configuration_template.go index 42ad34f..f73c767 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 35857a4..e9c5a27 100644 --- a/model_create_configuration_template_info.go +++ b/model_create_configuration_template_info.go @@ -24,6 +24,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"` @@ -39,6 +40,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_delegation_request.go b/model_create_delegation_request.go new file mode 100644 index 0000000..a7ff7b5 --- /dev/null +++ b/model_create_delegation_request.go @@ -0,0 +1,277 @@ +/* +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" + "time" + "bytes" + "fmt" +) + +// checks if the CreateDelegationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateDelegationRequest{} + +// CreateDelegationRequest Request body for creating a new delegation of access review requests from one user to another. +type CreateDelegationRequest struct { + // The ID of the user delegating their access review requests. + DelegatorUserId string `json:"delegator_user_id"` + // The ID of the user being delegated to. + DelegateUserId string `json:"delegate_user_id"` + // The start time of the delegation. + StartTime time.Time `json:"start_time"` + // The end time of the delegation. + EndTime time.Time `json:"end_time"` + // The reason for the delegation. + Reason string `json:"reason"` +} + +type _CreateDelegationRequest CreateDelegationRequest + +// NewCreateDelegationRequest instantiates a new CreateDelegationRequest 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 NewCreateDelegationRequest(delegatorUserId string, delegateUserId string, startTime time.Time, endTime time.Time, reason string) *CreateDelegationRequest { + this := CreateDelegationRequest{} + this.DelegatorUserId = delegatorUserId + this.DelegateUserId = delegateUserId + this.StartTime = startTime + this.EndTime = endTime + this.Reason = reason + return &this +} + +// NewCreateDelegationRequestWithDefaults instantiates a new CreateDelegationRequest 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 NewCreateDelegationRequestWithDefaults() *CreateDelegationRequest { + this := CreateDelegationRequest{} + return &this +} + +// GetDelegatorUserId returns the DelegatorUserId field value +func (o *CreateDelegationRequest) GetDelegatorUserId() string { + if o == nil { + var ret string + return ret + } + + return o.DelegatorUserId +} + +// GetDelegatorUserIdOk returns a tuple with the DelegatorUserId field value +// and a boolean to check if the value has been set. +func (o *CreateDelegationRequest) GetDelegatorUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DelegatorUserId, true +} + +// SetDelegatorUserId sets field value +func (o *CreateDelegationRequest) SetDelegatorUserId(v string) { + o.DelegatorUserId = v +} + +// GetDelegateUserId returns the DelegateUserId field value +func (o *CreateDelegationRequest) GetDelegateUserId() string { + if o == nil { + var ret string + return ret + } + + return o.DelegateUserId +} + +// GetDelegateUserIdOk returns a tuple with the DelegateUserId field value +// and a boolean to check if the value has been set. +func (o *CreateDelegationRequest) GetDelegateUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DelegateUserId, true +} + +// SetDelegateUserId sets field value +func (o *CreateDelegationRequest) SetDelegateUserId(v string) { + o.DelegateUserId = v +} + +// GetStartTime returns the StartTime field value +func (o *CreateDelegationRequest) GetStartTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value +// and a boolean to check if the value has been set. +func (o *CreateDelegationRequest) GetStartTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.StartTime, true +} + +// SetStartTime sets field value +func (o *CreateDelegationRequest) SetStartTime(v time.Time) { + o.StartTime = v +} + +// GetEndTime returns the EndTime field value +func (o *CreateDelegationRequest) GetEndTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value +// and a boolean to check if the value has been set. +func (o *CreateDelegationRequest) GetEndTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.EndTime, true +} + +// SetEndTime sets field value +func (o *CreateDelegationRequest) SetEndTime(v time.Time) { + o.EndTime = v +} + +// GetReason returns the Reason field value +func (o *CreateDelegationRequest) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *CreateDelegationRequest) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *CreateDelegationRequest) SetReason(v string) { + o.Reason = v +} + +func (o CreateDelegationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateDelegationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["delegator_user_id"] = o.DelegatorUserId + toSerialize["delegate_user_id"] = o.DelegateUserId + toSerialize["start_time"] = o.StartTime + toSerialize["end_time"] = o.EndTime + toSerialize["reason"] = o.Reason + return toSerialize, nil +} + +func (o *CreateDelegationRequest) 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{ + "delegator_user_id", + "delegate_user_id", + "start_time", + "end_time", + "reason", + } + + 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) + } + } + + varCreateDelegationRequest := _CreateDelegationRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateDelegationRequest) + + if err != nil { + return err + } + + *o = CreateDelegationRequest(varCreateDelegationRequest) + + return err +} + +type NullableCreateDelegationRequest struct { + value *CreateDelegationRequest + isSet bool +} + +func (v NullableCreateDelegationRequest) Get() *CreateDelegationRequest { + return v.value +} + +func (v *NullableCreateDelegationRequest) Set(val *CreateDelegationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateDelegationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateDelegationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateDelegationRequest(val *CreateDelegationRequest) *NullableCreateDelegationRequest { + return &NullableCreateDelegationRequest{value: val, isSet: true} +} + +func (v NullableCreateDelegationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateDelegationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_event_stream_info.go b/model_create_event_stream_info.go new file mode 100644 index 0000000..9d052c9 --- /dev/null +++ b/model_create_event_stream_info.go @@ -0,0 +1,261 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the CreateEventStreamInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateEventStreamInfo{} + +// CreateEventStreamInfo Information needed to create an event stream. +type CreateEventStreamInfo struct { + // The name for the event stream. + Name string `json:"name"` + ConnectionType EventStreamConnectionTypeEnum `json:"connection_type"` + // The webhook URL. Required when connection_type is WEBHOOK. + WebhookUrl *string `json:"webhook_url,omitempty"` + Credentials *WebhookCredentials `json:"credentials,omitempty"` +} + +type _CreateEventStreamInfo CreateEventStreamInfo + +// NewCreateEventStreamInfo instantiates a new CreateEventStreamInfo 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 NewCreateEventStreamInfo(name string, connectionType EventStreamConnectionTypeEnum) *CreateEventStreamInfo { + this := CreateEventStreamInfo{} + this.Name = name + this.ConnectionType = connectionType + return &this +} + +// NewCreateEventStreamInfoWithDefaults instantiates a new CreateEventStreamInfo 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 NewCreateEventStreamInfoWithDefaults() *CreateEventStreamInfo { + this := CreateEventStreamInfo{} + return &this +} + +// GetName returns the Name field value +func (o *CreateEventStreamInfo) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateEventStreamInfo) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateEventStreamInfo) SetName(v string) { + o.Name = v +} + +// GetConnectionType returns the ConnectionType field value +func (o *CreateEventStreamInfo) GetConnectionType() EventStreamConnectionTypeEnum { + if o == nil { + var ret EventStreamConnectionTypeEnum + return ret + } + + return o.ConnectionType +} + +// GetConnectionTypeOk returns a tuple with the ConnectionType field value +// and a boolean to check if the value has been set. +func (o *CreateEventStreamInfo) GetConnectionTypeOk() (*EventStreamConnectionTypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.ConnectionType, true +} + +// SetConnectionType sets field value +func (o *CreateEventStreamInfo) SetConnectionType(v EventStreamConnectionTypeEnum) { + o.ConnectionType = v +} + +// GetWebhookUrl returns the WebhookUrl field value if set, zero value otherwise. +func (o *CreateEventStreamInfo) GetWebhookUrl() string { + if o == nil || IsNil(o.WebhookUrl) { + var ret string + return ret + } + return *o.WebhookUrl +} + +// GetWebhookUrlOk returns a tuple with the WebhookUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateEventStreamInfo) GetWebhookUrlOk() (*string, bool) { + if o == nil || IsNil(o.WebhookUrl) { + return nil, false + } + return o.WebhookUrl, true +} + +// HasWebhookUrl returns a boolean if a field has been set. +func (o *CreateEventStreamInfo) HasWebhookUrl() bool { + if o != nil && !IsNil(o.WebhookUrl) { + return true + } + + return false +} + +// SetWebhookUrl gets a reference to the given string and assigns it to the WebhookUrl field. +func (o *CreateEventStreamInfo) SetWebhookUrl(v string) { + o.WebhookUrl = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *CreateEventStreamInfo) GetCredentials() WebhookCredentials { + if o == nil || IsNil(o.Credentials) { + var ret WebhookCredentials + return ret + } + return *o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateEventStreamInfo) GetCredentialsOk() (*WebhookCredentials, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *CreateEventStreamInfo) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given WebhookCredentials and assigns it to the Credentials field. +func (o *CreateEventStreamInfo) SetCredentials(v WebhookCredentials) { + o.Credentials = &v +} + +func (o CreateEventStreamInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateEventStreamInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["connection_type"] = o.ConnectionType + if !IsNil(o.WebhookUrl) { + toSerialize["webhook_url"] = o.WebhookUrl + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + return toSerialize, nil +} + +func (o *CreateEventStreamInfo) 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{ + "name", + "connection_type", + } + + 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) + } + } + + varCreateEventStreamInfo := _CreateEventStreamInfo{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateEventStreamInfo) + + if err != nil { + return err + } + + *o = CreateEventStreamInfo(varCreateEventStreamInfo) + + return err +} + +type NullableCreateEventStreamInfo struct { + value *CreateEventStreamInfo + isSet bool +} + +func (v NullableCreateEventStreamInfo) Get() *CreateEventStreamInfo { + return v.value +} + +func (v *NullableCreateEventStreamInfo) Set(val *CreateEventStreamInfo) { + v.value = val + v.isSet = true +} + +func (v NullableCreateEventStreamInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateEventStreamInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateEventStreamInfo(val *CreateEventStreamInfo) *NullableCreateEventStreamInfo { + return &NullableCreateEventStreamInfo{value: val, isSet: true} +} + +func (v NullableCreateEventStreamInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateEventStreamInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_idp_group_mapping_request.go b/model_create_idp_group_mapping_request.go new file mode 100644 index 0000000..ae501d5 --- /dev/null +++ b/model_create_idp_group_mapping_request.go @@ -0,0 +1,165 @@ +/* +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" +) + +// checks if the CreateIdpGroupMappingRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateIdpGroupMappingRequest{} + +// CreateIdpGroupMappingRequest struct for CreateIdpGroupMappingRequest +type CreateIdpGroupMappingRequest struct { + // Optional alias for the group mapping + Alias *string `json:"alias,omitempty"` + // 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 + HiddenFromEndUser *bool `json:"hidden_from_end_user,omitempty"` +} + +// NewCreateIdpGroupMappingRequest instantiates a new CreateIdpGroupMappingRequest 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 NewCreateIdpGroupMappingRequest() *CreateIdpGroupMappingRequest { + this := CreateIdpGroupMappingRequest{} + return &this +} + +// NewCreateIdpGroupMappingRequestWithDefaults instantiates a new CreateIdpGroupMappingRequest 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 NewCreateIdpGroupMappingRequestWithDefaults() *CreateIdpGroupMappingRequest { + this := CreateIdpGroupMappingRequest{} + return &this +} + +// GetAlias returns the Alias field value if set, zero value otherwise. +func (o *CreateIdpGroupMappingRequest) GetAlias() string { + if o == nil || IsNil(o.Alias) { + var ret string + return ret + } + return *o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateIdpGroupMappingRequest) GetAliasOk() (*string, bool) { + if o == nil || IsNil(o.Alias) { + return nil, false + } + return o.Alias, true +} + +// HasAlias returns a boolean if a field has been set. +func (o *CreateIdpGroupMappingRequest) HasAlias() bool { + if o != nil && !IsNil(o.Alias) { + return true + } + + return false +} + +// SetAlias gets a reference to the given string and assigns it to the Alias field. +func (o *CreateIdpGroupMappingRequest) SetAlias(v string) { + o.Alias = &v +} + +// GetHiddenFromEndUser returns the HiddenFromEndUser field value if set, zero value otherwise. +func (o *CreateIdpGroupMappingRequest) GetHiddenFromEndUser() bool { + if o == nil || IsNil(o.HiddenFromEndUser) { + var ret bool + return ret + } + return *o.HiddenFromEndUser +} + +// GetHiddenFromEndUserOk returns a tuple with the HiddenFromEndUser field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateIdpGroupMappingRequest) GetHiddenFromEndUserOk() (*bool, bool) { + if o == nil || IsNil(o.HiddenFromEndUser) { + return nil, false + } + return o.HiddenFromEndUser, true +} + +// HasHiddenFromEndUser returns a boolean if a field has been set. +func (o *CreateIdpGroupMappingRequest) HasHiddenFromEndUser() bool { + if o != nil && !IsNil(o.HiddenFromEndUser) { + return true + } + + return false +} + +// SetHiddenFromEndUser gets a reference to the given bool and assigns it to the HiddenFromEndUser field. +func (o *CreateIdpGroupMappingRequest) SetHiddenFromEndUser(v bool) { + o.HiddenFromEndUser = &v +} + +func (o CreateIdpGroupMappingRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateIdpGroupMappingRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Alias) { + toSerialize["alias"] = o.Alias + } + if !IsNil(o.HiddenFromEndUser) { + toSerialize["hidden_from_end_user"] = o.HiddenFromEndUser + } + return toSerialize, nil +} + +type NullableCreateIdpGroupMappingRequest struct { + value *CreateIdpGroupMappingRequest + isSet bool +} + +func (v NullableCreateIdpGroupMappingRequest) Get() *CreateIdpGroupMappingRequest { + return v.value +} + +func (v *NullableCreateIdpGroupMappingRequest) Set(val *CreateIdpGroupMappingRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateIdpGroupMappingRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateIdpGroupMappingRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateIdpGroupMappingRequest(val *CreateIdpGroupMappingRequest) *NullableCreateIdpGroupMappingRequest { + return &NullableCreateIdpGroupMappingRequest{value: val, isSet: true} +} + +func (v NullableCreateIdpGroupMappingRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateIdpGroupMappingRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_request_comment_request.go b/model_create_request_comment_request.go new file mode 100644 index 0000000..645bd92 --- /dev/null +++ b/model_create_request_comment_request.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the CreateRequestCommentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateRequestCommentRequest{} + +// CreateRequestCommentRequest struct for CreateRequestCommentRequest +type CreateRequestCommentRequest struct { + // comment + Comment string `json:"comment"` +} + +type _CreateRequestCommentRequest CreateRequestCommentRequest + +// NewCreateRequestCommentRequest instantiates a new CreateRequestCommentRequest 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 NewCreateRequestCommentRequest(comment string) *CreateRequestCommentRequest { + this := CreateRequestCommentRequest{} + this.Comment = comment + return &this +} + +// NewCreateRequestCommentRequestWithDefaults instantiates a new CreateRequestCommentRequest 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 NewCreateRequestCommentRequestWithDefaults() *CreateRequestCommentRequest { + this := CreateRequestCommentRequest{} + return &this +} + +// GetComment returns the Comment field value +func (o *CreateRequestCommentRequest) GetComment() string { + if o == nil { + var ret string + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *CreateRequestCommentRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +func (o *CreateRequestCommentRequest) SetComment(v string) { + o.Comment = v +} + +func (o CreateRequestCommentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateRequestCommentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comment"] = o.Comment + return toSerialize, nil +} + +func (o *CreateRequestCommentRequest) 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{ + "comment", + } + + 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) + } + } + + varCreateRequestCommentRequest := _CreateRequestCommentRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateRequestCommentRequest) + + if err != nil { + return err + } + + *o = CreateRequestCommentRequest(varCreateRequestCommentRequest) + + return err +} + +type NullableCreateRequestCommentRequest struct { + value *CreateRequestCommentRequest + isSet bool +} + +func (v NullableCreateRequestCommentRequest) Get() *CreateRequestCommentRequest { + return v.value +} + +func (v *NullableCreateRequestCommentRequest) Set(val *CreateRequestCommentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCreateRequestCommentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateRequestCommentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateRequestCommentRequest(val *CreateRequestCommentRequest) *NullableCreateRequestCommentRequest { + return &NullableCreateRequestCommentRequest{value: val, isSet: true} +} + +func (v NullableCreateRequestCommentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateRequestCommentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_request_info_resources_inner.go b/model_create_request_info_resources_inner.go index fb39dac..63fb95a 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"` } @@ -110,6 +111,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 @@ -120,6 +122,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 @@ -137,6 +140,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 409afab..09385e8 100644 --- a/model_create_uar_info.go +++ b/model_create_uar_info.go @@ -34,6 +34,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 } diff --git a/model_delegation.go b/model_delegation.go new file mode 100644 index 0000000..b9ef063 --- /dev/null +++ b/model_delegation.go @@ -0,0 +1,364 @@ +/* +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" + "time" + "bytes" + "fmt" +) + +// checks if the Delegation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Delegation{} + +// Delegation # Delegation Object ### Description The `Delegation` object represents a delegation of access review requests from one user to another. ### Usage Example List from the `GET Delegations` endpoint. Get from the `GET Delegation` endpoint. +type Delegation struct { + // The ID of the delegation. + Id string `json:"id"` + // The ID of the user delegating their access review requests. + DelegatorUserId string `json:"delegator_user_id"` + // The ID of the user being delegated to. + DelegateUserId string `json:"delegate_user_id"` + // The start time of the delegation. + StartTime time.Time `json:"start_time"` + // The end time of the delegation. + EndTime time.Time `json:"end_time"` + // The reason for the delegation. + Reason string `json:"reason"` + // The creation time of the delegation. + CreatedAt time.Time `json:"created_at"` + // The last updated time of the delegation. + UpdatedAt time.Time `json:"updated_at"` +} + +type _Delegation Delegation + +// NewDelegation instantiates a new Delegation 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 NewDelegation(id string, delegatorUserId string, delegateUserId string, startTime time.Time, endTime time.Time, reason string, createdAt time.Time, updatedAt time.Time) *Delegation { + this := Delegation{} + this.Id = id + this.DelegatorUserId = delegatorUserId + this.DelegateUserId = delegateUserId + this.StartTime = startTime + this.EndTime = endTime + this.Reason = reason + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + return &this +} + +// NewDelegationWithDefaults instantiates a new Delegation 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 NewDelegationWithDefaults() *Delegation { + this := Delegation{} + return &this +} + +// GetId returns the Id field value +func (o *Delegation) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Delegation) SetId(v string) { + o.Id = v +} + +// GetDelegatorUserId returns the DelegatorUserId field value +func (o *Delegation) GetDelegatorUserId() string { + if o == nil { + var ret string + return ret + } + + return o.DelegatorUserId +} + +// GetDelegatorUserIdOk returns a tuple with the DelegatorUserId field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetDelegatorUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DelegatorUserId, true +} + +// SetDelegatorUserId sets field value +func (o *Delegation) SetDelegatorUserId(v string) { + o.DelegatorUserId = v +} + +// GetDelegateUserId returns the DelegateUserId field value +func (o *Delegation) GetDelegateUserId() string { + if o == nil { + var ret string + return ret + } + + return o.DelegateUserId +} + +// GetDelegateUserIdOk returns a tuple with the DelegateUserId field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetDelegateUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DelegateUserId, true +} + +// SetDelegateUserId sets field value +func (o *Delegation) SetDelegateUserId(v string) { + o.DelegateUserId = v +} + +// GetStartTime returns the StartTime field value +func (o *Delegation) GetStartTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.StartTime +} + +// GetStartTimeOk returns a tuple with the StartTime field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetStartTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.StartTime, true +} + +// SetStartTime sets field value +func (o *Delegation) SetStartTime(v time.Time) { + o.StartTime = v +} + +// GetEndTime returns the EndTime field value +func (o *Delegation) GetEndTime() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.EndTime +} + +// GetEndTimeOk returns a tuple with the EndTime field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetEndTimeOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.EndTime, true +} + +// SetEndTime sets field value +func (o *Delegation) SetEndTime(v time.Time) { + o.EndTime = v +} + +// GetReason returns the Reason field value +func (o *Delegation) GetReason() string { + if o == nil { + var ret string + return ret + } + + return o.Reason +} + +// GetReasonOk returns a tuple with the Reason field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Reason, true +} + +// SetReason sets field value +func (o *Delegation) SetReason(v string) { + o.Reason = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *Delegation) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *Delegation) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *Delegation) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *Delegation) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *Delegation) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o Delegation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Delegation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["delegator_user_id"] = o.DelegatorUserId + toSerialize["delegate_user_id"] = o.DelegateUserId + toSerialize["start_time"] = o.StartTime + toSerialize["end_time"] = o.EndTime + toSerialize["reason"] = o.Reason + toSerialize["created_at"] = o.CreatedAt + toSerialize["updated_at"] = o.UpdatedAt + return toSerialize, nil +} + +func (o *Delegation) 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{ + "id", + "delegator_user_id", + "delegate_user_id", + "start_time", + "end_time", + "reason", + "created_at", + "updated_at", + } + + 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) + } + } + + varDelegation := _Delegation{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varDelegation) + + if err != nil { + return err + } + + *o = Delegation(varDelegation) + + return err +} + +type NullableDelegation struct { + value *Delegation + isSet bool +} + +func (v NullableDelegation) Get() *Delegation { + return v.value +} + +func (v *NullableDelegation) Set(val *Delegation) { + v.value = val + v.isSet = true +} + +func (v NullableDelegation) IsSet() bool { + return v.isSet +} + +func (v *NullableDelegation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDelegation(val *Delegation) *NullableDelegation { + return &NullableDelegation{value: val, isSet: true} +} + +func (v NullableDelegation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDelegation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_deny_request_request.go b/model_deny_request_request.go new file mode 100644 index 0000000..894b002 --- /dev/null +++ b/model_deny_request_request.go @@ -0,0 +1,196 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the DenyRequestRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DenyRequestRequest{} + +// DenyRequestRequest struct for DenyRequestRequest +type DenyRequestRequest struct { + // Comment for the denial + Comment string `json:"comment"` + Level *RequestApprovalEnum `json:"level,omitempty"` +} + +type _DenyRequestRequest DenyRequestRequest + +// NewDenyRequestRequest instantiates a new DenyRequestRequest 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 NewDenyRequestRequest(comment string) *DenyRequestRequest { + this := DenyRequestRequest{} + this.Comment = comment + return &this +} + +// NewDenyRequestRequestWithDefaults instantiates a new DenyRequestRequest 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 NewDenyRequestRequestWithDefaults() *DenyRequestRequest { + this := DenyRequestRequest{} + return &this +} + +// GetComment returns the Comment field value +func (o *DenyRequestRequest) GetComment() string { + if o == nil { + var ret string + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *DenyRequestRequest) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +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 { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DenyRequestRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comment"] = o.Comment + if !IsNil(o.Level) { + toSerialize["level"] = o.Level + } + return toSerialize, nil +} + +func (o *DenyRequestRequest) 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{ + "comment", + } + + 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) + } + } + + varDenyRequestRequest := _DenyRequestRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varDenyRequestRequest) + + if err != nil { + return err + } + + *o = DenyRequestRequest(varDenyRequestRequest) + + return err +} + +type NullableDenyRequestRequest struct { + value *DenyRequestRequest + isSet bool +} + +func (v NullableDenyRequestRequest) Get() *DenyRequestRequest { + return v.value +} + +func (v *NullableDenyRequestRequest) Set(val *DenyRequestRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDenyRequestRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDenyRequestRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDenyRequestRequest(val *DenyRequestRequest) *NullableDenyRequestRequest { + return &NullableDenyRequestRequest{value: val, isSet: true} +} + +func (v NullableDenyRequestRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDenyRequestRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_entity_item_type_enum.go b/model_entity_item_type_enum.go new file mode 100644 index 0000000..e5db41c --- /dev/null +++ b/model_entity_item_type_enum.go @@ -0,0 +1,276 @@ +/* +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" +) + +// EntityItemTypeEnum Granular subtype of an entity. +type EntityItemTypeEnum string + +// List of EntityItemTypeEnum +const ( + ENTITYITEMTYPEENUM_USER EntityItemTypeEnum = "USER" + ENTITYITEMTYPEENUM_SERVICE_USER EntityItemTypeEnum = "SERVICE_USER" + ENTITYITEMTYPEENUM_ACTIVE_DIRECTORY_GROUP EntityItemTypeEnum = "ACTIVE_DIRECTORY_GROUP" + ENTITYITEMTYPEENUM_AWS_SSO_GROUP EntityItemTypeEnum = "AWS_SSO_GROUP" + ENTITYITEMTYPEENUM_DUO_GROUP EntityItemTypeEnum = "DUO_GROUP" + ENTITYITEMTYPEENUM_GIT_HUB_TEAM EntityItemTypeEnum = "GIT_HUB_TEAM" + ENTITYITEMTYPEENUM_GIT_LAB_GROUP EntityItemTypeEnum = "GIT_LAB_GROUP" + ENTITYITEMTYPEENUM_GOOGLE_GROUPS_GROUP EntityItemTypeEnum = "GOOGLE_GROUPS_GROUP" + ENTITYITEMTYPEENUM_GOOGLE_GROUPS_GKE_GROUP EntityItemTypeEnum = "GOOGLE_GROUPS_GKE_GROUP" + ENTITYITEMTYPEENUM_LDAP_GROUP EntityItemTypeEnum = "LDAP_GROUP" + ENTITYITEMTYPEENUM_OKTA_GROUP EntityItemTypeEnum = "OKTA_GROUP" + ENTITYITEMTYPEENUM_OKTA_GROUP_RULE EntityItemTypeEnum = "OKTA_GROUP_RULE" + ENTITYITEMTYPEENUM_TAILSCALE_GROUP EntityItemTypeEnum = "TAILSCALE_GROUP" + ENTITYITEMTYPEENUM_TWINGATE_GROUP EntityItemTypeEnum = "TWINGATE_GROUP" + ENTITYITEMTYPEENUM_TWINGATE_GROUP_SYNCED EntityItemTypeEnum = "TWINGATE_GROUP_SYNCED" + ENTITYITEMTYPEENUM_OPAL_GROUP EntityItemTypeEnum = "OPAL_GROUP" + ENTITYITEMTYPEENUM_OPAL_ACCESS_RULE EntityItemTypeEnum = "OPAL_ACCESS_RULE" + ENTITYITEMTYPEENUM_AZURE_AD_SECURITY_GROUP EntityItemTypeEnum = "AZURE_AD_SECURITY_GROUP" + ENTITYITEMTYPEENUM_AZURE_AD_MICROSOFT_365_GROUP EntityItemTypeEnum = "AZURE_AD_MICROSOFT_365_GROUP" + ENTITYITEMTYPEENUM_CONNECTOR_GROUP EntityItemTypeEnum = "CONNECTOR_GROUP" + ENTITYITEMTYPEENUM_SNOWFLAKE_ROLE EntityItemTypeEnum = "SNOWFLAKE_ROLE" + ENTITYITEMTYPEENUM_WORKDAY_USER_SECURITY_GROUP EntityItemTypeEnum = "WORKDAY_USER_SECURITY_GROUP" + ENTITYITEMTYPEENUM_DATABRICKS_ACCOUNT_GROUP EntityItemTypeEnum = "DATABRICKS_ACCOUNT_GROUP" + ENTITYITEMTYPEENUM_AWS_IAM_ROLE EntityItemTypeEnum = "AWS_IAM_ROLE" + ENTITYITEMTYPEENUM_AWS_EC2_INSTANCE EntityItemTypeEnum = "AWS_EC2_INSTANCE" + ENTITYITEMTYPEENUM_AWS_EKS_CLUSTER EntityItemTypeEnum = "AWS_EKS_CLUSTER" + ENTITYITEMTYPEENUM_AWS_RDS_POSTGRES_INSTANCE EntityItemTypeEnum = "AWS_RDS_POSTGRES_INSTANCE" + ENTITYITEMTYPEENUM_AWS_RDS_POSTGRES_CLUSTER EntityItemTypeEnum = "AWS_RDS_POSTGRES_CLUSTER" + ENTITYITEMTYPEENUM_AWS_RDS_MYSQL_INSTANCE EntityItemTypeEnum = "AWS_RDS_MYSQL_INSTANCE" + ENTITYITEMTYPEENUM_AWS_RDS_MYSQL_CLUSTER EntityItemTypeEnum = "AWS_RDS_MYSQL_CLUSTER" + ENTITYITEMTYPEENUM_AWS_ACCOUNT EntityItemTypeEnum = "AWS_ACCOUNT" + ENTITYITEMTYPEENUM_AWS_SSO_PERMISSION_SET EntityItemTypeEnum = "AWS_SSO_PERMISSION_SET" + ENTITYITEMTYPEENUM_AZURE_MANAGEMENT_GROUP EntityItemTypeEnum = "AZURE_MANAGEMENT_GROUP" + ENTITYITEMTYPEENUM_AZURE_RESOURCE_GROUP EntityItemTypeEnum = "AZURE_RESOURCE_GROUP" + ENTITYITEMTYPEENUM_AZURE_SUBSCRIPTION EntityItemTypeEnum = "AZURE_SUBSCRIPTION" + ENTITYITEMTYPEENUM_AZURE_VIRTUAL_MACHINE EntityItemTypeEnum = "AZURE_VIRTUAL_MACHINE" + ENTITYITEMTYPEENUM_AZURE_STORAGE_ACCOUNT EntityItemTypeEnum = "AZURE_STORAGE_ACCOUNT" + ENTITYITEMTYPEENUM_AZURE_STORAGE_CONTAINER EntityItemTypeEnum = "AZURE_STORAGE_CONTAINER" + ENTITYITEMTYPEENUM_AZURE_SQL_SERVER EntityItemTypeEnum = "AZURE_SQL_SERVER" + ENTITYITEMTYPEENUM_AZURE_SQL_MANAGED_INSTANCE EntityItemTypeEnum = "AZURE_SQL_MANAGED_INSTANCE" + ENTITYITEMTYPEENUM_AZURE_SQL_DATABASE EntityItemTypeEnum = "AZURE_SQL_DATABASE" + ENTITYITEMTYPEENUM_AZURE_SQL_MANAGED_DATABASE EntityItemTypeEnum = "AZURE_SQL_MANAGED_DATABASE" + ENTITYITEMTYPEENUM_AZURE_USER_ASSIGNED_MANAGED_IDENTITY EntityItemTypeEnum = "AZURE_USER_ASSIGNED_MANAGED_Identity" + ENTITYITEMTYPEENUM_AZURE_ENTRA_ID_ROLE EntityItemTypeEnum = "AZURE_ENTRA_ID_ROLE" + ENTITYITEMTYPEENUM_AZURE_ENTERPRISE_APP EntityItemTypeEnum = "AZURE_ENTERPRISE_APP" + ENTITYITEMTYPEENUM_CUSTOM EntityItemTypeEnum = "CUSTOM" + ENTITYITEMTYPEENUM_CUSTOM_CONNECTOR EntityItemTypeEnum = "CUSTOM_CONNECTOR" + ENTITYITEMTYPEENUM_GCP_ORGANIZATION EntityItemTypeEnum = "GCP_ORGANIZATION" + ENTITYITEMTYPEENUM_GCP_BUCKET EntityItemTypeEnum = "GCP_BUCKET" + ENTITYITEMTYPEENUM_GCP_COMPUTE_INSTANCE EntityItemTypeEnum = "GCP_COMPUTE_INSTANCE" + ENTITYITEMTYPEENUM_GCP_BIG_QUERY_DATASET EntityItemTypeEnum = "GCP_BIG_QUERY_DATASET" + ENTITYITEMTYPEENUM_GCP_BIG_QUERY_TABLE EntityItemTypeEnum = "GCP_BIG_QUERY_TABLE" + ENTITYITEMTYPEENUM_GCP_FOLDER EntityItemTypeEnum = "GCP_FOLDER" + ENTITYITEMTYPEENUM_GCP_GKE_CLUSTER EntityItemTypeEnum = "GCP_GKE_CLUSTER" + ENTITYITEMTYPEENUM_GCP_PROJECT EntityItemTypeEnum = "GCP_PROJECT" + ENTITYITEMTYPEENUM_GCP_CLOUD_SQL_POSTGRES_INSTANCE EntityItemTypeEnum = "GCP_CLOUD_SQL_POSTGRES_INSTANCE" + ENTITYITEMTYPEENUM_GCP_CLOUD_SQL_MYSQL_INSTANCE EntityItemTypeEnum = "GCP_CLOUD_SQL_MYSQL_INSTANCE" + ENTITYITEMTYPEENUM_GCP_SERVICE_ACCOUNT EntityItemTypeEnum = "GCP_SERVICE_ACCOUNT" + ENTITYITEMTYPEENUM_GIT_HUB_REPO EntityItemTypeEnum = "GIT_HUB_REPO" + ENTITYITEMTYPEENUM_GIT_HUB_ORG_ROLE EntityItemTypeEnum = "GIT_HUB_ORG_ROLE" + ENTITYITEMTYPEENUM_GIT_LAB_PROJECT EntityItemTypeEnum = "GIT_LAB_PROJECT" + ENTITYITEMTYPEENUM_GOOGLE_WORKSPACE_ROLE EntityItemTypeEnum = "GOOGLE_WORKSPACE_ROLE" + ENTITYITEMTYPEENUM_MONGO_INSTANCE EntityItemTypeEnum = "MONGO_INSTANCE" + ENTITYITEMTYPEENUM_MONGO_ATLAS_INSTANCE EntityItemTypeEnum = "MONGO_ATLAS_INSTANCE" + ENTITYITEMTYPEENUM_OKTA_APP EntityItemTypeEnum = "OKTA_APP" + ENTITYITEMTYPEENUM_OKTA_ROLE EntityItemTypeEnum = "OKTA_ROLE" + ENTITYITEMTYPEENUM_OPAL_ROLE EntityItemTypeEnum = "OPAL_ROLE" + ENTITYITEMTYPEENUM_OPAL_SCOPED_ROLE EntityItemTypeEnum = "OPAL_SCOPED_ROLE" + ENTITYITEMTYPEENUM_PAGERDUTY_ROLE EntityItemTypeEnum = "PAGERDUTY_ROLE" + ENTITYITEMTYPEENUM_TAILSCALE_SSH EntityItemTypeEnum = "TAILSCALE_SSH" + ENTITYITEMTYPEENUM_TWINGATE_RESOURCE EntityItemTypeEnum = "TWINGATE_RESOURCE" + ENTITYITEMTYPEENUM_SALESFORCE_PERMISSION_SET EntityItemTypeEnum = "SALESFORCE_PERMISSION_SET" + ENTITYITEMTYPEENUM_SALESFORCE_PROFILE EntityItemTypeEnum = "SALESFORCE_PROFILE" + ENTITYITEMTYPEENUM_SALESFORCE_ROLE EntityItemTypeEnum = "SALESFORCE_ROLE" + ENTITYITEMTYPEENUM_SNOWFLAKE_DATABASE EntityItemTypeEnum = "SNOWFLAKE_DATABASE" + ENTITYITEMTYPEENUM_SNOWFLAKE_SCHEMA EntityItemTypeEnum = "SNOWFLAKE_SCHEMA" + ENTITYITEMTYPEENUM_SNOWFLAKE_TABLE EntityItemTypeEnum = "SNOWFLAKE_TABLE" + ENTITYITEMTYPEENUM_WORKDAY_ROLE EntityItemTypeEnum = "WORKDAY_ROLE" + ENTITYITEMTYPEENUM_MYSQL_INSTANCE EntityItemTypeEnum = "MYSQL_INSTANCE" + ENTITYITEMTYPEENUM_MARIADB_INSTANCE EntityItemTypeEnum = "MARIADB_INSTANCE" + ENTITYITEMTYPEENUM_POSTGRES_INSTANCE EntityItemTypeEnum = "POSTGRES_INSTANCE" + ENTITYITEMTYPEENUM_TELEPORT_ROLE EntityItemTypeEnum = "TELEPORT_ROLE" + ENTITYITEMTYPEENUM_DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL EntityItemTypeEnum = "DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL" + ENTITYITEMTYPEENUM_ILEVEL_ADVANCED_ROLE EntityItemTypeEnum = "ILEVEL_ADVANCED_ROLE" +) + +// All allowed values of EntityItemTypeEnum enum +var AllowedEntityItemTypeEnumEnumValues = []EntityItemTypeEnum{ + "USER", + "SERVICE_USER", + "ACTIVE_DIRECTORY_GROUP", + "AWS_SSO_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", + "TWINGATE_GROUP", + "TWINGATE_GROUP_SYNCED", + "OPAL_GROUP", + "OPAL_ACCESS_RULE", + "AZURE_AD_SECURITY_GROUP", + "AZURE_AD_MICROSOFT_365_GROUP", + "CONNECTOR_GROUP", + "SNOWFLAKE_ROLE", + "WORKDAY_USER_SECURITY_GROUP", + "DATABRICKS_ACCOUNT_GROUP", + "AWS_IAM_ROLE", + "AWS_EC2_INSTANCE", + "AWS_EKS_CLUSTER", + "AWS_RDS_POSTGRES_INSTANCE", + "AWS_RDS_POSTGRES_CLUSTER", + "AWS_RDS_MYSQL_INSTANCE", + "AWS_RDS_MYSQL_CLUSTER", + "AWS_ACCOUNT", + "AWS_SSO_PERMISSION_SET", + "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", + "GCP_ORGANIZATION", + "GCP_BUCKET", + "GCP_COMPUTE_INSTANCE", + "GCP_BIG_QUERY_DATASET", + "GCP_BIG_QUERY_TABLE", + "GCP_FOLDER", + "GCP_GKE_CLUSTER", + "GCP_PROJECT", + "GCP_CLOUD_SQL_POSTGRES_INSTANCE", + "GCP_CLOUD_SQL_MYSQL_INSTANCE", + "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", + "TWINGATE_RESOURCE", + "SALESFORCE_PERMISSION_SET", + "SALESFORCE_PROFILE", + "SALESFORCE_ROLE", + "SNOWFLAKE_DATABASE", + "SNOWFLAKE_SCHEMA", + "SNOWFLAKE_TABLE", + "WORKDAY_ROLE", + "MYSQL_INSTANCE", + "MARIADB_INSTANCE", + "POSTGRES_INSTANCE", + "TELEPORT_ROLE", + "DATABRICKS_ACCOUNT_SERVICE_PRINCIPAL", + "ILEVEL_ADVANCED_ROLE", +} + +func (v *EntityItemTypeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EntityItemTypeEnum(value) + for _, existing := range AllowedEntityItemTypeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EntityItemTypeEnum", value) +} + +// NewEntityItemTypeEnumFromValue returns a pointer to a valid EntityItemTypeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEntityItemTypeEnumFromValue(v string) (*EntityItemTypeEnum, error) { + ev := EntityItemTypeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EntityItemTypeEnum: valid values are %v", v, AllowedEntityItemTypeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EntityItemTypeEnum) IsValid() bool { + for _, existing := range AllowedEntityItemTypeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EntityItemTypeEnum value +func (v EntityItemTypeEnum) Ptr() *EntityItemTypeEnum { + return &v +} + +type NullableEntityItemTypeEnum struct { + value *EntityItemTypeEnum + isSet bool +} + +func (v NullableEntityItemTypeEnum) Get() *EntityItemTypeEnum { + return v.value +} + +func (v *NullableEntityItemTypeEnum) Set(val *EntityItemTypeEnum) { + v.value = val + v.isSet = true +} + +func (v NullableEntityItemTypeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableEntityItemTypeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEntityItemTypeEnum(val *EntityItemTypeEnum) *NullableEntityItemTypeEnum { + return &NullableEntityItemTypeEnum{value: val, isSet: true} +} + +func (v NullableEntityItemTypeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEntityItemTypeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_entity_name_filter.go b/model_entity_name_filter.go new file mode 100644 index 0000000..691eaa6 --- /dev/null +++ b/model_entity_name_filter.go @@ -0,0 +1,188 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the EntityNameFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EntityNameFilter{} + +// EntityNameFilter Filters entities by name using a string match strategy. +type EntityNameFilter struct { + StringMatchType StringMatchType `json:"stringMatchType"` + // The string value to match against the entity name. + String string `json:"string"` +} + +type _EntityNameFilter EntityNameFilter + +// NewEntityNameFilter instantiates a new EntityNameFilter 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 NewEntityNameFilter(stringMatchType StringMatchType, string_ string) *EntityNameFilter { + this := EntityNameFilter{} + this.StringMatchType = stringMatchType + this.String = string_ + return &this +} + +// NewEntityNameFilterWithDefaults instantiates a new EntityNameFilter 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 NewEntityNameFilterWithDefaults() *EntityNameFilter { + this := EntityNameFilter{} + return &this +} + +// GetStringMatchType returns the StringMatchType field value +func (o *EntityNameFilter) GetStringMatchType() StringMatchType { + if o == nil { + var ret StringMatchType + return ret + } + + return o.StringMatchType +} + +// GetStringMatchTypeOk returns a tuple with the StringMatchType field value +// and a boolean to check if the value has been set. +func (o *EntityNameFilter) GetStringMatchTypeOk() (*StringMatchType, bool) { + if o == nil { + return nil, false + } + return &o.StringMatchType, true +} + +// SetStringMatchType sets field value +func (o *EntityNameFilter) SetStringMatchType(v StringMatchType) { + o.StringMatchType = v +} + +// GetString returns the String field value +func (o *EntityNameFilter) GetString() string { + if o == nil { + var ret string + return ret + } + + return o.String +} + +// GetStringOk returns a tuple with the String field value +// and a boolean to check if the value has been set. +func (o *EntityNameFilter) GetStringOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.String, true +} + +// SetString sets field value +func (o *EntityNameFilter) SetString(v string) { + o.String = v +} + +func (o EntityNameFilter) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EntityNameFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["stringMatchType"] = o.StringMatchType + toSerialize["string"] = o.String + return toSerialize, nil +} + +func (o *EntityNameFilter) 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{ + "stringMatchType", + "string", + } + + 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) + } + } + + varEntityNameFilter := _EntityNameFilter{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEntityNameFilter) + + if err != nil { + return err + } + + *o = EntityNameFilter(varEntityNameFilter) + + return err +} + +type NullableEntityNameFilter struct { + value *EntityNameFilter + isSet bool +} + +func (v NullableEntityNameFilter) Get() *EntityNameFilter { + return v.value +} + +func (v *NullableEntityNameFilter) Set(val *EntityNameFilter) { + v.value = val + v.isSet = true +} + +func (v NullableEntityNameFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableEntityNameFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEntityNameFilter(val *EntityNameFilter) *NullableEntityNameFilter { + return &NullableEntityNameFilter{value: val, isSet: true} +} + +func (v NullableEntityNameFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEntityNameFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_entity_tag_filter.go b/model_entity_tag_filter.go new file mode 100644 index 0000000..f4bf41e --- /dev/null +++ b/model_entity_tag_filter.go @@ -0,0 +1,234 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the EntityTagFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EntityTagFilter{} + +// EntityTagFilter Filters entities by a tag key/value pair, optionally scoped to a connection. +type EntityTagFilter struct { + // The tag key to filter by. + Key string `json:"key"` + // The tag value to filter by. If omitted, matches any value for the given key. + Value *string `json:"value,omitempty"` + // If specified, filters by tags associated with this connection. + ConnectionId *string `json:"connectionId,omitempty"` +} + +type _EntityTagFilter EntityTagFilter + +// NewEntityTagFilter instantiates a new EntityTagFilter 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 NewEntityTagFilter(key string) *EntityTagFilter { + this := EntityTagFilter{} + this.Key = key + return &this +} + +// NewEntityTagFilterWithDefaults instantiates a new EntityTagFilter 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 NewEntityTagFilterWithDefaults() *EntityTagFilter { + this := EntityTagFilter{} + return &this +} + +// GetKey returns the Key field value +func (o *EntityTagFilter) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *EntityTagFilter) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *EntityTagFilter) SetKey(v string) { + o.Key = v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *EntityTagFilter) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EntityTagFilter) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *EntityTagFilter) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *EntityTagFilter) SetValue(v string) { + o.Value = &v +} + +// GetConnectionId returns the ConnectionId field value if set, zero value otherwise. +func (o *EntityTagFilter) GetConnectionId() string { + if o == nil || IsNil(o.ConnectionId) { + var ret string + return ret + } + return *o.ConnectionId +} + +// GetConnectionIdOk returns a tuple with the ConnectionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EntityTagFilter) GetConnectionIdOk() (*string, bool) { + if o == nil || IsNil(o.ConnectionId) { + return nil, false + } + return o.ConnectionId, true +} + +// HasConnectionId returns a boolean if a field has been set. +func (o *EntityTagFilter) HasConnectionId() bool { + if o != nil && !IsNil(o.ConnectionId) { + return true + } + + return false +} + +// SetConnectionId gets a reference to the given string and assigns it to the ConnectionId field. +func (o *EntityTagFilter) SetConnectionId(v string) { + o.ConnectionId = &v +} + +func (o EntityTagFilter) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EntityTagFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["key"] = o.Key + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.ConnectionId) { + toSerialize["connectionId"] = o.ConnectionId + } + return toSerialize, nil +} + +func (o *EntityTagFilter) 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{ + "key", + } + + 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) + } + } + + varEntityTagFilter := _EntityTagFilter{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEntityTagFilter) + + if err != nil { + return err + } + + *o = EntityTagFilter(varEntityTagFilter) + + return err +} + +type NullableEntityTagFilter struct { + value *EntityTagFilter + isSet bool +} + +func (v NullableEntityTagFilter) Get() *EntityTagFilter { + return v.value +} + +func (v *NullableEntityTagFilter) Set(val *EntityTagFilter) { + v.value = val + v.isSet = true +} + +func (v NullableEntityTagFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableEntityTagFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEntityTagFilter(val *EntityTagFilter) *NullableEntityTagFilter { + return &NullableEntityTagFilter{value: val, isSet: true} +} + +func (v NullableEntityTagFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEntityTagFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_event_stream.go b/model_event_stream.go new file mode 100644 index 0000000..7016f28 --- /dev/null +++ b/model_event_stream.go @@ -0,0 +1,188 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the EventStream type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventStream{} + +// EventStream An event streaming connection that publishes events to an external system. +type EventStream struct { + // The ID of the event stream. + EventStreamId string `json:"event_stream_id"` + Connection EventStreamConnection `json:"connection"` +} + +type _EventStream EventStream + +// NewEventStream instantiates a new EventStream 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 NewEventStream(eventStreamId string, connection EventStreamConnection) *EventStream { + this := EventStream{} + this.EventStreamId = eventStreamId + this.Connection = connection + return &this +} + +// NewEventStreamWithDefaults instantiates a new EventStream 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 NewEventStreamWithDefaults() *EventStream { + this := EventStream{} + return &this +} + +// GetEventStreamId returns the EventStreamId field value +func (o *EventStream) GetEventStreamId() string { + if o == nil { + var ret string + return ret + } + + return o.EventStreamId +} + +// GetEventStreamIdOk returns a tuple with the EventStreamId field value +// and a boolean to check if the value has been set. +func (o *EventStream) GetEventStreamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EventStreamId, true +} + +// SetEventStreamId sets field value +func (o *EventStream) SetEventStreamId(v string) { + o.EventStreamId = v +} + +// GetConnection returns the Connection field value +func (o *EventStream) GetConnection() EventStreamConnection { + if o == nil { + var ret EventStreamConnection + return ret + } + + return o.Connection +} + +// GetConnectionOk returns a tuple with the Connection field value +// and a boolean to check if the value has been set. +func (o *EventStream) GetConnectionOk() (*EventStreamConnection, bool) { + if o == nil { + return nil, false + } + return &o.Connection, true +} + +// SetConnection sets field value +func (o *EventStream) SetConnection(v EventStreamConnection) { + o.Connection = v +} + +func (o EventStream) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventStream) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["event_stream_id"] = o.EventStreamId + toSerialize["connection"] = o.Connection + return toSerialize, nil +} + +func (o *EventStream) 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{ + "event_stream_id", + "connection", + } + + 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) + } + } + + varEventStream := _EventStream{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEventStream) + + if err != nil { + return err + } + + *o = EventStream(varEventStream) + + return err +} + +type NullableEventStream struct { + value *EventStream + isSet bool +} + +func (v NullableEventStream) Get() *EventStream { + return v.value +} + +func (v *NullableEventStream) Set(val *EventStream) { + v.value = val + v.isSet = true +} + +func (v NullableEventStream) IsSet() bool { + return v.isSet +} + +func (v *NullableEventStream) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventStream(val *EventStream) *NullableEventStream { + return &NullableEventStream{value: val, isSet: true} +} + +func (v NullableEventStream) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventStream) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_event_stream_connection.go b/model_event_stream_connection.go new file mode 100644 index 0000000..2447bf3 --- /dev/null +++ b/model_event_stream_connection.go @@ -0,0 +1,290 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the EventStreamConnection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventStreamConnection{} + +// EventStreamConnection The connection configuration for an event stream. +type EventStreamConnection struct { + // The name of the connection. + Name string `json:"name"` + ConnectionType EventStreamConnectionTypeEnum `json:"connection_type"` + // Whether the connection is enabled. + Enabled bool `json:"enabled"` + // The webhook URL, present when connection_type is WEBHOOK. + WebhookUrl *string `json:"webhook_url,omitempty"` + Credentials *WebhookCredentials `json:"credentials,omitempty"` +} + +type _EventStreamConnection EventStreamConnection + +// NewEventStreamConnection instantiates a new EventStreamConnection 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 NewEventStreamConnection(name string, connectionType EventStreamConnectionTypeEnum, enabled bool) *EventStreamConnection { + this := EventStreamConnection{} + this.Name = name + this.ConnectionType = connectionType + this.Enabled = enabled + return &this +} + +// NewEventStreamConnectionWithDefaults instantiates a new EventStreamConnection 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 NewEventStreamConnectionWithDefaults() *EventStreamConnection { + this := EventStreamConnection{} + return &this +} + +// GetName returns the Name field value +func (o *EventStreamConnection) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *EventStreamConnection) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *EventStreamConnection) SetName(v string) { + o.Name = v +} + +// GetConnectionType returns the ConnectionType field value +func (o *EventStreamConnection) GetConnectionType() EventStreamConnectionTypeEnum { + if o == nil { + var ret EventStreamConnectionTypeEnum + return ret + } + + return o.ConnectionType +} + +// GetConnectionTypeOk returns a tuple with the ConnectionType field value +// and a boolean to check if the value has been set. +func (o *EventStreamConnection) GetConnectionTypeOk() (*EventStreamConnectionTypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.ConnectionType, true +} + +// SetConnectionType sets field value +func (o *EventStreamConnection) SetConnectionType(v EventStreamConnectionTypeEnum) { + o.ConnectionType = v +} + +// GetEnabled returns the Enabled field value +func (o *EventStreamConnection) GetEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value +// and a boolean to check if the value has been set. +func (o *EventStreamConnection) GetEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Enabled, true +} + +// SetEnabled sets field value +func (o *EventStreamConnection) SetEnabled(v bool) { + o.Enabled = v +} + +// GetWebhookUrl returns the WebhookUrl field value if set, zero value otherwise. +func (o *EventStreamConnection) GetWebhookUrl() string { + if o == nil || IsNil(o.WebhookUrl) { + var ret string + return ret + } + return *o.WebhookUrl +} + +// GetWebhookUrlOk returns a tuple with the WebhookUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventStreamConnection) GetWebhookUrlOk() (*string, bool) { + if o == nil || IsNil(o.WebhookUrl) { + return nil, false + } + return o.WebhookUrl, true +} + +// HasWebhookUrl returns a boolean if a field has been set. +func (o *EventStreamConnection) HasWebhookUrl() bool { + if o != nil && !IsNil(o.WebhookUrl) { + return true + } + + return false +} + +// SetWebhookUrl gets a reference to the given string and assigns it to the WebhookUrl field. +func (o *EventStreamConnection) SetWebhookUrl(v string) { + o.WebhookUrl = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *EventStreamConnection) GetCredentials() WebhookCredentials { + if o == nil || IsNil(o.Credentials) { + var ret WebhookCredentials + return ret + } + return *o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventStreamConnection) GetCredentialsOk() (*WebhookCredentials, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *EventStreamConnection) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given WebhookCredentials and assigns it to the Credentials field. +func (o *EventStreamConnection) SetCredentials(v WebhookCredentials) { + o.Credentials = &v +} + +func (o EventStreamConnection) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventStreamConnection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["connection_type"] = o.ConnectionType + toSerialize["enabled"] = o.Enabled + if !IsNil(o.WebhookUrl) { + toSerialize["webhook_url"] = o.WebhookUrl + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + return toSerialize, nil +} + +func (o *EventStreamConnection) 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{ + "name", + "connection_type", + "enabled", + } + + 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) + } + } + + varEventStreamConnection := _EventStreamConnection{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEventStreamConnection) + + if err != nil { + return err + } + + *o = EventStreamConnection(varEventStreamConnection) + + return err +} + +type NullableEventStreamConnection struct { + value *EventStreamConnection + isSet bool +} + +func (v NullableEventStreamConnection) Get() *EventStreamConnection { + return v.value +} + +func (v *NullableEventStreamConnection) Set(val *EventStreamConnection) { + v.value = val + v.isSet = true +} + +func (v NullableEventStreamConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableEventStreamConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventStreamConnection(val *EventStreamConnection) *NullableEventStreamConnection { + return &NullableEventStreamConnection{value: val, isSet: true} +} + +func (v NullableEventStreamConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventStreamConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_event_stream_connection_type_enum.go b/model_event_stream_connection_type_enum.go new file mode 100644 index 0000000..9d0d2f4 --- /dev/null +++ b/model_event_stream_connection_type_enum.go @@ -0,0 +1,110 @@ +/* +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" +) + +// EventStreamConnectionTypeEnum The type of event stream connection. +type EventStreamConnectionTypeEnum string + +// List of EventStreamConnectionTypeEnum +const ( + EVENTSTREAMCONNECTIONTYPEENUM_WEBHOOK EventStreamConnectionTypeEnum = "WEBHOOK" +) + +// All allowed values of EventStreamConnectionTypeEnum enum +var AllowedEventStreamConnectionTypeEnumEnumValues = []EventStreamConnectionTypeEnum{ + "WEBHOOK", +} + +func (v *EventStreamConnectionTypeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EventStreamConnectionTypeEnum(value) + for _, existing := range AllowedEventStreamConnectionTypeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EventStreamConnectionTypeEnum", value) +} + +// NewEventStreamConnectionTypeEnumFromValue returns a pointer to a valid EventStreamConnectionTypeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEventStreamConnectionTypeEnumFromValue(v string) (*EventStreamConnectionTypeEnum, error) { + ev := EventStreamConnectionTypeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EventStreamConnectionTypeEnum: valid values are %v", v, AllowedEventStreamConnectionTypeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EventStreamConnectionTypeEnum) IsValid() bool { + for _, existing := range AllowedEventStreamConnectionTypeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EventStreamConnectionTypeEnum value +func (v EventStreamConnectionTypeEnum) Ptr() *EventStreamConnectionTypeEnum { + return &v +} + +type NullableEventStreamConnectionTypeEnum struct { + value *EventStreamConnectionTypeEnum + isSet bool +} + +func (v NullableEventStreamConnectionTypeEnum) Get() *EventStreamConnectionTypeEnum { + return v.value +} + +func (v *NullableEventStreamConnectionTypeEnum) Set(val *EventStreamConnectionTypeEnum) { + v.value = val + v.isSet = true +} + +func (v NullableEventStreamConnectionTypeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableEventStreamConnectionTypeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventStreamConnectionTypeEnum(val *EventStreamConnectionTypeEnum) *NullableEventStreamConnectionTypeEnum { + return &NullableEventStreamConnectionTypeEnum{value: val, isSet: true} +} + +func (v NullableEventStreamConnectionTypeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventStreamConnectionTypeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_event_stream_list.go b/model_event_stream_list.go new file mode 100644 index 0000000..bf5d0b1 --- /dev/null +++ b/model_event_stream_list.go @@ -0,0 +1,159 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the EventStreamList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EventStreamList{} + +// EventStreamList A list of event streams. +type EventStreamList struct { + EventStreams []EventStream `json:"event_streams"` +} + +type _EventStreamList EventStreamList + +// NewEventStreamList instantiates a new EventStreamList 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 NewEventStreamList(eventStreams []EventStream) *EventStreamList { + this := EventStreamList{} + this.EventStreams = eventStreams + return &this +} + +// NewEventStreamListWithDefaults instantiates a new EventStreamList 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 NewEventStreamListWithDefaults() *EventStreamList { + this := EventStreamList{} + return &this +} + +// GetEventStreams returns the EventStreams field value +func (o *EventStreamList) GetEventStreams() []EventStream { + if o == nil { + var ret []EventStream + return ret + } + + return o.EventStreams +} + +// GetEventStreamsOk returns a tuple with the EventStreams field value +// and a boolean to check if the value has been set. +func (o *EventStreamList) GetEventStreamsOk() ([]EventStream, bool) { + if o == nil { + return nil, false + } + return o.EventStreams, true +} + +// SetEventStreams sets field value +func (o *EventStreamList) SetEventStreams(v []EventStream) { + o.EventStreams = v +} + +func (o EventStreamList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EventStreamList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["event_streams"] = o.EventStreams + return toSerialize, nil +} + +func (o *EventStreamList) 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{ + "event_streams", + } + + 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) + } + } + + varEventStreamList := _EventStreamList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEventStreamList) + + if err != nil { + return err + } + + *o = EventStreamList(varEventStreamList) + + return err +} + +type NullableEventStreamList struct { + value *EventStreamList + isSet bool +} + +func (v NullableEventStreamList) Get() *EventStreamList { + return v.value +} + +func (v *NullableEventStreamList) Set(val *EventStreamList) { + v.value = val + v.isSet = true +} + +func (v NullableEventStreamList) IsSet() bool { + return v.isSet +} + +func (v *NullableEventStreamList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventStreamList(val *EventStreamList) *NullableEventStreamList { + return &NullableEventStreamList{value: val, isSet: true} +} + +func (v NullableEventStreamList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventStreamList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_get_resource_user_200_response.go b/model_get_resource_user_200_response.go new file mode 100644 index 0000000..29ea69c --- /dev/null +++ b/model_get_resource_user_200_response.go @@ -0,0 +1,233 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GetResourceUser200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetResourceUser200Response{} + +// GetResourceUser200Response struct for GetResourceUser200Response +type GetResourceUser200Response struct { + Data []ResourceUser `json:"data"` + // Pagination cursor for the next page of results + Cursor *string `json:"cursor,omitempty"` + // Total number of results + TotalCount *int32 `json:"total_count,omitempty"` +} + +type _GetResourceUser200Response GetResourceUser200Response + +// NewGetResourceUser200Response instantiates a new GetResourceUser200Response 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 NewGetResourceUser200Response(data []ResourceUser) *GetResourceUser200Response { + this := GetResourceUser200Response{} + this.Data = data + return &this +} + +// NewGetResourceUser200ResponseWithDefaults instantiates a new GetResourceUser200Response 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 NewGetResourceUser200ResponseWithDefaults() *GetResourceUser200Response { + this := GetResourceUser200Response{} + return &this +} + +// GetData returns the Data field value +func (o *GetResourceUser200Response) GetData() []ResourceUser { + if o == nil { + var ret []ResourceUser + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +func (o *GetResourceUser200Response) GetDataOk() ([]ResourceUser, bool) { + if o == nil { + return nil, false + } + return o.Data, true +} + +// SetData sets field value +func (o *GetResourceUser200Response) SetData(v []ResourceUser) { + o.Data = v +} + +// GetCursor returns the Cursor field value if set, zero value otherwise. +func (o *GetResourceUser200Response) GetCursor() string { + if o == nil || IsNil(o.Cursor) { + var ret string + return ret + } + return *o.Cursor +} + +// GetCursorOk returns a tuple with the Cursor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetResourceUser200Response) GetCursorOk() (*string, bool) { + if o == nil || IsNil(o.Cursor) { + return nil, false + } + return o.Cursor, true +} + +// HasCursor returns a boolean if a field has been set. +func (o *GetResourceUser200Response) HasCursor() bool { + if o != nil && !IsNil(o.Cursor) { + return true + } + + return false +} + +// SetCursor gets a reference to the given string and assigns it to the Cursor field. +func (o *GetResourceUser200Response) SetCursor(v string) { + o.Cursor = &v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *GetResourceUser200Response) GetTotalCount() int32 { + if o == nil || IsNil(o.TotalCount) { + var ret int32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetResourceUser200Response) GetTotalCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *GetResourceUser200Response) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field. +func (o *GetResourceUser200Response) SetTotalCount(v int32) { + o.TotalCount = &v +} + +func (o GetResourceUser200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetResourceUser200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["data"] = o.Data + if !IsNil(o.Cursor) { + toSerialize["cursor"] = o.Cursor + } + if !IsNil(o.TotalCount) { + toSerialize["total_count"] = o.TotalCount + } + return toSerialize, nil +} + +func (o *GetResourceUser200Response) 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{ + "data", + } + + 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) + } + } + + varGetResourceUser200Response := _GetResourceUser200Response{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetResourceUser200Response) + + if err != nil { + return err + } + + *o = GetResourceUser200Response(varGetResourceUser200Response) + + return err +} + +type NullableGetResourceUser200Response struct { + value *GetResourceUser200Response + isSet bool +} + +func (v NullableGetResourceUser200Response) Get() *GetResourceUser200Response { + return v.value +} + +func (v *NullableGetResourceUser200Response) Set(val *GetResourceUser200Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetResourceUser200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetResourceUser200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetResourceUser200Response(val *GetResourceUser200Response) *NullableGetResourceUser200Response { + return &NullableGetResourceUser200Response{value: val, isSet: true} +} + +func (v NullableGetResourceUser200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetResourceUser200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group.go b/model_group.go index 35a9191..85d532b 100644 --- a/model_group.go +++ b/model_group.go @@ -43,6 +43,8 @@ type Group struct { MaxDuration *int32 `json:"max_duration,omitempty"` // The recommended duration for which the group should be requested (in minutes). -1 represents an indefinite duration. RecommendedDuration *int32 `json:"recommended_duration,omitempty"` + // 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. + ExtensionsDurationInMinutes *int32 `json:"extensions_duration_in_minutes,omitempty"` // A bool representing whether or not access requests to the group require manager approval. // Deprecated RequireManagerApproval *bool `json:"require_manager_approval,omitempty"` @@ -75,6 +77,8 @@ 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"` } type _Group Group @@ -441,6 +445,38 @@ func (o *Group) SetRecommendedDuration(v int32) { o.RecommendedDuration = &v } +// GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field value if set, zero value otherwise. +func (o *Group) GetExtensionsDurationInMinutes() int32 { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + var ret int32 + return ret + } + return *o.ExtensionsDurationInMinutes +} + +// GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Group) GetExtensionsDurationInMinutesOk() (*int32, bool) { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + return nil, false + } + return o.ExtensionsDurationInMinutes, true +} + +// HasExtensionsDurationInMinutes returns a boolean if a field has been set. +func (o *Group) HasExtensionsDurationInMinutes() bool { + if o != nil && !IsNil(o.ExtensionsDurationInMinutes) { + return true + } + + return false +} + +// SetExtensionsDurationInMinutes gets a reference to the given int32 and assigns it to the ExtensionsDurationInMinutes field. +func (o *Group) SetExtensionsDurationInMinutes(v int32) { + o.ExtensionsDurationInMinutes = &v +} + // GetRequireManagerApproval returns the RequireManagerApproval field value if set, zero value otherwise. // Deprecated func (o *Group) GetRequireManagerApproval() bool { @@ -959,6 +995,38 @@ func (o *Group) SetRiskSensitivityOverride(v RiskSensitivityEnum) { o.RiskSensitivityOverride = &v } +// GetLastSuccessfulSync returns the LastSuccessfulSync field value if set, zero value otherwise. +func (o *Group) GetLastSuccessfulSync() SyncTask { + if o == nil || IsNil(o.LastSuccessfulSync) { + var ret SyncTask + return ret + } + return *o.LastSuccessfulSync +} + +// GetLastSuccessfulSyncOk returns a tuple with the LastSuccessfulSync field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Group) GetLastSuccessfulSyncOk() (*SyncTask, bool) { + if o == nil || IsNil(o.LastSuccessfulSync) { + return nil, false + } + return o.LastSuccessfulSync, true +} + +// HasLastSuccessfulSync returns a boolean if a field has been set. +func (o *Group) HasLastSuccessfulSync() bool { + if o != nil && !IsNil(o.LastSuccessfulSync) { + return true + } + + return false +} + +// SetLastSuccessfulSync gets a reference to the given SyncTask and assigns it to the LastSuccessfulSync field. +func (o *Group) SetLastSuccessfulSync(v SyncTask) { + o.LastSuccessfulSync = &v +} + func (o Group) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -1000,6 +1068,9 @@ func (o Group) ToMap() (map[string]interface{}, error) { if !IsNil(o.RecommendedDuration) { toSerialize["recommended_duration"] = o.RecommendedDuration } + if !IsNil(o.ExtensionsDurationInMinutes) { + toSerialize["extensions_duration_in_minutes"] = o.ExtensionsDurationInMinutes + } if !IsNil(o.RequireManagerApproval) { toSerialize["require_manager_approval"] = o.RequireManagerApproval } @@ -1048,6 +1119,9 @@ func (o Group) ToMap() (map[string]interface{}, error) { if !IsNil(o.RiskSensitivityOverride) { toSerialize["risk_sensitivity_override"] = o.RiskSensitivityOverride } + if !IsNil(o.LastSuccessfulSync) { + toSerialize["last_successful_sync"] = o.LastSuccessfulSync + } return toSerialize, nil } diff --git a/model_group_containing_group.go b/model_group_containing_group.go index 0cd9b3e..d847e4f 100644 --- a/model_group_containing_group.go +++ b/model_group_containing_group.go @@ -24,6 +24,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"` } type _GroupContainingGroup GroupContainingGroup @@ -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 + } return toSerialize, nil } diff --git a/model_group_remote_info.go b/model_group_remote_info.go index 63076eb..85a3057 100644 --- a/model_group_remote_info.go +++ b/model_group_remote_info.go @@ -18,10 +18,17 @@ import ( // checks if the GroupRemoteInfo type satisfies the MappedNullable interface at compile time var _ MappedNullable = &GroupRemoteInfo{} -// GroupRemoteInfo Information that defines the remote group. This replaces the deprecated remote_id and metadata fields. +// 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"` + TwingateGroup *GroupRemoteInfoTwingateGroup `json:"twingate_group,omitempty"` + TwingateGroupSynced *GroupRemoteInfoTwingateGroupSynced `json:"twingate_group_synced,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"` + GithubEnterpriseTeam *GroupRemoteInfoGithubEnterpriseTeam `json:"github_enterprise_team,omitempty"` GitlabGroup *GroupRemoteInfoGitlabGroup `json:"gitlab_group,omitempty"` GoogleGroup *GroupRemoteInfoGoogleGroup `json:"google_group,omitempty"` LdapGroup *GroupRemoteInfoLdapGroup `json:"ldap_group,omitempty"` @@ -29,6 +36,19 @@ type GroupRemoteInfo struct { DuoGroup *GroupRemoteInfoDuoGroup `json:"duo_group,omitempty"` AzureAdSecurityGroup *GroupRemoteInfoAzureAdSecurityGroup `json:"azure_ad_security_group,omitempty"` AzureAdMicrosoft365Group *GroupRemoteInfoAzureAdMicrosoft365Group `json:"azure_ad_microsoft_365_group,omitempty"` + 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"` + ClickhouseRole *GroupRemoteInfoClickhouseRole `json:"clickhouse_role,omitempty"` + GrafanaTeam *GroupRemoteInfoGrafanaTeam `json:"grafana_team,omitempty"` + ZendeskGroup *GroupRemoteInfoZendeskGroup `json:"zendesk_group,omitempty"` + SlackUserGroup *GroupRemoteInfoSlackUserGroup `json:"slack_user_group,omitempty"` + ZendeskOrganization *GroupRemoteInfoZendeskOrganization `json:"zendesk_organization,omitempty"` + HubspotTeam *GroupRemoteInfoHubspotTeam `json:"hubspot_team,omitempty"` } // NewGroupRemoteInfo instantiates a new GroupRemoteInfo object @@ -80,6 +100,198 @@ 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 +} + +// GetTwingateGroup returns the TwingateGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetTwingateGroup() GroupRemoteInfoTwingateGroup { + if o == nil || IsNil(o.TwingateGroup) { + var ret GroupRemoteInfoTwingateGroup + return ret + } + return *o.TwingateGroup +} + +// GetTwingateGroupOk returns a tuple with the TwingateGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetTwingateGroupOk() (*GroupRemoteInfoTwingateGroup, bool) { + if o == nil || IsNil(o.TwingateGroup) { + return nil, false + } + return o.TwingateGroup, true +} + +// HasTwingateGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasTwingateGroup() bool { + if o != nil && !IsNil(o.TwingateGroup) { + return true + } + + return false +} + +// SetTwingateGroup gets a reference to the given GroupRemoteInfoTwingateGroup and assigns it to the TwingateGroup field. +func (o *GroupRemoteInfo) SetTwingateGroup(v GroupRemoteInfoTwingateGroup) { + o.TwingateGroup = &v +} + +// GetTwingateGroupSynced returns the TwingateGroupSynced field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetTwingateGroupSynced() GroupRemoteInfoTwingateGroupSynced { + if o == nil || IsNil(o.TwingateGroupSynced) { + var ret GroupRemoteInfoTwingateGroupSynced + return ret + } + return *o.TwingateGroupSynced +} + +// GetTwingateGroupSyncedOk returns a tuple with the TwingateGroupSynced field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetTwingateGroupSyncedOk() (*GroupRemoteInfoTwingateGroupSynced, bool) { + if o == nil || IsNil(o.TwingateGroupSynced) { + return nil, false + } + return o.TwingateGroupSynced, true +} + +// HasTwingateGroupSynced returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasTwingateGroupSynced() bool { + if o != nil && !IsNil(o.TwingateGroupSynced) { + return true + } + + return false +} + +// SetTwingateGroupSynced gets a reference to the given GroupRemoteInfoTwingateGroupSynced and assigns it to the TwingateGroupSynced field. +func (o *GroupRemoteInfo) SetTwingateGroupSynced(v GroupRemoteInfoTwingateGroupSynced) { + o.TwingateGroupSynced = &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) { @@ -112,6 +324,38 @@ func (o *GroupRemoteInfo) SetGithubTeam(v GroupRemoteInfoGithubTeam) { o.GithubTeam = &v } +// GetGithubEnterpriseTeam returns the GithubEnterpriseTeam field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetGithubEnterpriseTeam() GroupRemoteInfoGithubEnterpriseTeam { + if o == nil || IsNil(o.GithubEnterpriseTeam) { + var ret GroupRemoteInfoGithubEnterpriseTeam + return ret + } + return *o.GithubEnterpriseTeam +} + +// GetGithubEnterpriseTeamOk returns a tuple with the GithubEnterpriseTeam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetGithubEnterpriseTeamOk() (*GroupRemoteInfoGithubEnterpriseTeam, bool) { + if o == nil || IsNil(o.GithubEnterpriseTeam) { + return nil, false + } + return o.GithubEnterpriseTeam, true +} + +// HasGithubEnterpriseTeam returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasGithubEnterpriseTeam() bool { + if o != nil && !IsNil(o.GithubEnterpriseTeam) { + return true + } + + return false +} + +// SetGithubEnterpriseTeam gets a reference to the given GroupRemoteInfoGithubEnterpriseTeam and assigns it to the GithubEnterpriseTeam field. +func (o *GroupRemoteInfo) SetGithubEnterpriseTeam(v GroupRemoteInfoGithubEnterpriseTeam) { + o.GithubEnterpriseTeam = &v +} + // GetGitlabGroup returns the GitlabGroup field value if set, zero value otherwise. func (o *GroupRemoteInfo) GetGitlabGroup() GroupRemoteInfoGitlabGroup { if o == nil || IsNil(o.GitlabGroup) { @@ -336,6 +580,422 @@ func (o *GroupRemoteInfo) SetAzureAdMicrosoft365Group(v GroupRemoteInfoAzureAdMi o.AzureAdMicrosoft365Group = &v } +// GetSnowflakeRole returns the SnowflakeRole field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetSnowflakeRole() GroupRemoteInfoSnowflakeRole { + if o == nil || IsNil(o.SnowflakeRole) { + var ret GroupRemoteInfoSnowflakeRole + return ret + } + return *o.SnowflakeRole +} + +// GetSnowflakeRoleOk returns a tuple with the SnowflakeRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetSnowflakeRoleOk() (*GroupRemoteInfoSnowflakeRole, bool) { + if o == nil || IsNil(o.SnowflakeRole) { + return nil, false + } + return o.SnowflakeRole, true +} + +// HasSnowflakeRole returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasSnowflakeRole() bool { + if o != nil && !IsNil(o.SnowflakeRole) { + return true + } + + return false +} + +// SetSnowflakeRole gets a reference to the given GroupRemoteInfoSnowflakeRole and assigns it to the SnowflakeRole field. +func (o *GroupRemoteInfo) SetSnowflakeRole(v GroupRemoteInfoSnowflakeRole) { + o.SnowflakeRole = &v +} + +// GetOktaGroupRule returns the OktaGroupRule field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetOktaGroupRule() GroupRemoteInfoOktaGroupRule { + if o == nil || IsNil(o.OktaGroupRule) { + var ret GroupRemoteInfoOktaGroupRule + return ret + } + return *o.OktaGroupRule +} + +// GetOktaGroupRuleOk returns a tuple with the OktaGroupRule field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetOktaGroupRuleOk() (*GroupRemoteInfoOktaGroupRule, bool) { + if o == nil || IsNil(o.OktaGroupRule) { + return nil, false + } + return o.OktaGroupRule, true +} + +// HasOktaGroupRule returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasOktaGroupRule() bool { + if o != nil && !IsNil(o.OktaGroupRule) { + return true + } + + return false +} + +// SetOktaGroupRule gets a reference to the given GroupRemoteInfoOktaGroupRule and assigns it to the OktaGroupRule field. +func (o *GroupRemoteInfo) SetOktaGroupRule(v GroupRemoteInfoOktaGroupRule) { + o.OktaGroupRule = &v +} + +// GetWorkdayUserSecurityGroup returns the WorkdayUserSecurityGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetWorkdayUserSecurityGroup() GroupRemoteInfoWorkdayUserSecurityGroup { + if o == nil || IsNil(o.WorkdayUserSecurityGroup) { + var ret GroupRemoteInfoWorkdayUserSecurityGroup + return ret + } + return *o.WorkdayUserSecurityGroup +} + +// GetWorkdayUserSecurityGroupOk returns a tuple with the WorkdayUserSecurityGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetWorkdayUserSecurityGroupOk() (*GroupRemoteInfoWorkdayUserSecurityGroup, bool) { + if o == nil || IsNil(o.WorkdayUserSecurityGroup) { + return nil, false + } + return o.WorkdayUserSecurityGroup, true +} + +// HasWorkdayUserSecurityGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasWorkdayUserSecurityGroup() bool { + if o != nil && !IsNil(o.WorkdayUserSecurityGroup) { + return true + } + + return false +} + +// SetWorkdayUserSecurityGroup gets a reference to the given GroupRemoteInfoWorkdayUserSecurityGroup and assigns it to the WorkdayUserSecurityGroup field. +func (o *GroupRemoteInfo) SetWorkdayUserSecurityGroup(v GroupRemoteInfoWorkdayUserSecurityGroup) { + 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 +} + +// GetClickhouseRole returns the ClickhouseRole field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetClickhouseRole() GroupRemoteInfoClickhouseRole { + if o == nil || IsNil(o.ClickhouseRole) { + var ret GroupRemoteInfoClickhouseRole + return ret + } + return *o.ClickhouseRole +} + +// GetClickhouseRoleOk returns a tuple with the ClickhouseRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetClickhouseRoleOk() (*GroupRemoteInfoClickhouseRole, bool) { + if o == nil || IsNil(o.ClickhouseRole) { + return nil, false + } + return o.ClickhouseRole, true +} + +// HasClickhouseRole returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasClickhouseRole() bool { + if o != nil && !IsNil(o.ClickhouseRole) { + return true + } + + return false +} + +// SetClickhouseRole gets a reference to the given GroupRemoteInfoClickhouseRole and assigns it to the ClickhouseRole field. +func (o *GroupRemoteInfo) SetClickhouseRole(v GroupRemoteInfoClickhouseRole) { + o.ClickhouseRole = &v +} + +// GetGrafanaTeam returns the GrafanaTeam field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetGrafanaTeam() GroupRemoteInfoGrafanaTeam { + if o == nil || IsNil(o.GrafanaTeam) { + var ret GroupRemoteInfoGrafanaTeam + return ret + } + return *o.GrafanaTeam +} + +// GetGrafanaTeamOk returns a tuple with the GrafanaTeam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetGrafanaTeamOk() (*GroupRemoteInfoGrafanaTeam, bool) { + if o == nil || IsNil(o.GrafanaTeam) { + return nil, false + } + return o.GrafanaTeam, true +} + +// HasGrafanaTeam returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasGrafanaTeam() bool { + if o != nil && !IsNil(o.GrafanaTeam) { + return true + } + + return false +} + +// SetGrafanaTeam gets a reference to the given GroupRemoteInfoGrafanaTeam and assigns it to the GrafanaTeam field. +func (o *GroupRemoteInfo) SetGrafanaTeam(v GroupRemoteInfoGrafanaTeam) { + o.GrafanaTeam = &v +} + +// GetZendeskGroup returns the ZendeskGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetZendeskGroup() GroupRemoteInfoZendeskGroup { + if o == nil || IsNil(o.ZendeskGroup) { + var ret GroupRemoteInfoZendeskGroup + return ret + } + return *o.ZendeskGroup +} + +// GetZendeskGroupOk returns a tuple with the ZendeskGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetZendeskGroupOk() (*GroupRemoteInfoZendeskGroup, bool) { + if o == nil || IsNil(o.ZendeskGroup) { + return nil, false + } + return o.ZendeskGroup, true +} + +// HasZendeskGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasZendeskGroup() bool { + if o != nil && !IsNil(o.ZendeskGroup) { + return true + } + + return false +} + +// SetZendeskGroup gets a reference to the given GroupRemoteInfoZendeskGroup and assigns it to the ZendeskGroup field. +func (o *GroupRemoteInfo) SetZendeskGroup(v GroupRemoteInfoZendeskGroup) { + o.ZendeskGroup = &v +} + +// GetSlackUserGroup returns the SlackUserGroup field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetSlackUserGroup() GroupRemoteInfoSlackUserGroup { + if o == nil || IsNil(o.SlackUserGroup) { + var ret GroupRemoteInfoSlackUserGroup + return ret + } + return *o.SlackUserGroup +} + +// GetSlackUserGroupOk returns a tuple with the SlackUserGroup field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetSlackUserGroupOk() (*GroupRemoteInfoSlackUserGroup, bool) { + if o == nil || IsNil(o.SlackUserGroup) { + return nil, false + } + return o.SlackUserGroup, true +} + +// HasSlackUserGroup returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasSlackUserGroup() bool { + if o != nil && !IsNil(o.SlackUserGroup) { + return true + } + + return false +} + +// SetSlackUserGroup gets a reference to the given GroupRemoteInfoSlackUserGroup and assigns it to the SlackUserGroup field. +func (o *GroupRemoteInfo) SetSlackUserGroup(v GroupRemoteInfoSlackUserGroup) { + o.SlackUserGroup = &v +} + +// GetZendeskOrganization returns the ZendeskOrganization field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetZendeskOrganization() GroupRemoteInfoZendeskOrganization { + if o == nil || IsNil(o.ZendeskOrganization) { + var ret GroupRemoteInfoZendeskOrganization + return ret + } + return *o.ZendeskOrganization +} + +// GetZendeskOrganizationOk returns a tuple with the ZendeskOrganization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetZendeskOrganizationOk() (*GroupRemoteInfoZendeskOrganization, bool) { + if o == nil || IsNil(o.ZendeskOrganization) { + return nil, false + } + return o.ZendeskOrganization, true +} + +// HasZendeskOrganization returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasZendeskOrganization() bool { + if o != nil && !IsNil(o.ZendeskOrganization) { + return true + } + + return false +} + +// SetZendeskOrganization gets a reference to the given GroupRemoteInfoZendeskOrganization and assigns it to the ZendeskOrganization field. +func (o *GroupRemoteInfo) SetZendeskOrganization(v GroupRemoteInfoZendeskOrganization) { + o.ZendeskOrganization = &v +} + +// GetHubspotTeam returns the HubspotTeam field value if set, zero value otherwise. +func (o *GroupRemoteInfo) GetHubspotTeam() GroupRemoteInfoHubspotTeam { + if o == nil || IsNil(o.HubspotTeam) { + var ret GroupRemoteInfoHubspotTeam + return ret + } + return *o.HubspotTeam +} + +// GetHubspotTeamOk returns a tuple with the HubspotTeam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfo) GetHubspotTeamOk() (*GroupRemoteInfoHubspotTeam, bool) { + if o == nil || IsNil(o.HubspotTeam) { + return nil, false + } + return o.HubspotTeam, true +} + +// HasHubspotTeam returns a boolean if a field has been set. +func (o *GroupRemoteInfo) HasHubspotTeam() bool { + if o != nil && !IsNil(o.HubspotTeam) { + return true + } + + return false +} + +// SetHubspotTeam gets a reference to the given GroupRemoteInfoHubspotTeam and assigns it to the HubspotTeam field. +func (o *GroupRemoteInfo) SetHubspotTeam(v GroupRemoteInfoHubspotTeam) { + o.HubspotTeam = &v +} + func (o GroupRemoteInfo) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -349,9 +1009,30 @@ 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.TwingateGroup) { + toSerialize["twingate_group"] = o.TwingateGroup + } + if !IsNil(o.TwingateGroupSynced) { + toSerialize["twingate_group_synced"] = o.TwingateGroupSynced + } + 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 } + if !IsNil(o.GithubEnterpriseTeam) { + toSerialize["github_enterprise_team"] = o.GithubEnterpriseTeam + } if !IsNil(o.GitlabGroup) { toSerialize["gitlab_group"] = o.GitlabGroup } @@ -373,6 +1054,45 @@ func (o GroupRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.AzureAdMicrosoft365Group) { toSerialize["azure_ad_microsoft_365_group"] = o.AzureAdMicrosoft365Group } + if !IsNil(o.SnowflakeRole) { + toSerialize["snowflake_role"] = o.SnowflakeRole + } + if !IsNil(o.OktaGroupRule) { + toSerialize["okta_group_rule"] = o.OktaGroupRule + } + 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 + } + if !IsNil(o.ClickhouseRole) { + toSerialize["clickhouse_role"] = o.ClickhouseRole + } + if !IsNil(o.GrafanaTeam) { + toSerialize["grafana_team"] = o.GrafanaTeam + } + if !IsNil(o.ZendeskGroup) { + toSerialize["zendesk_group"] = o.ZendeskGroup + } + if !IsNil(o.SlackUserGroup) { + toSerialize["slack_user_group"] = o.SlackUserGroup + } + if !IsNil(o.ZendeskOrganization) { + toSerialize["zendesk_organization"] = o.ZendeskOrganization + } + if !IsNil(o.HubspotTeam) { + toSerialize["hubspot_team"] = o.HubspotTeam + } return toSerialize, nil } 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..48afddb --- /dev/null +++ b/model_group_remote_info_aws_sso_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoAwsSsoGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoAwsSsoGroup(varGroupRemoteInfoAwsSsoGroup) + + 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_clickhouse_role.go b/model_group_remote_info_clickhouse_role.go new file mode 100644 index 0000000..57ad05e --- /dev/null +++ b/model_group_remote_info_clickhouse_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoClickhouseRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoClickhouseRole{} + +// GroupRemoteInfoClickhouseRole Remote info for ClickHouse role. +type GroupRemoteInfoClickhouseRole struct { + // The name of the ClickHouse role. + RoleId string `json:"role_id"` +} + +type _GroupRemoteInfoClickhouseRole GroupRemoteInfoClickhouseRole + +// NewGroupRemoteInfoClickhouseRole instantiates a new GroupRemoteInfoClickhouseRole 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 NewGroupRemoteInfoClickhouseRole(roleId string) *GroupRemoteInfoClickhouseRole { + this := GroupRemoteInfoClickhouseRole{} + this.RoleId = roleId + return &this +} + +// NewGroupRemoteInfoClickhouseRoleWithDefaults instantiates a new GroupRemoteInfoClickhouseRole 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 NewGroupRemoteInfoClickhouseRoleWithDefaults() *GroupRemoteInfoClickhouseRole { + this := GroupRemoteInfoClickhouseRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *GroupRemoteInfoClickhouseRole) 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 *GroupRemoteInfoClickhouseRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *GroupRemoteInfoClickhouseRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o GroupRemoteInfoClickhouseRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoClickhouseRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *GroupRemoteInfoClickhouseRole) 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) + } + } + + varGroupRemoteInfoClickhouseRole := _GroupRemoteInfoClickhouseRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoClickhouseRole) + + if err != nil { + return err + } + + *o = GroupRemoteInfoClickhouseRole(varGroupRemoteInfoClickhouseRole) + + return err +} + +type NullableGroupRemoteInfoClickhouseRole struct { + value *GroupRemoteInfoClickhouseRole + isSet bool +} + +func (v NullableGroupRemoteInfoClickhouseRole) Get() *GroupRemoteInfoClickhouseRole { + return v.value +} + +func (v *NullableGroupRemoteInfoClickhouseRole) Set(val *GroupRemoteInfoClickhouseRole) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoClickhouseRole) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoClickhouseRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoClickhouseRole(val *GroupRemoteInfoClickhouseRole) *NullableGroupRemoteInfoClickhouseRole { + return &NullableGroupRemoteInfoClickhouseRole{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoClickhouseRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoClickhouseRole) 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..d218f95 --- /dev/null +++ b/model_group_remote_info_connector_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoConnectorGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoConnectorGroup(varGroupRemoteInfoConnectorGroup) + + 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..d92aaf4 --- /dev/null +++ b/model_group_remote_info_databricks_account_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoDatabricksAccountGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoDatabricksAccountGroup(varGroupRemoteInfoDatabricksAccountGroup) + + 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..92bd149 --- /dev/null +++ b/model_group_remote_info_devin_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoDevinGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoDevinGroup(varGroupRemoteInfoDevinGroup) + + 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_github_enterprise_team.go b/model_group_remote_info_github_enterprise_team.go new file mode 100644 index 0000000..d2579f4 --- /dev/null +++ b/model_group_remote_info_github_enterprise_team.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoGithubEnterpriseTeam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoGithubEnterpriseTeam{} + +// GroupRemoteInfoGithubEnterpriseTeam Remote info for GitHub Enterprise team. +type GroupRemoteInfoGithubEnterpriseTeam struct { + // The slug of the GitHub Enterprise team. + TeamSlug string `json:"team_slug"` +} + +type _GroupRemoteInfoGithubEnterpriseTeam GroupRemoteInfoGithubEnterpriseTeam + +// NewGroupRemoteInfoGithubEnterpriseTeam instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGroupRemoteInfoGithubEnterpriseTeam(teamSlug string) *GroupRemoteInfoGithubEnterpriseTeam { + this := GroupRemoteInfoGithubEnterpriseTeam{} + this.TeamSlug = teamSlug + return &this +} + +// NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults instantiates a new GroupRemoteInfoGithubEnterpriseTeam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGroupRemoteInfoGithubEnterpriseTeamWithDefaults() *GroupRemoteInfoGithubEnterpriseTeam { + this := GroupRemoteInfoGithubEnterpriseTeam{} + return &this +} + +// GetTeamSlug returns the TeamSlug field value +func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlug() string { + if o == nil { + var ret string + return ret + } + + return o.TeamSlug +} + +// GetTeamSlugOk returns a tuple with the TeamSlug field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoGithubEnterpriseTeam) GetTeamSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TeamSlug, true +} + +// SetTeamSlug sets field value +func (o *GroupRemoteInfoGithubEnterpriseTeam) SetTeamSlug(v string) { + o.TeamSlug = v +} + +func (o GroupRemoteInfoGithubEnterpriseTeam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoGithubEnterpriseTeam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["team_slug"] = o.TeamSlug + return toSerialize, nil +} + +func (o *GroupRemoteInfoGithubEnterpriseTeam) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "team_slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGroupRemoteInfoGithubEnterpriseTeam := _GroupRemoteInfoGithubEnterpriseTeam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoGithubEnterpriseTeam) + + if err != nil { + return err + } + + *o = GroupRemoteInfoGithubEnterpriseTeam(varGroupRemoteInfoGithubEnterpriseTeam) + + return err +} + +type NullableGroupRemoteInfoGithubEnterpriseTeam struct { + value *GroupRemoteInfoGithubEnterpriseTeam + isSet bool +} + +func (v NullableGroupRemoteInfoGithubEnterpriseTeam) Get() *GroupRemoteInfoGithubEnterpriseTeam { + return v.value +} + +func (v *NullableGroupRemoteInfoGithubEnterpriseTeam) Set(val *GroupRemoteInfoGithubEnterpriseTeam) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoGithubEnterpriseTeam) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoGithubEnterpriseTeam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoGithubEnterpriseTeam(val *GroupRemoteInfoGithubEnterpriseTeam) *NullableGroupRemoteInfoGithubEnterpriseTeam { + return &NullableGroupRemoteInfoGithubEnterpriseTeam{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoGithubEnterpriseTeam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoGithubEnterpriseTeam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_github_team.go b/model_group_remote_info_github_team.go index ab25238..d45586a 100644 --- a/model_group_remote_info_github_team.go +++ b/model_group_remote_info_github_team.go @@ -27,6 +27,8 @@ type GroupRemoteInfoGithubTeam struct { TeamId *string `json:"team_id,omitempty"` // The slug of the GitHub team. TeamSlug string `json:"team_slug"` + // GitHub team's org name, required only for Enterprise + OrgName *string `json:"org_name,omitempty"` } type _GroupRemoteInfoGithubTeam GroupRemoteInfoGithubTeam @@ -108,6 +110,38 @@ func (o *GroupRemoteInfoGithubTeam) SetTeamSlug(v string) { o.TeamSlug = v } +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *GroupRemoteInfoGithubTeam) GetOrgName() string { + if o == nil || IsNil(o.OrgName) { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoGithubTeam) GetOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.OrgName) { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *GroupRemoteInfoGithubTeam) HasOrgName() bool { + if o != nil && !IsNil(o.OrgName) { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *GroupRemoteInfoGithubTeam) SetOrgName(v string) { + o.OrgName = &v +} + func (o GroupRemoteInfoGithubTeam) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -122,6 +156,9 @@ func (o GroupRemoteInfoGithubTeam) ToMap() (map[string]interface{}, error) { toSerialize["team_id"] = o.TeamId } toSerialize["team_slug"] = o.TeamSlug + if !IsNil(o.OrgName) { + toSerialize["org_name"] = o.OrgName + } return toSerialize, nil } diff --git a/model_group_remote_info_grafana_team.go b/model_group_remote_info_grafana_team.go new file mode 100644 index 0000000..341d90a --- /dev/null +++ b/model_group_remote_info_grafana_team.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoGrafanaTeam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoGrafanaTeam{} + +// GroupRemoteInfoGrafanaTeam Remote info for Grafana team. +type GroupRemoteInfoGrafanaTeam struct { + // The ID of the team. + TeamId string `json:"team_id"` +} + +type _GroupRemoteInfoGrafanaTeam GroupRemoteInfoGrafanaTeam + +// NewGroupRemoteInfoGrafanaTeam instantiates a new GroupRemoteInfoGrafanaTeam 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 NewGroupRemoteInfoGrafanaTeam(teamId string) *GroupRemoteInfoGrafanaTeam { + this := GroupRemoteInfoGrafanaTeam{} + this.TeamId = teamId + return &this +} + +// NewGroupRemoteInfoGrafanaTeamWithDefaults instantiates a new GroupRemoteInfoGrafanaTeam 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 NewGroupRemoteInfoGrafanaTeamWithDefaults() *GroupRemoteInfoGrafanaTeam { + this := GroupRemoteInfoGrafanaTeam{} + return &this +} + +// GetTeamId returns the TeamId field value +func (o *GroupRemoteInfoGrafanaTeam) GetTeamId() string { + if o == nil { + var ret string + return ret + } + + return o.TeamId +} + +// GetTeamIdOk returns a tuple with the TeamId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoGrafanaTeam) GetTeamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TeamId, true +} + +// SetTeamId sets field value +func (o *GroupRemoteInfoGrafanaTeam) SetTeamId(v string) { + o.TeamId = v +} + +func (o GroupRemoteInfoGrafanaTeam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoGrafanaTeam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["team_id"] = o.TeamId + return toSerialize, nil +} + +func (o *GroupRemoteInfoGrafanaTeam) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "team_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) + } + } + + varGroupRemoteInfoGrafanaTeam := _GroupRemoteInfoGrafanaTeam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoGrafanaTeam) + + if err != nil { + return err + } + + *o = GroupRemoteInfoGrafanaTeam(varGroupRemoteInfoGrafanaTeam) + + return err +} + +type NullableGroupRemoteInfoGrafanaTeam struct { + value *GroupRemoteInfoGrafanaTeam + isSet bool +} + +func (v NullableGroupRemoteInfoGrafanaTeam) Get() *GroupRemoteInfoGrafanaTeam { + return v.value +} + +func (v *NullableGroupRemoteInfoGrafanaTeam) Set(val *GroupRemoteInfoGrafanaTeam) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoGrafanaTeam) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoGrafanaTeam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoGrafanaTeam(val *GroupRemoteInfoGrafanaTeam) *NullableGroupRemoteInfoGrafanaTeam { + return &NullableGroupRemoteInfoGrafanaTeam{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoGrafanaTeam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoGrafanaTeam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_hubspot_team.go b/model_group_remote_info_hubspot_team.go new file mode 100644 index 0000000..80476cb --- /dev/null +++ b/model_group_remote_info_hubspot_team.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoHubspotTeam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoHubspotTeam{} + +// GroupRemoteInfoHubspotTeam Remote info for HubSpot team. +type GroupRemoteInfoHubspotTeam struct { + // The ID of the HubSpot team. + TeamId string `json:"team_id"` +} + +type _GroupRemoteInfoHubspotTeam GroupRemoteInfoHubspotTeam + +// NewGroupRemoteInfoHubspotTeam instantiates a new GroupRemoteInfoHubspotTeam 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 NewGroupRemoteInfoHubspotTeam(teamId string) *GroupRemoteInfoHubspotTeam { + this := GroupRemoteInfoHubspotTeam{} + this.TeamId = teamId + return &this +} + +// NewGroupRemoteInfoHubspotTeamWithDefaults instantiates a new GroupRemoteInfoHubspotTeam 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 NewGroupRemoteInfoHubspotTeamWithDefaults() *GroupRemoteInfoHubspotTeam { + this := GroupRemoteInfoHubspotTeam{} + return &this +} + +// GetTeamId returns the TeamId field value +func (o *GroupRemoteInfoHubspotTeam) GetTeamId() string { + if o == nil { + var ret string + return ret + } + + return o.TeamId +} + +// GetTeamIdOk returns a tuple with the TeamId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoHubspotTeam) GetTeamIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TeamId, true +} + +// SetTeamId sets field value +func (o *GroupRemoteInfoHubspotTeam) SetTeamId(v string) { + o.TeamId = v +} + +func (o GroupRemoteInfoHubspotTeam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoHubspotTeam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["team_id"] = o.TeamId + return toSerialize, nil +} + +func (o *GroupRemoteInfoHubspotTeam) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "team_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) + } + } + + varGroupRemoteInfoHubspotTeam := _GroupRemoteInfoHubspotTeam{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoHubspotTeam) + + if err != nil { + return err + } + + *o = GroupRemoteInfoHubspotTeam(varGroupRemoteInfoHubspotTeam) + + return err +} + +type NullableGroupRemoteInfoHubspotTeam struct { + value *GroupRemoteInfoHubspotTeam + isSet bool +} + +func (v NullableGroupRemoteInfoHubspotTeam) Get() *GroupRemoteInfoHubspotTeam { + return v.value +} + +func (v *NullableGroupRemoteInfoHubspotTeam) Set(val *GroupRemoteInfoHubspotTeam) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoHubspotTeam) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoHubspotTeam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoHubspotTeam(val *GroupRemoteInfoHubspotTeam) *NullableGroupRemoteInfoHubspotTeam { + return &NullableGroupRemoteInfoHubspotTeam{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoHubspotTeam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoHubspotTeam) 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..37840a8 --- /dev/null +++ b/model_group_remote_info_incidentio_on_call_schedule.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoIncidentioOnCallSchedule) + + if err != nil { + return err + } + + *o = GroupRemoteInfoIncidentioOnCallSchedule(varGroupRemoteInfoIncidentioOnCallSchedule) + + 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_okta_group_rule.go b/model_group_remote_info_okta_group_rule.go new file mode 100644 index 0000000..d5e6d2a --- /dev/null +++ b/model_group_remote_info_okta_group_rule.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoOktaGroupRule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoOktaGroupRule{} + +// GroupRemoteInfoOktaGroupRule Remote info for Okta Directory group rule. +type GroupRemoteInfoOktaGroupRule struct { + // The id of the Okta group rule. + RuleId string `json:"rule_id"` +} + +type _GroupRemoteInfoOktaGroupRule GroupRemoteInfoOktaGroupRule + +// NewGroupRemoteInfoOktaGroupRule instantiates a new GroupRemoteInfoOktaGroupRule 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 NewGroupRemoteInfoOktaGroupRule(ruleId string) *GroupRemoteInfoOktaGroupRule { + this := GroupRemoteInfoOktaGroupRule{} + this.RuleId = ruleId + return &this +} + +// NewGroupRemoteInfoOktaGroupRuleWithDefaults instantiates a new GroupRemoteInfoOktaGroupRule 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 NewGroupRemoteInfoOktaGroupRuleWithDefaults() *GroupRemoteInfoOktaGroupRule { + this := GroupRemoteInfoOktaGroupRule{} + return &this +} + +// GetRuleId returns the RuleId field value +func (o *GroupRemoteInfoOktaGroupRule) GetRuleId() string { + if o == nil { + var ret string + return ret + } + + return o.RuleId +} + +// GetRuleIdOk returns a tuple with the RuleId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoOktaGroupRule) GetRuleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RuleId, true +} + +// SetRuleId sets field value +func (o *GroupRemoteInfoOktaGroupRule) SetRuleId(v string) { + o.RuleId = v +} + +func (o GroupRemoteInfoOktaGroupRule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoOktaGroupRule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["rule_id"] = o.RuleId + return toSerialize, nil +} + +func (o *GroupRemoteInfoOktaGroupRule) 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{ + "rule_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) + } + } + + varGroupRemoteInfoOktaGroupRule := _GroupRemoteInfoOktaGroupRule{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoOktaGroupRule) + + if err != nil { + return err + } + + *o = GroupRemoteInfoOktaGroupRule(varGroupRemoteInfoOktaGroupRule) + + return err +} + +type NullableGroupRemoteInfoOktaGroupRule struct { + value *GroupRemoteInfoOktaGroupRule + isSet bool +} + +func (v NullableGroupRemoteInfoOktaGroupRule) Get() *GroupRemoteInfoOktaGroupRule { + return v.value +} + +func (v *NullableGroupRemoteInfoOktaGroupRule) Set(val *GroupRemoteInfoOktaGroupRule) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoOktaGroupRule) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoOktaGroupRule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoOktaGroupRule(val *GroupRemoteInfoOktaGroupRule) *NullableGroupRemoteInfoOktaGroupRule { + return &NullableGroupRemoteInfoOktaGroupRule{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoOktaGroupRule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoOktaGroupRule) 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..a92c39b --- /dev/null +++ b/model_group_remote_info_pagerduty_on_call_schedule.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoPagerdutyOnCallSchedule) + + if err != nil { + return err + } + + *o = GroupRemoteInfoPagerdutyOnCallSchedule(varGroupRemoteInfoPagerdutyOnCallSchedule) + + 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..a813838 --- /dev/null +++ b/model_group_remote_info_rootly_on_call_schedule.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoRootlyOnCallSchedule) + + if err != nil { + return err + } + + *o = GroupRemoteInfoRootlyOnCallSchedule(varGroupRemoteInfoRootlyOnCallSchedule) + + 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_slack_user_group.go b/model_group_remote_info_slack_user_group.go new file mode 100644 index 0000000..5b3d5c8 --- /dev/null +++ b/model_group_remote_info_slack_user_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoSlackUserGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoSlackUserGroup{} + +// GroupRemoteInfoSlackUserGroup Remote info for Slack user group. +type GroupRemoteInfoSlackUserGroup struct { + // The id of the Slack user group. + GroupId string `json:"group_id"` +} + +type _GroupRemoteInfoSlackUserGroup GroupRemoteInfoSlackUserGroup + +// NewGroupRemoteInfoSlackUserGroup instantiates a new GroupRemoteInfoSlackUserGroup 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 NewGroupRemoteInfoSlackUserGroup(groupId string) *GroupRemoteInfoSlackUserGroup { + this := GroupRemoteInfoSlackUserGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoSlackUserGroupWithDefaults instantiates a new GroupRemoteInfoSlackUserGroup 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 NewGroupRemoteInfoSlackUserGroupWithDefaults() *GroupRemoteInfoSlackUserGroup { + this := GroupRemoteInfoSlackUserGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoSlackUserGroup) 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 *GroupRemoteInfoSlackUserGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoSlackUserGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoSlackUserGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoSlackUserGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + return toSerialize, nil +} + +func (o *GroupRemoteInfoSlackUserGroup) 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) + } + } + + varGroupRemoteInfoSlackUserGroup := _GroupRemoteInfoSlackUserGroup{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoSlackUserGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoSlackUserGroup(varGroupRemoteInfoSlackUserGroup) + + return err +} + +type NullableGroupRemoteInfoSlackUserGroup struct { + value *GroupRemoteInfoSlackUserGroup + isSet bool +} + +func (v NullableGroupRemoteInfoSlackUserGroup) Get() *GroupRemoteInfoSlackUserGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoSlackUserGroup) Set(val *GroupRemoteInfoSlackUserGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoSlackUserGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoSlackUserGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoSlackUserGroup(val *GroupRemoteInfoSlackUserGroup) *NullableGroupRemoteInfoSlackUserGroup { + return &NullableGroupRemoteInfoSlackUserGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoSlackUserGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoSlackUserGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_snowflake_role.go b/model_group_remote_info_snowflake_role.go new file mode 100644 index 0000000..4b111f8 --- /dev/null +++ b/model_group_remote_info_snowflake_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoSnowflakeRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoSnowflakeRole{} + +// GroupRemoteInfoSnowflakeRole Remote info for Snowflake role. +type GroupRemoteInfoSnowflakeRole struct { + // The id of the Snowflake role. + RoleId string `json:"role_id"` +} + +type _GroupRemoteInfoSnowflakeRole GroupRemoteInfoSnowflakeRole + +// NewGroupRemoteInfoSnowflakeRole instantiates a new GroupRemoteInfoSnowflakeRole 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 NewGroupRemoteInfoSnowflakeRole(roleId string) *GroupRemoteInfoSnowflakeRole { + this := GroupRemoteInfoSnowflakeRole{} + this.RoleId = roleId + return &this +} + +// NewGroupRemoteInfoSnowflakeRoleWithDefaults instantiates a new GroupRemoteInfoSnowflakeRole 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 NewGroupRemoteInfoSnowflakeRoleWithDefaults() *GroupRemoteInfoSnowflakeRole { + this := GroupRemoteInfoSnowflakeRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *GroupRemoteInfoSnowflakeRole) 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 *GroupRemoteInfoSnowflakeRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *GroupRemoteInfoSnowflakeRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o GroupRemoteInfoSnowflakeRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoSnowflakeRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *GroupRemoteInfoSnowflakeRole) 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) + } + } + + varGroupRemoteInfoSnowflakeRole := _GroupRemoteInfoSnowflakeRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoSnowflakeRole) + + if err != nil { + return err + } + + *o = GroupRemoteInfoSnowflakeRole(varGroupRemoteInfoSnowflakeRole) + + return err +} + +type NullableGroupRemoteInfoSnowflakeRole struct { + value *GroupRemoteInfoSnowflakeRole + isSet bool +} + +func (v NullableGroupRemoteInfoSnowflakeRole) Get() *GroupRemoteInfoSnowflakeRole { + return v.value +} + +func (v *NullableGroupRemoteInfoSnowflakeRole) Set(val *GroupRemoteInfoSnowflakeRole) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoSnowflakeRole) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoSnowflakeRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoSnowflakeRole(val *GroupRemoteInfoSnowflakeRole) *NullableGroupRemoteInfoSnowflakeRole { + return &NullableGroupRemoteInfoSnowflakeRole{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoSnowflakeRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoSnowflakeRole) 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..dd632f9 --- /dev/null +++ b/model_group_remote_info_tailscale_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoTailscaleGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoTailscaleGroup(varGroupRemoteInfoTailscaleGroup) + + 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_remote_info_twingate_group.go b/model_group_remote_info_twingate_group.go new file mode 100644 index 0000000..d3cde07 --- /dev/null +++ b/model_group_remote_info_twingate_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoTwingateGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoTwingateGroup{} + +// GroupRemoteInfoTwingateGroup Remote info for Twingate group. +type GroupRemoteInfoTwingateGroup struct { + // The id of the Twingate group. + GroupId string `json:"group_id"` +} + +type _GroupRemoteInfoTwingateGroup GroupRemoteInfoTwingateGroup + +// NewGroupRemoteInfoTwingateGroup instantiates a new GroupRemoteInfoTwingateGroup 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 NewGroupRemoteInfoTwingateGroup(groupId string) *GroupRemoteInfoTwingateGroup { + this := GroupRemoteInfoTwingateGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoTwingateGroupWithDefaults instantiates a new GroupRemoteInfoTwingateGroup 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 NewGroupRemoteInfoTwingateGroupWithDefaults() *GroupRemoteInfoTwingateGroup { + this := GroupRemoteInfoTwingateGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoTwingateGroup) 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 *GroupRemoteInfoTwingateGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoTwingateGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoTwingateGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoTwingateGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + return toSerialize, nil +} + +func (o *GroupRemoteInfoTwingateGroup) 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) + } + } + + varGroupRemoteInfoTwingateGroup := _GroupRemoteInfoTwingateGroup{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoTwingateGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoTwingateGroup(varGroupRemoteInfoTwingateGroup) + + return err +} + +type NullableGroupRemoteInfoTwingateGroup struct { + value *GroupRemoteInfoTwingateGroup + isSet bool +} + +func (v NullableGroupRemoteInfoTwingateGroup) Get() *GroupRemoteInfoTwingateGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoTwingateGroup) Set(val *GroupRemoteInfoTwingateGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoTwingateGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoTwingateGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoTwingateGroup(val *GroupRemoteInfoTwingateGroup) *NullableGroupRemoteInfoTwingateGroup { + return &NullableGroupRemoteInfoTwingateGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoTwingateGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoTwingateGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_twingate_group_synced.go b/model_group_remote_info_twingate_group_synced.go new file mode 100644 index 0000000..3403cff --- /dev/null +++ b/model_group_remote_info_twingate_group_synced.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoTwingateGroupSynced type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoTwingateGroupSynced{} + +// GroupRemoteInfoTwingateGroupSynced Remote info for Twingate synced group. +type GroupRemoteInfoTwingateGroupSynced struct { + // The id of the Twingate synced group. + GroupId string `json:"group_id"` +} + +type _GroupRemoteInfoTwingateGroupSynced GroupRemoteInfoTwingateGroupSynced + +// NewGroupRemoteInfoTwingateGroupSynced instantiates a new GroupRemoteInfoTwingateGroupSynced 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 NewGroupRemoteInfoTwingateGroupSynced(groupId string) *GroupRemoteInfoTwingateGroupSynced { + this := GroupRemoteInfoTwingateGroupSynced{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoTwingateGroupSyncedWithDefaults instantiates a new GroupRemoteInfoTwingateGroupSynced 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 NewGroupRemoteInfoTwingateGroupSyncedWithDefaults() *GroupRemoteInfoTwingateGroupSynced { + this := GroupRemoteInfoTwingateGroupSynced{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoTwingateGroupSynced) 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 *GroupRemoteInfoTwingateGroupSynced) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoTwingateGroupSynced) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoTwingateGroupSynced) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoTwingateGroupSynced) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + return toSerialize, nil +} + +func (o *GroupRemoteInfoTwingateGroupSynced) 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) + } + } + + varGroupRemoteInfoTwingateGroupSynced := _GroupRemoteInfoTwingateGroupSynced{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoTwingateGroupSynced) + + if err != nil { + return err + } + + *o = GroupRemoteInfoTwingateGroupSynced(varGroupRemoteInfoTwingateGroupSynced) + + return err +} + +type NullableGroupRemoteInfoTwingateGroupSynced struct { + value *GroupRemoteInfoTwingateGroupSynced + isSet bool +} + +func (v NullableGroupRemoteInfoTwingateGroupSynced) Get() *GroupRemoteInfoTwingateGroupSynced { + return v.value +} + +func (v *NullableGroupRemoteInfoTwingateGroupSynced) Set(val *GroupRemoteInfoTwingateGroupSynced) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoTwingateGroupSynced) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoTwingateGroupSynced) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoTwingateGroupSynced(val *GroupRemoteInfoTwingateGroupSynced) *NullableGroupRemoteInfoTwingateGroupSynced { + return &NullableGroupRemoteInfoTwingateGroupSynced{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoTwingateGroupSynced) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoTwingateGroupSynced) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_workday_user_security_group.go b/model_group_remote_info_workday_user_security_group.go new file mode 100644 index 0000000..fa34c82 --- /dev/null +++ b/model_group_remote_info_workday_user_security_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoWorkdayUserSecurityGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoWorkdayUserSecurityGroup{} + +// GroupRemoteInfoWorkdayUserSecurityGroup Remote info for Workday User Security group. +type GroupRemoteInfoWorkdayUserSecurityGroup struct { + // The id of the Workday User Security group. + GroupId string `json:"group_id"` +} + +type _GroupRemoteInfoWorkdayUserSecurityGroup GroupRemoteInfoWorkdayUserSecurityGroup + +// NewGroupRemoteInfoWorkdayUserSecurityGroup instantiates a new GroupRemoteInfoWorkdayUserSecurityGroup 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 NewGroupRemoteInfoWorkdayUserSecurityGroup(groupId string) *GroupRemoteInfoWorkdayUserSecurityGroup { + this := GroupRemoteInfoWorkdayUserSecurityGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoWorkdayUserSecurityGroupWithDefaults instantiates a new GroupRemoteInfoWorkdayUserSecurityGroup 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 NewGroupRemoteInfoWorkdayUserSecurityGroupWithDefaults() *GroupRemoteInfoWorkdayUserSecurityGroup { + this := GroupRemoteInfoWorkdayUserSecurityGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoWorkdayUserSecurityGroup) 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 *GroupRemoteInfoWorkdayUserSecurityGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoWorkdayUserSecurityGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoWorkdayUserSecurityGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoWorkdayUserSecurityGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + return toSerialize, nil +} + +func (o *GroupRemoteInfoWorkdayUserSecurityGroup) 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) + } + } + + varGroupRemoteInfoWorkdayUserSecurityGroup := _GroupRemoteInfoWorkdayUserSecurityGroup{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoWorkdayUserSecurityGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoWorkdayUserSecurityGroup(varGroupRemoteInfoWorkdayUserSecurityGroup) + + return err +} + +type NullableGroupRemoteInfoWorkdayUserSecurityGroup struct { + value *GroupRemoteInfoWorkdayUserSecurityGroup + isSet bool +} + +func (v NullableGroupRemoteInfoWorkdayUserSecurityGroup) Get() *GroupRemoteInfoWorkdayUserSecurityGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoWorkdayUserSecurityGroup) Set(val *GroupRemoteInfoWorkdayUserSecurityGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoWorkdayUserSecurityGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoWorkdayUserSecurityGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoWorkdayUserSecurityGroup(val *GroupRemoteInfoWorkdayUserSecurityGroup) *NullableGroupRemoteInfoWorkdayUserSecurityGroup { + return &NullableGroupRemoteInfoWorkdayUserSecurityGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoWorkdayUserSecurityGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoWorkdayUserSecurityGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_zendesk_group.go b/model_group_remote_info_zendesk_group.go new file mode 100644 index 0000000..3c3abad --- /dev/null +++ b/model_group_remote_info_zendesk_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoZendeskGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoZendeskGroup{} + +// GroupRemoteInfoZendeskGroup Remote info for Zendesk group. +type GroupRemoteInfoZendeskGroup struct { + // The ID of the Zendesk group. + GroupId string `json:"group_id"` +} + +type _GroupRemoteInfoZendeskGroup GroupRemoteInfoZendeskGroup + +// NewGroupRemoteInfoZendeskGroup instantiates a new GroupRemoteInfoZendeskGroup 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 NewGroupRemoteInfoZendeskGroup(groupId string) *GroupRemoteInfoZendeskGroup { + this := GroupRemoteInfoZendeskGroup{} + this.GroupId = groupId + return &this +} + +// NewGroupRemoteInfoZendeskGroupWithDefaults instantiates a new GroupRemoteInfoZendeskGroup 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 NewGroupRemoteInfoZendeskGroupWithDefaults() *GroupRemoteInfoZendeskGroup { + this := GroupRemoteInfoZendeskGroup{} + return &this +} + +// GetGroupId returns the GroupId field value +func (o *GroupRemoteInfoZendeskGroup) 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 *GroupRemoteInfoZendeskGroup) GetGroupIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *GroupRemoteInfoZendeskGroup) SetGroupId(v string) { + o.GroupId = v +} + +func (o GroupRemoteInfoZendeskGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoZendeskGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group_id"] = o.GroupId + return toSerialize, nil +} + +func (o *GroupRemoteInfoZendeskGroup) 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) + } + } + + varGroupRemoteInfoZendeskGroup := _GroupRemoteInfoZendeskGroup{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoZendeskGroup) + + if err != nil { + return err + } + + *o = GroupRemoteInfoZendeskGroup(varGroupRemoteInfoZendeskGroup) + + return err +} + +type NullableGroupRemoteInfoZendeskGroup struct { + value *GroupRemoteInfoZendeskGroup + isSet bool +} + +func (v NullableGroupRemoteInfoZendeskGroup) Get() *GroupRemoteInfoZendeskGroup { + return v.value +} + +func (v *NullableGroupRemoteInfoZendeskGroup) Set(val *GroupRemoteInfoZendeskGroup) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoZendeskGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoZendeskGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoZendeskGroup(val *GroupRemoteInfoZendeskGroup) *NullableGroupRemoteInfoZendeskGroup { + return &NullableGroupRemoteInfoZendeskGroup{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoZendeskGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoZendeskGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_group_remote_info_zendesk_organization.go b/model_group_remote_info_zendesk_organization.go new file mode 100644 index 0000000..a0e4021 --- /dev/null +++ b/model_group_remote_info_zendesk_organization.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the GroupRemoteInfoZendeskOrganization type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GroupRemoteInfoZendeskOrganization{} + +// GroupRemoteInfoZendeskOrganization Remote info for Zendesk organization. +type GroupRemoteInfoZendeskOrganization struct { + // The ID of the Zendesk organization. + OrganizationId string `json:"organization_id"` +} + +type _GroupRemoteInfoZendeskOrganization GroupRemoteInfoZendeskOrganization + +// NewGroupRemoteInfoZendeskOrganization instantiates a new GroupRemoteInfoZendeskOrganization 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 NewGroupRemoteInfoZendeskOrganization(organizationId string) *GroupRemoteInfoZendeskOrganization { + this := GroupRemoteInfoZendeskOrganization{} + this.OrganizationId = organizationId + return &this +} + +// NewGroupRemoteInfoZendeskOrganizationWithDefaults instantiates a new GroupRemoteInfoZendeskOrganization 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 NewGroupRemoteInfoZendeskOrganizationWithDefaults() *GroupRemoteInfoZendeskOrganization { + this := GroupRemoteInfoZendeskOrganization{} + return &this +} + +// GetOrganizationId returns the OrganizationId field value +func (o *GroupRemoteInfoZendeskOrganization) GetOrganizationId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationId +} + +// GetOrganizationIdOk returns a tuple with the OrganizationId field value +// and a boolean to check if the value has been set. +func (o *GroupRemoteInfoZendeskOrganization) GetOrganizationIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationId, true +} + +// SetOrganizationId sets field value +func (o *GroupRemoteInfoZendeskOrganization) SetOrganizationId(v string) { + o.OrganizationId = v +} + +func (o GroupRemoteInfoZendeskOrganization) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GroupRemoteInfoZendeskOrganization) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["organization_id"] = o.OrganizationId + return toSerialize, nil +} + +func (o *GroupRemoteInfoZendeskOrganization) 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{ + "organization_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) + } + } + + varGroupRemoteInfoZendeskOrganization := _GroupRemoteInfoZendeskOrganization{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGroupRemoteInfoZendeskOrganization) + + if err != nil { + return err + } + + *o = GroupRemoteInfoZendeskOrganization(varGroupRemoteInfoZendeskOrganization) + + return err +} + +type NullableGroupRemoteInfoZendeskOrganization struct { + value *GroupRemoteInfoZendeskOrganization + isSet bool +} + +func (v NullableGroupRemoteInfoZendeskOrganization) Get() *GroupRemoteInfoZendeskOrganization { + return v.value +} + +func (v *NullableGroupRemoteInfoZendeskOrganization) Set(val *GroupRemoteInfoZendeskOrganization) { + v.value = val + v.isSet = true +} + +func (v NullableGroupRemoteInfoZendeskOrganization) IsSet() bool { + return v.isSet +} + +func (v *NullableGroupRemoteInfoZendeskOrganization) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGroupRemoteInfoZendeskOrganization(val *GroupRemoteInfoZendeskOrganization) *NullableGroupRemoteInfoZendeskOrganization { + return &NullableGroupRemoteInfoZendeskOrganization{value: val, isSet: true} +} + +func (v NullableGroupRemoteInfoZendeskOrganization) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGroupRemoteInfoZendeskOrganization) 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 073965c..0052a2c 100644 --- a/model_group_resource.go +++ b/model_group_resource.go @@ -13,6 +13,7 @@ package opal import ( "encoding/json" + "time" "bytes" "fmt" ) @@ -26,6 +27,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"` } @@ -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 return toSerialize, nil } diff --git a/model_group_type_enum.go b/model_group_type_enum.go index 000f92e..358b03f 100644 --- a/model_group_type_enum.go +++ b/model_group_type_enum.go @@ -40,6 +40,19 @@ 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" + GROUPTYPEENUM_GIT_HUB_ENTERPRISE_TEAM GroupTypeEnum = "GIT_HUB_ENTERPRISE_TEAM" + GROUPTYPEENUM_GRAFANA_TEAM GroupTypeEnum = "GRAFANA_TEAM" + GROUPTYPEENUM_CLICKHOUSE_ROLE GroupTypeEnum = "CLICKHOUSE_ROLE" + GROUPTYPEENUM_SLACK_USER_GROUP GroupTypeEnum = "SLACK_USER_GROUP" + GROUPTYPEENUM_TWINGATE_GROUP GroupTypeEnum = "TWINGATE_GROUP" + GROUPTYPEENUM_TWINGATE_GROUP_SYNCED GroupTypeEnum = "TWINGATE_GROUP_SYNCED" + GROUPTYPEENUM_ZENDESK_GROUP GroupTypeEnum = "ZENDESK_GROUP" + GROUPTYPEENUM_ZENDESK_ORGANIZATION GroupTypeEnum = "ZENDESK_ORGANIZATION" + GROUPTYPEENUM_HUBSPOT_TEAM GroupTypeEnum = "HUBSPOT_TEAM" ) // All allowed values of GroupTypeEnum enum @@ -63,6 +76,19 @@ 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", + "GIT_HUB_ENTERPRISE_TEAM", + "GRAFANA_TEAM", + "CLICKHOUSE_ROLE", + "SLACK_USER_GROUP", + "TWINGATE_GROUP", + "TWINGATE_GROUP_SYNCED", + "ZENDESK_GROUP", + "ZENDESK_ORGANIZATION", + "HUBSPOT_TEAM", } func (v *GroupTypeEnum) UnmarshalJSON(src []byte) error { diff --git a/model_group_user.go b/model_group_user.go index 16ed243..c443bc2 100644 --- a/model_group_user.go +++ b/model_group_user.go @@ -25,6 +25,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 @@ -284,6 +340,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", diff --git a/model_group_user_list.go b/model_group_user_list.go index 3b8fe7b..9d54072 100644 --- a/model_group_user_list.go +++ b/model_group_user_list.go @@ -21,6 +21,10 @@ var _ MappedNullable = &GroupUserList{} // GroupUserList struct for GroupUserList type GroupUserList struct { Results []GroupUser `json:"results,omitempty"` + // The cursor with which to continue pagination if additional result pages exist. + Next *string `json:"next,omitempty"` + // The cursor used to obtain the current result page. + Previous *string `json:"previous,omitempty"` } // NewGroupUserList instantiates a new GroupUserList object @@ -72,6 +76,70 @@ func (o *GroupUserList) SetResults(v []GroupUser) { o.Results = v } +// GetNext returns the Next field value if set, zero value otherwise. +func (o *GroupUserList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupUserList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *GroupUserList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *GroupUserList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *GroupUserList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GroupUserList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *GroupUserList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *GroupUserList) SetPrevious(v string) { + o.Previous = &v +} + func (o GroupUserList) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -85,6 +153,12 @@ func (o GroupUserList) ToMap() (map[string]interface{}, error) { if !IsNil(o.Results) { toSerialize["results"] = o.Results } + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } return toSerialize, nil } diff --git a/model_idp_group_mapping.go b/model_idp_group_mapping.go index d1d5e4b..cdb8fb5 100644 --- a/model_idp_group_mapping.go +++ b/model_idp_group_mapping.go @@ -22,6 +22,8 @@ var _ MappedNullable = &IdpGroupMapping{} // IdpGroupMapping Information about a group mapping. type IdpGroupMapping struct { + // The ID of the app resource. + AppResourceId *string `json:"app_resource_id,omitempty"` // The ID of the group. GroupId string `json:"group_id"` // The alias of the group. @@ -51,6 +53,38 @@ func NewIdpGroupMappingWithDefaults() *IdpGroupMapping { return &this } +// GetAppResourceId returns the AppResourceId field value if set, zero value otherwise. +func (o *IdpGroupMapping) GetAppResourceId() string { + if o == nil || IsNil(o.AppResourceId) { + var ret string + return ret + } + return *o.AppResourceId +} + +// GetAppResourceIdOk returns a tuple with the AppResourceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IdpGroupMapping) GetAppResourceIdOk() (*string, bool) { + if o == nil || IsNil(o.AppResourceId) { + return nil, false + } + return o.AppResourceId, true +} + +// HasAppResourceId returns a boolean if a field has been set. +func (o *IdpGroupMapping) HasAppResourceId() bool { + if o != nil && !IsNil(o.AppResourceId) { + return true + } + + return false +} + +// SetAppResourceId gets a reference to the given string and assigns it to the AppResourceId field. +func (o *IdpGroupMapping) SetAppResourceId(v string) { + o.AppResourceId = &v +} + // GetGroupId returns the GroupId field value func (o *IdpGroupMapping) GetGroupId() string { if o == nil { @@ -141,6 +175,9 @@ func (o IdpGroupMapping) MarshalJSON() ([]byte, error) { func (o IdpGroupMapping) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.AppResourceId) { + toSerialize["app_resource_id"] = o.AppResourceId + } toSerialize["group_id"] = o.GroupId if !IsNil(o.Alias) { toSerialize["alias"] = o.Alias diff --git a/model_opal_node_query.go b/model_opal_node_query.go new file mode 100644 index 0000000..ce668c8 --- /dev/null +++ b/model_opal_node_query.go @@ -0,0 +1,269 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the OpalNodeQuery type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpalNodeQuery{} + +// OpalNodeQuery Request body for a NODE-type OpalQuery. Returns entities (users, resources, groups) matching the given filters. +type OpalNodeQuery struct { + Type string `json:"type"` + Query *OpalNodeQueryBody `json:"query,omitempty"` + // Maximum number of results to return. Defaults to 200. + First *int32 `json:"first,omitempty"` + // Cursor from a previous response to fetch the next page of results. + After *string `json:"after,omitempty"` +} + +type _OpalNodeQuery OpalNodeQuery + +// NewOpalNodeQuery instantiates a new OpalNodeQuery 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 NewOpalNodeQuery(type_ string) *OpalNodeQuery { + this := OpalNodeQuery{} + this.Type = type_ + return &this +} + +// NewOpalNodeQueryWithDefaults instantiates a new OpalNodeQuery 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 NewOpalNodeQueryWithDefaults() *OpalNodeQuery { + this := OpalNodeQuery{} + return &this +} + +// GetType returns the Type field value +func (o *OpalNodeQuery) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OpalNodeQuery) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OpalNodeQuery) SetType(v string) { + o.Type = v +} + +// GetQuery returns the Query field value if set, zero value otherwise. +func (o *OpalNodeQuery) GetQuery() OpalNodeQueryBody { + if o == nil || IsNil(o.Query) { + var ret OpalNodeQueryBody + return ret + } + return *o.Query +} + +// GetQueryOk returns a tuple with the Query field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpalNodeQuery) GetQueryOk() (*OpalNodeQueryBody, bool) { + if o == nil || IsNil(o.Query) { + return nil, false + } + return o.Query, true +} + +// HasQuery returns a boolean if a field has been set. +func (o *OpalNodeQuery) HasQuery() bool { + if o != nil && !IsNil(o.Query) { + return true + } + + return false +} + +// SetQuery gets a reference to the given OpalNodeQueryBody and assigns it to the Query field. +func (o *OpalNodeQuery) SetQuery(v OpalNodeQueryBody) { + o.Query = &v +} + +// GetFirst returns the First field value if set, zero value otherwise. +func (o *OpalNodeQuery) GetFirst() int32 { + if o == nil || IsNil(o.First) { + var ret int32 + return ret + } + return *o.First +} + +// GetFirstOk returns a tuple with the First field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpalNodeQuery) GetFirstOk() (*int32, bool) { + if o == nil || IsNil(o.First) { + return nil, false + } + return o.First, true +} + +// HasFirst returns a boolean if a field has been set. +func (o *OpalNodeQuery) HasFirst() bool { + if o != nil && !IsNil(o.First) { + return true + } + + return false +} + +// SetFirst gets a reference to the given int32 and assigns it to the First field. +func (o *OpalNodeQuery) SetFirst(v int32) { + o.First = &v +} + +// GetAfter returns the After field value if set, zero value otherwise. +func (o *OpalNodeQuery) GetAfter() string { + if o == nil || IsNil(o.After) { + var ret string + return ret + } + return *o.After +} + +// GetAfterOk returns a tuple with the After field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpalNodeQuery) GetAfterOk() (*string, bool) { + if o == nil || IsNil(o.After) { + return nil, false + } + return o.After, true +} + +// HasAfter returns a boolean if a field has been set. +func (o *OpalNodeQuery) HasAfter() bool { + if o != nil && !IsNil(o.After) { + return true + } + + return false +} + +// SetAfter gets a reference to the given string and assigns it to the After field. +func (o *OpalNodeQuery) SetAfter(v string) { + o.After = &v +} + +func (o OpalNodeQuery) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpalNodeQuery) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + if !IsNil(o.Query) { + toSerialize["query"] = o.Query + } + if !IsNil(o.First) { + toSerialize["first"] = o.First + } + if !IsNil(o.After) { + toSerialize["after"] = o.After + } + return toSerialize, nil +} + +func (o *OpalNodeQuery) 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{ + "type", + } + + 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) + } + } + + varOpalNodeQuery := _OpalNodeQuery{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOpalNodeQuery) + + if err != nil { + return err + } + + *o = OpalNodeQuery(varOpalNodeQuery) + + return err +} + +type NullableOpalNodeQuery struct { + value *OpalNodeQuery + isSet bool +} + +func (v NullableOpalNodeQuery) Get() *OpalNodeQuery { + return v.value +} + +func (v *NullableOpalNodeQuery) Set(val *OpalNodeQuery) { + v.value = val + v.isSet = true +} + +func (v NullableOpalNodeQuery) IsSet() bool { + return v.isSet +} + +func (v *NullableOpalNodeQuery) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpalNodeQuery(val *OpalNodeQuery) *NullableOpalNodeQuery { + return &NullableOpalNodeQuery{value: val, isSet: true} +} + +func (v NullableOpalNodeQuery) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpalNodeQuery) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_opal_node_query_body.go b/model_opal_node_query_body.go new file mode 100644 index 0000000..9bb9406 --- /dev/null +++ b/model_opal_node_query_body.go @@ -0,0 +1,163 @@ +/* +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" +) + +// checks if the OpalNodeQueryBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpalNodeQueryBody{} + +// OpalNodeQueryBody The filter body for a NODE-type OpalQuery. +type OpalNodeQueryBody struct { + NodeFilters *AccessEntityFilters `json:"nodeFilters,omitempty"` + AccessFilters *AccessRelationshipFilters `json:"accessFilters,omitempty"` +} + +// NewOpalNodeQueryBody instantiates a new OpalNodeQueryBody 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 NewOpalNodeQueryBody() *OpalNodeQueryBody { + this := OpalNodeQueryBody{} + return &this +} + +// NewOpalNodeQueryBodyWithDefaults instantiates a new OpalNodeQueryBody 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 NewOpalNodeQueryBodyWithDefaults() *OpalNodeQueryBody { + this := OpalNodeQueryBody{} + return &this +} + +// GetNodeFilters returns the NodeFilters field value if set, zero value otherwise. +func (o *OpalNodeQueryBody) GetNodeFilters() AccessEntityFilters { + if o == nil || IsNil(o.NodeFilters) { + var ret AccessEntityFilters + return ret + } + return *o.NodeFilters +} + +// GetNodeFiltersOk returns a tuple with the NodeFilters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpalNodeQueryBody) GetNodeFiltersOk() (*AccessEntityFilters, bool) { + if o == nil || IsNil(o.NodeFilters) { + return nil, false + } + return o.NodeFilters, true +} + +// HasNodeFilters returns a boolean if a field has been set. +func (o *OpalNodeQueryBody) HasNodeFilters() bool { + if o != nil && !IsNil(o.NodeFilters) { + return true + } + + return false +} + +// SetNodeFilters gets a reference to the given AccessEntityFilters and assigns it to the NodeFilters field. +func (o *OpalNodeQueryBody) SetNodeFilters(v AccessEntityFilters) { + o.NodeFilters = &v +} + +// GetAccessFilters returns the AccessFilters field value if set, zero value otherwise. +func (o *OpalNodeQueryBody) GetAccessFilters() AccessRelationshipFilters { + if o == nil || IsNil(o.AccessFilters) { + var ret AccessRelationshipFilters + return ret + } + return *o.AccessFilters +} + +// GetAccessFiltersOk returns a tuple with the AccessFilters field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OpalNodeQueryBody) GetAccessFiltersOk() (*AccessRelationshipFilters, bool) { + if o == nil || IsNil(o.AccessFilters) { + return nil, false + } + return o.AccessFilters, true +} + +// HasAccessFilters returns a boolean if a field has been set. +func (o *OpalNodeQueryBody) HasAccessFilters() bool { + if o != nil && !IsNil(o.AccessFilters) { + return true + } + + return false +} + +// SetAccessFilters gets a reference to the given AccessRelationshipFilters and assigns it to the AccessFilters field. +func (o *OpalNodeQueryBody) SetAccessFilters(v AccessRelationshipFilters) { + o.AccessFilters = &v +} + +func (o OpalNodeQueryBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpalNodeQueryBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.NodeFilters) { + toSerialize["nodeFilters"] = o.NodeFilters + } + if !IsNil(o.AccessFilters) { + toSerialize["accessFilters"] = o.AccessFilters + } + return toSerialize, nil +} + +type NullableOpalNodeQueryBody struct { + value *OpalNodeQueryBody + isSet bool +} + +func (v NullableOpalNodeQueryBody) Get() *OpalNodeQueryBody { + return v.value +} + +func (v *NullableOpalNodeQueryBody) Set(val *OpalNodeQueryBody) { + v.value = val + v.isSet = true +} + +func (v NullableOpalNodeQueryBody) IsSet() bool { + return v.isSet +} + +func (v *NullableOpalNodeQueryBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpalNodeQueryBody(val *OpalNodeQueryBody) *NullableOpalNodeQueryBody { + return &NullableOpalNodeQueryBody{value: val, isSet: true} +} + +func (v NullableOpalNodeQueryBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpalNodeQueryBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_opal_node_query_results.go b/model_opal_node_query_results.go new file mode 100644 index 0000000..e205d7b --- /dev/null +++ b/model_opal_node_query_results.go @@ -0,0 +1,216 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the OpalNodeQueryResults type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpalNodeQueryResults{} + +// OpalNodeQueryResults Paginated results of a NODE-type OpalQuery — one edge per matched entity (user, resource, or group). +type OpalNodeQueryResults struct { + Type string `json:"type"` + // List of matched entities. + Edges []OpalQueryResultEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` +} + +type _OpalNodeQueryResults OpalNodeQueryResults + +// NewOpalNodeQueryResults instantiates a new OpalNodeQueryResults 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 NewOpalNodeQueryResults(type_ string, edges []OpalQueryResultEdge, pageInfo PageInfo) *OpalNodeQueryResults { + this := OpalNodeQueryResults{} + this.Type = type_ + this.Edges = edges + this.PageInfo = pageInfo + return &this +} + +// NewOpalNodeQueryResultsWithDefaults instantiates a new OpalNodeQueryResults 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 NewOpalNodeQueryResultsWithDefaults() *OpalNodeQueryResults { + this := OpalNodeQueryResults{} + return &this +} + +// GetType returns the Type field value +func (o *OpalNodeQueryResults) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *OpalNodeQueryResults) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *OpalNodeQueryResults) SetType(v string) { + o.Type = v +} + +// GetEdges returns the Edges field value +func (o *OpalNodeQueryResults) GetEdges() []OpalQueryResultEdge { + if o == nil { + var ret []OpalQueryResultEdge + return ret + } + + return o.Edges +} + +// GetEdgesOk returns a tuple with the Edges field value +// and a boolean to check if the value has been set. +func (o *OpalNodeQueryResults) GetEdgesOk() ([]OpalQueryResultEdge, bool) { + if o == nil { + return nil, false + } + return o.Edges, true +} + +// SetEdges sets field value +func (o *OpalNodeQueryResults) SetEdges(v []OpalQueryResultEdge) { + o.Edges = v +} + +// GetPageInfo returns the PageInfo field value +func (o *OpalNodeQueryResults) GetPageInfo() PageInfo { + if o == nil { + var ret PageInfo + return ret + } + + return o.PageInfo +} + +// GetPageInfoOk returns a tuple with the PageInfo field value +// and a boolean to check if the value has been set. +func (o *OpalNodeQueryResults) GetPageInfoOk() (*PageInfo, bool) { + if o == nil { + return nil, false + } + return &o.PageInfo, true +} + +// SetPageInfo sets field value +func (o *OpalNodeQueryResults) SetPageInfo(v PageInfo) { + o.PageInfo = v +} + +func (o OpalNodeQueryResults) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpalNodeQueryResults) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["type"] = o.Type + toSerialize["edges"] = o.Edges + toSerialize["pageInfo"] = o.PageInfo + return toSerialize, nil +} + +func (o *OpalNodeQueryResults) 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{ + "type", + "edges", + "pageInfo", + } + + 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) + } + } + + varOpalNodeQueryResults := _OpalNodeQueryResults{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOpalNodeQueryResults) + + if err != nil { + return err + } + + *o = OpalNodeQueryResults(varOpalNodeQueryResults) + + return err +} + +type NullableOpalNodeQueryResults struct { + value *OpalNodeQueryResults + isSet bool +} + +func (v NullableOpalNodeQueryResults) Get() *OpalNodeQueryResults { + return v.value +} + +func (v *NullableOpalNodeQueryResults) Set(val *OpalNodeQueryResults) { + v.value = val + v.isSet = true +} + +func (v NullableOpalNodeQueryResults) IsSet() bool { + return v.isSet +} + +func (v *NullableOpalNodeQueryResults) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpalNodeQueryResults(val *OpalNodeQueryResults) *NullableOpalNodeQueryResults { + return &NullableOpalNodeQueryResults{value: val, isSet: true} +} + +func (v NullableOpalNodeQueryResults) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpalNodeQueryResults) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_opal_query_result_edge.go b/model_opal_query_result_edge.go new file mode 100644 index 0000000..0bd4ce3 --- /dev/null +++ b/model_opal_query_result_edge.go @@ -0,0 +1,188 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the OpalQueryResultEdge type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpalQueryResultEdge{} + +// OpalQueryResultEdge A single result edge from an OpalQuery, containing the matched entity and its pagination cursor. +type OpalQueryResultEdge struct { + Node OpalQueryResultNode `json:"node"` + // Opaque cursor for this entity, used for pagination. + Cursor string `json:"cursor"` +} + +type _OpalQueryResultEdge OpalQueryResultEdge + +// NewOpalQueryResultEdge instantiates a new OpalQueryResultEdge 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 NewOpalQueryResultEdge(node OpalQueryResultNode, cursor string) *OpalQueryResultEdge { + this := OpalQueryResultEdge{} + this.Node = node + this.Cursor = cursor + return &this +} + +// NewOpalQueryResultEdgeWithDefaults instantiates a new OpalQueryResultEdge 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 NewOpalQueryResultEdgeWithDefaults() *OpalQueryResultEdge { + this := OpalQueryResultEdge{} + return &this +} + +// GetNode returns the Node field value +func (o *OpalQueryResultEdge) GetNode() OpalQueryResultNode { + if o == nil { + var ret OpalQueryResultNode + return ret + } + + return o.Node +} + +// GetNodeOk returns a tuple with the Node field value +// and a boolean to check if the value has been set. +func (o *OpalQueryResultEdge) GetNodeOk() (*OpalQueryResultNode, bool) { + if o == nil { + return nil, false + } + return &o.Node, true +} + +// SetNode sets field value +func (o *OpalQueryResultEdge) SetNode(v OpalQueryResultNode) { + o.Node = v +} + +// GetCursor returns the Cursor field value +func (o *OpalQueryResultEdge) GetCursor() string { + if o == nil { + var ret string + return ret + } + + return o.Cursor +} + +// GetCursorOk returns a tuple with the Cursor field value +// and a boolean to check if the value has been set. +func (o *OpalQueryResultEdge) GetCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cursor, true +} + +// SetCursor sets field value +func (o *OpalQueryResultEdge) SetCursor(v string) { + o.Cursor = v +} + +func (o OpalQueryResultEdge) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpalQueryResultEdge) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["node"] = o.Node + toSerialize["cursor"] = o.Cursor + return toSerialize, nil +} + +func (o *OpalQueryResultEdge) 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{ + "node", + "cursor", + } + + 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) + } + } + + varOpalQueryResultEdge := _OpalQueryResultEdge{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOpalQueryResultEdge) + + if err != nil { + return err + } + + *o = OpalQueryResultEdge(varOpalQueryResultEdge) + + return err +} + +type NullableOpalQueryResultEdge struct { + value *OpalQueryResultEdge + isSet bool +} + +func (v NullableOpalQueryResultEdge) Get() *OpalQueryResultEdge { + return v.value +} + +func (v *NullableOpalQueryResultEdge) Set(val *OpalQueryResultEdge) { + v.value = val + v.isSet = true +} + +func (v NullableOpalQueryResultEdge) IsSet() bool { + return v.isSet +} + +func (v *NullableOpalQueryResultEdge) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpalQueryResultEdge(val *OpalQueryResultEdge) *NullableOpalQueryResultEdge { + return &NullableOpalQueryResultEdge{value: val, isSet: true} +} + +func (v NullableOpalQueryResultEdge) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpalQueryResultEdge) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_opal_query_result_node.go b/model_opal_query_result_node.go new file mode 100644 index 0000000..920ef43 --- /dev/null +++ b/model_opal_query_result_node.go @@ -0,0 +1,246 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the OpalQueryResultNode type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OpalQueryResultNode{} + +// OpalQueryResultNode A matched entity from an OpalQuery result. +type OpalQueryResultNode struct { + // The entity's unique identifier. + Id string `json:"id"` + // The display name of the entity. + Name string `json:"name"` + // The top-level entity type. + EntityType string `json:"entityType"` + EntityItemType EntityItemTypeEnum `json:"entityItemType"` +} + +type _OpalQueryResultNode OpalQueryResultNode + +// NewOpalQueryResultNode instantiates a new OpalQueryResultNode 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 NewOpalQueryResultNode(id string, name string, entityType string, entityItemType EntityItemTypeEnum) *OpalQueryResultNode { + this := OpalQueryResultNode{} + this.Id = id + this.Name = name + this.EntityType = entityType + this.EntityItemType = entityItemType + return &this +} + +// NewOpalQueryResultNodeWithDefaults instantiates a new OpalQueryResultNode 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 NewOpalQueryResultNodeWithDefaults() *OpalQueryResultNode { + this := OpalQueryResultNode{} + return &this +} + +// GetId returns the Id field value +func (o *OpalQueryResultNode) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *OpalQueryResultNode) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *OpalQueryResultNode) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *OpalQueryResultNode) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *OpalQueryResultNode) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *OpalQueryResultNode) SetName(v string) { + o.Name = v +} + +// GetEntityType returns the EntityType field value +func (o *OpalQueryResultNode) GetEntityType() string { + if o == nil { + var ret string + return ret + } + + return o.EntityType +} + +// GetEntityTypeOk returns a tuple with the EntityType field value +// and a boolean to check if the value has been set. +func (o *OpalQueryResultNode) GetEntityTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EntityType, true +} + +// SetEntityType sets field value +func (o *OpalQueryResultNode) SetEntityType(v string) { + o.EntityType = v +} + +// GetEntityItemType returns the EntityItemType field value +func (o *OpalQueryResultNode) GetEntityItemType() EntityItemTypeEnum { + if o == nil { + var ret EntityItemTypeEnum + return ret + } + + return o.EntityItemType +} + +// GetEntityItemTypeOk returns a tuple with the EntityItemType field value +// and a boolean to check if the value has been set. +func (o *OpalQueryResultNode) GetEntityItemTypeOk() (*EntityItemTypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.EntityItemType, true +} + +// SetEntityItemType sets field value +func (o *OpalQueryResultNode) SetEntityItemType(v EntityItemTypeEnum) { + o.EntityItemType = v +} + +func (o OpalQueryResultNode) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OpalQueryResultNode) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["entityType"] = o.EntityType + toSerialize["entityItemType"] = o.EntityItemType + return toSerialize, nil +} + +func (o *OpalQueryResultNode) 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{ + "id", + "name", + "entityType", + "entityItemType", + } + + 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) + } + } + + varOpalQueryResultNode := _OpalQueryResultNode{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varOpalQueryResultNode) + + if err != nil { + return err + } + + *o = OpalQueryResultNode(varOpalQueryResultNode) + + return err +} + +type NullableOpalQueryResultNode struct { + value *OpalQueryResultNode + isSet bool +} + +func (v NullableOpalQueryResultNode) Get() *OpalQueryResultNode { + return v.value +} + +func (v *NullableOpalQueryResultNode) Set(val *OpalQueryResultNode) { + v.value = val + v.isSet = true +} + +func (v NullableOpalQueryResultNode) IsSet() bool { + return v.isSet +} + +func (v *NullableOpalQueryResultNode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOpalQueryResultNode(val *OpalQueryResultNode) *NullableOpalQueryResultNode { + return &NullableOpalQueryResultNode{value: val, isSet: true} +} + +func (v NullableOpalQueryResultNode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOpalQueryResultNode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_page_info.go b/model_page_info.go new file mode 100644 index 0000000..d2e8b3f --- /dev/null +++ b/model_page_info.go @@ -0,0 +1,247 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the PageInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PageInfo{} + +// PageInfo struct for PageInfo +type PageInfo struct { + // Whether there are more items after the end cursor + HasNextPage bool `json:"hasNextPage"` + // The cursor to continue pagination forwards + EndCursor string `json:"endCursor"` + // Whether there are more items before the start cursor + HasPreviousPage bool `json:"hasPreviousPage"` + // The cursor to continue pagination backwards + StartCursor string `json:"startCursor"` +} + +type _PageInfo PageInfo + +// NewPageInfo instantiates a new PageInfo 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 NewPageInfo(hasNextPage bool, endCursor string, hasPreviousPage bool, startCursor string) *PageInfo { + this := PageInfo{} + this.HasNextPage = hasNextPage + this.EndCursor = endCursor + this.HasPreviousPage = hasPreviousPage + this.StartCursor = startCursor + return &this +} + +// NewPageInfoWithDefaults instantiates a new PageInfo 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 NewPageInfoWithDefaults() *PageInfo { + this := PageInfo{} + return &this +} + +// GetHasNextPage returns the HasNextPage field value +func (o *PageInfo) GetHasNextPage() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasNextPage +} + +// GetHasNextPageOk returns a tuple with the HasNextPage field value +// and a boolean to check if the value has been set. +func (o *PageInfo) GetHasNextPageOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasNextPage, true +} + +// SetHasNextPage sets field value +func (o *PageInfo) SetHasNextPage(v bool) { + o.HasNextPage = v +} + +// GetEndCursor returns the EndCursor field value +func (o *PageInfo) GetEndCursor() string { + if o == nil { + var ret string + return ret + } + + return o.EndCursor +} + +// GetEndCursorOk returns a tuple with the EndCursor field value +// and a boolean to check if the value has been set. +func (o *PageInfo) GetEndCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.EndCursor, true +} + +// SetEndCursor sets field value +func (o *PageInfo) SetEndCursor(v string) { + o.EndCursor = v +} + +// GetHasPreviousPage returns the HasPreviousPage field value +func (o *PageInfo) GetHasPreviousPage() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasPreviousPage +} + +// GetHasPreviousPageOk returns a tuple with the HasPreviousPage field value +// and a boolean to check if the value has been set. +func (o *PageInfo) GetHasPreviousPageOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasPreviousPage, true +} + +// SetHasPreviousPage sets field value +func (o *PageInfo) SetHasPreviousPage(v bool) { + o.HasPreviousPage = v +} + +// GetStartCursor returns the StartCursor field value +func (o *PageInfo) GetStartCursor() string { + if o == nil { + var ret string + return ret + } + + return o.StartCursor +} + +// GetStartCursorOk returns a tuple with the StartCursor field value +// and a boolean to check if the value has been set. +func (o *PageInfo) GetStartCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StartCursor, true +} + +// SetStartCursor sets field value +func (o *PageInfo) SetStartCursor(v string) { + o.StartCursor = v +} + +func (o PageInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PageInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["hasNextPage"] = o.HasNextPage + toSerialize["endCursor"] = o.EndCursor + toSerialize["hasPreviousPage"] = o.HasPreviousPage + toSerialize["startCursor"] = o.StartCursor + return toSerialize, nil +} + +func (o *PageInfo) 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{ + "hasNextPage", + "endCursor", + "hasPreviousPage", + "startCursor", + } + + 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) + } + } + + varPageInfo := _PageInfo{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPageInfo) + + if err != nil { + return err + } + + *o = PageInfo(varPageInfo) + + return err +} + +type NullablePageInfo struct { + value *PageInfo + isSet bool +} + +func (v NullablePageInfo) Get() *PageInfo { + return v.value +} + +func (v *NullablePageInfo) Set(val *PageInfo) { + v.value = val + v.isSet = true +} + +func (v NullablePageInfo) IsSet() bool { + return v.isSet +} + +func (v *NullablePageInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePageInfo(val *PageInfo) *NullablePageInfo { + return &NullablePageInfo{value: val, isSet: true} +} + +func (v NullablePageInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePageInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_access_rules_list.go b/model_paginated_access_rules_list.go new file mode 100644 index 0000000..11cee29 --- /dev/null +++ b/model_paginated_access_rules_list.go @@ -0,0 +1,233 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the PaginatedAccessRulesList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedAccessRulesList{} + +// PaginatedAccessRulesList struct for PaginatedAccessRulesList +type PaginatedAccessRulesList struct { + // The cursor with which to continue pagination if additional result pages exist. + Next *string `json:"next,omitempty"` + // The cursor used to retrieve the previous page of results. + Previous *string `json:"previous,omitempty"` + Results []AccessRule `json:"results"` +} + +type _PaginatedAccessRulesList PaginatedAccessRulesList + +// NewPaginatedAccessRulesList instantiates a new PaginatedAccessRulesList 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 NewPaginatedAccessRulesList(results []AccessRule) *PaginatedAccessRulesList { + this := PaginatedAccessRulesList{} + this.Results = results + return &this +} + +// NewPaginatedAccessRulesListWithDefaults instantiates a new PaginatedAccessRulesList 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 NewPaginatedAccessRulesListWithDefaults() *PaginatedAccessRulesList { + this := PaginatedAccessRulesList{} + return &this +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedAccessRulesList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedAccessRulesList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedAccessRulesList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedAccessRulesList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedAccessRulesList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedAccessRulesList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedAccessRulesList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedAccessRulesList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedAccessRulesList) GetResults() []AccessRule { + if o == nil { + var ret []AccessRule + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedAccessRulesList) GetResultsOk() ([]AccessRule, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedAccessRulesList) SetResults(v []AccessRule) { + o.Results = v +} + +func (o PaginatedAccessRulesList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedAccessRulesList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + return toSerialize, nil +} + +func (o *PaginatedAccessRulesList) 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{ + "results", + } + + 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) + } + } + + varPaginatedAccessRulesList := _PaginatedAccessRulesList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPaginatedAccessRulesList) + + if err != nil { + return err + } + + *o = PaginatedAccessRulesList(varPaginatedAccessRulesList) + + return err +} + +type NullablePaginatedAccessRulesList struct { + value *PaginatedAccessRulesList + isSet bool +} + +func (v NullablePaginatedAccessRulesList) Get() *PaginatedAccessRulesList { + return v.value +} + +func (v *NullablePaginatedAccessRulesList) Set(val *PaginatedAccessRulesList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedAccessRulesList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedAccessRulesList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedAccessRulesList(val *PaginatedAccessRulesList) *NullablePaginatedAccessRulesList { + return &NullablePaginatedAccessRulesList{value: val, isSet: true} +} + +func (v NullablePaginatedAccessRulesList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedAccessRulesList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_assigned_request_list.go b/model_paginated_assigned_request_list.go new file mode 100644 index 0000000..7c33dc5 --- /dev/null +++ b/model_paginated_assigned_request_list.go @@ -0,0 +1,188 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the PaginatedAssignedRequestList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedAssignedRequestList{} + +// PaginatedAssignedRequestList struct for PaginatedAssignedRequestList +type PaginatedAssignedRequestList struct { + Requests []Request `json:"requests"` + // The cursor to continue pagination + Cursor string `json:"cursor"` +} + +type _PaginatedAssignedRequestList PaginatedAssignedRequestList + +// NewPaginatedAssignedRequestList instantiates a new PaginatedAssignedRequestList 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 NewPaginatedAssignedRequestList(requests []Request, cursor string) *PaginatedAssignedRequestList { + this := PaginatedAssignedRequestList{} + this.Requests = requests + this.Cursor = cursor + return &this +} + +// NewPaginatedAssignedRequestListWithDefaults instantiates a new PaginatedAssignedRequestList 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 NewPaginatedAssignedRequestListWithDefaults() *PaginatedAssignedRequestList { + this := PaginatedAssignedRequestList{} + return &this +} + +// GetRequests returns the Requests field value +func (o *PaginatedAssignedRequestList) GetRequests() []Request { + if o == nil { + var ret []Request + return ret + } + + return o.Requests +} + +// GetRequestsOk returns a tuple with the Requests field value +// and a boolean to check if the value has been set. +func (o *PaginatedAssignedRequestList) GetRequestsOk() ([]Request, bool) { + if o == nil { + return nil, false + } + return o.Requests, true +} + +// SetRequests sets field value +func (o *PaginatedAssignedRequestList) SetRequests(v []Request) { + o.Requests = v +} + +// GetCursor returns the Cursor field value +func (o *PaginatedAssignedRequestList) GetCursor() string { + if o == nil { + var ret string + return ret + } + + return o.Cursor +} + +// GetCursorOk returns a tuple with the Cursor field value +// and a boolean to check if the value has been set. +func (o *PaginatedAssignedRequestList) GetCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cursor, true +} + +// SetCursor sets field value +func (o *PaginatedAssignedRequestList) SetCursor(v string) { + o.Cursor = v +} + +func (o PaginatedAssignedRequestList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedAssignedRequestList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["requests"] = o.Requests + toSerialize["cursor"] = o.Cursor + return toSerialize, nil +} + +func (o *PaginatedAssignedRequestList) 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{ + "requests", + "cursor", + } + + 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) + } + } + + varPaginatedAssignedRequestList := _PaginatedAssignedRequestList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPaginatedAssignedRequestList) + + if err != nil { + return err + } + + *o = PaginatedAssignedRequestList(varPaginatedAssignedRequestList) + + return err +} + +type NullablePaginatedAssignedRequestList struct { + value *PaginatedAssignedRequestList + isSet bool +} + +func (v NullablePaginatedAssignedRequestList) Get() *PaginatedAssignedRequestList { + return v.value +} + +func (v *NullablePaginatedAssignedRequestList) Set(val *PaginatedAssignedRequestList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedAssignedRequestList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedAssignedRequestList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedAssignedRequestList(val *PaginatedAssignedRequestList) *NullablePaginatedAssignedRequestList { + return &NullablePaginatedAssignedRequestList{value: val, isSet: true} +} + +func (v NullablePaginatedAssignedRequestList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedAssignedRequestList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_delegations_list.go b/model_paginated_delegations_list.go new file mode 100644 index 0000000..772f255 --- /dev/null +++ b/model_paginated_delegations_list.go @@ -0,0 +1,239 @@ +/* +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" +) + +// checks if the PaginatedDelegationsList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedDelegationsList{} + +// PaginatedDelegationsList A list of delegations for your organization. +type PaginatedDelegationsList struct { + // The delegations in the result set. + Results []Delegation `json:"results,omitempty"` + // The cursor with which to continue pagination if additional result pages exist. + Next *string `json:"next,omitempty"` + // The cursor used to obtain the current result page. + Previous *string `json:"previous,omitempty"` + // The total number of items in the result set. + TotalCount *int32 `json:"total_count,omitempty"` +} + +// NewPaginatedDelegationsList instantiates a new PaginatedDelegationsList 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 NewPaginatedDelegationsList() *PaginatedDelegationsList { + this := PaginatedDelegationsList{} + return &this +} + +// NewPaginatedDelegationsListWithDefaults instantiates a new PaginatedDelegationsList 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 NewPaginatedDelegationsListWithDefaults() *PaginatedDelegationsList { + this := PaginatedDelegationsList{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *PaginatedDelegationsList) GetResults() []Delegation { + if o == nil || IsNil(o.Results) { + var ret []Delegation + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDelegationsList) GetResultsOk() ([]Delegation, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *PaginatedDelegationsList) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []Delegation and assigns it to the Results field. +func (o *PaginatedDelegationsList) SetResults(v []Delegation) { + o.Results = v +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedDelegationsList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDelegationsList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedDelegationsList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedDelegationsList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedDelegationsList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDelegationsList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedDelegationsList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedDelegationsList) SetPrevious(v string) { + o.Previous = &v +} + +// GetTotalCount returns the TotalCount field value if set, zero value otherwise. +func (o *PaginatedDelegationsList) GetTotalCount() int32 { + if o == nil || IsNil(o.TotalCount) { + var ret int32 + return ret + } + return *o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedDelegationsList) GetTotalCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalCount) { + return nil, false + } + return o.TotalCount, true +} + +// HasTotalCount returns a boolean if a field has been set. +func (o *PaginatedDelegationsList) HasTotalCount() bool { + if o != nil && !IsNil(o.TotalCount) { + return true + } + + return false +} + +// SetTotalCount gets a reference to the given int32 and assigns it to the TotalCount field. +func (o *PaginatedDelegationsList) SetTotalCount(v int32) { + o.TotalCount = &v +} + +func (o PaginatedDelegationsList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedDelegationsList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + if !IsNil(o.TotalCount) { + toSerialize["total_count"] = o.TotalCount + } + return toSerialize, nil +} + +type NullablePaginatedDelegationsList struct { + value *PaginatedDelegationsList + isSet bool +} + +func (v NullablePaginatedDelegationsList) Get() *PaginatedDelegationsList { + return v.value +} + +func (v *NullablePaginatedDelegationsList) Set(val *PaginatedDelegationsList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedDelegationsList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedDelegationsList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedDelegationsList(val *PaginatedDelegationsList) *NullablePaginatedDelegationsList { + return &NullablePaginatedDelegationsList{value: val, isSet: true} +} + +func (v NullablePaginatedDelegationsList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedDelegationsList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_remote_users_list.go b/model_paginated_remote_users_list.go new file mode 100644 index 0000000..cc3e57a --- /dev/null +++ b/model_paginated_remote_users_list.go @@ -0,0 +1,233 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the PaginatedRemoteUsersList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedRemoteUsersList{} + +// PaginatedRemoteUsersList struct for PaginatedRemoteUsersList +type PaginatedRemoteUsersList struct { + // The cursor with which to continue pagination if additional result pages exist. + Next *string `json:"next,omitempty"` + // The cursor used to obtain the current result page. + Previous *string `json:"previous,omitempty"` + Results []RemoteUser `json:"results"` +} + +type _PaginatedRemoteUsersList PaginatedRemoteUsersList + +// NewPaginatedRemoteUsersList instantiates a new PaginatedRemoteUsersList 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 NewPaginatedRemoteUsersList(results []RemoteUser) *PaginatedRemoteUsersList { + this := PaginatedRemoteUsersList{} + this.Results = results + return &this +} + +// NewPaginatedRemoteUsersListWithDefaults instantiates a new PaginatedRemoteUsersList 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 NewPaginatedRemoteUsersListWithDefaults() *PaginatedRemoteUsersList { + this := PaginatedRemoteUsersList{} + return &this +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedRemoteUsersList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedRemoteUsersList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedRemoteUsersList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedRemoteUsersList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedRemoteUsersList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedRemoteUsersList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedRemoteUsersList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedRemoteUsersList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedRemoteUsersList) GetResults() []RemoteUser { + if o == nil { + var ret []RemoteUser + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedRemoteUsersList) GetResultsOk() ([]RemoteUser, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedRemoteUsersList) SetResults(v []RemoteUser) { + o.Results = v +} + +func (o PaginatedRemoteUsersList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedRemoteUsersList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + return toSerialize, nil +} + +func (o *PaginatedRemoteUsersList) 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{ + "results", + } + + 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) + } + } + + varPaginatedRemoteUsersList := _PaginatedRemoteUsersList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPaginatedRemoteUsersList) + + if err != nil { + return err + } + + *o = PaginatedRemoteUsersList(varPaginatedRemoteUsersList) + + return err +} + +type NullablePaginatedRemoteUsersList struct { + value *PaginatedRemoteUsersList + isSet bool +} + +func (v NullablePaginatedRemoteUsersList) Get() *PaginatedRemoteUsersList { + return v.value +} + +func (v *NullablePaginatedRemoteUsersList) Set(val *PaginatedRemoteUsersList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedRemoteUsersList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedRemoteUsersList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedRemoteUsersList(val *PaginatedRemoteUsersList) *NullablePaginatedRemoteUsersList { + return &NullablePaginatedRemoteUsersList{value: val, isSet: true} +} + +func (v NullablePaginatedRemoteUsersList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedRemoteUsersList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_tokens_list.go b/model_paginated_tokens_list.go new file mode 100644 index 0000000..36044c3 --- /dev/null +++ b/model_paginated_tokens_list.go @@ -0,0 +1,233 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the PaginatedTokensList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedTokensList{} + +// PaginatedTokensList struct for PaginatedTokensList +type PaginatedTokensList struct { + // The cursor with which to continue pagination if additional result pages exist. + Next *string `json:"next,omitempty"` + // The cursor used to obtain the current result page. + Previous *string `json:"previous,omitempty"` + Results []Token `json:"results"` +} + +type _PaginatedTokensList PaginatedTokensList + +// NewPaginatedTokensList instantiates a new PaginatedTokensList 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 NewPaginatedTokensList(results []Token) *PaginatedTokensList { + this := PaginatedTokensList{} + this.Results = results + return &this +} + +// NewPaginatedTokensListWithDefaults instantiates a new PaginatedTokensList 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 NewPaginatedTokensListWithDefaults() *PaginatedTokensList { + this := PaginatedTokensList{} + return &this +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *PaginatedTokensList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedTokensList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedTokensList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *PaginatedTokensList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *PaginatedTokensList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedTokensList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedTokensList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *PaginatedTokensList) SetPrevious(v string) { + o.Previous = &v +} + +// GetResults returns the Results field value +func (o *PaginatedTokensList) GetResults() []Token { + if o == nil { + var ret []Token + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedTokensList) GetResultsOk() ([]Token, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedTokensList) SetResults(v []Token) { + o.Results = v +} + +func (o PaginatedTokensList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedTokensList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } + toSerialize["results"] = o.Results + return toSerialize, nil +} + +func (o *PaginatedTokensList) 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{ + "results", + } + + 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) + } + } + + varPaginatedTokensList := _PaginatedTokensList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varPaginatedTokensList) + + if err != nil { + return err + } + + *o = PaginatedTokensList(varPaginatedTokensList) + + return err +} + +type NullablePaginatedTokensList struct { + value *PaginatedTokensList + isSet bool +} + +func (v NullablePaginatedTokensList) Get() *PaginatedTokensList { + return v.value +} + +func (v *NullablePaginatedTokensList) Set(val *PaginatedTokensList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedTokensList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedTokensList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedTokensList(val *PaginatedTokensList) *NullablePaginatedTokensList { + return &NullablePaginatedTokensList{value: val, isSet: true} +} + +func (v NullablePaginatedTokensList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedTokensList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + 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 new file mode 100644 index 0000000..0f33aa8 --- /dev/null +++ b/model_remote_user.go @@ -0,0 +1,218 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the RemoteUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RemoteUser{} + +// RemoteUser # RemoteUser Object ### Description The `RemoteUser` object is used to represent a remote user. +type RemoteUser struct { + // The ID of the user. + 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"` +} + +type _RemoteUser RemoteUser + +// NewRemoteUser instantiates a new RemoteUser 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 NewRemoteUser(userId string, remoteId string, thirdPartyProvider ThirdPartyProviderEnum) *RemoteUser { + this := RemoteUser{} + this.UserId = userId + this.RemoteId = remoteId + this.ThirdPartyProvider = thirdPartyProvider + return &this +} + +// NewRemoteUserWithDefaults instantiates a new RemoteUser 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 NewRemoteUserWithDefaults() *RemoteUser { + this := RemoteUser{} + return &this +} + +// GetUserId returns the UserId field value +func (o *RemoteUser) GetUserId() string { + if o == nil { + var ret string + return ret + } + + return o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value +// and a boolean to check if the value has been set. +func (o *RemoteUser) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *RemoteUser) SetUserId(v string) { + o.UserId = v +} + +// GetRemoteId returns the RemoteId field value +func (o *RemoteUser) GetRemoteId() string { + if o == nil { + var ret string + return ret + } + + return o.RemoteId +} + +// GetRemoteIdOk returns a tuple with the RemoteId field value +// and a boolean to check if the value has been set. +func (o *RemoteUser) GetRemoteIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RemoteId, true +} + +// SetRemoteId sets field value +func (o *RemoteUser) SetRemoteId(v string) { + o.RemoteId = v +} + +// GetThirdPartyProvider returns the ThirdPartyProvider field value +func (o *RemoteUser) GetThirdPartyProvider() ThirdPartyProviderEnum { + if o == nil { + var ret ThirdPartyProviderEnum + return ret + } + + return o.ThirdPartyProvider +} + +// GetThirdPartyProviderOk returns a tuple with the ThirdPartyProvider field value +// and a boolean to check if the value has been set. +func (o *RemoteUser) GetThirdPartyProviderOk() (*ThirdPartyProviderEnum, bool) { + if o == nil { + return nil, false + } + return &o.ThirdPartyProvider, true +} + +// SetThirdPartyProvider sets field value +func (o *RemoteUser) SetThirdPartyProvider(v ThirdPartyProviderEnum) { + o.ThirdPartyProvider = v +} + +func (o RemoteUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RemoteUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["user_id"] = o.UserId + toSerialize["remote_id"] = o.RemoteId + toSerialize["third_party_provider"] = o.ThirdPartyProvider + return toSerialize, nil +} + +func (o *RemoteUser) 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{ + "user_id", + "remote_id", + "third_party_provider", + } + + 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) + } + } + + varRemoteUser := _RemoteUser{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRemoteUser) + + if err != nil { + return err + } + + *o = RemoteUser(varRemoteUser) + + return err +} + +type NullableRemoteUser struct { + value *RemoteUser + isSet bool +} + +func (v NullableRemoteUser) Get() *RemoteUser { + return v.value +} + +func (v *NullableRemoteUser) Set(val *RemoteUser) { + v.value = val + v.isSet = true +} + +func (v NullableRemoteUser) IsSet() bool { + return v.isSet +} + +func (v *NullableRemoteUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRemoteUser(val *RemoteUser) *NullableRemoteUser { + return &NullableRemoteUser{value: val, isSet: true} +} + +func (v NullableRemoteUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRemoteUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request.go b/model_request.go index 7eeae7f..8dbb6b2 100644 --- a/model_request.go +++ b/model_request.go @@ -35,6 +35,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"` @@ -44,6 +45,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"` + ReviewerStages *RequestReviewerStages `json:"reviewer_stages,omitempty"` } type _Request Request @@ -375,6 +380,73 @@ func (o *Request) SetCustomFieldsResponses(v []RequestCustomFieldResponse) { o.CustomFieldsResponses = v } +// GetStages returns the Stages field value if set, zero value otherwise. +// Deprecated +func (o *Request) GetStages() RequestItemStages { + if o == nil || IsNil(o.Stages) { + var ret RequestItemStages + return ret + } + return *o.Stages +} + +// GetStagesOk returns a tuple with the Stages field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *Request) GetStagesOk() (*RequestItemStages, bool) { + if o == nil || IsNil(o.Stages) { + return nil, false + } + return o.Stages, true +} + +// HasStages returns a boolean if a field has been set. +func (o *Request) HasStages() bool { + if o != nil && !IsNil(o.Stages) { + return true + } + + return false +} + +// SetStages gets a reference to the given RequestItemStages and assigns it to the Stages field. +// Deprecated +func (o *Request) SetStages(v RequestItemStages) { + o.Stages = &v +} + +// GetReviewerStages returns the ReviewerStages field value if set, zero value otherwise. +func (o *Request) GetReviewerStages() RequestReviewerStages { + if o == nil || IsNil(o.ReviewerStages) { + var ret RequestReviewerStages + return ret + } + 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) { + if o == nil || IsNil(o.ReviewerStages) { + return nil, false + } + return o.ReviewerStages, true +} + +// HasReviewerStages returns a boolean if a field has been set. +func (o *Request) HasReviewerStages() bool { + if o != nil && !IsNil(o.ReviewerStages) { + return true + } + + 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 +} + func (o Request) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -406,6 +478,12 @@ func (o Request) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFieldsResponses) { toSerialize["custom_fields_responses"] = o.CustomFieldsResponses } + if !IsNil(o.Stages) { + toSerialize["stages"] = o.Stages + } + if !IsNil(o.ReviewerStages) { + toSerialize["reviewer_stages"] = o.ReviewerStages + } return toSerialize, nil } diff --git a/model_request_approval_enum.go b/model_request_approval_enum.go new file mode 100644 index 0000000..3f8055b --- /dev/null +++ b/model_request_approval_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" +) + +// RequestApprovalEnum The decision level for the approval +type RequestApprovalEnum string + +// List of RequestApprovalEnum +const ( + REQUESTAPPROVALENUM_REGULAR RequestApprovalEnum = "REGULAR" + REQUESTAPPROVALENUM_ADMIN RequestApprovalEnum = "ADMIN" +) + +// All allowed values of RequestApprovalEnum enum +var AllowedRequestApprovalEnumEnumValues = []RequestApprovalEnum{ + "REGULAR", + "ADMIN", +} + +func (v *RequestApprovalEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RequestApprovalEnum(value) + for _, existing := range AllowedRequestApprovalEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RequestApprovalEnum", value) +} + +// NewRequestApprovalEnumFromValue returns a pointer to a valid RequestApprovalEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRequestApprovalEnumFromValue(v string) (*RequestApprovalEnum, error) { + ev := RequestApprovalEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RequestApprovalEnum: valid values are %v", v, AllowedRequestApprovalEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RequestApprovalEnum) IsValid() bool { + for _, existing := range AllowedRequestApprovalEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RequestApprovalEnum value +func (v RequestApprovalEnum) Ptr() *RequestApprovalEnum { + return &v +} + +type NullableRequestApprovalEnum struct { + value *RequestApprovalEnum + isSet bool +} + +func (v NullableRequestApprovalEnum) Get() *RequestApprovalEnum { + return v.value +} + +func (v *NullableRequestApprovalEnum) Set(val *RequestApprovalEnum) { + v.value = val + v.isSet = true +} + +func (v NullableRequestApprovalEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestApprovalEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestApprovalEnum(val *RequestApprovalEnum) *NullableRequestApprovalEnum { + return &NullableRequestApprovalEnum{value: val, isSet: true} +} + +func (v NullableRequestApprovalEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestApprovalEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_request_comment.go b/model_request_comment.go new file mode 100644 index 0000000..1245464 --- /dev/null +++ b/model_request_comment.go @@ -0,0 +1,322 @@ +/* +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" + "time" + "bytes" + "fmt" +) + +// checks if the RequestComment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequestComment{} + +// RequestComment # Request Comment Object ### Description The `RequestComment` object is used to represent a comment on a request. ### Usage Example Returned from the `GET Requests` endpoint as part of a `Request` object. +type RequestComment struct { + // The date and time the comment was created. + CreatedAt time.Time `json:"created_at"` + // The unique identifier of the request the comment is associated with. + RequestId string `json:"request_id"` + // The unique identifier of the user who made the comment. + UserId string `json:"user_id"` + // The user's full name. + UserFullName *string `json:"user_full_name,omitempty"` + // The user's email address. + UserEmail *string `json:"user_email,omitempty"` + // The content of the comment. + Comment string `json:"comment"` +} + +type _RequestComment RequestComment + +// NewRequestComment instantiates a new RequestComment 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 NewRequestComment(createdAt time.Time, requestId string, userId string, comment string) *RequestComment { + this := RequestComment{} + this.CreatedAt = createdAt + this.RequestId = requestId + this.UserId = userId + this.Comment = comment + return &this +} + +// NewRequestCommentWithDefaults instantiates a new RequestComment 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 NewRequestCommentWithDefaults() *RequestComment { + this := RequestComment{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *RequestComment) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *RequestComment) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *RequestComment) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetRequestId returns the RequestId field value +func (o *RequestComment) GetRequestId() string { + if o == nil { + var ret string + return ret + } + + return o.RequestId +} + +// GetRequestIdOk returns a tuple with the RequestId field value +// and a boolean to check if the value has been set. +func (o *RequestComment) GetRequestIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequestId, true +} + +// SetRequestId sets field value +func (o *RequestComment) SetRequestId(v string) { + o.RequestId = v +} + +// GetUserId returns the UserId field value +func (o *RequestComment) GetUserId() string { + if o == nil { + var ret string + return ret + } + + return o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value +// and a boolean to check if the value has been set. +func (o *RequestComment) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *RequestComment) SetUserId(v string) { + o.UserId = v +} + +// GetUserFullName returns the UserFullName field value if set, zero value otherwise. +func (o *RequestComment) GetUserFullName() string { + if o == nil || IsNil(o.UserFullName) { + var ret string + return ret + } + return *o.UserFullName +} + +// GetUserFullNameOk returns a tuple with the UserFullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequestComment) GetUserFullNameOk() (*string, bool) { + if o == nil || IsNil(o.UserFullName) { + return nil, false + } + return o.UserFullName, true +} + +// HasUserFullName returns a boolean if a field has been set. +func (o *RequestComment) HasUserFullName() bool { + if o != nil && !IsNil(o.UserFullName) { + return true + } + + return false +} + +// SetUserFullName gets a reference to the given string and assigns it to the UserFullName field. +func (o *RequestComment) SetUserFullName(v string) { + o.UserFullName = &v +} + +// GetUserEmail returns the UserEmail field value if set, zero value otherwise. +func (o *RequestComment) GetUserEmail() string { + if o == nil || IsNil(o.UserEmail) { + var ret string + return ret + } + return *o.UserEmail +} + +// GetUserEmailOk returns a tuple with the UserEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequestComment) GetUserEmailOk() (*string, bool) { + if o == nil || IsNil(o.UserEmail) { + return nil, false + } + return o.UserEmail, true +} + +// HasUserEmail returns a boolean if a field has been set. +func (o *RequestComment) HasUserEmail() bool { + if o != nil && !IsNil(o.UserEmail) { + return true + } + + return false +} + +// SetUserEmail gets a reference to the given string and assigns it to the UserEmail field. +func (o *RequestComment) SetUserEmail(v string) { + o.UserEmail = &v +} + +// GetComment returns the Comment field value +func (o *RequestComment) GetComment() string { + if o == nil { + var ret string + return ret + } + + return o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value +// and a boolean to check if the value has been set. +func (o *RequestComment) GetCommentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Comment, true +} + +// SetComment sets field value +func (o *RequestComment) SetComment(v string) { + o.Comment = v +} + +func (o RequestComment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequestComment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created_at"] = o.CreatedAt + toSerialize["request_id"] = o.RequestId + toSerialize["user_id"] = o.UserId + if !IsNil(o.UserFullName) { + toSerialize["user_full_name"] = o.UserFullName + } + if !IsNil(o.UserEmail) { + toSerialize["user_email"] = o.UserEmail + } + toSerialize["comment"] = o.Comment + return toSerialize, nil +} + +func (o *RequestComment) 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{ + "created_at", + "request_id", + "user_id", + "comment", + } + + 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) + } + } + + varRequestComment := _RequestComment{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRequestComment) + + if err != nil { + return err + } + + *o = RequestComment(varRequestComment) + + return err +} + +type NullableRequestComment struct { + value *RequestComment + isSet bool +} + +func (v NullableRequestComment) Get() *RequestComment { + return v.value +} + +func (v *NullableRequestComment) Set(val *RequestComment) { + v.value = val + v.isSet = true +} + +func (v NullableRequestComment) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestComment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestComment(val *RequestComment) *NullableRequestComment { + return &NullableRequestComment{value: val, isSet: true} +} + +func (v NullableRequestComment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestComment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_comment_list.go b/model_request_comment_list.go new file mode 100644 index 0000000..ff8b4d1 --- /dev/null +++ b/model_request_comment_list.go @@ -0,0 +1,159 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the RequestCommentList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequestCommentList{} + +// RequestCommentList A paginated list of request comments +type RequestCommentList struct { + Comments []RequestComment `json:"comments"` +} + +type _RequestCommentList RequestCommentList + +// NewRequestCommentList instantiates a new RequestCommentList 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 NewRequestCommentList(comments []RequestComment) *RequestCommentList { + this := RequestCommentList{} + this.Comments = comments + return &this +} + +// NewRequestCommentListWithDefaults instantiates a new RequestCommentList 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 NewRequestCommentListWithDefaults() *RequestCommentList { + this := RequestCommentList{} + return &this +} + +// GetComments returns the Comments field value +func (o *RequestCommentList) GetComments() []RequestComment { + if o == nil { + var ret []RequestComment + return ret + } + + return o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value +// and a boolean to check if the value has been set. +func (o *RequestCommentList) GetCommentsOk() ([]RequestComment, bool) { + if o == nil { + return nil, false + } + return o.Comments, true +} + +// SetComments sets field value +func (o *RequestCommentList) SetComments(v []RequestComment) { + o.Comments = v +} + +func (o RequestCommentList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequestCommentList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["comments"] = o.Comments + return toSerialize, nil +} + +func (o *RequestCommentList) 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{ + "comments", + } + + 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) + } + } + + varRequestCommentList := _RequestCommentList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRequestCommentList) + + if err != nil { + return err + } + + *o = RequestCommentList(varRequestCommentList) + + return err +} + +type NullableRequestCommentList struct { + value *RequestCommentList + isSet bool +} + +func (v NullableRequestCommentList) Get() *RequestCommentList { + return v.value +} + +func (v *NullableRequestCommentList) Set(val *RequestCommentList) { + v.value = val + v.isSet = true +} + +func (v NullableRequestCommentList) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestCommentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestCommentList(val *RequestCommentList) *NullableRequestCommentList { + return &NullableRequestCommentList{value: val, isSet: true} +} + +func (v NullableRequestCommentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestCommentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_configuration.go b/model_request_configuration.go index 3ae15b6..35d1920 100644 --- a/model_request_configuration.go +++ b/model_request_configuration.go @@ -22,6 +22,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"` @@ -35,6 +36,8 @@ type RequestConfiguration struct { RecommendedDurationMinutes *int32 `json:"recommended_duration_minutes,omitempty"` // A bool representing whether or not access requests to the resource require an access ticket. RequireSupportTicket bool `json:"require_support_ticket"` + // 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. + ExtensionsDurationInMinutes *int32 `json:"extensions_duration_in_minutes,omitempty"` // The ID of the associated request template. RequestTemplateId *string `json:"request_template_id,omitempty"` // The list of reviewer stages for the request configuration. @@ -259,6 +262,38 @@ func (o *RequestConfiguration) SetRequireSupportTicket(v bool) { o.RequireSupportTicket = v } +// GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field value if set, zero value otherwise. +func (o *RequestConfiguration) GetExtensionsDurationInMinutes() int32 { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + var ret int32 + return ret + } + return *o.ExtensionsDurationInMinutes +} + +// GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequestConfiguration) GetExtensionsDurationInMinutesOk() (*int32, bool) { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + return nil, false + } + return o.ExtensionsDurationInMinutes, true +} + +// HasExtensionsDurationInMinutes returns a boolean if a field has been set. +func (o *RequestConfiguration) HasExtensionsDurationInMinutes() bool { + if o != nil && !IsNil(o.ExtensionsDurationInMinutes) { + return true + } + + return false +} + +// SetExtensionsDurationInMinutes gets a reference to the given int32 and assigns it to the ExtensionsDurationInMinutes field. +func (o *RequestConfiguration) SetExtensionsDurationInMinutes(v int32) { + o.ExtensionsDurationInMinutes = &v +} + // GetRequestTemplateId returns the RequestTemplateId field value if set, zero value otherwise. func (o *RequestConfiguration) GetRequestTemplateId() string { if o == nil || IsNil(o.RequestTemplateId) { @@ -370,6 +405,9 @@ func (o RequestConfiguration) ToMap() (map[string]interface{}, error) { toSerialize["recommended_duration_minutes"] = o.RecommendedDurationMinutes } toSerialize["require_support_ticket"] = o.RequireSupportTicket + if !IsNil(o.ExtensionsDurationInMinutes) { + toSerialize["extensions_duration_in_minutes"] = o.ExtensionsDurationInMinutes + } if !IsNil(o.RequestTemplateId) { toSerialize["request_template_id"] = o.RequestTemplateId } diff --git a/model_request_connection.go b/model_request_connection.go new file mode 100644 index 0000000..655eef1 --- /dev/null +++ b/model_request_connection.go @@ -0,0 +1,216 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the RequestConnection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequestConnection{} + +// RequestConnection struct for RequestConnection +type RequestConnection struct { + Edges []RequestEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + // The total number of items available + TotalCount int32 `json:"totalCount"` +} + +type _RequestConnection RequestConnection + +// NewRequestConnection instantiates a new RequestConnection 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 NewRequestConnection(edges []RequestEdge, pageInfo PageInfo, totalCount int32) *RequestConnection { + this := RequestConnection{} + this.Edges = edges + this.PageInfo = pageInfo + this.TotalCount = totalCount + return &this +} + +// NewRequestConnectionWithDefaults instantiates a new RequestConnection 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 NewRequestConnectionWithDefaults() *RequestConnection { + this := RequestConnection{} + return &this +} + +// GetEdges returns the Edges field value +func (o *RequestConnection) GetEdges() []RequestEdge { + if o == nil { + var ret []RequestEdge + return ret + } + + return o.Edges +} + +// GetEdgesOk returns a tuple with the Edges field value +// and a boolean to check if the value has been set. +func (o *RequestConnection) GetEdgesOk() ([]RequestEdge, bool) { + if o == nil { + return nil, false + } + return o.Edges, true +} + +// SetEdges sets field value +func (o *RequestConnection) SetEdges(v []RequestEdge) { + o.Edges = v +} + +// GetPageInfo returns the PageInfo field value +func (o *RequestConnection) GetPageInfo() PageInfo { + if o == nil { + var ret PageInfo + return ret + } + + return o.PageInfo +} + +// GetPageInfoOk returns a tuple with the PageInfo field value +// and a boolean to check if the value has been set. +func (o *RequestConnection) GetPageInfoOk() (*PageInfo, bool) { + if o == nil { + return nil, false + } + return &o.PageInfo, true +} + +// SetPageInfo sets field value +func (o *RequestConnection) SetPageInfo(v PageInfo) { + o.PageInfo = v +} + +// GetTotalCount returns the TotalCount field value +func (o *RequestConnection) GetTotalCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TotalCount +} + +// GetTotalCountOk returns a tuple with the TotalCount field value +// and a boolean to check if the value has been set. +func (o *RequestConnection) GetTotalCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TotalCount, true +} + +// SetTotalCount sets field value +func (o *RequestConnection) SetTotalCount(v int32) { + o.TotalCount = v +} + +func (o RequestConnection) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequestConnection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["edges"] = o.Edges + toSerialize["pageInfo"] = o.PageInfo + toSerialize["totalCount"] = o.TotalCount + return toSerialize, nil +} + +func (o *RequestConnection) 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{ + "edges", + "pageInfo", + "totalCount", + } + + 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) + } + } + + varRequestConnection := _RequestConnection{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRequestConnection) + + if err != nil { + return err + } + + *o = RequestConnection(varRequestConnection) + + return err +} + +type NullableRequestConnection struct { + value *RequestConnection + isSet bool +} + +func (v NullableRequestConnection) Get() *RequestConnection { + return v.value +} + +func (v *NullableRequestConnection) Set(val *RequestConnection) { + v.value = val + v.isSet = true +} + +func (v NullableRequestConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestConnection(val *RequestConnection) *NullableRequestConnection { + return &NullableRequestConnection{value: val, isSet: true} +} + +func (v NullableRequestConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_edge.go b/model_request_edge.go new file mode 100644 index 0000000..7695166 --- /dev/null +++ b/model_request_edge.go @@ -0,0 +1,188 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the RequestEdge type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequestEdge{} + +// RequestEdge struct for RequestEdge +type RequestEdge struct { + Node Request `json:"node"` + // The cursor for this request edge + Cursor string `json:"cursor"` +} + +type _RequestEdge RequestEdge + +// NewRequestEdge instantiates a new RequestEdge 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 NewRequestEdge(node Request, cursor string) *RequestEdge { + this := RequestEdge{} + this.Node = node + this.Cursor = cursor + return &this +} + +// NewRequestEdgeWithDefaults instantiates a new RequestEdge 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 NewRequestEdgeWithDefaults() *RequestEdge { + this := RequestEdge{} + return &this +} + +// GetNode returns the Node field value +func (o *RequestEdge) GetNode() Request { + if o == nil { + var ret Request + return ret + } + + return o.Node +} + +// GetNodeOk returns a tuple with the Node field value +// and a boolean to check if the value has been set. +func (o *RequestEdge) GetNodeOk() (*Request, bool) { + if o == nil { + return nil, false + } + return &o.Node, true +} + +// SetNode sets field value +func (o *RequestEdge) SetNode(v Request) { + o.Node = v +} + +// GetCursor returns the Cursor field value +func (o *RequestEdge) GetCursor() string { + if o == nil { + var ret string + return ret + } + + return o.Cursor +} + +// GetCursorOk returns a tuple with the Cursor field value +// and a boolean to check if the value has been set. +func (o *RequestEdge) GetCursorOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cursor, true +} + +// SetCursor sets field value +func (o *RequestEdge) SetCursor(v string) { + o.Cursor = v +} + +func (o RequestEdge) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequestEdge) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["node"] = o.Node + toSerialize["cursor"] = o.Cursor + return toSerialize, nil +} + +func (o *RequestEdge) 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{ + "node", + "cursor", + } + + 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) + } + } + + varRequestEdge := _RequestEdge{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRequestEdge) + + if err != nil { + return err + } + + *o = RequestEdge(varRequestEdge) + + return err +} + +type NullableRequestEdge struct { + value *RequestEdge + isSet bool +} + +func (v NullableRequestEdge) Get() *RequestEdge { + return v.value +} + +func (v *NullableRequestEdge) Set(val *RequestEdge) { + v.value = val + v.isSet = true +} + +func (v NullableRequestEdge) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestEdge) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestEdge(val *RequestEdge) *NullableRequestEdge { + return &NullableRequestEdge{value: val, isSet: true} +} + +func (v NullableRequestEdge) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestEdge) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_item_stages.go b/model_request_item_stages.go new file mode 100644 index 0000000..7132a83 --- /dev/null +++ b/model_request_item_stages.go @@ -0,0 +1,226 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the RequestItemStages type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequestItemStages{} + +// RequestItemStages The stages configuration for a request item +type RequestItemStages struct { + // The name of the requested role + RequestedRoleName *string `json:"requestedRoleName,omitempty"` + // The name of the requested item + RequestedItemName string `json:"requestedItemName"` + // The stages of review for this request + Stages []RequestStage `json:"stages"` +} + +type _RequestItemStages RequestItemStages + +// NewRequestItemStages instantiates a new RequestItemStages 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 NewRequestItemStages(requestedItemName string, stages []RequestStage) *RequestItemStages { + this := RequestItemStages{} + this.RequestedItemName = requestedItemName + this.Stages = stages + return &this +} + +// NewRequestItemStagesWithDefaults instantiates a new RequestItemStages 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 NewRequestItemStagesWithDefaults() *RequestItemStages { + this := RequestItemStages{} + return &this +} + +// GetRequestedRoleName returns the RequestedRoleName field value if set, zero value otherwise. +func (o *RequestItemStages) GetRequestedRoleName() string { + if o == nil || IsNil(o.RequestedRoleName) { + var ret string + return ret + } + return *o.RequestedRoleName +} + +// GetRequestedRoleNameOk returns a tuple with the RequestedRoleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequestItemStages) GetRequestedRoleNameOk() (*string, bool) { + if o == nil || IsNil(o.RequestedRoleName) { + return nil, false + } + return o.RequestedRoleName, true +} + +// HasRequestedRoleName returns a boolean if a field has been set. +func (o *RequestItemStages) HasRequestedRoleName() bool { + if o != nil && !IsNil(o.RequestedRoleName) { + return true + } + + return false +} + +// SetRequestedRoleName gets a reference to the given string and assigns it to the RequestedRoleName field. +func (o *RequestItemStages) SetRequestedRoleName(v string) { + o.RequestedRoleName = &v +} + +// GetRequestedItemName returns the RequestedItemName field value +func (o *RequestItemStages) GetRequestedItemName() string { + if o == nil { + var ret string + return ret + } + + return o.RequestedItemName +} + +// GetRequestedItemNameOk returns a tuple with the RequestedItemName field value +// and a boolean to check if the value has been set. +func (o *RequestItemStages) GetRequestedItemNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RequestedItemName, true +} + +// SetRequestedItemName sets field value +func (o *RequestItemStages) SetRequestedItemName(v string) { + o.RequestedItemName = v +} + +// GetStages returns the Stages field value +func (o *RequestItemStages) GetStages() []RequestStage { + if o == nil { + var ret []RequestStage + return ret + } + + 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 *RequestItemStages) GetStagesOk() ([]RequestStage, bool) { + if o == nil { + return nil, false + } + return o.Stages, true +} + +// SetStages sets field value +func (o *RequestItemStages) SetStages(v []RequestStage) { + o.Stages = v +} + +func (o RequestItemStages) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequestItemStages) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.RequestedRoleName) { + toSerialize["requestedRoleName"] = o.RequestedRoleName + } + toSerialize["requestedItemName"] = o.RequestedItemName + toSerialize["stages"] = o.Stages + return toSerialize, nil +} + +func (o *RequestItemStages) 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{ + "requestedItemName", + "stages", + } + + 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) + } + } + + varRequestItemStages := _RequestItemStages{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRequestItemStages) + + if err != nil { + return err + } + + *o = RequestItemStages(varRequestItemStages) + + return err +} + +type NullableRequestItemStages struct { + value *RequestItemStages + isSet bool +} + +func (v NullableRequestItemStages) Get() *RequestItemStages { + return v.value +} + +func (v *NullableRequestItemStages) Set(val *RequestItemStages) { + v.value = val + v.isSet = true +} + +func (v NullableRequestItemStages) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestItemStages) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestItemStages(val *RequestItemStages) *NullableRequestItemStages { + return &NullableRequestItemStages{value: val, isSet: true} +} + +func (v NullableRequestItemStages) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestItemStages) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_reviewer.go b/model_request_reviewer.go new file mode 100644 index 0000000..41bcd69 --- /dev/null +++ b/model_request_reviewer.go @@ -0,0 +1,226 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the RequestReviewer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequestReviewer{} + +// RequestReviewer A reviewer in a request stage +type RequestReviewer struct { + // The unique identifier of the reviewer + Id string `json:"id"` + // The user's full name. + FullName *string `json:"full_name,omitempty"` + // The status of this reviewer's review + Status string `json:"status"` +} + +type _RequestReviewer RequestReviewer + +// NewRequestReviewer instantiates a new RequestReviewer 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 NewRequestReviewer(id string, status string) *RequestReviewer { + this := RequestReviewer{} + this.Id = id + this.Status = status + return &this +} + +// NewRequestReviewerWithDefaults instantiates a new RequestReviewer 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 NewRequestReviewerWithDefaults() *RequestReviewer { + this := RequestReviewer{} + return &this +} + +// GetId returns the Id field value +func (o *RequestReviewer) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RequestReviewer) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RequestReviewer) SetId(v string) { + o.Id = v +} + +// GetFullName returns the FullName field value if set, zero value otherwise. +func (o *RequestReviewer) GetFullName() string { + if o == nil || IsNil(o.FullName) { + var ret string + return ret + } + return *o.FullName +} + +// GetFullNameOk returns a tuple with the FullName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequestReviewer) GetFullNameOk() (*string, bool) { + if o == nil || IsNil(o.FullName) { + return nil, false + } + return o.FullName, true +} + +// HasFullName returns a boolean if a field has been set. +func (o *RequestReviewer) HasFullName() bool { + if o != nil && !IsNil(o.FullName) { + return true + } + + return false +} + +// SetFullName gets a reference to the given string and assigns it to the FullName field. +func (o *RequestReviewer) SetFullName(v string) { + o.FullName = &v +} + +// GetStatus returns the Status field value +func (o *RequestReviewer) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *RequestReviewer) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *RequestReviewer) SetStatus(v string) { + o.Status = v +} + +func (o RequestReviewer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequestReviewer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + if !IsNil(o.FullName) { + toSerialize["full_name"] = o.FullName + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +func (o *RequestReviewer) 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{ + "id", + "status", + } + + 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) + } + } + + varRequestReviewer := _RequestReviewer{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRequestReviewer) + + if err != nil { + return err + } + + *o = RequestReviewer(varRequestReviewer) + + return err +} + +type NullableRequestReviewer struct { + value *RequestReviewer + isSet bool +} + +func (v NullableRequestReviewer) Get() *RequestReviewer { + return v.value +} + +func (v *NullableRequestReviewer) Set(val *RequestReviewer) { + v.value = val + v.isSet = true +} + +func (v NullableRequestReviewer) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestReviewer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestReviewer(val *RequestReviewer) *NullableRequestReviewer { + return &NullableRequestReviewer{value: val, isSet: true} +} + +func (v NullableRequestReviewer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestReviewer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_reviewer_stages.go b/model_request_reviewer_stages.go new file mode 100644 index 0000000..02fa6d8 --- /dev/null +++ b/model_request_reviewer_stages.go @@ -0,0 +1,172 @@ +/* +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" + "gopkg.in/validator.v2" +) + +// RequestReviewerStages - The configured reviewer stages for every item in this request, or an error message if reviewers could not be loaded +type RequestReviewerStages struct { + ArrayOfRequestReviewerStages *[]RequestReviewerStages + String *string +} + +// []RequestReviewerStagesAsRequestReviewerStages is a convenience function that returns []RequestReviewerStages wrapped in RequestReviewerStages +func ArrayOfRequestReviewerStagesAsRequestReviewerStages(v *[]RequestReviewerStages) RequestReviewerStages { + return RequestReviewerStages{ + ArrayOfRequestReviewerStages: v, + } +} + +// stringAsRequestReviewerStages is a convenience function that returns string wrapped in RequestReviewerStages +func StringAsRequestReviewerStages(v *string) RequestReviewerStages { + return RequestReviewerStages{ + String: v, + } +} + + +// 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 + } + + if match > 1 { // more than 1 match + // reset to nil + dst.ArrayOfRequestReviewerStages = nil + dst.String = nil + + 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)") + } +} + +// 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) + } + + if src.String != nil { + return json.Marshal(&src.String) + } + + return nil, nil // no data in oneOf schemas +} + +// Get the actual instance +func (obj *RequestReviewerStages) GetActualInstance() (interface{}) { + if obj == nil { + return nil + } + if obj.ArrayOfRequestReviewerStages != nil { + return obj.ArrayOfRequestReviewerStages + } + + if obj.String != nil { + return obj.String + } + + // all schemas are nil + return nil +} + +// Get the actual instance value +func (obj RequestReviewerStages) GetActualInstanceValue() (interface{}) { + if obj.ArrayOfRequestReviewerStages != nil { + return *obj.ArrayOfRequestReviewerStages + } + + if obj.String != nil { + return *obj.String + } + + // all schemas are nil + return nil +} + +type NullableRequestReviewerStages struct { + value *RequestReviewerStages + isSet bool +} + +func (v NullableRequestReviewerStages) Get() *RequestReviewerStages { + return v.value +} + +func (v *NullableRequestReviewerStages) Set(val *RequestReviewerStages) { + v.value = val + v.isSet = true +} + +func (v NullableRequestReviewerStages) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestReviewerStages) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestReviewerStages(val *RequestReviewerStages) *NullableRequestReviewerStages { + return &NullableRequestReviewerStages{value: val, isSet: true} +} + +func (v NullableRequestReviewerStages) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestReviewerStages) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_stage.go b/model_request_stage.go new file mode 100644 index 0000000..c4de37c --- /dev/null +++ b/model_request_stage.go @@ -0,0 +1,218 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the RequestStage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RequestStage{} + +// RequestStage A stage in the request review process +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"` +} + +type _RequestStage RequestStage + +// NewRequestStage instantiates a new RequestStage 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 NewRequestStage(stage int32, operator ReviewStageOperator, reviewers []RequestReviewer) *RequestStage { + this := RequestStage{} + this.Stage = stage + this.Operator = operator + this.Reviewers = reviewers + return &this +} + +// NewRequestStageWithDefaults instantiates a new RequestStage 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 NewRequestStageWithDefaults() *RequestStage { + this := RequestStage{} + return &this +} + +// GetStage returns the Stage field value +func (o *RequestStage) GetStage() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Stage +} + +// GetStageOk returns a tuple with the Stage field value +// and a boolean to check if the value has been set. +func (o *RequestStage) GetStageOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Stage, true +} + +// SetStage sets field value +func (o *RequestStage) SetStage(v int32) { + o.Stage = v +} + +// GetOperator returns the Operator field value +func (o *RequestStage) GetOperator() ReviewStageOperator { + if o == nil { + var ret ReviewStageOperator + return ret + } + + return o.Operator +} + +// GetOperatorOk returns a tuple with the Operator field value +// and a boolean to check if the value has been set. +func (o *RequestStage) GetOperatorOk() (*ReviewStageOperator, bool) { + if o == nil { + return nil, false + } + return &o.Operator, true +} + +// SetOperator sets field value +func (o *RequestStage) SetOperator(v ReviewStageOperator) { + o.Operator = v +} + +// GetReviewers returns the Reviewers field value +func (o *RequestStage) GetReviewers() []RequestReviewer { + if o == nil { + var ret []RequestReviewer + return ret + } + + return o.Reviewers +} + +// GetReviewersOk returns a tuple with the Reviewers field value +// and a boolean to check if the value has been set. +func (o *RequestStage) GetReviewersOk() ([]RequestReviewer, bool) { + if o == nil { + return nil, false + } + return o.Reviewers, true +} + +// SetReviewers sets field value +func (o *RequestStage) SetReviewers(v []RequestReviewer) { + o.Reviewers = v +} + +func (o RequestStage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RequestStage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["stage"] = o.Stage + toSerialize["operator"] = o.Operator + toSerialize["reviewers"] = o.Reviewers + return toSerialize, nil +} + +func (o *RequestStage) 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{ + "stage", + "operator", + "reviewers", + } + + 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) + } + } + + varRequestStage := _RequestStage{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varRequestStage) + + if err != nil { + return err + } + + *o = RequestStage(varRequestStage) + + return err +} + +type NullableRequestStage struct { + value *RequestStage + isSet bool +} + +func (v NullableRequestStage) Get() *RequestStage { + return v.value +} + +func (v *NullableRequestStage) Set(val *RequestStage) { + v.value = val + v.isSet = true +} + +func (v NullableRequestStage) IsSet() bool { + return v.isSet +} + +func (v *NullableRequestStage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRequestStage(val *RequestStage) *NullableRequestStage { + return &NullableRequestStage{value: val, isSet: true} +} + +func (v NullableRequestStage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRequestStage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_request_status_enum.go b/model_request_status_enum.go index 8bc66f0..09395ad 100644 --- a/model_request_status_enum.go +++ b/model_request_status_enum.go @@ -21,18 +21,18 @@ type RequestStatusEnum string // List of RequestStatusEnum const ( - REQUESTSTATUSENUM_PENDING RequestStatusEnum = "pending" - REQUESTSTATUSENUM_APPROVED RequestStatusEnum = "approved" - REQUESTSTATUSENUM_DENIED RequestStatusEnum = "denied" - REQUESTSTATUSENUM_CANCELED RequestStatusEnum = "canceled" + REQUESTSTATUSENUM_PENDING RequestStatusEnum = "PENDING" + REQUESTSTATUSENUM_APPROVED RequestStatusEnum = "APPROVED" + REQUESTSTATUSENUM_DENIED RequestStatusEnum = "DENIED" + REQUESTSTATUSENUM_CANCELED RequestStatusEnum = "CANCELED" ) // All allowed values of RequestStatusEnum enum var AllowedRequestStatusEnumEnumValues = []RequestStatusEnum{ - "pending", - "approved", - "denied", - "canceled", + "PENDING", + "APPROVED", + "DENIED", + "CANCELED", } func (v *RequestStatusEnum) UnmarshalJSON(src []byte) error { diff --git a/model_requested_item.go b/model_requested_item.go index 508645e..cc00de9 100644 --- a/model_requested_item.go +++ b/model_requested_item.go @@ -30,6 +30,10 @@ type RequestedItem struct { AccessLevelRemoteId *string `json:"access_level_remote_id,omitempty"` // The name of the target. Name *string `json:"name,omitempty"` + // The ID of the target on the remote system. + RemoteId *string `json:"remote_id,omitempty"` + // The name of the target on the remote system. + RemoteName *string `json:"remote_name,omitempty"` } // NewRequestedItem instantiates a new RequestedItem object @@ -209,6 +213,70 @@ func (o *RequestedItem) SetName(v string) { o.Name = &v } +// GetRemoteId returns the RemoteId field value if set, zero value otherwise. +func (o *RequestedItem) GetRemoteId() string { + if o == nil || IsNil(o.RemoteId) { + var ret string + return ret + } + return *o.RemoteId +} + +// GetRemoteIdOk returns a tuple with the RemoteId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequestedItem) GetRemoteIdOk() (*string, bool) { + if o == nil || IsNil(o.RemoteId) { + return nil, false + } + return o.RemoteId, true +} + +// HasRemoteId returns a boolean if a field has been set. +func (o *RequestedItem) HasRemoteId() bool { + if o != nil && !IsNil(o.RemoteId) { + return true + } + + return false +} + +// SetRemoteId gets a reference to the given string and assigns it to the RemoteId field. +func (o *RequestedItem) SetRemoteId(v string) { + o.RemoteId = &v +} + +// GetRemoteName returns the RemoteName field value if set, zero value otherwise. +func (o *RequestedItem) GetRemoteName() string { + if o == nil || IsNil(o.RemoteName) { + var ret string + return ret + } + return *o.RemoteName +} + +// GetRemoteNameOk returns a tuple with the RemoteName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RequestedItem) GetRemoteNameOk() (*string, bool) { + if o == nil || IsNil(o.RemoteName) { + return nil, false + } + return o.RemoteName, true +} + +// HasRemoteName returns a boolean if a field has been set. +func (o *RequestedItem) HasRemoteName() bool { + if o != nil && !IsNil(o.RemoteName) { + return true + } + + return false +} + +// SetRemoteName gets a reference to the given string and assigns it to the RemoteName field. +func (o *RequestedItem) SetRemoteName(v string) { + o.RemoteName = &v +} + func (o RequestedItem) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -234,6 +302,12 @@ func (o RequestedItem) ToMap() (map[string]interface{}, error) { if !IsNil(o.Name) { toSerialize["name"] = o.Name } + if !IsNil(o.RemoteId) { + toSerialize["remote_id"] = o.RemoteId + } + if !IsNil(o.RemoteName) { + toSerialize["remote_name"] = o.RemoteName + } return toSerialize, nil } diff --git a/model_resource.go b/model_resource.go index bc7b9bb..ed12f25 100644 --- a/model_resource.go +++ b/model_resource.go @@ -41,6 +41,8 @@ type Resource struct { MaxDuration *int32 `json:"max_duration,omitempty"` // The recommended duration for which the resource should be requested (in minutes). -1 represents an indefinite duration. RecommendedDuration *int32 `json:"recommended_duration,omitempty"` + // 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. + ExtensionsDurationInMinutes *int32 `json:"extensions_duration_in_minutes,omitempty"` // A bool representing whether or not access requests to the resource require manager approval. // Deprecated RequireManagerApproval *bool `json:"require_manager_approval,omitempty"` @@ -76,6 +78,12 @@ type Resource struct { // Deprecated Metadata *string `json:"metadata,omitempty"` RemoteInfo *ResourceRemoteInfo `json:"remote_info,omitempty"` + // List of resource IDs that are ancestors of this resource. + 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"` } type _Resource Resource @@ -410,6 +418,38 @@ func (o *Resource) SetRecommendedDuration(v int32) { o.RecommendedDuration = &v } +// GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field value if set, zero value otherwise. +func (o *Resource) GetExtensionsDurationInMinutes() int32 { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + var ret int32 + return ret + } + return *o.ExtensionsDurationInMinutes +} + +// GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetExtensionsDurationInMinutesOk() (*int32, bool) { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + return nil, false + } + return o.ExtensionsDurationInMinutes, true +} + +// HasExtensionsDurationInMinutes returns a boolean if a field has been set. +func (o *Resource) HasExtensionsDurationInMinutes() bool { + if o != nil && !IsNil(o.ExtensionsDurationInMinutes) { + return true + } + + return false +} + +// SetExtensionsDurationInMinutes gets a reference to the given int32 and assigns it to the ExtensionsDurationInMinutes field. +func (o *Resource) SetExtensionsDurationInMinutes(v int32) { + o.ExtensionsDurationInMinutes = &v +} + // GetRequireManagerApproval returns the RequireManagerApproval field value if set, zero value otherwise. // Deprecated func (o *Resource) GetRequireManagerApproval() bool { @@ -992,6 +1032,102 @@ func (o *Resource) SetRemoteInfo(v ResourceRemoteInfo) { o.RemoteInfo = &v } +// GetAncestorResourceIds returns the AncestorResourceIds field value if set, zero value otherwise. +func (o *Resource) GetAncestorResourceIds() []string { + if o == nil || IsNil(o.AncestorResourceIds) { + var ret []string + return ret + } + return o.AncestorResourceIds +} + +// GetAncestorResourceIdsOk returns a tuple with the AncestorResourceIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetAncestorResourceIdsOk() ([]string, bool) { + if o == nil || IsNil(o.AncestorResourceIds) { + return nil, false + } + return o.AncestorResourceIds, true +} + +// HasAncestorResourceIds returns a boolean if a field has been set. +func (o *Resource) HasAncestorResourceIds() bool { + if o != nil && !IsNil(o.AncestorResourceIds) { + return true + } + + return false +} + +// SetAncestorResourceIds gets a reference to the given []string and assigns it to the AncestorResourceIds field. +func (o *Resource) SetAncestorResourceIds(v []string) { + o.AncestorResourceIds = v +} + +// GetDescendantResourceIds returns the DescendantResourceIds field value if set, zero value otherwise. +func (o *Resource) GetDescendantResourceIds() []string { + if o == nil || IsNil(o.DescendantResourceIds) { + var ret []string + return ret + } + return o.DescendantResourceIds +} + +// GetDescendantResourceIdsOk returns a tuple with the DescendantResourceIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetDescendantResourceIdsOk() ([]string, bool) { + if o == nil || IsNil(o.DescendantResourceIds) { + return nil, false + } + return o.DescendantResourceIds, true +} + +// HasDescendantResourceIds returns a boolean if a field has been set. +func (o *Resource) HasDescendantResourceIds() bool { + if o != nil && !IsNil(o.DescendantResourceIds) { + return true + } + + return false +} + +// SetDescendantResourceIds gets a reference to the given []string and assigns it to the DescendantResourceIds field. +func (o *Resource) SetDescendantResourceIds(v []string) { + o.DescendantResourceIds = v +} + +// GetLastSuccessfulSync returns the LastSuccessfulSync field value if set, zero value otherwise. +func (o *Resource) GetLastSuccessfulSync() SyncTask { + if o == nil || IsNil(o.LastSuccessfulSync) { + var ret SyncTask + return ret + } + return *o.LastSuccessfulSync +} + +// GetLastSuccessfulSyncOk returns a tuple with the LastSuccessfulSync field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Resource) GetLastSuccessfulSyncOk() (*SyncTask, bool) { + if o == nil || IsNil(o.LastSuccessfulSync) { + return nil, false + } + return o.LastSuccessfulSync, true +} + +// HasLastSuccessfulSync returns a boolean if a field has been set. +func (o *Resource) HasLastSuccessfulSync() bool { + if o != nil && !IsNil(o.LastSuccessfulSync) { + return true + } + + return false +} + +// SetLastSuccessfulSync gets a reference to the given SyncTask and assigns it to the LastSuccessfulSync field. +func (o *Resource) SetLastSuccessfulSync(v SyncTask) { + o.LastSuccessfulSync = &v +} + func (o Resource) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -1030,6 +1166,9 @@ func (o Resource) ToMap() (map[string]interface{}, error) { if !IsNil(o.RecommendedDuration) { toSerialize["recommended_duration"] = o.RecommendedDuration } + if !IsNil(o.ExtensionsDurationInMinutes) { + toSerialize["extensions_duration_in_minutes"] = o.ExtensionsDurationInMinutes + } if !IsNil(o.RequireManagerApproval) { toSerialize["require_manager_approval"] = o.RequireManagerApproval } @@ -1084,6 +1223,15 @@ func (o Resource) ToMap() (map[string]interface{}, error) { if !IsNil(o.RemoteInfo) { toSerialize["remote_info"] = o.RemoteInfo } + if !IsNil(o.AncestorResourceIds) { + toSerialize["ancestor_resource_ids"] = o.AncestorResourceIds + } + if !IsNil(o.DescendantResourceIds) { + toSerialize["descendant_resource_ids"] = o.DescendantResourceIds + } + if !IsNil(o.LastSuccessfulSync) { + toSerialize["last_successful_sync"] = o.LastSuccessfulSync + } return toSerialize, nil } diff --git a/model_resource_access_user.go b/model_resource_access_user.go index f806187..bfae3f6 100644 --- a/model_resource_access_user.go +++ b/model_resource_access_user.go @@ -25,6 +25,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 diff --git a/model_resource_access_user_list.go b/model_resource_access_user_list.go index fce1959..ab52a63 100644 --- a/model_resource_access_user_list.go +++ b/model_resource_access_user_list.go @@ -20,6 +20,10 @@ var _ MappedNullable = &ResourceAccessUserList{} // ResourceAccessUserList struct for ResourceAccessUserList type ResourceAccessUserList struct { + // The cursor with which to continue pagination if additional result pages exist. + Next *string `json:"next,omitempty"` + // The cursor used to obtain the current result page. + Previous *string `json:"previous,omitempty"` Results []ResourceAccessUser `json:"results,omitempty"` } @@ -40,6 +44,70 @@ func NewResourceAccessUserListWithDefaults() *ResourceAccessUserList { return &this } +// GetNext returns the Next field value if set, zero value otherwise. +func (o *ResourceAccessUserList) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + return ret + } + return *o.Next +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceAccessUserList) GetNextOk() (*string, bool) { + if o == nil || IsNil(o.Next) { + return nil, false + } + return o.Next, true +} + +// HasNext returns a boolean if a field has been set. +func (o *ResourceAccessUserList) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *ResourceAccessUserList) SetNext(v string) { + o.Next = &v +} + +// GetPrevious returns the Previous field value if set, zero value otherwise. +func (o *ResourceAccessUserList) GetPrevious() string { + if o == nil || IsNil(o.Previous) { + var ret string + return ret + } + return *o.Previous +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceAccessUserList) GetPreviousOk() (*string, bool) { + if o == nil || IsNil(o.Previous) { + return nil, false + } + return o.Previous, true +} + +// HasPrevious returns a boolean if a field has been set. +func (o *ResourceAccessUserList) HasPrevious() bool { + if o != nil && !IsNil(o.Previous) { + return true + } + + return false +} + +// SetPrevious gets a reference to the given string and assigns it to the Previous field. +func (o *ResourceAccessUserList) SetPrevious(v string) { + o.Previous = &v +} + // GetResults returns the Results field value if set, zero value otherwise. func (o *ResourceAccessUserList) GetResults() []ResourceAccessUser { if o == nil || IsNil(o.Results) { @@ -82,6 +150,12 @@ func (o ResourceAccessUserList) MarshalJSON() ([]byte, error) { func (o ResourceAccessUserList) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.Previous) { + toSerialize["previous"] = o.Previous + } if !IsNil(o.Results) { toSerialize["results"] = o.Results } diff --git a/model_resource_remote_info.go b/model_resource_remote_info.go index 7c3520f..ab09022 100644 --- a/model_resource_remote_info.go +++ b/model_resource_remote_info.go @@ -20,12 +20,29 @@ 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"` GcpOrganization *ResourceRemoteInfoGcpOrganization `json:"gcp_organization,omitempty"` GcpBucket *ResourceRemoteInfoGcpBucket `json:"gcp_bucket,omitempty"` GcpComputeInstance *ResourceRemoteInfoGcpComputeInstance `json:"gcp_compute_instance,omitempty"` @@ -36,16 +53,45 @@ type ResourceRemoteInfo struct { GcpProject *ResourceRemoteInfoGcpProject `json:"gcp_project,omitempty"` GcpSqlInstance *ResourceRemoteInfoGcpSqlInstance `json:"gcp_sql_instance,omitempty"` GcpServiceAccount *ResourceRemoteInfoGcpServiceAccount `json:"gcp_service_account,omitempty"` + 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"` + GithubEnterpriseRole *ResourceRemoteInfoGithubEnterpriseRole `json:"github_enterprise_role,omitempty"` GitlabProject *ResourceRemoteInfoGitlabProject `json:"gitlab_project,omitempty"` OktaApp *ResourceRemoteInfoOktaApp `json:"okta_app,omitempty"` OktaStandardRole *ResourceRemoteInfoOktaStandardRole `json:"okta_standard_role,omitempty"` 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"` + TwingateResource *ResourceRemoteInfoTwingateResource `json:"twingate_resource,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"` + NetsuiteRole *ResourceRemoteInfoNetsuiteRole `json:"netsuite_role,omitempty"` + DatadogRole *ResourceRemoteInfoDatadogRole `json:"datadog_role,omitempty"` + ClickhouseDatabase *ResourceRemoteInfoClickhouseDatabase `json:"clickhouse_database,omitempty"` + ClickhouseTable *ResourceRemoteInfoClickhouseTable `json:"clickhouse_table,omitempty"` + GrafanaFolder *ResourceRemoteInfoGrafanaFolder `json:"grafana_folder,omitempty"` + GrafanaDashboard *ResourceRemoteInfoGrafanaDashboard `json:"grafana_dashboard,omitempty"` + GrafanaRole *ResourceRemoteInfoGrafanaRole `json:"grafana_role,omitempty"` + ZendeskRole *ResourceRemoteInfoZendeskRole `json:"zendesk_role,omitempty"` + HubspotRole *ResourceRemoteInfoHubspotRole `json:"hubspot_role,omitempty"` } // NewResourceRemoteInfo instantiates a new ResourceRemoteInfo object @@ -65,836 +111,2308 @@ 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) { + var ret ResourceRemoteInfoAwsOrganizationalUnit + return ret + } + return *o.AwsOrganizationalUnit +} + +// GetAwsOrganizationalUnitOk returns a tuple with the AwsOrganizationalUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsOrganizationalUnitOk() (*ResourceRemoteInfoAwsOrganizationalUnit, bool) { + if o == nil || IsNil(o.AwsOrganizationalUnit) { + return nil, false + } + return o.AwsOrganizationalUnit, true +} + +// HasAwsOrganizationalUnit returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsOrganizationalUnit() bool { + if o != nil && !IsNil(o.AwsOrganizationalUnit) { + return true + } + + return false +} + +// SetAwsOrganizationalUnit gets a reference to the given ResourceRemoteInfoAwsOrganizationalUnit and assigns it to the AwsOrganizationalUnit field. +func (o *ResourceRemoteInfo) SetAwsOrganizationalUnit(v ResourceRemoteInfoAwsOrganizationalUnit) { + o.AwsOrganizationalUnit = &v +} + // GetAwsAccount returns the AwsAccount field value if set, zero value otherwise. func (o *ResourceRemoteInfo) GetAwsAccount() ResourceRemoteInfoAwsAccount { if o == nil || IsNil(o.AwsAccount) { var ret ResourceRemoteInfoAwsAccount return ret } - return *o.AwsAccount + return *o.AwsAccount +} + +// GetAwsAccountOk returns a tuple with the AwsAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsAccountOk() (*ResourceRemoteInfoAwsAccount, bool) { + if o == nil || IsNil(o.AwsAccount) { + return nil, false + } + return o.AwsAccount, true +} + +// HasAwsAccount returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsAccount() bool { + if o != nil && !IsNil(o.AwsAccount) { + return true + } + + return false +} + +// SetAwsAccount gets a reference to the given ResourceRemoteInfoAwsAccount and assigns it to the AwsAccount field. +func (o *ResourceRemoteInfo) SetAwsAccount(v ResourceRemoteInfoAwsAccount) { + o.AwsAccount = &v +} + +// GetAwsPermissionSet returns the AwsPermissionSet field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAwsPermissionSet() ResourceRemoteInfoAwsPermissionSet { + if o == nil || IsNil(o.AwsPermissionSet) { + var ret ResourceRemoteInfoAwsPermissionSet + return ret + } + return *o.AwsPermissionSet +} + +// GetAwsPermissionSetOk returns a tuple with the AwsPermissionSet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsPermissionSetOk() (*ResourceRemoteInfoAwsPermissionSet, bool) { + if o == nil || IsNil(o.AwsPermissionSet) { + return nil, false + } + return o.AwsPermissionSet, true +} + +// HasAwsPermissionSet returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsPermissionSet() bool { + if o != nil && !IsNil(o.AwsPermissionSet) { + return true + } + + return false +} + +// SetAwsPermissionSet gets a reference to the given ResourceRemoteInfoAwsPermissionSet and assigns it to the AwsPermissionSet field. +func (o *ResourceRemoteInfo) SetAwsPermissionSet(v ResourceRemoteInfoAwsPermissionSet) { + o.AwsPermissionSet = &v +} + +// GetAwsIamRole returns the AwsIamRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAwsIamRole() ResourceRemoteInfoAwsIamRole { + if o == nil || IsNil(o.AwsIamRole) { + var ret ResourceRemoteInfoAwsIamRole + return ret + } + return *o.AwsIamRole +} + +// GetAwsIamRoleOk returns a tuple with the AwsIamRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsIamRoleOk() (*ResourceRemoteInfoAwsIamRole, bool) { + if o == nil || IsNil(o.AwsIamRole) { + return nil, false + } + return o.AwsIamRole, true +} + +// HasAwsIamRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsIamRole() bool { + if o != nil && !IsNil(o.AwsIamRole) { + return true + } + + return false +} + +// SetAwsIamRole gets a reference to the given ResourceRemoteInfoAwsIamRole and assigns it to the AwsIamRole field. +func (o *ResourceRemoteInfo) SetAwsIamRole(v ResourceRemoteInfoAwsIamRole) { + o.AwsIamRole = &v +} + +// GetAwsEc2Instance returns the AwsEc2Instance field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAwsEc2Instance() ResourceRemoteInfoAwsEc2Instance { + if o == nil || IsNil(o.AwsEc2Instance) { + var ret ResourceRemoteInfoAwsEc2Instance + return ret + } + return *o.AwsEc2Instance +} + +// GetAwsEc2InstanceOk returns a tuple with the AwsEc2Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsEc2InstanceOk() (*ResourceRemoteInfoAwsEc2Instance, bool) { + if o == nil || IsNil(o.AwsEc2Instance) { + return nil, false + } + return o.AwsEc2Instance, true +} + +// HasAwsEc2Instance returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsEc2Instance() bool { + if o != nil && !IsNil(o.AwsEc2Instance) { + return true + } + + return false +} + +// SetAwsEc2Instance gets a reference to the given ResourceRemoteInfoAwsEc2Instance and assigns it to the AwsEc2Instance field. +func (o *ResourceRemoteInfo) SetAwsEc2Instance(v ResourceRemoteInfoAwsEc2Instance) { + 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) { + var ret ResourceRemoteInfoAwsRdsInstance + return ret + } + return *o.AwsRdsInstance +} + +// GetAwsRdsInstanceOk returns a tuple with the AwsRdsInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsRdsInstanceOk() (*ResourceRemoteInfoAwsRdsInstance, bool) { + if o == nil || IsNil(o.AwsRdsInstance) { + return nil, false + } + return o.AwsRdsInstance, true +} + +// HasAwsRdsInstance returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsRdsInstance() bool { + if o != nil && !IsNil(o.AwsRdsInstance) { + return true + } + + return false +} + +// SetAwsRdsInstance gets a reference to the given ResourceRemoteInfoAwsRdsInstance and assigns it to the AwsRdsInstance field. +func (o *ResourceRemoteInfo) SetAwsRdsInstance(v ResourceRemoteInfoAwsRdsInstance) { + o.AwsRdsInstance = &v +} + +// GetAwsEksCluster returns the AwsEksCluster field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetAwsEksCluster() ResourceRemoteInfoAwsEksCluster { + if o == nil || IsNil(o.AwsEksCluster) { + var ret ResourceRemoteInfoAwsEksCluster + return ret + } + return *o.AwsEksCluster +} + +// GetAwsEksClusterOk returns a tuple with the AwsEksCluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetAwsEksClusterOk() (*ResourceRemoteInfoAwsEksCluster, bool) { + if o == nil || IsNil(o.AwsEksCluster) { + return nil, false + } + return o.AwsEksCluster, true +} + +// HasAwsEksCluster returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasAwsEksCluster() bool { + if o != nil && !IsNil(o.AwsEksCluster) { + return true + } + + return false +} + +// SetAwsEksCluster gets a reference to the given ResourceRemoteInfoAwsEksCluster and assigns it to the AwsEksCluster field. +func (o *ResourceRemoteInfo) SetAwsEksCluster(v ResourceRemoteInfoAwsEksCluster) { + o.AwsEksCluster = &v +} + +// GetCustomConnector returns the CustomConnector field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetCustomConnector() ResourceRemoteInfoCustomConnector { + if o == nil || IsNil(o.CustomConnector) { + var ret ResourceRemoteInfoCustomConnector + return ret + } + return *o.CustomConnector +} + +// GetCustomConnectorOk returns a tuple with the CustomConnector field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetCustomConnectorOk() (*ResourceRemoteInfoCustomConnector, bool) { + if o == nil || IsNil(o.CustomConnector) { + return nil, false + } + return o.CustomConnector, true +} + +// HasCustomConnector returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasCustomConnector() bool { + if o != nil && !IsNil(o.CustomConnector) { + return true + } + + return false +} + +// SetCustomConnector gets a reference to the given ResourceRemoteInfoCustomConnector and assigns it to the CustomConnector field. +func (o *ResourceRemoteInfo) SetCustomConnector(v ResourceRemoteInfoCustomConnector) { + o.CustomConnector = &v +} + +// GetGcpOrganization returns the GcpOrganization field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpOrganization() ResourceRemoteInfoGcpOrganization { + if o == nil || IsNil(o.GcpOrganization) { + var ret ResourceRemoteInfoGcpOrganization + return ret + } + return *o.GcpOrganization +} + +// GetGcpOrganizationOk returns a tuple with the GcpOrganization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpOrganizationOk() (*ResourceRemoteInfoGcpOrganization, bool) { + if o == nil || IsNil(o.GcpOrganization) { + return nil, false + } + return o.GcpOrganization, true +} + +// HasGcpOrganization returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpOrganization() bool { + if o != nil && !IsNil(o.GcpOrganization) { + return true + } + + return false +} + +// SetGcpOrganization gets a reference to the given ResourceRemoteInfoGcpOrganization and assigns it to the GcpOrganization field. +func (o *ResourceRemoteInfo) SetGcpOrganization(v ResourceRemoteInfoGcpOrganization) { + o.GcpOrganization = &v +} + +// GetGcpBucket returns the GcpBucket field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpBucket() ResourceRemoteInfoGcpBucket { + if o == nil || IsNil(o.GcpBucket) { + var ret ResourceRemoteInfoGcpBucket + return ret + } + return *o.GcpBucket +} + +// GetGcpBucketOk returns a tuple with the GcpBucket field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpBucketOk() (*ResourceRemoteInfoGcpBucket, bool) { + if o == nil || IsNil(o.GcpBucket) { + return nil, false + } + return o.GcpBucket, true +} + +// HasGcpBucket returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpBucket() bool { + if o != nil && !IsNil(o.GcpBucket) { + return true + } + + return false +} + +// SetGcpBucket gets a reference to the given ResourceRemoteInfoGcpBucket and assigns it to the GcpBucket field. +func (o *ResourceRemoteInfo) SetGcpBucket(v ResourceRemoteInfoGcpBucket) { + o.GcpBucket = &v +} + +// GetGcpComputeInstance returns the GcpComputeInstance field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpComputeInstance() ResourceRemoteInfoGcpComputeInstance { + if o == nil || IsNil(o.GcpComputeInstance) { + var ret ResourceRemoteInfoGcpComputeInstance + return ret + } + return *o.GcpComputeInstance +} + +// GetGcpComputeInstanceOk returns a tuple with the GcpComputeInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpComputeInstanceOk() (*ResourceRemoteInfoGcpComputeInstance, bool) { + if o == nil || IsNil(o.GcpComputeInstance) { + return nil, false + } + return o.GcpComputeInstance, true +} + +// HasGcpComputeInstance returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpComputeInstance() bool { + if o != nil && !IsNil(o.GcpComputeInstance) { + return true + } + + return false +} + +// SetGcpComputeInstance gets a reference to the given ResourceRemoteInfoGcpComputeInstance and assigns it to the GcpComputeInstance field. +func (o *ResourceRemoteInfo) SetGcpComputeInstance(v ResourceRemoteInfoGcpComputeInstance) { + o.GcpComputeInstance = &v +} + +// GetGcpBigQueryDataset returns the GcpBigQueryDataset field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpBigQueryDataset() ResourceRemoteInfoGcpBigQueryDataset { + if o == nil || IsNil(o.GcpBigQueryDataset) { + var ret ResourceRemoteInfoGcpBigQueryDataset + return ret + } + return *o.GcpBigQueryDataset +} + +// GetGcpBigQueryDatasetOk returns a tuple with the GcpBigQueryDataset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpBigQueryDatasetOk() (*ResourceRemoteInfoGcpBigQueryDataset, bool) { + if o == nil || IsNil(o.GcpBigQueryDataset) { + return nil, false + } + return o.GcpBigQueryDataset, true +} + +// HasGcpBigQueryDataset returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpBigQueryDataset() bool { + if o != nil && !IsNil(o.GcpBigQueryDataset) { + return true + } + + return false +} + +// SetGcpBigQueryDataset gets a reference to the given ResourceRemoteInfoGcpBigQueryDataset and assigns it to the GcpBigQueryDataset field. +func (o *ResourceRemoteInfo) SetGcpBigQueryDataset(v ResourceRemoteInfoGcpBigQueryDataset) { + o.GcpBigQueryDataset = &v +} + +// GetGcpBigQueryTable returns the GcpBigQueryTable field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpBigQueryTable() ResourceRemoteInfoGcpBigQueryTable { + if o == nil || IsNil(o.GcpBigQueryTable) { + var ret ResourceRemoteInfoGcpBigQueryTable + return ret + } + return *o.GcpBigQueryTable +} + +// GetGcpBigQueryTableOk returns a tuple with the GcpBigQueryTable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpBigQueryTableOk() (*ResourceRemoteInfoGcpBigQueryTable, bool) { + if o == nil || IsNil(o.GcpBigQueryTable) { + return nil, false + } + return o.GcpBigQueryTable, true +} + +// HasGcpBigQueryTable returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpBigQueryTable() bool { + if o != nil && !IsNil(o.GcpBigQueryTable) { + return true + } + + return false +} + +// SetGcpBigQueryTable gets a reference to the given ResourceRemoteInfoGcpBigQueryTable and assigns it to the GcpBigQueryTable field. +func (o *ResourceRemoteInfo) SetGcpBigQueryTable(v ResourceRemoteInfoGcpBigQueryTable) { + o.GcpBigQueryTable = &v +} + +// GetGcpFolder returns the GcpFolder field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpFolder() ResourceRemoteInfoGcpFolder { + if o == nil || IsNil(o.GcpFolder) { + var ret ResourceRemoteInfoGcpFolder + return ret + } + return *o.GcpFolder +} + +// GetGcpFolderOk returns a tuple with the GcpFolder field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpFolderOk() (*ResourceRemoteInfoGcpFolder, bool) { + if o == nil || IsNil(o.GcpFolder) { + return nil, false + } + return o.GcpFolder, true +} + +// HasGcpFolder returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpFolder() bool { + if o != nil && !IsNil(o.GcpFolder) { + return true + } + + return false +} + +// SetGcpFolder gets a reference to the given ResourceRemoteInfoGcpFolder and assigns it to the GcpFolder field. +func (o *ResourceRemoteInfo) SetGcpFolder(v ResourceRemoteInfoGcpFolder) { + o.GcpFolder = &v +} + +// GetGcpGkeCluster returns the GcpGkeCluster field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpGkeCluster() ResourceRemoteInfoGcpGkeCluster { + if o == nil || IsNil(o.GcpGkeCluster) { + var ret ResourceRemoteInfoGcpGkeCluster + return ret + } + return *o.GcpGkeCluster +} + +// GetGcpGkeClusterOk returns a tuple with the GcpGkeCluster field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpGkeClusterOk() (*ResourceRemoteInfoGcpGkeCluster, bool) { + if o == nil || IsNil(o.GcpGkeCluster) { + return nil, false + } + return o.GcpGkeCluster, true +} + +// HasGcpGkeCluster returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpGkeCluster() bool { + if o != nil && !IsNil(o.GcpGkeCluster) { + return true + } + + return false +} + +// SetGcpGkeCluster gets a reference to the given ResourceRemoteInfoGcpGkeCluster and assigns it to the GcpGkeCluster field. +func (o *ResourceRemoteInfo) SetGcpGkeCluster(v ResourceRemoteInfoGcpGkeCluster) { + o.GcpGkeCluster = &v +} + +// GetGcpProject returns the GcpProject field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpProject() ResourceRemoteInfoGcpProject { + if o == nil || IsNil(o.GcpProject) { + var ret ResourceRemoteInfoGcpProject + return ret + } + return *o.GcpProject +} + +// GetGcpProjectOk returns a tuple with the GcpProject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpProjectOk() (*ResourceRemoteInfoGcpProject, bool) { + if o == nil || IsNil(o.GcpProject) { + return nil, false + } + return o.GcpProject, true +} + +// HasGcpProject returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpProject() bool { + if o != nil && !IsNil(o.GcpProject) { + return true + } + + return false +} + +// SetGcpProject gets a reference to the given ResourceRemoteInfoGcpProject and assigns it to the GcpProject field. +func (o *ResourceRemoteInfo) SetGcpProject(v ResourceRemoteInfoGcpProject) { + o.GcpProject = &v +} + +// GetGcpSqlInstance returns the GcpSqlInstance field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpSqlInstance() ResourceRemoteInfoGcpSqlInstance { + if o == nil || IsNil(o.GcpSqlInstance) { + var ret ResourceRemoteInfoGcpSqlInstance + return ret + } + return *o.GcpSqlInstance +} + +// GetGcpSqlInstanceOk returns a tuple with the GcpSqlInstance field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpSqlInstanceOk() (*ResourceRemoteInfoGcpSqlInstance, bool) { + if o == nil || IsNil(o.GcpSqlInstance) { + return nil, false + } + return o.GcpSqlInstance, true +} + +// HasGcpSqlInstance returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpSqlInstance() bool { + if o != nil && !IsNil(o.GcpSqlInstance) { + return true + } + + return false +} + +// SetGcpSqlInstance gets a reference to the given ResourceRemoteInfoGcpSqlInstance and assigns it to the GcpSqlInstance field. +func (o *ResourceRemoteInfo) SetGcpSqlInstance(v ResourceRemoteInfoGcpSqlInstance) { + o.GcpSqlInstance = &v +} + +// GetGcpServiceAccount returns the GcpServiceAccount field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGcpServiceAccount() ResourceRemoteInfoGcpServiceAccount { + if o == nil || IsNil(o.GcpServiceAccount) { + var ret ResourceRemoteInfoGcpServiceAccount + return ret + } + return *o.GcpServiceAccount +} + +// GetGcpServiceAccountOk returns a tuple with the GcpServiceAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGcpServiceAccountOk() (*ResourceRemoteInfoGcpServiceAccount, bool) { + if o == nil || IsNil(o.GcpServiceAccount) { + return nil, false + } + return o.GcpServiceAccount, true +} + +// HasGcpServiceAccount returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGcpServiceAccount() bool { + if o != nil && !IsNil(o.GcpServiceAccount) { + return true + } + + return false +} + +// SetGcpServiceAccount gets a reference to the given ResourceRemoteInfoGcpServiceAccount and assigns it to the GcpServiceAccount field. +func (o *ResourceRemoteInfo) SetGcpServiceAccount(v ResourceRemoteInfoGcpServiceAccount) { + o.GcpServiceAccount = &v +} + +// GetGoogleWorkspaceRole returns the GoogleWorkspaceRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGoogleWorkspaceRole() ResourceRemoteInfoGoogleWorkspaceRole { + if o == nil || IsNil(o.GoogleWorkspaceRole) { + var ret ResourceRemoteInfoGoogleWorkspaceRole + return ret + } + return *o.GoogleWorkspaceRole +} + +// GetGoogleWorkspaceRoleOk returns a tuple with the GoogleWorkspaceRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGoogleWorkspaceRoleOk() (*ResourceRemoteInfoGoogleWorkspaceRole, bool) { + if o == nil || IsNil(o.GoogleWorkspaceRole) { + return nil, false + } + return o.GoogleWorkspaceRole, true +} + +// HasGoogleWorkspaceRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGoogleWorkspaceRole() bool { + if o != nil && !IsNil(o.GoogleWorkspaceRole) { + return true + } + + return false +} + +// SetGoogleWorkspaceRole gets a reference to the given ResourceRemoteInfoGoogleWorkspaceRole and assigns it to the GoogleWorkspaceRole field. +func (o *ResourceRemoteInfo) SetGoogleWorkspaceRole(v ResourceRemoteInfoGoogleWorkspaceRole) { + o.GoogleWorkspaceRole = &v +} + +// GetGithubRepo returns the GithubRepo field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGithubRepo() ResourceRemoteInfoGithubRepo { + if o == nil || IsNil(o.GithubRepo) { + var ret ResourceRemoteInfoGithubRepo + return ret + } + return *o.GithubRepo +} + +// GetGithubRepoOk returns a tuple with the GithubRepo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGithubRepoOk() (*ResourceRemoteInfoGithubRepo, bool) { + if o == nil || IsNil(o.GithubRepo) { + return nil, false + } + return o.GithubRepo, true +} + +// HasGithubRepo returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGithubRepo() bool { + if o != nil && !IsNil(o.GithubRepo) { + return true + } + + return false +} + +// SetGithubRepo gets a reference to the given ResourceRemoteInfoGithubRepo and assigns it to the GithubRepo field. +func (o *ResourceRemoteInfo) SetGithubRepo(v ResourceRemoteInfoGithubRepo) { + o.GithubRepo = &v +} + +// GetGithubOrgRole returns the GithubOrgRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGithubOrgRole() ResourceRemoteInfoGithubOrgRole { + if o == nil || IsNil(o.GithubOrgRole) { + var ret ResourceRemoteInfoGithubOrgRole + return ret + } + return *o.GithubOrgRole +} + +// GetGithubOrgRoleOk returns a tuple with the GithubOrgRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGithubOrgRoleOk() (*ResourceRemoteInfoGithubOrgRole, bool) { + if o == nil || IsNil(o.GithubOrgRole) { + return nil, false + } + return o.GithubOrgRole, true +} + +// HasGithubOrgRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGithubOrgRole() bool { + if o != nil && !IsNil(o.GithubOrgRole) { + return true + } + + return false +} + +// SetGithubOrgRole gets a reference to the given ResourceRemoteInfoGithubOrgRole and assigns it to the GithubOrgRole field. +func (o *ResourceRemoteInfo) SetGithubOrgRole(v ResourceRemoteInfoGithubOrgRole) { + o.GithubOrgRole = &v +} + +// 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 +} + +// GetGithubEnterpriseRole returns the GithubEnterpriseRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGithubEnterpriseRole() ResourceRemoteInfoGithubEnterpriseRole { + if o == nil || IsNil(o.GithubEnterpriseRole) { + var ret ResourceRemoteInfoGithubEnterpriseRole + return ret + } + return *o.GithubEnterpriseRole +} + +// GetGithubEnterpriseRoleOk returns a tuple with the GithubEnterpriseRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGithubEnterpriseRoleOk() (*ResourceRemoteInfoGithubEnterpriseRole, bool) { + if o == nil || IsNil(o.GithubEnterpriseRole) { + return nil, false + } + return o.GithubEnterpriseRole, true +} + +// HasGithubEnterpriseRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGithubEnterpriseRole() bool { + if o != nil && !IsNil(o.GithubEnterpriseRole) { + return true + } + + return false +} + +// SetGithubEnterpriseRole gets a reference to the given ResourceRemoteInfoGithubEnterpriseRole and assigns it to the GithubEnterpriseRole field. +func (o *ResourceRemoteInfo) SetGithubEnterpriseRole(v ResourceRemoteInfoGithubEnterpriseRole) { + o.GithubEnterpriseRole = &v +} + +// GetGitlabProject returns the GitlabProject field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGitlabProject() ResourceRemoteInfoGitlabProject { + if o == nil || IsNil(o.GitlabProject) { + var ret ResourceRemoteInfoGitlabProject + return ret + } + return *o.GitlabProject +} + +// GetGitlabProjectOk returns a tuple with the GitlabProject field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetGitlabProjectOk() (*ResourceRemoteInfoGitlabProject, bool) { + if o == nil || IsNil(o.GitlabProject) { + return nil, false + } + return o.GitlabProject, true +} + +// HasGitlabProject returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGitlabProject() bool { + if o != nil && !IsNil(o.GitlabProject) { + return true + } + + return false +} + +// SetGitlabProject gets a reference to the given ResourceRemoteInfoGitlabProject and assigns it to the GitlabProject field. +func (o *ResourceRemoteInfo) SetGitlabProject(v ResourceRemoteInfoGitlabProject) { + o.GitlabProject = &v +} + +// GetOktaApp returns the OktaApp field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetOktaApp() ResourceRemoteInfoOktaApp { + if o == nil || IsNil(o.OktaApp) { + var ret ResourceRemoteInfoOktaApp + return ret + } + return *o.OktaApp +} + +// GetOktaAppOk returns a tuple with the OktaApp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetOktaAppOk() (*ResourceRemoteInfoOktaApp, bool) { + if o == nil || IsNil(o.OktaApp) { + return nil, false + } + return o.OktaApp, true +} + +// HasOktaApp returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasOktaApp() bool { + if o != nil && !IsNil(o.OktaApp) { + return true + } + + return false +} + +// SetOktaApp gets a reference to the given ResourceRemoteInfoOktaApp and assigns it to the OktaApp field. +func (o *ResourceRemoteInfo) SetOktaApp(v ResourceRemoteInfoOktaApp) { + o.OktaApp = &v +} + +// GetOktaStandardRole returns the OktaStandardRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetOktaStandardRole() ResourceRemoteInfoOktaStandardRole { + if o == nil || IsNil(o.OktaStandardRole) { + var ret ResourceRemoteInfoOktaStandardRole + return ret + } + return *o.OktaStandardRole +} + +// GetOktaStandardRoleOk returns a tuple with the OktaStandardRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetOktaStandardRoleOk() (*ResourceRemoteInfoOktaStandardRole, bool) { + if o == nil || IsNil(o.OktaStandardRole) { + return nil, false + } + return o.OktaStandardRole, true +} + +// HasOktaStandardRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasOktaStandardRole() bool { + if o != nil && !IsNil(o.OktaStandardRole) { + return true + } + + return false +} + +// SetOktaStandardRole gets a reference to the given ResourceRemoteInfoOktaStandardRole and assigns it to the OktaStandardRole field. +func (o *ResourceRemoteInfo) SetOktaStandardRole(v ResourceRemoteInfoOktaStandardRole) { + o.OktaStandardRole = &v +} + +// GetOktaCustomRole returns the OktaCustomRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetOktaCustomRole() ResourceRemoteInfoOktaCustomRole { + if o == nil || IsNil(o.OktaCustomRole) { + var ret ResourceRemoteInfoOktaCustomRole + return ret + } + return *o.OktaCustomRole +} + +// GetOktaCustomRoleOk returns a tuple with the OktaCustomRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfo) GetOktaCustomRoleOk() (*ResourceRemoteInfoOktaCustomRole, bool) { + if o == nil || IsNil(o.OktaCustomRole) { + return nil, false + } + return o.OktaCustomRole, true +} + +// HasOktaCustomRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasOktaCustomRole() bool { + if o != nil && !IsNil(o.OktaCustomRole) { + return true + } + + return false +} + +// SetOktaCustomRole gets a reference to the given ResourceRemoteInfoOktaCustomRole and assigns it to the OktaCustomRole field. +func (o *ResourceRemoteInfo) SetOktaCustomRole(v ResourceRemoteInfoOktaCustomRole) { + 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 } -// GetAwsAccountOk returns a tuple with the AwsAccount field value if set, nil otherwise +// 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) GetAwsAccountOk() (*ResourceRemoteInfoAwsAccount, bool) { - if o == nil || IsNil(o.AwsAccount) { +func (o *ResourceRemoteInfo) GetTailscaleSshOk() (*ResourceRemoteInfoTailscaleSsh, bool) { + if o == nil || IsNil(o.TailscaleSsh) { return nil, false } - return o.AwsAccount, true + return o.TailscaleSsh, true } -// HasAwsAccount returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasAwsAccount() bool { - if o != nil && !IsNil(o.AwsAccount) { +// 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 } -// SetAwsAccount gets a reference to the given ResourceRemoteInfoAwsAccount and assigns it to the AwsAccount field. -func (o *ResourceRemoteInfo) SetAwsAccount(v ResourceRemoteInfoAwsAccount) { - o.AwsAccount = &v +// SetTailscaleSsh gets a reference to the given ResourceRemoteInfoTailscaleSsh and assigns it to the TailscaleSsh field. +func (o *ResourceRemoteInfo) SetTailscaleSsh(v ResourceRemoteInfoTailscaleSsh) { + o.TailscaleSsh = &v } -// GetAwsPermissionSet returns the AwsPermissionSet field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetAwsPermissionSet() ResourceRemoteInfoAwsPermissionSet { - if o == nil || IsNil(o.AwsPermissionSet) { - var ret ResourceRemoteInfoAwsPermissionSet +// GetTwingateResource returns the TwingateResource field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetTwingateResource() ResourceRemoteInfoTwingateResource { + if o == nil || IsNil(o.TwingateResource) { + var ret ResourceRemoteInfoTwingateResource return ret } - return *o.AwsPermissionSet + return *o.TwingateResource } -// GetAwsPermissionSetOk returns a tuple with the AwsPermissionSet field value if set, nil otherwise +// GetTwingateResourceOk returns a tuple with the TwingateResource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetAwsPermissionSetOk() (*ResourceRemoteInfoAwsPermissionSet, bool) { - if o == nil || IsNil(o.AwsPermissionSet) { +func (o *ResourceRemoteInfo) GetTwingateResourceOk() (*ResourceRemoteInfoTwingateResource, bool) { + if o == nil || IsNil(o.TwingateResource) { return nil, false } - return o.AwsPermissionSet, true + return o.TwingateResource, true } -// HasAwsPermissionSet returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasAwsPermissionSet() bool { - if o != nil && !IsNil(o.AwsPermissionSet) { +// HasTwingateResource returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasTwingateResource() bool { + if o != nil && !IsNil(o.TwingateResource) { return true } return false } -// SetAwsPermissionSet gets a reference to the given ResourceRemoteInfoAwsPermissionSet and assigns it to the AwsPermissionSet field. -func (o *ResourceRemoteInfo) SetAwsPermissionSet(v ResourceRemoteInfoAwsPermissionSet) { - o.AwsPermissionSet = &v +// SetTwingateResource gets a reference to the given ResourceRemoteInfoTwingateResource and assigns it to the TwingateResource field. +func (o *ResourceRemoteInfo) SetTwingateResource(v ResourceRemoteInfoTwingateResource) { + o.TwingateResource = &v } -// GetAwsIamRole returns the AwsIamRole field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetAwsIamRole() ResourceRemoteInfoAwsIamRole { - if o == nil || IsNil(o.AwsIamRole) { - var ret ResourceRemoteInfoAwsIamRole +// GetPagerdutyRole returns the PagerdutyRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetPagerdutyRole() ResourceRemoteInfoPagerdutyRole { + if o == nil || IsNil(o.PagerdutyRole) { + var ret ResourceRemoteInfoPagerdutyRole return ret } - return *o.AwsIamRole + return *o.PagerdutyRole } -// GetAwsIamRoleOk returns a tuple with the AwsIamRole field value if set, nil otherwise +// GetPagerdutyRoleOk returns a tuple with the PagerdutyRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetAwsIamRoleOk() (*ResourceRemoteInfoAwsIamRole, bool) { - if o == nil || IsNil(o.AwsIamRole) { +func (o *ResourceRemoteInfo) GetPagerdutyRoleOk() (*ResourceRemoteInfoPagerdutyRole, bool) { + if o == nil || IsNil(o.PagerdutyRole) { return nil, false } - return o.AwsIamRole, true + return o.PagerdutyRole, true } -// HasAwsIamRole returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasAwsIamRole() bool { - if o != nil && !IsNil(o.AwsIamRole) { +// HasPagerdutyRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasPagerdutyRole() bool { + if o != nil && !IsNil(o.PagerdutyRole) { return true } return false } -// SetAwsIamRole gets a reference to the given ResourceRemoteInfoAwsIamRole and assigns it to the AwsIamRole field. -func (o *ResourceRemoteInfo) SetAwsIamRole(v ResourceRemoteInfoAwsIamRole) { - o.AwsIamRole = &v +// SetPagerdutyRole gets a reference to the given ResourceRemoteInfoPagerdutyRole and assigns it to the PagerdutyRole field. +func (o *ResourceRemoteInfo) SetPagerdutyRole(v ResourceRemoteInfoPagerdutyRole) { + o.PagerdutyRole = &v } -// GetAwsEc2Instance returns the AwsEc2Instance field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetAwsEc2Instance() ResourceRemoteInfoAwsEc2Instance { - if o == nil || IsNil(o.AwsEc2Instance) { - var ret ResourceRemoteInfoAwsEc2Instance +// 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.AwsEc2Instance + return *o.WorkdayRole } -// GetAwsEc2InstanceOk returns a tuple with the AwsEc2Instance field value if set, nil otherwise +// 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) GetAwsEc2InstanceOk() (*ResourceRemoteInfoAwsEc2Instance, bool) { - if o == nil || IsNil(o.AwsEc2Instance) { +func (o *ResourceRemoteInfo) GetWorkdayRoleOk() (*ResourceRemoteInfoWorkdayRole, bool) { + if o == nil || IsNil(o.WorkdayRole) { return nil, false } - return o.AwsEc2Instance, true + return o.WorkdayRole, true } -// HasAwsEc2Instance returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasAwsEc2Instance() bool { - if o != nil && !IsNil(o.AwsEc2Instance) { +// 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 } -// SetAwsEc2Instance gets a reference to the given ResourceRemoteInfoAwsEc2Instance and assigns it to the AwsEc2Instance field. -func (o *ResourceRemoteInfo) SetAwsEc2Instance(v ResourceRemoteInfoAwsEc2Instance) { - o.AwsEc2Instance = &v +// SetWorkdayRole gets a reference to the given ResourceRemoteInfoWorkdayRole and assigns it to the WorkdayRole field. +func (o *ResourceRemoteInfo) SetWorkdayRole(v ResourceRemoteInfoWorkdayRole) { + o.WorkdayRole = &v } -// GetAwsRdsInstance returns the AwsRdsInstance field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetAwsRdsInstance() ResourceRemoteInfoAwsRdsInstance { - if o == nil || IsNil(o.AwsRdsInstance) { - var ret ResourceRemoteInfoAwsRdsInstance +// GetSalesforcePermissionSet returns the SalesforcePermissionSet field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetSalesforcePermissionSet() ResourceRemoteInfoSalesforcePermissionSet { + if o == nil || IsNil(o.SalesforcePermissionSet) { + var ret ResourceRemoteInfoSalesforcePermissionSet return ret } - return *o.AwsRdsInstance + return *o.SalesforcePermissionSet } -// GetAwsRdsInstanceOk returns a tuple with the AwsRdsInstance field value if set, nil otherwise +// GetSalesforcePermissionSetOk returns a tuple with the SalesforcePermissionSet field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetAwsRdsInstanceOk() (*ResourceRemoteInfoAwsRdsInstance, bool) { - if o == nil || IsNil(o.AwsRdsInstance) { +func (o *ResourceRemoteInfo) GetSalesforcePermissionSetOk() (*ResourceRemoteInfoSalesforcePermissionSet, bool) { + if o == nil || IsNil(o.SalesforcePermissionSet) { return nil, false } - return o.AwsRdsInstance, true + return o.SalesforcePermissionSet, true } -// HasAwsRdsInstance returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasAwsRdsInstance() bool { - if o != nil && !IsNil(o.AwsRdsInstance) { +// HasSalesforcePermissionSet returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasSalesforcePermissionSet() bool { + if o != nil && !IsNil(o.SalesforcePermissionSet) { return true } return false } -// SetAwsRdsInstance gets a reference to the given ResourceRemoteInfoAwsRdsInstance and assigns it to the AwsRdsInstance field. -func (o *ResourceRemoteInfo) SetAwsRdsInstance(v ResourceRemoteInfoAwsRdsInstance) { - o.AwsRdsInstance = &v +// SetSalesforcePermissionSet gets a reference to the given ResourceRemoteInfoSalesforcePermissionSet and assigns it to the SalesforcePermissionSet field. +func (o *ResourceRemoteInfo) SetSalesforcePermissionSet(v ResourceRemoteInfoSalesforcePermissionSet) { + o.SalesforcePermissionSet = &v } -// GetAwsEksCluster returns the AwsEksCluster field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetAwsEksCluster() ResourceRemoteInfoAwsEksCluster { - if o == nil || IsNil(o.AwsEksCluster) { - var ret ResourceRemoteInfoAwsEksCluster +// GetSalesforceProfile returns the SalesforceProfile field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetSalesforceProfile() ResourceRemoteInfoSalesforceProfile { + if o == nil || IsNil(o.SalesforceProfile) { + var ret ResourceRemoteInfoSalesforceProfile return ret } - return *o.AwsEksCluster + return *o.SalesforceProfile } -// GetAwsEksClusterOk returns a tuple with the AwsEksCluster field value if set, nil otherwise +// GetSalesforceProfileOk returns a tuple with the SalesforceProfile field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetAwsEksClusterOk() (*ResourceRemoteInfoAwsEksCluster, bool) { - if o == nil || IsNil(o.AwsEksCluster) { +func (o *ResourceRemoteInfo) GetSalesforceProfileOk() (*ResourceRemoteInfoSalesforceProfile, bool) { + if o == nil || IsNil(o.SalesforceProfile) { return nil, false } - return o.AwsEksCluster, true + return o.SalesforceProfile, true } -// HasAwsEksCluster returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasAwsEksCluster() bool { - if o != nil && !IsNil(o.AwsEksCluster) { +// HasSalesforceProfile returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasSalesforceProfile() bool { + if o != nil && !IsNil(o.SalesforceProfile) { return true } return false } -// SetAwsEksCluster gets a reference to the given ResourceRemoteInfoAwsEksCluster and assigns it to the AwsEksCluster field. -func (o *ResourceRemoteInfo) SetAwsEksCluster(v ResourceRemoteInfoAwsEksCluster) { - o.AwsEksCluster = &v +// SetSalesforceProfile gets a reference to the given ResourceRemoteInfoSalesforceProfile and assigns it to the SalesforceProfile field. +func (o *ResourceRemoteInfo) SetSalesforceProfile(v ResourceRemoteInfoSalesforceProfile) { + o.SalesforceProfile = &v } -// GetGcpOrganization returns the GcpOrganization field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpOrganization() ResourceRemoteInfoGcpOrganization { - if o == nil || IsNil(o.GcpOrganization) { - var ret ResourceRemoteInfoGcpOrganization +// GetSalesforceRole returns the SalesforceRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetSalesforceRole() ResourceRemoteInfoSalesforceRole { + if o == nil || IsNil(o.SalesforceRole) { + var ret ResourceRemoteInfoSalesforceRole return ret } - return *o.GcpOrganization + return *o.SalesforceRole } -// GetGcpOrganizationOk returns a tuple with the GcpOrganization field value if set, nil otherwise +// GetSalesforceRoleOk returns a tuple with the SalesforceRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetGcpOrganizationOk() (*ResourceRemoteInfoGcpOrganization, bool) { - if o == nil || IsNil(o.GcpOrganization) { +func (o *ResourceRemoteInfo) GetSalesforceRoleOk() (*ResourceRemoteInfoSalesforceRole, bool) { + if o == nil || IsNil(o.SalesforceRole) { return nil, false } - return o.GcpOrganization, true + return o.SalesforceRole, true } -// HasGcpOrganization returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpOrganization() bool { - if o != nil && !IsNil(o.GcpOrganization) { +// HasSalesforceRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasSalesforceRole() bool { + if o != nil && !IsNil(o.SalesforceRole) { return true } return false } -// SetGcpOrganization gets a reference to the given ResourceRemoteInfoGcpOrganization and assigns it to the GcpOrganization field. -func (o *ResourceRemoteInfo) SetGcpOrganization(v ResourceRemoteInfoGcpOrganization) { - o.GcpOrganization = &v +// SetSalesforceRole gets a reference to the given ResourceRemoteInfoSalesforceRole and assigns it to the SalesforceRole field. +func (o *ResourceRemoteInfo) SetSalesforceRole(v ResourceRemoteInfoSalesforceRole) { + o.SalesforceRole = &v } -// GetGcpBucket returns the GcpBucket field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpBucket() ResourceRemoteInfoGcpBucket { - if o == nil || IsNil(o.GcpBucket) { - var ret ResourceRemoteInfoGcpBucket +// GetTeleportRole returns the TeleportRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetTeleportRole() ResourceRemoteInfoTeleportRole { + if o == nil || IsNil(o.TeleportRole) { + var ret ResourceRemoteInfoTeleportRole return ret } - return *o.GcpBucket + return *o.TeleportRole } -// GetGcpBucketOk returns a tuple with the GcpBucket field value if set, nil otherwise +// GetTeleportRoleOk returns a tuple with the TeleportRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetGcpBucketOk() (*ResourceRemoteInfoGcpBucket, bool) { - if o == nil || IsNil(o.GcpBucket) { +func (o *ResourceRemoteInfo) GetTeleportRoleOk() (*ResourceRemoteInfoTeleportRole, bool) { + if o == nil || IsNil(o.TeleportRole) { return nil, false } - return o.GcpBucket, true + return o.TeleportRole, true } -// HasGcpBucket returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpBucket() bool { - if o != nil && !IsNil(o.GcpBucket) { +// HasTeleportRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasTeleportRole() bool { + if o != nil && !IsNil(o.TeleportRole) { return true } return false } -// SetGcpBucket gets a reference to the given ResourceRemoteInfoGcpBucket and assigns it to the GcpBucket field. -func (o *ResourceRemoteInfo) SetGcpBucket(v ResourceRemoteInfoGcpBucket) { - o.GcpBucket = &v +// SetTeleportRole gets a reference to the given ResourceRemoteInfoTeleportRole and assigns it to the TeleportRole field. +func (o *ResourceRemoteInfo) SetTeleportRole(v ResourceRemoteInfoTeleportRole) { + o.TeleportRole = &v } -// GetGcpComputeInstance returns the GcpComputeInstance field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpComputeInstance() ResourceRemoteInfoGcpComputeInstance { - if o == nil || IsNil(o.GcpComputeInstance) { - var ret ResourceRemoteInfoGcpComputeInstance +// GetDatastaxAstraRole returns the DatastaxAstraRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetDatastaxAstraRole() ResourceRemoteInfoDatastaxAstraRole { + if o == nil || IsNil(o.DatastaxAstraRole) { + var ret ResourceRemoteInfoDatastaxAstraRole return ret } - return *o.GcpComputeInstance + return *o.DatastaxAstraRole } -// GetGcpComputeInstanceOk returns a tuple with the GcpComputeInstance field value if set, nil otherwise +// GetDatastaxAstraRoleOk returns a tuple with the DatastaxAstraRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetGcpComputeInstanceOk() (*ResourceRemoteInfoGcpComputeInstance, bool) { - if o == nil || IsNil(o.GcpComputeInstance) { +func (o *ResourceRemoteInfo) GetDatastaxAstraRoleOk() (*ResourceRemoteInfoDatastaxAstraRole, bool) { + if o == nil || IsNil(o.DatastaxAstraRole) { return nil, false } - return o.GcpComputeInstance, true + return o.DatastaxAstraRole, true } -// HasGcpComputeInstance returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpComputeInstance() bool { - if o != nil && !IsNil(o.GcpComputeInstance) { +// HasDatastaxAstraRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasDatastaxAstraRole() bool { + if o != nil && !IsNil(o.DatastaxAstraRole) { return true } return false } -// SetGcpComputeInstance gets a reference to the given ResourceRemoteInfoGcpComputeInstance and assigns it to the GcpComputeInstance field. -func (o *ResourceRemoteInfo) SetGcpComputeInstance(v ResourceRemoteInfoGcpComputeInstance) { - o.GcpComputeInstance = &v +// SetDatastaxAstraRole gets a reference to the given ResourceRemoteInfoDatastaxAstraRole and assigns it to the DatastaxAstraRole field. +func (o *ResourceRemoteInfo) SetDatastaxAstraRole(v ResourceRemoteInfoDatastaxAstraRole) { + o.DatastaxAstraRole = &v } -// GetGcpBigQueryDataset returns the GcpBigQueryDataset field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpBigQueryDataset() ResourceRemoteInfoGcpBigQueryDataset { - if o == nil || IsNil(o.GcpBigQueryDataset) { - var ret ResourceRemoteInfoGcpBigQueryDataset +// GetCoupaRole returns the CoupaRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetCoupaRole() ResourceRemoteInfoCoupaRole { + if o == nil || IsNil(o.CoupaRole) { + var ret ResourceRemoteInfoCoupaRole return ret } - return *o.GcpBigQueryDataset + return *o.CoupaRole } -// GetGcpBigQueryDatasetOk returns a tuple with the GcpBigQueryDataset field value if set, nil otherwise +// GetCoupaRoleOk returns a tuple with the CoupaRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetGcpBigQueryDatasetOk() (*ResourceRemoteInfoGcpBigQueryDataset, bool) { - if o == nil || IsNil(o.GcpBigQueryDataset) { +func (o *ResourceRemoteInfo) GetCoupaRoleOk() (*ResourceRemoteInfoCoupaRole, bool) { + if o == nil || IsNil(o.CoupaRole) { return nil, false } - return o.GcpBigQueryDataset, true + return o.CoupaRole, true } -// HasGcpBigQueryDataset returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpBigQueryDataset() bool { - if o != nil && !IsNil(o.GcpBigQueryDataset) { +// HasCoupaRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasCoupaRole() bool { + if o != nil && !IsNil(o.CoupaRole) { return true } return false } -// SetGcpBigQueryDataset gets a reference to the given ResourceRemoteInfoGcpBigQueryDataset and assigns it to the GcpBigQueryDataset field. -func (o *ResourceRemoteInfo) SetGcpBigQueryDataset(v ResourceRemoteInfoGcpBigQueryDataset) { - o.GcpBigQueryDataset = &v +// SetCoupaRole gets a reference to the given ResourceRemoteInfoCoupaRole and assigns it to the CoupaRole field. +func (o *ResourceRemoteInfo) SetCoupaRole(v ResourceRemoteInfoCoupaRole) { + o.CoupaRole = &v } -// GetGcpBigQueryTable returns the GcpBigQueryTable field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpBigQueryTable() ResourceRemoteInfoGcpBigQueryTable { - if o == nil || IsNil(o.GcpBigQueryTable) { - var ret ResourceRemoteInfoGcpBigQueryTable +// 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.GcpBigQueryTable + return *o.CursorOrganization } -// GetGcpBigQueryTableOk returns a tuple with the GcpBigQueryTable field value if set, nil otherwise +// 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) GetGcpBigQueryTableOk() (*ResourceRemoteInfoGcpBigQueryTable, bool) { - if o == nil || IsNil(o.GcpBigQueryTable) { +func (o *ResourceRemoteInfo) GetCursorOrganizationOk() (*ResourceRemoteInfoCursorOrganization, bool) { + if o == nil || IsNil(o.CursorOrganization) { return nil, false } - return o.GcpBigQueryTable, true + return o.CursorOrganization, true } -// HasGcpBigQueryTable returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpBigQueryTable() bool { - if o != nil && !IsNil(o.GcpBigQueryTable) { +// 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 } -// SetGcpBigQueryTable gets a reference to the given ResourceRemoteInfoGcpBigQueryTable and assigns it to the GcpBigQueryTable field. -func (o *ResourceRemoteInfo) SetGcpBigQueryTable(v ResourceRemoteInfoGcpBigQueryTable) { - o.GcpBigQueryTable = &v +// SetCursorOrganization gets a reference to the given ResourceRemoteInfoCursorOrganization and assigns it to the CursorOrganization field. +func (o *ResourceRemoteInfo) SetCursorOrganization(v ResourceRemoteInfoCursorOrganization) { + o.CursorOrganization = &v } -// GetGcpFolder returns the GcpFolder field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpFolder() ResourceRemoteInfoGcpFolder { - if o == nil || IsNil(o.GcpFolder) { - var ret ResourceRemoteInfoGcpFolder +// 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.GcpFolder + return *o.OpenaiPlatformProject } -// GetGcpFolderOk returns a tuple with the GcpFolder field value if set, nil otherwise +// 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) GetGcpFolderOk() (*ResourceRemoteInfoGcpFolder, bool) { - if o == nil || IsNil(o.GcpFolder) { +func (o *ResourceRemoteInfo) GetOpenaiPlatformProjectOk() (*ResourceRemoteInfoOpenaiPlatformProject, bool) { + if o == nil || IsNil(o.OpenaiPlatformProject) { return nil, false } - return o.GcpFolder, true + return o.OpenaiPlatformProject, true } -// HasGcpFolder returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpFolder() bool { - if o != nil && !IsNil(o.GcpFolder) { +// 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 } -// SetGcpFolder gets a reference to the given ResourceRemoteInfoGcpFolder and assigns it to the GcpFolder field. -func (o *ResourceRemoteInfo) SetGcpFolder(v ResourceRemoteInfoGcpFolder) { - o.GcpFolder = &v +// SetOpenaiPlatformProject gets a reference to the given ResourceRemoteInfoOpenaiPlatformProject and assigns it to the OpenaiPlatformProject field. +func (o *ResourceRemoteInfo) SetOpenaiPlatformProject(v ResourceRemoteInfoOpenaiPlatformProject) { + o.OpenaiPlatformProject = &v } -// GetGcpGkeCluster returns the GcpGkeCluster field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpGkeCluster() ResourceRemoteInfoGcpGkeCluster { - if o == nil || IsNil(o.GcpGkeCluster) { - var ret ResourceRemoteInfoGcpGkeCluster +// 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.GcpGkeCluster + return *o.OpenaiPlatformServiceAccount } -// GetGcpGkeClusterOk returns a tuple with the GcpGkeCluster field value if set, nil otherwise +// 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) GetGcpGkeClusterOk() (*ResourceRemoteInfoGcpGkeCluster, bool) { - if o == nil || IsNil(o.GcpGkeCluster) { +func (o *ResourceRemoteInfo) GetOpenaiPlatformServiceAccountOk() (*ResourceRemoteInfoOpenaiPlatformServiceAccount, bool) { + if o == nil || IsNil(o.OpenaiPlatformServiceAccount) { return nil, false } - return o.GcpGkeCluster, true + return o.OpenaiPlatformServiceAccount, true } -// HasGcpGkeCluster returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpGkeCluster() bool { - if o != nil && !IsNil(o.GcpGkeCluster) { +// 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 } -// SetGcpGkeCluster gets a reference to the given ResourceRemoteInfoGcpGkeCluster and assigns it to the GcpGkeCluster field. -func (o *ResourceRemoteInfo) SetGcpGkeCluster(v ResourceRemoteInfoGcpGkeCluster) { - o.GcpGkeCluster = &v +// SetOpenaiPlatformServiceAccount gets a reference to the given ResourceRemoteInfoOpenaiPlatformServiceAccount and assigns it to the OpenaiPlatformServiceAccount field. +func (o *ResourceRemoteInfo) SetOpenaiPlatformServiceAccount(v ResourceRemoteInfoOpenaiPlatformServiceAccount) { + o.OpenaiPlatformServiceAccount = &v } -// GetGcpProject returns the GcpProject field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpProject() ResourceRemoteInfoGcpProject { - if o == nil || IsNil(o.GcpProject) { - var ret ResourceRemoteInfoGcpProject +// 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.GcpProject + return *o.AnthropicWorkspace } -// GetGcpProjectOk returns a tuple with the GcpProject field value if set, nil otherwise +// 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) GetGcpProjectOk() (*ResourceRemoteInfoGcpProject, bool) { - if o == nil || IsNil(o.GcpProject) { +func (o *ResourceRemoteInfo) GetAnthropicWorkspaceOk() (*ResourceRemoteInfoAnthropicWorkspace, bool) { + if o == nil || IsNil(o.AnthropicWorkspace) { return nil, false } - return o.GcpProject, true + return o.AnthropicWorkspace, true } -// HasGcpProject returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpProject() bool { - if o != nil && !IsNil(o.GcpProject) { +// 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 } -// SetGcpProject gets a reference to the given ResourceRemoteInfoGcpProject and assigns it to the GcpProject field. -func (o *ResourceRemoteInfo) SetGcpProject(v ResourceRemoteInfoGcpProject) { - o.GcpProject = &v +// SetAnthropicWorkspace gets a reference to the given ResourceRemoteInfoAnthropicWorkspace and assigns it to the AnthropicWorkspace field. +func (o *ResourceRemoteInfo) SetAnthropicWorkspace(v ResourceRemoteInfoAnthropicWorkspace) { + o.AnthropicWorkspace = &v } -// GetGcpSqlInstance returns the GcpSqlInstance field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpSqlInstance() ResourceRemoteInfoGcpSqlInstance { - if o == nil || IsNil(o.GcpSqlInstance) { - var ret ResourceRemoteInfoGcpSqlInstance +// 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.GcpSqlInstance + return *o.OracleFusionRole } -// GetGcpSqlInstanceOk returns a tuple with the GcpSqlInstance field value if set, nil otherwise +// 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) GetGcpSqlInstanceOk() (*ResourceRemoteInfoGcpSqlInstance, bool) { - if o == nil || IsNil(o.GcpSqlInstance) { +func (o *ResourceRemoteInfo) GetOracleFusionRoleOk() (*ResourceRemoteInfoOracleFusionRole, bool) { + if o == nil || IsNil(o.OracleFusionRole) { return nil, false } - return o.GcpSqlInstance, true + return o.OracleFusionRole, true } -// HasGcpSqlInstance returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpSqlInstance() bool { - if o != nil && !IsNil(o.GcpSqlInstance) { +// 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 } -// SetGcpSqlInstance gets a reference to the given ResourceRemoteInfoGcpSqlInstance and assigns it to the GcpSqlInstance field. -func (o *ResourceRemoteInfo) SetGcpSqlInstance(v ResourceRemoteInfoGcpSqlInstance) { - o.GcpSqlInstance = &v +// SetOracleFusionRole gets a reference to the given ResourceRemoteInfoOracleFusionRole and assigns it to the OracleFusionRole field. +func (o *ResourceRemoteInfo) SetOracleFusionRole(v ResourceRemoteInfoOracleFusionRole) { + o.OracleFusionRole = &v } -// GetGcpServiceAccount returns the GcpServiceAccount field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGcpServiceAccount() ResourceRemoteInfoGcpServiceAccount { - if o == nil || IsNil(o.GcpServiceAccount) { - var ret ResourceRemoteInfoGcpServiceAccount +// 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.GcpServiceAccount + return *o.DevinOrganization } -// GetGcpServiceAccountOk returns a tuple with the GcpServiceAccount field value if set, nil otherwise +// 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) GetGcpServiceAccountOk() (*ResourceRemoteInfoGcpServiceAccount, bool) { - if o == nil || IsNil(o.GcpServiceAccount) { +func (o *ResourceRemoteInfo) GetDevinOrganizationOk() (*ResourceRemoteInfoDevinOrganization, bool) { + if o == nil || IsNil(o.DevinOrganization) { return nil, false } - return o.GcpServiceAccount, true + return o.DevinOrganization, true } -// HasGcpServiceAccount returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGcpServiceAccount() bool { - if o != nil && !IsNil(o.GcpServiceAccount) { +// 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 } -// SetGcpServiceAccount gets a reference to the given ResourceRemoteInfoGcpServiceAccount and assigns it to the GcpServiceAccount field. -func (o *ResourceRemoteInfo) SetGcpServiceAccount(v ResourceRemoteInfoGcpServiceAccount) { - o.GcpServiceAccount = &v +// SetDevinOrganization gets a reference to the given ResourceRemoteInfoDevinOrganization and assigns it to the DevinOrganization field. +func (o *ResourceRemoteInfo) SetDevinOrganization(v ResourceRemoteInfoDevinOrganization) { + o.DevinOrganization = &v } -// GetGithubRepo returns the GithubRepo field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetGithubRepo() ResourceRemoteInfoGithubRepo { - if o == nil || IsNil(o.GithubRepo) { - var ret ResourceRemoteInfoGithubRepo +// 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.GithubRepo + return *o.DevinRole } -// GetGithubRepoOk returns a tuple with the GithubRepo field value if set, nil otherwise +// 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) GetGithubRepoOk() (*ResourceRemoteInfoGithubRepo, bool) { - if o == nil || IsNil(o.GithubRepo) { +func (o *ResourceRemoteInfo) GetDevinRoleOk() (*ResourceRemoteInfoDevinRole, bool) { + if o == nil || IsNil(o.DevinRole) { return nil, false } - return o.GithubRepo, true + return o.DevinRole, true } -// HasGithubRepo returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGithubRepo() bool { - if o != nil && !IsNil(o.GithubRepo) { +// 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 } -// SetGithubRepo gets a reference to the given ResourceRemoteInfoGithubRepo and assigns it to the GithubRepo field. -func (o *ResourceRemoteInfo) SetGithubRepo(v ResourceRemoteInfoGithubRepo) { - o.GithubRepo = &v +// SetDevinRole gets a reference to the given ResourceRemoteInfoDevinRole and assigns it to the DevinRole field. +func (o *ResourceRemoteInfo) SetDevinRole(v ResourceRemoteInfoDevinRole) { + o.DevinRole = &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 +// GetNetsuiteRole returns the NetsuiteRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetNetsuiteRole() ResourceRemoteInfoNetsuiteRole { + if o == nil || IsNil(o.NetsuiteRole) { + var ret ResourceRemoteInfoNetsuiteRole return ret } - return *o.GitlabProject + return *o.NetsuiteRole } -// GetGitlabProjectOk returns a tuple with the GitlabProject field value if set, nil otherwise +// GetNetsuiteRoleOk returns a tuple with the NetsuiteRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetGitlabProjectOk() (*ResourceRemoteInfoGitlabProject, bool) { - if o == nil || IsNil(o.GitlabProject) { +func (o *ResourceRemoteInfo) GetNetsuiteRoleOk() (*ResourceRemoteInfoNetsuiteRole, bool) { + if o == nil || IsNil(o.NetsuiteRole) { return nil, false } - return o.GitlabProject, true + return o.NetsuiteRole, true } -// HasGitlabProject returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasGitlabProject() bool { - if o != nil && !IsNil(o.GitlabProject) { +// HasNetsuiteRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasNetsuiteRole() bool { + if o != nil && !IsNil(o.NetsuiteRole) { return true } return false } -// SetGitlabProject gets a reference to the given ResourceRemoteInfoGitlabProject and assigns it to the GitlabProject field. -func (o *ResourceRemoteInfo) SetGitlabProject(v ResourceRemoteInfoGitlabProject) { - o.GitlabProject = &v +// SetNetsuiteRole gets a reference to the given ResourceRemoteInfoNetsuiteRole and assigns it to the NetsuiteRole field. +func (o *ResourceRemoteInfo) SetNetsuiteRole(v ResourceRemoteInfoNetsuiteRole) { + o.NetsuiteRole = &v } -// GetOktaApp returns the OktaApp field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetOktaApp() ResourceRemoteInfoOktaApp { - if o == nil || IsNil(o.OktaApp) { - var ret ResourceRemoteInfoOktaApp +// GetDatadogRole returns the DatadogRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetDatadogRole() ResourceRemoteInfoDatadogRole { + if o == nil || IsNil(o.DatadogRole) { + var ret ResourceRemoteInfoDatadogRole return ret } - return *o.OktaApp + return *o.DatadogRole } -// GetOktaAppOk returns a tuple with the OktaApp field value if set, nil otherwise +// GetDatadogRoleOk returns a tuple with the DatadogRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetOktaAppOk() (*ResourceRemoteInfoOktaApp, bool) { - if o == nil || IsNil(o.OktaApp) { +func (o *ResourceRemoteInfo) GetDatadogRoleOk() (*ResourceRemoteInfoDatadogRole, bool) { + if o == nil || IsNil(o.DatadogRole) { return nil, false } - return o.OktaApp, true + return o.DatadogRole, true } -// HasOktaApp returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasOktaApp() bool { - if o != nil && !IsNil(o.OktaApp) { +// HasDatadogRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasDatadogRole() bool { + if o != nil && !IsNil(o.DatadogRole) { return true } return false } -// SetOktaApp gets a reference to the given ResourceRemoteInfoOktaApp and assigns it to the OktaApp field. -func (o *ResourceRemoteInfo) SetOktaApp(v ResourceRemoteInfoOktaApp) { - o.OktaApp = &v +// SetDatadogRole gets a reference to the given ResourceRemoteInfoDatadogRole and assigns it to the DatadogRole field. +func (o *ResourceRemoteInfo) SetDatadogRole(v ResourceRemoteInfoDatadogRole) { + o.DatadogRole = &v } -// GetOktaStandardRole returns the OktaStandardRole field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetOktaStandardRole() ResourceRemoteInfoOktaStandardRole { - if o == nil || IsNil(o.OktaStandardRole) { - var ret ResourceRemoteInfoOktaStandardRole +// GetClickhouseDatabase returns the ClickhouseDatabase field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetClickhouseDatabase() ResourceRemoteInfoClickhouseDatabase { + if o == nil || IsNil(o.ClickhouseDatabase) { + var ret ResourceRemoteInfoClickhouseDatabase return ret } - return *o.OktaStandardRole + return *o.ClickhouseDatabase } -// GetOktaStandardRoleOk returns a tuple with the OktaStandardRole field value if set, nil otherwise +// GetClickhouseDatabaseOk returns a tuple with the ClickhouseDatabase field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetOktaStandardRoleOk() (*ResourceRemoteInfoOktaStandardRole, bool) { - if o == nil || IsNil(o.OktaStandardRole) { +func (o *ResourceRemoteInfo) GetClickhouseDatabaseOk() (*ResourceRemoteInfoClickhouseDatabase, bool) { + if o == nil || IsNil(o.ClickhouseDatabase) { return nil, false } - return o.OktaStandardRole, true + return o.ClickhouseDatabase, true } -// HasOktaStandardRole returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasOktaStandardRole() bool { - if o != nil && !IsNil(o.OktaStandardRole) { +// HasClickhouseDatabase returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasClickhouseDatabase() bool { + if o != nil && !IsNil(o.ClickhouseDatabase) { return true } return false } -// SetOktaStandardRole gets a reference to the given ResourceRemoteInfoOktaStandardRole and assigns it to the OktaStandardRole field. -func (o *ResourceRemoteInfo) SetOktaStandardRole(v ResourceRemoteInfoOktaStandardRole) { - o.OktaStandardRole = &v +// SetClickhouseDatabase gets a reference to the given ResourceRemoteInfoClickhouseDatabase and assigns it to the ClickhouseDatabase field. +func (o *ResourceRemoteInfo) SetClickhouseDatabase(v ResourceRemoteInfoClickhouseDatabase) { + o.ClickhouseDatabase = &v } -// GetOktaCustomRole returns the OktaCustomRole field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetOktaCustomRole() ResourceRemoteInfoOktaCustomRole { - if o == nil || IsNil(o.OktaCustomRole) { - var ret ResourceRemoteInfoOktaCustomRole +// GetClickhouseTable returns the ClickhouseTable field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetClickhouseTable() ResourceRemoteInfoClickhouseTable { + if o == nil || IsNil(o.ClickhouseTable) { + var ret ResourceRemoteInfoClickhouseTable return ret } - return *o.OktaCustomRole + return *o.ClickhouseTable } -// GetOktaCustomRoleOk returns a tuple with the OktaCustomRole field value if set, nil otherwise +// GetClickhouseTableOk returns a tuple with the ClickhouseTable field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetOktaCustomRoleOk() (*ResourceRemoteInfoOktaCustomRole, bool) { - if o == nil || IsNil(o.OktaCustomRole) { +func (o *ResourceRemoteInfo) GetClickhouseTableOk() (*ResourceRemoteInfoClickhouseTable, bool) { + if o == nil || IsNil(o.ClickhouseTable) { return nil, false } - return o.OktaCustomRole, true + return o.ClickhouseTable, true } -// HasOktaCustomRole returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasOktaCustomRole() bool { - if o != nil && !IsNil(o.OktaCustomRole) { +// HasClickhouseTable returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasClickhouseTable() bool { + if o != nil && !IsNil(o.ClickhouseTable) { return true } return false } -// SetOktaCustomRole gets a reference to the given ResourceRemoteInfoOktaCustomRole and assigns it to the OktaCustomRole field. -func (o *ResourceRemoteInfo) SetOktaCustomRole(v ResourceRemoteInfoOktaCustomRole) { - o.OktaCustomRole = &v +// SetClickhouseTable gets a reference to the given ResourceRemoteInfoClickhouseTable and assigns it to the ClickhouseTable field. +func (o *ResourceRemoteInfo) SetClickhouseTable(v ResourceRemoteInfoClickhouseTable) { + o.ClickhouseTable = &v } -// GetPagerdutyRole returns the PagerdutyRole field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetPagerdutyRole() ResourceRemoteInfoPagerdutyRole { - if o == nil || IsNil(o.PagerdutyRole) { - var ret ResourceRemoteInfoPagerdutyRole +// GetGrafanaFolder returns the GrafanaFolder field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGrafanaFolder() ResourceRemoteInfoGrafanaFolder { + if o == nil || IsNil(o.GrafanaFolder) { + var ret ResourceRemoteInfoGrafanaFolder return ret } - return *o.PagerdutyRole + return *o.GrafanaFolder } -// GetPagerdutyRoleOk returns a tuple with the PagerdutyRole field value if set, nil otherwise +// GetGrafanaFolderOk returns a tuple with the GrafanaFolder field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetPagerdutyRoleOk() (*ResourceRemoteInfoPagerdutyRole, bool) { - if o == nil || IsNil(o.PagerdutyRole) { +func (o *ResourceRemoteInfo) GetGrafanaFolderOk() (*ResourceRemoteInfoGrafanaFolder, bool) { + if o == nil || IsNil(o.GrafanaFolder) { return nil, false } - return o.PagerdutyRole, true + return o.GrafanaFolder, true } -// HasPagerdutyRole returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasPagerdutyRole() bool { - if o != nil && !IsNil(o.PagerdutyRole) { +// HasGrafanaFolder returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGrafanaFolder() bool { + if o != nil && !IsNil(o.GrafanaFolder) { return true } return false } -// SetPagerdutyRole gets a reference to the given ResourceRemoteInfoPagerdutyRole and assigns it to the PagerdutyRole field. -func (o *ResourceRemoteInfo) SetPagerdutyRole(v ResourceRemoteInfoPagerdutyRole) { - o.PagerdutyRole = &v +// SetGrafanaFolder gets a reference to the given ResourceRemoteInfoGrafanaFolder and assigns it to the GrafanaFolder field. +func (o *ResourceRemoteInfo) SetGrafanaFolder(v ResourceRemoteInfoGrafanaFolder) { + o.GrafanaFolder = &v } -// GetSalesforcePermissionSet returns the SalesforcePermissionSet field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetSalesforcePermissionSet() ResourceRemoteInfoSalesforcePermissionSet { - if o == nil || IsNil(o.SalesforcePermissionSet) { - var ret ResourceRemoteInfoSalesforcePermissionSet +// GetGrafanaDashboard returns the GrafanaDashboard field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGrafanaDashboard() ResourceRemoteInfoGrafanaDashboard { + if o == nil || IsNil(o.GrafanaDashboard) { + var ret ResourceRemoteInfoGrafanaDashboard return ret } - return *o.SalesforcePermissionSet + return *o.GrafanaDashboard } -// GetSalesforcePermissionSetOk returns a tuple with the SalesforcePermissionSet field value if set, nil otherwise +// GetGrafanaDashboardOk returns a tuple with the GrafanaDashboard field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetSalesforcePermissionSetOk() (*ResourceRemoteInfoSalesforcePermissionSet, bool) { - if o == nil || IsNil(o.SalesforcePermissionSet) { +func (o *ResourceRemoteInfo) GetGrafanaDashboardOk() (*ResourceRemoteInfoGrafanaDashboard, bool) { + if o == nil || IsNil(o.GrafanaDashboard) { return nil, false } - return o.SalesforcePermissionSet, true + return o.GrafanaDashboard, true } -// HasSalesforcePermissionSet returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasSalesforcePermissionSet() bool { - if o != nil && !IsNil(o.SalesforcePermissionSet) { +// HasGrafanaDashboard returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGrafanaDashboard() bool { + if o != nil && !IsNil(o.GrafanaDashboard) { return true } return false } -// SetSalesforcePermissionSet gets a reference to the given ResourceRemoteInfoSalesforcePermissionSet and assigns it to the SalesforcePermissionSet field. -func (o *ResourceRemoteInfo) SetSalesforcePermissionSet(v ResourceRemoteInfoSalesforcePermissionSet) { - o.SalesforcePermissionSet = &v +// SetGrafanaDashboard gets a reference to the given ResourceRemoteInfoGrafanaDashboard and assigns it to the GrafanaDashboard field. +func (o *ResourceRemoteInfo) SetGrafanaDashboard(v ResourceRemoteInfoGrafanaDashboard) { + o.GrafanaDashboard = &v } -// GetSalesforceProfile returns the SalesforceProfile field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetSalesforceProfile() ResourceRemoteInfoSalesforceProfile { - if o == nil || IsNil(o.SalesforceProfile) { - var ret ResourceRemoteInfoSalesforceProfile +// GetGrafanaRole returns the GrafanaRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetGrafanaRole() ResourceRemoteInfoGrafanaRole { + if o == nil || IsNil(o.GrafanaRole) { + var ret ResourceRemoteInfoGrafanaRole return ret } - return *o.SalesforceProfile + return *o.GrafanaRole } -// GetSalesforceProfileOk returns a tuple with the SalesforceProfile field value if set, nil otherwise +// GetGrafanaRoleOk returns a tuple with the GrafanaRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetSalesforceProfileOk() (*ResourceRemoteInfoSalesforceProfile, bool) { - if o == nil || IsNil(o.SalesforceProfile) { +func (o *ResourceRemoteInfo) GetGrafanaRoleOk() (*ResourceRemoteInfoGrafanaRole, bool) { + if o == nil || IsNil(o.GrafanaRole) { return nil, false } - return o.SalesforceProfile, true + return o.GrafanaRole, true } -// HasSalesforceProfile returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasSalesforceProfile() bool { - if o != nil && !IsNil(o.SalesforceProfile) { +// HasGrafanaRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasGrafanaRole() bool { + if o != nil && !IsNil(o.GrafanaRole) { return true } return false } -// SetSalesforceProfile gets a reference to the given ResourceRemoteInfoSalesforceProfile and assigns it to the SalesforceProfile field. -func (o *ResourceRemoteInfo) SetSalesforceProfile(v ResourceRemoteInfoSalesforceProfile) { - o.SalesforceProfile = &v +// SetGrafanaRole gets a reference to the given ResourceRemoteInfoGrafanaRole and assigns it to the GrafanaRole field. +func (o *ResourceRemoteInfo) SetGrafanaRole(v ResourceRemoteInfoGrafanaRole) { + o.GrafanaRole = &v } -// GetSalesforceRole returns the SalesforceRole field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetSalesforceRole() ResourceRemoteInfoSalesforceRole { - if o == nil || IsNil(o.SalesforceRole) { - var ret ResourceRemoteInfoSalesforceRole +// GetZendeskRole returns the ZendeskRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetZendeskRole() ResourceRemoteInfoZendeskRole { + if o == nil || IsNil(o.ZendeskRole) { + var ret ResourceRemoteInfoZendeskRole return ret } - return *o.SalesforceRole + return *o.ZendeskRole } -// GetSalesforceRoleOk returns a tuple with the SalesforceRole field value if set, nil otherwise +// GetZendeskRoleOk returns a tuple with the ZendeskRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetSalesforceRoleOk() (*ResourceRemoteInfoSalesforceRole, bool) { - if o == nil || IsNil(o.SalesforceRole) { +func (o *ResourceRemoteInfo) GetZendeskRoleOk() (*ResourceRemoteInfoZendeskRole, bool) { + if o == nil || IsNil(o.ZendeskRole) { return nil, false } - return o.SalesforceRole, true + return o.ZendeskRole, true } -// HasSalesforceRole returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasSalesforceRole() bool { - if o != nil && !IsNil(o.SalesforceRole) { +// HasZendeskRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasZendeskRole() bool { + if o != nil && !IsNil(o.ZendeskRole) { return true } return false } -// SetSalesforceRole gets a reference to the given ResourceRemoteInfoSalesforceRole and assigns it to the SalesforceRole field. -func (o *ResourceRemoteInfo) SetSalesforceRole(v ResourceRemoteInfoSalesforceRole) { - o.SalesforceRole = &v +// SetZendeskRole gets a reference to the given ResourceRemoteInfoZendeskRole and assigns it to the ZendeskRole field. +func (o *ResourceRemoteInfo) SetZendeskRole(v ResourceRemoteInfoZendeskRole) { + o.ZendeskRole = &v } -// GetTeleportRole returns the TeleportRole field value if set, zero value otherwise. -func (o *ResourceRemoteInfo) GetTeleportRole() ResourceRemoteInfoTeleportRole { - if o == nil || IsNil(o.TeleportRole) { - var ret ResourceRemoteInfoTeleportRole +// GetHubspotRole returns the HubspotRole field value if set, zero value otherwise. +func (o *ResourceRemoteInfo) GetHubspotRole() ResourceRemoteInfoHubspotRole { + if o == nil || IsNil(o.HubspotRole) { + var ret ResourceRemoteInfoHubspotRole return ret } - return *o.TeleportRole + return *o.HubspotRole } -// GetTeleportRoleOk returns a tuple with the TeleportRole field value if set, nil otherwise +// GetHubspotRoleOk returns a tuple with the HubspotRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ResourceRemoteInfo) GetTeleportRoleOk() (*ResourceRemoteInfoTeleportRole, bool) { - if o == nil || IsNil(o.TeleportRole) { +func (o *ResourceRemoteInfo) GetHubspotRoleOk() (*ResourceRemoteInfoHubspotRole, bool) { + if o == nil || IsNil(o.HubspotRole) { return nil, false } - return o.TeleportRole, true + return o.HubspotRole, true } -// HasTeleportRole returns a boolean if a field has been set. -func (o *ResourceRemoteInfo) HasTeleportRole() bool { - if o != nil && !IsNil(o.TeleportRole) { +// HasHubspotRole returns a boolean if a field has been set. +func (o *ResourceRemoteInfo) HasHubspotRole() bool { + if o != nil && !IsNil(o.HubspotRole) { return true } return false } -// SetTeleportRole gets a reference to the given ResourceRemoteInfoTeleportRole and assigns it to the TeleportRole field. -func (o *ResourceRemoteInfo) SetTeleportRole(v ResourceRemoteInfoTeleportRole) { - o.TeleportRole = &v +// SetHubspotRole gets a reference to the given ResourceRemoteInfoHubspotRole and assigns it to the HubspotRole field. +func (o *ResourceRemoteInfo) SetHubspotRole(v ResourceRemoteInfoHubspotRole) { + o.HubspotRole = &v } func (o ResourceRemoteInfo) MarshalJSON() ([]byte, error) { @@ -907,6 +2425,51 @@ 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 + } if !IsNil(o.AwsAccount) { toSerialize["aws_account"] = o.AwsAccount } @@ -919,12 +2482,18 @@ 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 } if !IsNil(o.AwsEksCluster) { toSerialize["aws_eks_cluster"] = o.AwsEksCluster } + if !IsNil(o.CustomConnector) { + toSerialize["custom_connector"] = o.CustomConnector + } if !IsNil(o.GcpOrganization) { toSerialize["gcp_organization"] = o.GcpOrganization } @@ -955,9 +2524,21 @@ func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.GcpServiceAccount) { toSerialize["gcp_service_account"] = o.GcpServiceAccount } + if !IsNil(o.GoogleWorkspaceRole) { + toSerialize["google_workspace_role"] = o.GoogleWorkspaceRole + } if !IsNil(o.GithubRepo) { toSerialize["github_repo"] = o.GithubRepo } + if !IsNil(o.GithubOrgRole) { + toSerialize["github_org_role"] = o.GithubOrgRole + } + if !IsNil(o.GithubOrg) { + toSerialize["github_org"] = o.GithubOrg + } + if !IsNil(o.GithubEnterpriseRole) { + toSerialize["github_enterprise_role"] = o.GithubEnterpriseRole + } if !IsNil(o.GitlabProject) { toSerialize["gitlab_project"] = o.GitlabProject } @@ -970,9 +2551,30 @@ 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.TwingateResource) { + toSerialize["twingate_resource"] = o.TwingateResource + } 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 } @@ -985,6 +2587,60 @@ func (o ResourceRemoteInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.TeleportRole) { toSerialize["teleport_role"] = o.TeleportRole } + if !IsNil(o.DatastaxAstraRole) { + toSerialize["datastax_astra_role"] = o.DatastaxAstraRole + } + 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 + } + if !IsNil(o.NetsuiteRole) { + toSerialize["netsuite_role"] = o.NetsuiteRole + } + if !IsNil(o.DatadogRole) { + toSerialize["datadog_role"] = o.DatadogRole + } + if !IsNil(o.ClickhouseDatabase) { + toSerialize["clickhouse_database"] = o.ClickhouseDatabase + } + if !IsNil(o.ClickhouseTable) { + toSerialize["clickhouse_table"] = o.ClickhouseTable + } + if !IsNil(o.GrafanaFolder) { + toSerialize["grafana_folder"] = o.GrafanaFolder + } + if !IsNil(o.GrafanaDashboard) { + toSerialize["grafana_dashboard"] = o.GrafanaDashboard + } + if !IsNil(o.GrafanaRole) { + toSerialize["grafana_role"] = o.GrafanaRole + } + if !IsNil(o.ZendeskRole) { + toSerialize["zendesk_role"] = o.ZendeskRole + } + if !IsNil(o.HubspotRole) { + toSerialize["hubspot_role"] = o.HubspotRole + } return toSerialize, nil } diff --git a/model_resource_remote_info_anthropic_workspace.go b/model_resource_remote_info_anthropic_workspace.go new file mode 100644 index 0000000..e365118 --- /dev/null +++ b/model_resource_remote_info_anthropic_workspace.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAnthropicWorkspace) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAnthropicWorkspace(varResourceRemoteInfoAnthropicWorkspace) + + 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_account.go b/model_resource_remote_info_aws_account.go index 00ce3e3..7e9be4c 100644 --- a/model_resource_remote_info_aws_account.go +++ b/model_resource_remote_info_aws_account.go @@ -24,6 +24,8 @@ var _ MappedNullable = &ResourceRemoteInfoAwsAccount{} type ResourceRemoteInfoAwsAccount struct { // The id of the AWS account. AccountId string `json:"account_id"` + // The id of the AWS organizational unit. Required only if customer has OUs enabled. + OrganizationalUnitId *string `json:"organizational_unit_id,omitempty"` } type _ResourceRemoteInfoAwsAccount ResourceRemoteInfoAwsAccount @@ -70,6 +72,38 @@ func (o *ResourceRemoteInfoAwsAccount) SetAccountId(v string) { o.AccountId = v } +// GetOrganizationalUnitId returns the OrganizationalUnitId field value if set, zero value otherwise. +func (o *ResourceRemoteInfoAwsAccount) GetOrganizationalUnitId() string { + if o == nil || IsNil(o.OrganizationalUnitId) { + var ret string + return ret + } + return *o.OrganizationalUnitId +} + +// GetOrganizationalUnitIdOk returns a tuple with the OrganizationalUnitId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsAccount) GetOrganizationalUnitIdOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationalUnitId) { + return nil, false + } + return o.OrganizationalUnitId, true +} + +// HasOrganizationalUnitId returns a boolean if a field has been set. +func (o *ResourceRemoteInfoAwsAccount) HasOrganizationalUnitId() bool { + if o != nil && !IsNil(o.OrganizationalUnitId) { + return true + } + + return false +} + +// SetOrganizationalUnitId gets a reference to the given string and assigns it to the OrganizationalUnitId field. +func (o *ResourceRemoteInfoAwsAccount) SetOrganizationalUnitId(v string) { + o.OrganizationalUnitId = &v +} + func (o ResourceRemoteInfoAwsAccount) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -81,6 +115,9 @@ func (o ResourceRemoteInfoAwsAccount) MarshalJSON() ([]byte, error) { func (o ResourceRemoteInfoAwsAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["account_id"] = o.AccountId + if !IsNil(o.OrganizationalUnitId) { + toSerialize["organizational_unit_id"] = o.OrganizationalUnitId + } return toSerialize, nil } diff --git a/model_resource_remote_info_aws_organizational_unit.go b/model_resource_remote_info_aws_organizational_unit.go new file mode 100644 index 0000000..b3b6c25 --- /dev/null +++ b/model_resource_remote_info_aws_organizational_unit.go @@ -0,0 +1,197 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoAwsOrganizationalUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoAwsOrganizationalUnit{} + +// ResourceRemoteInfoAwsOrganizationalUnit Remote info for AWS organizational unit. +type ResourceRemoteInfoAwsOrganizationalUnit struct { + // The id of the parent organizational unit. + ParentId *string `json:"parent_id,omitempty"` + // The id of the AWS organizational unit that is being created. + OrganizationalUnitId string `json:"organizational_unit_id"` +} + +type _ResourceRemoteInfoAwsOrganizationalUnit ResourceRemoteInfoAwsOrganizationalUnit + +// NewResourceRemoteInfoAwsOrganizationalUnit instantiates a new ResourceRemoteInfoAwsOrganizationalUnit 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 NewResourceRemoteInfoAwsOrganizationalUnit(organizationalUnitId string) *ResourceRemoteInfoAwsOrganizationalUnit { + this := ResourceRemoteInfoAwsOrganizationalUnit{} + this.OrganizationalUnitId = organizationalUnitId + return &this +} + +// NewResourceRemoteInfoAwsOrganizationalUnitWithDefaults instantiates a new ResourceRemoteInfoAwsOrganizationalUnit 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 NewResourceRemoteInfoAwsOrganizationalUnitWithDefaults() *ResourceRemoteInfoAwsOrganizationalUnit { + this := ResourceRemoteInfoAwsOrganizationalUnit{} + return &this +} + +// GetParentId returns the ParentId field value if set, zero value otherwise. +func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetParentId() string { + if o == nil || IsNil(o.ParentId) { + var ret string + return ret + } + return *o.ParentId +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetParentIdOk() (*string, bool) { + if o == nil || IsNil(o.ParentId) { + return nil, false + } + return o.ParentId, true +} + +// HasParentId returns a boolean if a field has been set. +func (o *ResourceRemoteInfoAwsOrganizationalUnit) HasParentId() bool { + if o != nil && !IsNil(o.ParentId) { + return true + } + + return false +} + +// SetParentId gets a reference to the given string and assigns it to the ParentId field. +func (o *ResourceRemoteInfoAwsOrganizationalUnit) SetParentId(v string) { + o.ParentId = &v +} + +// GetOrganizationalUnitId returns the OrganizationalUnitId field value +func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetOrganizationalUnitId() string { + if o == nil { + var ret string + return ret + } + + return o.OrganizationalUnitId +} + +// GetOrganizationalUnitIdOk returns a tuple with the OrganizationalUnitId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoAwsOrganizationalUnit) GetOrganizationalUnitIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrganizationalUnitId, true +} + +// SetOrganizationalUnitId sets field value +func (o *ResourceRemoteInfoAwsOrganizationalUnit) SetOrganizationalUnitId(v string) { + o.OrganizationalUnitId = v +} + +func (o ResourceRemoteInfoAwsOrganizationalUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoAwsOrganizationalUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ParentId) { + toSerialize["parent_id"] = o.ParentId + } + toSerialize["organizational_unit_id"] = o.OrganizationalUnitId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoAwsOrganizationalUnit) 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{ + "organizational_unit_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) + } + } + + varResourceRemoteInfoAwsOrganizationalUnit := _ResourceRemoteInfoAwsOrganizationalUnit{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAwsOrganizationalUnit) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAwsOrganizationalUnit(varResourceRemoteInfoAwsOrganizationalUnit) + + return err +} + +type NullableResourceRemoteInfoAwsOrganizationalUnit struct { + value *ResourceRemoteInfoAwsOrganizationalUnit + isSet bool +} + +func (v NullableResourceRemoteInfoAwsOrganizationalUnit) Get() *ResourceRemoteInfoAwsOrganizationalUnit { + return v.value +} + +func (v *NullableResourceRemoteInfoAwsOrganizationalUnit) Set(val *ResourceRemoteInfoAwsOrganizationalUnit) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoAwsOrganizationalUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoAwsOrganizationalUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoAwsOrganizationalUnit(val *ResourceRemoteInfoAwsOrganizationalUnit) *NullableResourceRemoteInfoAwsOrganizationalUnit { + return &NullableResourceRemoteInfoAwsOrganizationalUnit{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoAwsOrganizationalUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoAwsOrganizationalUnit) 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..7bcfaf6 --- /dev/null +++ b/model_resource_remote_info_aws_rds_cluster.go @@ -0,0 +1,304 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAwsRdsCluster) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAwsRdsCluster(varResourceRemoteInfoAwsRdsCluster) + + 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..253aac4 --- /dev/null +++ b/model_resource_remote_info_azure_enterprise_app.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureEnterpriseApp) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureEnterpriseApp(varResourceRemoteInfoAzureEnterpriseApp) + + 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..4a8f24f --- /dev/null +++ b/model_resource_remote_info_azure_entra_id_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureEntraIdRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureEntraIdRole(varResourceRemoteInfoAzureEntraIdRole) + + 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..d71436c --- /dev/null +++ b/model_resource_remote_info_azure_management_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureManagementGroup) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureManagementGroup(varResourceRemoteInfoAzureManagementGroup) + + 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..438941a --- /dev/null +++ b/model_resource_remote_info_azure_resource_group.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureResourceGroup) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureResourceGroup(varResourceRemoteInfoAzureResourceGroup) + + 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..acfc2e7 --- /dev/null +++ b/model_resource_remote_info_azure_sql_database.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureSqlDatabase) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlDatabase(varResourceRemoteInfoAzureSqlDatabase) + + 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..4972e59 --- /dev/null +++ b/model_resource_remote_info_azure_sql_managed_database.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureSqlManagedDatabase) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlManagedDatabase(varResourceRemoteInfoAzureSqlManagedDatabase) + + 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..19f5d0b --- /dev/null +++ b/model_resource_remote_info_azure_sql_managed_instance.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureSqlManagedInstance) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlManagedInstance(varResourceRemoteInfoAzureSqlManagedInstance) + + 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..fc58358 --- /dev/null +++ b/model_resource_remote_info_azure_sql_server.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureSqlServer) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSqlServer(varResourceRemoteInfoAzureSqlServer) + + 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..9a188b8 --- /dev/null +++ b/model_resource_remote_info_azure_storage_account.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureStorageAccount) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureStorageAccount(varResourceRemoteInfoAzureStorageAccount) + + 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..7120586 --- /dev/null +++ b/model_resource_remote_info_azure_storage_container.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureStorageContainer) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureStorageContainer(varResourceRemoteInfoAzureStorageContainer) + + 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..0304763 --- /dev/null +++ b/model_resource_remote_info_azure_subscription.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureSubscription) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureSubscription(varResourceRemoteInfoAzureSubscription) + + 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..6c138fe --- /dev/null +++ b/model_resource_remote_info_azure_user_assigned_managed_identity.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureUserAssignedManagedIdentity) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureUserAssignedManagedIdentity(varResourceRemoteInfoAzureUserAssignedManagedIdentity) + + 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..c1ce9aa --- /dev/null +++ b/model_resource_remote_info_azure_virtual_machine.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoAzureVirtualMachine) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoAzureVirtualMachine(varResourceRemoteInfoAzureVirtualMachine) + + 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_clickhouse_database.go b/model_resource_remote_info_clickhouse_database.go new file mode 100644 index 0000000..4a78e87 --- /dev/null +++ b/model_resource_remote_info_clickhouse_database.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoClickhouseDatabase type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoClickhouseDatabase{} + +// ResourceRemoteInfoClickhouseDatabase Remote info for ClickHouse database. +type ResourceRemoteInfoClickhouseDatabase struct { + // The name of the ClickHouse database. + DatabaseName string `json:"database_name"` +} + +type _ResourceRemoteInfoClickhouseDatabase ResourceRemoteInfoClickhouseDatabase + +// NewResourceRemoteInfoClickhouseDatabase instantiates a new ResourceRemoteInfoClickhouseDatabase 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 NewResourceRemoteInfoClickhouseDatabase(databaseName string) *ResourceRemoteInfoClickhouseDatabase { + this := ResourceRemoteInfoClickhouseDatabase{} + this.DatabaseName = databaseName + return &this +} + +// NewResourceRemoteInfoClickhouseDatabaseWithDefaults instantiates a new ResourceRemoteInfoClickhouseDatabase 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 NewResourceRemoteInfoClickhouseDatabaseWithDefaults() *ResourceRemoteInfoClickhouseDatabase { + this := ResourceRemoteInfoClickhouseDatabase{} + return &this +} + +// GetDatabaseName returns the DatabaseName field value +func (o *ResourceRemoteInfoClickhouseDatabase) 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 *ResourceRemoteInfoClickhouseDatabase) GetDatabaseNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DatabaseName, true +} + +// SetDatabaseName sets field value +func (o *ResourceRemoteInfoClickhouseDatabase) SetDatabaseName(v string) { + o.DatabaseName = v +} + +func (o ResourceRemoteInfoClickhouseDatabase) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoClickhouseDatabase) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["database_name"] = o.DatabaseName + return toSerialize, nil +} + +func (o *ResourceRemoteInfoClickhouseDatabase) 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) + } + } + + varResourceRemoteInfoClickhouseDatabase := _ResourceRemoteInfoClickhouseDatabase{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoClickhouseDatabase) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoClickhouseDatabase(varResourceRemoteInfoClickhouseDatabase) + + return err +} + +type NullableResourceRemoteInfoClickhouseDatabase struct { + value *ResourceRemoteInfoClickhouseDatabase + isSet bool +} + +func (v NullableResourceRemoteInfoClickhouseDatabase) Get() *ResourceRemoteInfoClickhouseDatabase { + return v.value +} + +func (v *NullableResourceRemoteInfoClickhouseDatabase) Set(val *ResourceRemoteInfoClickhouseDatabase) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoClickhouseDatabase) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoClickhouseDatabase) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoClickhouseDatabase(val *ResourceRemoteInfoClickhouseDatabase) *NullableResourceRemoteInfoClickhouseDatabase { + return &NullableResourceRemoteInfoClickhouseDatabase{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoClickhouseDatabase) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoClickhouseDatabase) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_clickhouse_table.go b/model_resource_remote_info_clickhouse_table.go new file mode 100644 index 0000000..d4a790b --- /dev/null +++ b/model_resource_remote_info_clickhouse_table.go @@ -0,0 +1,189 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoClickhouseTable type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoClickhouseTable{} + +// ResourceRemoteInfoClickhouseTable Remote info for ClickHouse table. +type ResourceRemoteInfoClickhouseTable struct { + // The name of the ClickHouse database containing the table. + DatabaseName string `json:"database_name"` + // The name of the ClickHouse table. + TableName string `json:"table_name"` +} + +type _ResourceRemoteInfoClickhouseTable ResourceRemoteInfoClickhouseTable + +// NewResourceRemoteInfoClickhouseTable instantiates a new ResourceRemoteInfoClickhouseTable 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 NewResourceRemoteInfoClickhouseTable(databaseName string, tableName string) *ResourceRemoteInfoClickhouseTable { + this := ResourceRemoteInfoClickhouseTable{} + this.DatabaseName = databaseName + this.TableName = tableName + return &this +} + +// NewResourceRemoteInfoClickhouseTableWithDefaults instantiates a new ResourceRemoteInfoClickhouseTable 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 NewResourceRemoteInfoClickhouseTableWithDefaults() *ResourceRemoteInfoClickhouseTable { + this := ResourceRemoteInfoClickhouseTable{} + return &this +} + +// GetDatabaseName returns the DatabaseName field value +func (o *ResourceRemoteInfoClickhouseTable) 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 *ResourceRemoteInfoClickhouseTable) GetDatabaseNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DatabaseName, true +} + +// SetDatabaseName sets field value +func (o *ResourceRemoteInfoClickhouseTable) SetDatabaseName(v string) { + o.DatabaseName = v +} + +// GetTableName returns the TableName field value +func (o *ResourceRemoteInfoClickhouseTable) 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 *ResourceRemoteInfoClickhouseTable) GetTableNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TableName, true +} + +// SetTableName sets field value +func (o *ResourceRemoteInfoClickhouseTable) SetTableName(v string) { + o.TableName = v +} + +func (o ResourceRemoteInfoClickhouseTable) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoClickhouseTable) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["database_name"] = o.DatabaseName + toSerialize["table_name"] = o.TableName + return toSerialize, nil +} + +func (o *ResourceRemoteInfoClickhouseTable) 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", + "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) + } + } + + varResourceRemoteInfoClickhouseTable := _ResourceRemoteInfoClickhouseTable{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoClickhouseTable) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoClickhouseTable(varResourceRemoteInfoClickhouseTable) + + return err +} + +type NullableResourceRemoteInfoClickhouseTable struct { + value *ResourceRemoteInfoClickhouseTable + isSet bool +} + +func (v NullableResourceRemoteInfoClickhouseTable) Get() *ResourceRemoteInfoClickhouseTable { + return v.value +} + +func (v *NullableResourceRemoteInfoClickhouseTable) Set(val *ResourceRemoteInfoClickhouseTable) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoClickhouseTable) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoClickhouseTable) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoClickhouseTable(val *ResourceRemoteInfoClickhouseTable) *NullableResourceRemoteInfoClickhouseTable { + return &NullableResourceRemoteInfoClickhouseTable{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoClickhouseTable) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoClickhouseTable) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_coupa_role.go b/model_resource_remote_info_coupa_role.go new file mode 100644 index 0000000..2a71383 --- /dev/null +++ b/model_resource_remote_info_coupa_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoCoupaRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoCoupaRole{} + +// ResourceRemoteInfoCoupaRole Remote info for Coupa role. +type ResourceRemoteInfoCoupaRole struct { + // The id of the role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoCoupaRole ResourceRemoteInfoCoupaRole + +// NewResourceRemoteInfoCoupaRole instantiates a new ResourceRemoteInfoCoupaRole 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 NewResourceRemoteInfoCoupaRole(roleId string) *ResourceRemoteInfoCoupaRole { + this := ResourceRemoteInfoCoupaRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoCoupaRoleWithDefaults instantiates a new ResourceRemoteInfoCoupaRole 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 NewResourceRemoteInfoCoupaRoleWithDefaults() *ResourceRemoteInfoCoupaRole { + this := ResourceRemoteInfoCoupaRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoCoupaRole) 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 *ResourceRemoteInfoCoupaRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoCoupaRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoCoupaRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoCoupaRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoCoupaRole) 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) + } + } + + varResourceRemoteInfoCoupaRole := _ResourceRemoteInfoCoupaRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoCoupaRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoCoupaRole(varResourceRemoteInfoCoupaRole) + + return err +} + +type NullableResourceRemoteInfoCoupaRole struct { + value *ResourceRemoteInfoCoupaRole + isSet bool +} + +func (v NullableResourceRemoteInfoCoupaRole) Get() *ResourceRemoteInfoCoupaRole { + return v.value +} + +func (v *NullableResourceRemoteInfoCoupaRole) Set(val *ResourceRemoteInfoCoupaRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoCoupaRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoCoupaRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoCoupaRole(val *ResourceRemoteInfoCoupaRole) *NullableResourceRemoteInfoCoupaRole { + return &NullableResourceRemoteInfoCoupaRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoCoupaRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoCoupaRole) 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..bb02696 --- /dev/null +++ b/model_resource_remote_info_cursor_organization.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoCursorOrganization) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoCursorOrganization(varResourceRemoteInfoCursorOrganization) + + 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_custom_connector.go b/model_resource_remote_info_custom_connector.go new file mode 100644 index 0000000..278c7a6 --- /dev/null +++ b/model_resource_remote_info_custom_connector.go @@ -0,0 +1,189 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoCustomConnector type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoCustomConnector{} + +// ResourceRemoteInfoCustomConnector Remote info for a custom connector resource. +type ResourceRemoteInfoCustomConnector struct { + // The id of the resource in the end system + RemoteResourceId string `json:"remote_resource_id"` + // A bool representing whether or not the resource can have usage data. + CanHaveUsageEvents bool `json:"can_have_usage_events"` +} + +type _ResourceRemoteInfoCustomConnector ResourceRemoteInfoCustomConnector + +// NewResourceRemoteInfoCustomConnector instantiates a new ResourceRemoteInfoCustomConnector 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 NewResourceRemoteInfoCustomConnector(remoteResourceId string, canHaveUsageEvents bool) *ResourceRemoteInfoCustomConnector { + this := ResourceRemoteInfoCustomConnector{} + this.RemoteResourceId = remoteResourceId + this.CanHaveUsageEvents = canHaveUsageEvents + return &this +} + +// NewResourceRemoteInfoCustomConnectorWithDefaults instantiates a new ResourceRemoteInfoCustomConnector 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 NewResourceRemoteInfoCustomConnectorWithDefaults() *ResourceRemoteInfoCustomConnector { + this := ResourceRemoteInfoCustomConnector{} + return &this +} + +// GetRemoteResourceId returns the RemoteResourceId field value +func (o *ResourceRemoteInfoCustomConnector) GetRemoteResourceId() string { + if o == nil { + var ret string + return ret + } + + return o.RemoteResourceId +} + +// GetRemoteResourceIdOk returns a tuple with the RemoteResourceId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoCustomConnector) GetRemoteResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RemoteResourceId, true +} + +// SetRemoteResourceId sets field value +func (o *ResourceRemoteInfoCustomConnector) SetRemoteResourceId(v string) { + o.RemoteResourceId = v +} + +// GetCanHaveUsageEvents returns the CanHaveUsageEvents field value +func (o *ResourceRemoteInfoCustomConnector) GetCanHaveUsageEvents() bool { + if o == nil { + var ret bool + return ret + } + + return o.CanHaveUsageEvents +} + +// GetCanHaveUsageEventsOk returns a tuple with the CanHaveUsageEvents field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoCustomConnector) GetCanHaveUsageEventsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.CanHaveUsageEvents, true +} + +// SetCanHaveUsageEvents sets field value +func (o *ResourceRemoteInfoCustomConnector) SetCanHaveUsageEvents(v bool) { + o.CanHaveUsageEvents = v +} + +func (o ResourceRemoteInfoCustomConnector) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoCustomConnector) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["remote_resource_id"] = o.RemoteResourceId + toSerialize["can_have_usage_events"] = o.CanHaveUsageEvents + return toSerialize, nil +} + +func (o *ResourceRemoteInfoCustomConnector) 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{ + "remote_resource_id", + "can_have_usage_events", + } + + 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) + } + } + + varResourceRemoteInfoCustomConnector := _ResourceRemoteInfoCustomConnector{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoCustomConnector) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoCustomConnector(varResourceRemoteInfoCustomConnector) + + return err +} + +type NullableResourceRemoteInfoCustomConnector struct { + value *ResourceRemoteInfoCustomConnector + isSet bool +} + +func (v NullableResourceRemoteInfoCustomConnector) Get() *ResourceRemoteInfoCustomConnector { + return v.value +} + +func (v *NullableResourceRemoteInfoCustomConnector) Set(val *ResourceRemoteInfoCustomConnector) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoCustomConnector) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoCustomConnector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoCustomConnector(val *ResourceRemoteInfoCustomConnector) *NullableResourceRemoteInfoCustomConnector { + return &NullableResourceRemoteInfoCustomConnector{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoCustomConnector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoCustomConnector) 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..ec18e7e --- /dev/null +++ b/model_resource_remote_info_databricks_account_service_principal.go @@ -0,0 +1,189 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoDatabricksAccountServicePrincipal) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDatabricksAccountServicePrincipal(varResourceRemoteInfoDatabricksAccountServicePrincipal) + + 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_datadog_role.go b/model_resource_remote_info_datadog_role.go new file mode 100644 index 0000000..fd244d1 --- /dev/null +++ b/model_resource_remote_info_datadog_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoDatadogRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoDatadogRole{} + +// ResourceRemoteInfoDatadogRole Remote info for Datadog role. +type ResourceRemoteInfoDatadogRole struct { + // The id of the role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoDatadogRole ResourceRemoteInfoDatadogRole + +// NewResourceRemoteInfoDatadogRole instantiates a new ResourceRemoteInfoDatadogRole 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 NewResourceRemoteInfoDatadogRole(roleId string) *ResourceRemoteInfoDatadogRole { + this := ResourceRemoteInfoDatadogRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoDatadogRoleWithDefaults instantiates a new ResourceRemoteInfoDatadogRole 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 NewResourceRemoteInfoDatadogRoleWithDefaults() *ResourceRemoteInfoDatadogRole { + this := ResourceRemoteInfoDatadogRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoDatadogRole) 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 *ResourceRemoteInfoDatadogRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoDatadogRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoDatadogRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoDatadogRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoDatadogRole) 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) + } + } + + varResourceRemoteInfoDatadogRole := _ResourceRemoteInfoDatadogRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoDatadogRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDatadogRole(varResourceRemoteInfoDatadogRole) + + return err +} + +type NullableResourceRemoteInfoDatadogRole struct { + value *ResourceRemoteInfoDatadogRole + isSet bool +} + +func (v NullableResourceRemoteInfoDatadogRole) Get() *ResourceRemoteInfoDatadogRole { + return v.value +} + +func (v *NullableResourceRemoteInfoDatadogRole) Set(val *ResourceRemoteInfoDatadogRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoDatadogRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoDatadogRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoDatadogRole(val *ResourceRemoteInfoDatadogRole) *NullableResourceRemoteInfoDatadogRole { + return &NullableResourceRemoteInfoDatadogRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoDatadogRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoDatadogRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_datastax_astra_role.go b/model_resource_remote_info_datastax_astra_role.go new file mode 100644 index 0000000..6516a3c --- /dev/null +++ b/model_resource_remote_info_datastax_astra_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoDatastaxAstraRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoDatastaxAstraRole{} + +// ResourceRemoteInfoDatastaxAstraRole Remote info for an Astra role. +type ResourceRemoteInfoDatastaxAstraRole struct { + // The id of the role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoDatastaxAstraRole ResourceRemoteInfoDatastaxAstraRole + +// NewResourceRemoteInfoDatastaxAstraRole instantiates a new ResourceRemoteInfoDatastaxAstraRole 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 NewResourceRemoteInfoDatastaxAstraRole(roleId string) *ResourceRemoteInfoDatastaxAstraRole { + this := ResourceRemoteInfoDatastaxAstraRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoDatastaxAstraRoleWithDefaults instantiates a new ResourceRemoteInfoDatastaxAstraRole 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 NewResourceRemoteInfoDatastaxAstraRoleWithDefaults() *ResourceRemoteInfoDatastaxAstraRole { + this := ResourceRemoteInfoDatastaxAstraRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoDatastaxAstraRole) 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 *ResourceRemoteInfoDatastaxAstraRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoDatastaxAstraRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoDatastaxAstraRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoDatastaxAstraRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoDatastaxAstraRole) 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) + } + } + + varResourceRemoteInfoDatastaxAstraRole := _ResourceRemoteInfoDatastaxAstraRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoDatastaxAstraRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDatastaxAstraRole(varResourceRemoteInfoDatastaxAstraRole) + + return err +} + +type NullableResourceRemoteInfoDatastaxAstraRole struct { + value *ResourceRemoteInfoDatastaxAstraRole + isSet bool +} + +func (v NullableResourceRemoteInfoDatastaxAstraRole) Get() *ResourceRemoteInfoDatastaxAstraRole { + return v.value +} + +func (v *NullableResourceRemoteInfoDatastaxAstraRole) Set(val *ResourceRemoteInfoDatastaxAstraRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoDatastaxAstraRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoDatastaxAstraRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoDatastaxAstraRole(val *ResourceRemoteInfoDatastaxAstraRole) *NullableResourceRemoteInfoDatastaxAstraRole { + return &NullableResourceRemoteInfoDatastaxAstraRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoDatastaxAstraRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoDatastaxAstraRole) 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..69bcf68 --- /dev/null +++ b/model_resource_remote_info_devin_organization.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoDevinOrganization) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDevinOrganization(varResourceRemoteInfoDevinOrganization) + + 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..d82d75e --- /dev/null +++ b/model_resource_remote_info_devin_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoDevinRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoDevinRole(varResourceRemoteInfoDevinRole) + + 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_enterprise_role.go b/model_resource_remote_info_github_enterprise_role.go new file mode 100644 index 0000000..115a798 --- /dev/null +++ b/model_resource_remote_info_github_enterprise_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoGithubEnterpriseRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGithubEnterpriseRole{} + +// ResourceRemoteInfoGithubEnterpriseRole Remote info for GitHub Enterprise role. +type ResourceRemoteInfoGithubEnterpriseRole struct { + // The id of the role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoGithubEnterpriseRole ResourceRemoteInfoGithubEnterpriseRole + +// NewResourceRemoteInfoGithubEnterpriseRole instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewResourceRemoteInfoGithubEnterpriseRole(roleId string) *ResourceRemoteInfoGithubEnterpriseRole { + this := ResourceRemoteInfoGithubEnterpriseRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults instantiates a new ResourceRemoteInfoGithubEnterpriseRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewResourceRemoteInfoGithubEnterpriseRoleWithDefaults() *ResourceRemoteInfoGithubEnterpriseRole { + this := ResourceRemoteInfoGithubEnterpriseRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleId() string { + if o == nil { + var ret string + return ret + } + + return o.RoleId +} + +// GetRoleIdOk returns a tuple with the RoleId field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGithubEnterpriseRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoGithubEnterpriseRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoGithubEnterpriseRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGithubEnterpriseRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGithubEnterpriseRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "role_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varResourceRemoteInfoGithubEnterpriseRole := _ResourceRemoteInfoGithubEnterpriseRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoGithubEnterpriseRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGithubEnterpriseRole(varResourceRemoteInfoGithubEnterpriseRole) + + return err +} + +type NullableResourceRemoteInfoGithubEnterpriseRole struct { + value *ResourceRemoteInfoGithubEnterpriseRole + isSet bool +} + +func (v NullableResourceRemoteInfoGithubEnterpriseRole) Get() *ResourceRemoteInfoGithubEnterpriseRole { + return v.value +} + +func (v *NullableResourceRemoteInfoGithubEnterpriseRole) Set(val *ResourceRemoteInfoGithubEnterpriseRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGithubEnterpriseRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGithubEnterpriseRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGithubEnterpriseRole(val *ResourceRemoteInfoGithubEnterpriseRole) *NullableResourceRemoteInfoGithubEnterpriseRole { + return &NullableResourceRemoteInfoGithubEnterpriseRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGithubEnterpriseRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGithubEnterpriseRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_github_org.go b/model_resource_remote_info_github_org.go new file mode 100644 index 0000000..be7bf7b --- /dev/null +++ b/model_resource_remote_info_github_org.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoGithubOrg) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGithubOrg(varResourceRemoteInfoGithubOrg) + + 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_github_org_role.go b/model_resource_remote_info_github_org_role.go new file mode 100644 index 0000000..3f5757a --- /dev/null +++ b/model_resource_remote_info_github_org_role.go @@ -0,0 +1,197 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoGithubOrgRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGithubOrgRole{} + +// ResourceRemoteInfoGithubOrgRole Remote info for GitHub organization role. +type ResourceRemoteInfoGithubOrgRole struct { + // The id of the role. + RoleId string `json:"role_id"` + // GitHub org role's org name, required only for Enterprise. + OrgName *string `json:"org_name,omitempty"` +} + +type _ResourceRemoteInfoGithubOrgRole ResourceRemoteInfoGithubOrgRole + +// NewResourceRemoteInfoGithubOrgRole instantiates a new ResourceRemoteInfoGithubOrgRole 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 NewResourceRemoteInfoGithubOrgRole(roleId string) *ResourceRemoteInfoGithubOrgRole { + this := ResourceRemoteInfoGithubOrgRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoGithubOrgRoleWithDefaults instantiates a new ResourceRemoteInfoGithubOrgRole 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 NewResourceRemoteInfoGithubOrgRoleWithDefaults() *ResourceRemoteInfoGithubOrgRole { + this := ResourceRemoteInfoGithubOrgRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoGithubOrgRole) 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 *ResourceRemoteInfoGithubOrgRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoGithubOrgRole) SetRoleId(v string) { + o.RoleId = v +} + +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *ResourceRemoteInfoGithubOrgRole) GetOrgName() string { + if o == nil || IsNil(o.OrgName) { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGithubOrgRole) GetOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.OrgName) { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *ResourceRemoteInfoGithubOrgRole) HasOrgName() bool { + if o != nil && !IsNil(o.OrgName) { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *ResourceRemoteInfoGithubOrgRole) SetOrgName(v string) { + o.OrgName = &v +} + +func (o ResourceRemoteInfoGithubOrgRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGithubOrgRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + if !IsNil(o.OrgName) { + toSerialize["org_name"] = o.OrgName + } + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGithubOrgRole) 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) + } + } + + varResourceRemoteInfoGithubOrgRole := _ResourceRemoteInfoGithubOrgRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoGithubOrgRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGithubOrgRole(varResourceRemoteInfoGithubOrgRole) + + return err +} + +type NullableResourceRemoteInfoGithubOrgRole struct { + value *ResourceRemoteInfoGithubOrgRole + isSet bool +} + +func (v NullableResourceRemoteInfoGithubOrgRole) Get() *ResourceRemoteInfoGithubOrgRole { + return v.value +} + +func (v *NullableResourceRemoteInfoGithubOrgRole) Set(val *ResourceRemoteInfoGithubOrgRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGithubOrgRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGithubOrgRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGithubOrgRole(val *ResourceRemoteInfoGithubOrgRole) *NullableResourceRemoteInfoGithubOrgRole { + return &NullableResourceRemoteInfoGithubOrgRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGithubOrgRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGithubOrgRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_github_repo.go b/model_resource_remote_info_github_repo.go index 45181c4..5495c03 100644 --- a/model_resource_remote_info_github_repo.go +++ b/model_resource_remote_info_github_repo.go @@ -27,6 +27,8 @@ type ResourceRemoteInfoGithubRepo struct { RepoId *string `json:"repo_id,omitempty"` // The name of the repository. RepoName string `json:"repo_name"` + // GitHub repo's org name, required only for Enterprise. + OrgName *string `json:"org_name,omitempty"` } type _ResourceRemoteInfoGithubRepo ResourceRemoteInfoGithubRepo @@ -108,6 +110,38 @@ func (o *ResourceRemoteInfoGithubRepo) SetRepoName(v string) { o.RepoName = v } +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *ResourceRemoteInfoGithubRepo) GetOrgName() string { + if o == nil || IsNil(o.OrgName) { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGithubRepo) GetOrgNameOk() (*string, bool) { + if o == nil || IsNil(o.OrgName) { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *ResourceRemoteInfoGithubRepo) HasOrgName() bool { + if o != nil && !IsNil(o.OrgName) { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *ResourceRemoteInfoGithubRepo) SetOrgName(v string) { + o.OrgName = &v +} + func (o ResourceRemoteInfoGithubRepo) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -122,6 +156,9 @@ func (o ResourceRemoteInfoGithubRepo) ToMap() (map[string]interface{}, error) { toSerialize["repo_id"] = o.RepoId } toSerialize["repo_name"] = o.RepoName + if !IsNil(o.OrgName) { + toSerialize["org_name"] = o.OrgName + } return toSerialize, nil } diff --git a/model_resource_remote_info_google_workspace_role.go b/model_resource_remote_info_google_workspace_role.go new file mode 100644 index 0000000..735b135 --- /dev/null +++ b/model_resource_remote_info_google_workspace_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoGoogleWorkspaceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGoogleWorkspaceRole{} + +// ResourceRemoteInfoGoogleWorkspaceRole Remote info for GCP workspace role. +type ResourceRemoteInfoGoogleWorkspaceRole struct { + // The id of the role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoGoogleWorkspaceRole ResourceRemoteInfoGoogleWorkspaceRole + +// NewResourceRemoteInfoGoogleWorkspaceRole instantiates a new ResourceRemoteInfoGoogleWorkspaceRole 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 NewResourceRemoteInfoGoogleWorkspaceRole(roleId string) *ResourceRemoteInfoGoogleWorkspaceRole { + this := ResourceRemoteInfoGoogleWorkspaceRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoGoogleWorkspaceRoleWithDefaults instantiates a new ResourceRemoteInfoGoogleWorkspaceRole 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 NewResourceRemoteInfoGoogleWorkspaceRoleWithDefaults() *ResourceRemoteInfoGoogleWorkspaceRole { + this := ResourceRemoteInfoGoogleWorkspaceRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoGoogleWorkspaceRole) 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 *ResourceRemoteInfoGoogleWorkspaceRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoGoogleWorkspaceRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoGoogleWorkspaceRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGoogleWorkspaceRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGoogleWorkspaceRole) 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) + } + } + + varResourceRemoteInfoGoogleWorkspaceRole := _ResourceRemoteInfoGoogleWorkspaceRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoGoogleWorkspaceRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGoogleWorkspaceRole(varResourceRemoteInfoGoogleWorkspaceRole) + + return err +} + +type NullableResourceRemoteInfoGoogleWorkspaceRole struct { + value *ResourceRemoteInfoGoogleWorkspaceRole + isSet bool +} + +func (v NullableResourceRemoteInfoGoogleWorkspaceRole) Get() *ResourceRemoteInfoGoogleWorkspaceRole { + return v.value +} + +func (v *NullableResourceRemoteInfoGoogleWorkspaceRole) Set(val *ResourceRemoteInfoGoogleWorkspaceRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGoogleWorkspaceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGoogleWorkspaceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGoogleWorkspaceRole(val *ResourceRemoteInfoGoogleWorkspaceRole) *NullableResourceRemoteInfoGoogleWorkspaceRole { + return &NullableResourceRemoteInfoGoogleWorkspaceRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGoogleWorkspaceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGoogleWorkspaceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_grafana_dashboard.go b/model_resource_remote_info_grafana_dashboard.go new file mode 100644 index 0000000..2d6b72e --- /dev/null +++ b/model_resource_remote_info_grafana_dashboard.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoGrafanaDashboard type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGrafanaDashboard{} + +// ResourceRemoteInfoGrafanaDashboard Remote info for Grafana dashboard. +type ResourceRemoteInfoGrafanaDashboard struct { + // The UID of the Grafana dashboard. + DashboardUid string `json:"dashboard_uid"` +} + +type _ResourceRemoteInfoGrafanaDashboard ResourceRemoteInfoGrafanaDashboard + +// NewResourceRemoteInfoGrafanaDashboard instantiates a new ResourceRemoteInfoGrafanaDashboard 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 NewResourceRemoteInfoGrafanaDashboard(dashboardUid string) *ResourceRemoteInfoGrafanaDashboard { + this := ResourceRemoteInfoGrafanaDashboard{} + this.DashboardUid = dashboardUid + return &this +} + +// NewResourceRemoteInfoGrafanaDashboardWithDefaults instantiates a new ResourceRemoteInfoGrafanaDashboard 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 NewResourceRemoteInfoGrafanaDashboardWithDefaults() *ResourceRemoteInfoGrafanaDashboard { + this := ResourceRemoteInfoGrafanaDashboard{} + return &this +} + +// GetDashboardUid returns the DashboardUid field value +func (o *ResourceRemoteInfoGrafanaDashboard) GetDashboardUid() string { + if o == nil { + var ret string + return ret + } + + return o.DashboardUid +} + +// GetDashboardUidOk returns a tuple with the DashboardUid field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGrafanaDashboard) GetDashboardUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DashboardUid, true +} + +// SetDashboardUid sets field value +func (o *ResourceRemoteInfoGrafanaDashboard) SetDashboardUid(v string) { + o.DashboardUid = v +} + +func (o ResourceRemoteInfoGrafanaDashboard) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGrafanaDashboard) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["dashboard_uid"] = o.DashboardUid + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGrafanaDashboard) 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{ + "dashboard_uid", + } + + 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) + } + } + + varResourceRemoteInfoGrafanaDashboard := _ResourceRemoteInfoGrafanaDashboard{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoGrafanaDashboard) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGrafanaDashboard(varResourceRemoteInfoGrafanaDashboard) + + return err +} + +type NullableResourceRemoteInfoGrafanaDashboard struct { + value *ResourceRemoteInfoGrafanaDashboard + isSet bool +} + +func (v NullableResourceRemoteInfoGrafanaDashboard) Get() *ResourceRemoteInfoGrafanaDashboard { + return v.value +} + +func (v *NullableResourceRemoteInfoGrafanaDashboard) Set(val *ResourceRemoteInfoGrafanaDashboard) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGrafanaDashboard) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGrafanaDashboard) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGrafanaDashboard(val *ResourceRemoteInfoGrafanaDashboard) *NullableResourceRemoteInfoGrafanaDashboard { + return &NullableResourceRemoteInfoGrafanaDashboard{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGrafanaDashboard) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGrafanaDashboard) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_grafana_folder.go b/model_resource_remote_info_grafana_folder.go new file mode 100644 index 0000000..718a013 --- /dev/null +++ b/model_resource_remote_info_grafana_folder.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoGrafanaFolder type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGrafanaFolder{} + +// ResourceRemoteInfoGrafanaFolder Remote info for Grafana folder. +type ResourceRemoteInfoGrafanaFolder struct { + // The UID of the Grafana folder. + FolderUid string `json:"folder_uid"` +} + +type _ResourceRemoteInfoGrafanaFolder ResourceRemoteInfoGrafanaFolder + +// NewResourceRemoteInfoGrafanaFolder instantiates a new ResourceRemoteInfoGrafanaFolder 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 NewResourceRemoteInfoGrafanaFolder(folderUid string) *ResourceRemoteInfoGrafanaFolder { + this := ResourceRemoteInfoGrafanaFolder{} + this.FolderUid = folderUid + return &this +} + +// NewResourceRemoteInfoGrafanaFolderWithDefaults instantiates a new ResourceRemoteInfoGrafanaFolder 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 NewResourceRemoteInfoGrafanaFolderWithDefaults() *ResourceRemoteInfoGrafanaFolder { + this := ResourceRemoteInfoGrafanaFolder{} + return &this +} + +// GetFolderUid returns the FolderUid field value +func (o *ResourceRemoteInfoGrafanaFolder) GetFolderUid() string { + if o == nil { + var ret string + return ret + } + + return o.FolderUid +} + +// GetFolderUidOk returns a tuple with the FolderUid field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGrafanaFolder) GetFolderUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FolderUid, true +} + +// SetFolderUid sets field value +func (o *ResourceRemoteInfoGrafanaFolder) SetFolderUid(v string) { + o.FolderUid = v +} + +func (o ResourceRemoteInfoGrafanaFolder) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGrafanaFolder) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["folder_uid"] = o.FolderUid + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGrafanaFolder) 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{ + "folder_uid", + } + + 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) + } + } + + varResourceRemoteInfoGrafanaFolder := _ResourceRemoteInfoGrafanaFolder{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoGrafanaFolder) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGrafanaFolder(varResourceRemoteInfoGrafanaFolder) + + return err +} + +type NullableResourceRemoteInfoGrafanaFolder struct { + value *ResourceRemoteInfoGrafanaFolder + isSet bool +} + +func (v NullableResourceRemoteInfoGrafanaFolder) Get() *ResourceRemoteInfoGrafanaFolder { + return v.value +} + +func (v *NullableResourceRemoteInfoGrafanaFolder) Set(val *ResourceRemoteInfoGrafanaFolder) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGrafanaFolder) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGrafanaFolder) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGrafanaFolder(val *ResourceRemoteInfoGrafanaFolder) *NullableResourceRemoteInfoGrafanaFolder { + return &NullableResourceRemoteInfoGrafanaFolder{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGrafanaFolder) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGrafanaFolder) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_grafana_role.go b/model_resource_remote_info_grafana_role.go new file mode 100644 index 0000000..538ab78 --- /dev/null +++ b/model_resource_remote_info_grafana_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoGrafanaRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoGrafanaRole{} + +// ResourceRemoteInfoGrafanaRole Remote info for Grafana role(fixed or custom). +type ResourceRemoteInfoGrafanaRole struct { + // The UID of the Grafana role. + RoleUid string `json:"role_uid"` +} + +type _ResourceRemoteInfoGrafanaRole ResourceRemoteInfoGrafanaRole + +// NewResourceRemoteInfoGrafanaRole instantiates a new ResourceRemoteInfoGrafanaRole 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 NewResourceRemoteInfoGrafanaRole(roleUid string) *ResourceRemoteInfoGrafanaRole { + this := ResourceRemoteInfoGrafanaRole{} + this.RoleUid = roleUid + return &this +} + +// NewResourceRemoteInfoGrafanaRoleWithDefaults instantiates a new ResourceRemoteInfoGrafanaRole 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 NewResourceRemoteInfoGrafanaRoleWithDefaults() *ResourceRemoteInfoGrafanaRole { + this := ResourceRemoteInfoGrafanaRole{} + return &this +} + +// GetRoleUid returns the RoleUid field value +func (o *ResourceRemoteInfoGrafanaRole) GetRoleUid() string { + if o == nil { + var ret string + return ret + } + + return o.RoleUid +} + +// GetRoleUidOk returns a tuple with the RoleUid field value +// and a boolean to check if the value has been set. +func (o *ResourceRemoteInfoGrafanaRole) GetRoleUidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleUid, true +} + +// SetRoleUid sets field value +func (o *ResourceRemoteInfoGrafanaRole) SetRoleUid(v string) { + o.RoleUid = v +} + +func (o ResourceRemoteInfoGrafanaRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoGrafanaRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_uid"] = o.RoleUid + return toSerialize, nil +} + +func (o *ResourceRemoteInfoGrafanaRole) 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_uid", + } + + 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) + } + } + + varResourceRemoteInfoGrafanaRole := _ResourceRemoteInfoGrafanaRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoGrafanaRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoGrafanaRole(varResourceRemoteInfoGrafanaRole) + + return err +} + +type NullableResourceRemoteInfoGrafanaRole struct { + value *ResourceRemoteInfoGrafanaRole + isSet bool +} + +func (v NullableResourceRemoteInfoGrafanaRole) Get() *ResourceRemoteInfoGrafanaRole { + return v.value +} + +func (v *NullableResourceRemoteInfoGrafanaRole) Set(val *ResourceRemoteInfoGrafanaRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoGrafanaRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoGrafanaRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoGrafanaRole(val *ResourceRemoteInfoGrafanaRole) *NullableResourceRemoteInfoGrafanaRole { + return &NullableResourceRemoteInfoGrafanaRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoGrafanaRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoGrafanaRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_resource_remote_info_hubspot_role.go b/model_resource_remote_info_hubspot_role.go new file mode 100644 index 0000000..00024f0 --- /dev/null +++ b/model_resource_remote_info_hubspot_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoHubspotRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoHubspotRole{} + +// ResourceRemoteInfoHubspotRole Remote info for HubSpot role. +type ResourceRemoteInfoHubspotRole struct { + // The ID of the HubSpot role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoHubspotRole ResourceRemoteInfoHubspotRole + +// NewResourceRemoteInfoHubspotRole instantiates a new ResourceRemoteInfoHubspotRole 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 NewResourceRemoteInfoHubspotRole(roleId string) *ResourceRemoteInfoHubspotRole { + this := ResourceRemoteInfoHubspotRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoHubspotRoleWithDefaults instantiates a new ResourceRemoteInfoHubspotRole 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 NewResourceRemoteInfoHubspotRoleWithDefaults() *ResourceRemoteInfoHubspotRole { + this := ResourceRemoteInfoHubspotRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoHubspotRole) 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 *ResourceRemoteInfoHubspotRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoHubspotRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoHubspotRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoHubspotRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoHubspotRole) 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) + } + } + + varResourceRemoteInfoHubspotRole := _ResourceRemoteInfoHubspotRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoHubspotRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoHubspotRole(varResourceRemoteInfoHubspotRole) + + return err +} + +type NullableResourceRemoteInfoHubspotRole struct { + value *ResourceRemoteInfoHubspotRole + isSet bool +} + +func (v NullableResourceRemoteInfoHubspotRole) Get() *ResourceRemoteInfoHubspotRole { + return v.value +} + +func (v *NullableResourceRemoteInfoHubspotRole) Set(val *ResourceRemoteInfoHubspotRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoHubspotRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoHubspotRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoHubspotRole(val *ResourceRemoteInfoHubspotRole) *NullableResourceRemoteInfoHubspotRole { + return &NullableResourceRemoteInfoHubspotRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoHubspotRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoHubspotRole) 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..8522065 --- /dev/null +++ b/model_resource_remote_info_ilevel_advanced_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoIlevelAdvancedRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoIlevelAdvancedRole(varResourceRemoteInfoIlevelAdvancedRole) + + 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_netsuite_role.go b/model_resource_remote_info_netsuite_role.go new file mode 100644 index 0000000..bcb720f --- /dev/null +++ b/model_resource_remote_info_netsuite_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoNetsuiteRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoNetsuiteRole{} + +// ResourceRemoteInfoNetsuiteRole Remote info for NetSuite role. +type ResourceRemoteInfoNetsuiteRole struct { + // The id of the role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoNetsuiteRole ResourceRemoteInfoNetsuiteRole + +// NewResourceRemoteInfoNetsuiteRole instantiates a new ResourceRemoteInfoNetsuiteRole 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 NewResourceRemoteInfoNetsuiteRole(roleId string) *ResourceRemoteInfoNetsuiteRole { + this := ResourceRemoteInfoNetsuiteRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoNetsuiteRoleWithDefaults instantiates a new ResourceRemoteInfoNetsuiteRole 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 NewResourceRemoteInfoNetsuiteRoleWithDefaults() *ResourceRemoteInfoNetsuiteRole { + this := ResourceRemoteInfoNetsuiteRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoNetsuiteRole) 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 *ResourceRemoteInfoNetsuiteRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoNetsuiteRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoNetsuiteRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoNetsuiteRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoNetsuiteRole) 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) + } + } + + varResourceRemoteInfoNetsuiteRole := _ResourceRemoteInfoNetsuiteRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoNetsuiteRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoNetsuiteRole(varResourceRemoteInfoNetsuiteRole) + + return err +} + +type NullableResourceRemoteInfoNetsuiteRole struct { + value *ResourceRemoteInfoNetsuiteRole + isSet bool +} + +func (v NullableResourceRemoteInfoNetsuiteRole) Get() *ResourceRemoteInfoNetsuiteRole { + return v.value +} + +func (v *NullableResourceRemoteInfoNetsuiteRole) Set(val *ResourceRemoteInfoNetsuiteRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoNetsuiteRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoNetsuiteRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoNetsuiteRole(val *ResourceRemoteInfoNetsuiteRole) *NullableResourceRemoteInfoNetsuiteRole { + return &NullableResourceRemoteInfoNetsuiteRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoNetsuiteRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoNetsuiteRole) 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..1eb0ee8 --- /dev/null +++ b/model_resource_remote_info_openai_platform_project.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoOpenaiPlatformProject) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoOpenaiPlatformProject(varResourceRemoteInfoOpenaiPlatformProject) + + 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..5ae4b0d --- /dev/null +++ b/model_resource_remote_info_openai_platform_service_account.go @@ -0,0 +1,189 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoOpenaiPlatformServiceAccount) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoOpenaiPlatformServiceAccount(varResourceRemoteInfoOpenaiPlatformServiceAccount) + + 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..45e72e0 --- /dev/null +++ b/model_resource_remote_info_oracle_fusion_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoOracleFusionRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoOracleFusionRole(varResourceRemoteInfoOracleFusionRole) + + 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..d425e0b --- /dev/null +++ b/model_resource_remote_info_snowflake_database.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoSnowflakeDatabase) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoSnowflakeDatabase(varResourceRemoteInfoSnowflakeDatabase) + + 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..6d3ac30 --- /dev/null +++ b/model_resource_remote_info_snowflake_schema.go @@ -0,0 +1,189 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoSnowflakeSchema) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoSnowflakeSchema(varResourceRemoteInfoSnowflakeSchema) + + 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..3f374fd --- /dev/null +++ b/model_resource_remote_info_snowflake_table.go @@ -0,0 +1,218 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoSnowflakeTable) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoSnowflakeTable(varResourceRemoteInfoSnowflakeTable) + + 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..7c01fa3 --- /dev/null +++ b/model_resource_remote_info_tailscale_ssh.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoTailscaleSsh) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoTailscaleSsh(varResourceRemoteInfoTailscaleSsh) + + 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_twingate_resource.go b/model_resource_remote_info_twingate_resource.go new file mode 100644 index 0000000..47f39cb --- /dev/null +++ b/model_resource_remote_info_twingate_resource.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoTwingateResource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoTwingateResource{} + +// ResourceRemoteInfoTwingateResource Remote info for Twingate resource. +type ResourceRemoteInfoTwingateResource struct { + // The id of the Twingate resource. + ResourceId string `json:"resource_id"` +} + +type _ResourceRemoteInfoTwingateResource ResourceRemoteInfoTwingateResource + +// NewResourceRemoteInfoTwingateResource instantiates a new ResourceRemoteInfoTwingateResource 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 NewResourceRemoteInfoTwingateResource(resourceId string) *ResourceRemoteInfoTwingateResource { + this := ResourceRemoteInfoTwingateResource{} + this.ResourceId = resourceId + return &this +} + +// NewResourceRemoteInfoTwingateResourceWithDefaults instantiates a new ResourceRemoteInfoTwingateResource 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 NewResourceRemoteInfoTwingateResourceWithDefaults() *ResourceRemoteInfoTwingateResource { + this := ResourceRemoteInfoTwingateResource{} + return &this +} + +// GetResourceId returns the ResourceId field value +func (o *ResourceRemoteInfoTwingateResource) 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 *ResourceRemoteInfoTwingateResource) GetResourceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ResourceId, true +} + +// SetResourceId sets field value +func (o *ResourceRemoteInfoTwingateResource) SetResourceId(v string) { + o.ResourceId = v +} + +func (o ResourceRemoteInfoTwingateResource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoTwingateResource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource_id"] = o.ResourceId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoTwingateResource) 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) + } + } + + varResourceRemoteInfoTwingateResource := _ResourceRemoteInfoTwingateResource{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoTwingateResource) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoTwingateResource(varResourceRemoteInfoTwingateResource) + + return err +} + +type NullableResourceRemoteInfoTwingateResource struct { + value *ResourceRemoteInfoTwingateResource + isSet bool +} + +func (v NullableResourceRemoteInfoTwingateResource) Get() *ResourceRemoteInfoTwingateResource { + return v.value +} + +func (v *NullableResourceRemoteInfoTwingateResource) Set(val *ResourceRemoteInfoTwingateResource) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoTwingateResource) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoTwingateResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoTwingateResource(val *ResourceRemoteInfoTwingateResource) *NullableResourceRemoteInfoTwingateResource { + return &NullableResourceRemoteInfoTwingateResource{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoTwingateResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoTwingateResource) 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..03c1127 --- /dev/null +++ b/model_resource_remote_info_workday_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "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"` +} + +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 + 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{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoWorkdayRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoWorkdayRole(varResourceRemoteInfoWorkdayRole) + + 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_remote_info_zendesk_role.go b/model_resource_remote_info_zendesk_role.go new file mode 100644 index 0000000..30b2027 --- /dev/null +++ b/model_resource_remote_info_zendesk_role.go @@ -0,0 +1,160 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ResourceRemoteInfoZendeskRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ResourceRemoteInfoZendeskRole{} + +// ResourceRemoteInfoZendeskRole Remote info for Zendesk custom role. +type ResourceRemoteInfoZendeskRole struct { + // The ID of the Zendesk custom role. + RoleId string `json:"role_id"` +} + +type _ResourceRemoteInfoZendeskRole ResourceRemoteInfoZendeskRole + +// NewResourceRemoteInfoZendeskRole instantiates a new ResourceRemoteInfoZendeskRole 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 NewResourceRemoteInfoZendeskRole(roleId string) *ResourceRemoteInfoZendeskRole { + this := ResourceRemoteInfoZendeskRole{} + this.RoleId = roleId + return &this +} + +// NewResourceRemoteInfoZendeskRoleWithDefaults instantiates a new ResourceRemoteInfoZendeskRole 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 NewResourceRemoteInfoZendeskRoleWithDefaults() *ResourceRemoteInfoZendeskRole { + this := ResourceRemoteInfoZendeskRole{} + return &this +} + +// GetRoleId returns the RoleId field value +func (o *ResourceRemoteInfoZendeskRole) 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 *ResourceRemoteInfoZendeskRole) GetRoleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RoleId, true +} + +// SetRoleId sets field value +func (o *ResourceRemoteInfoZendeskRole) SetRoleId(v string) { + o.RoleId = v +} + +func (o ResourceRemoteInfoZendeskRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ResourceRemoteInfoZendeskRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["role_id"] = o.RoleId + return toSerialize, nil +} + +func (o *ResourceRemoteInfoZendeskRole) 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) + } + } + + varResourceRemoteInfoZendeskRole := _ResourceRemoteInfoZendeskRole{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varResourceRemoteInfoZendeskRole) + + if err != nil { + return err + } + + *o = ResourceRemoteInfoZendeskRole(varResourceRemoteInfoZendeskRole) + + return err +} + +type NullableResourceRemoteInfoZendeskRole struct { + value *ResourceRemoteInfoZendeskRole + isSet bool +} + +func (v NullableResourceRemoteInfoZendeskRole) Get() *ResourceRemoteInfoZendeskRole { + return v.value +} + +func (v *NullableResourceRemoteInfoZendeskRole) Set(val *ResourceRemoteInfoZendeskRole) { + v.value = val + v.isSet = true +} + +func (v NullableResourceRemoteInfoZendeskRole) IsSet() bool { + return v.isSet +} + +func (v *NullableResourceRemoteInfoZendeskRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableResourceRemoteInfoZendeskRole(val *ResourceRemoteInfoZendeskRole) *NullableResourceRemoteInfoZendeskRole { + return &NullableResourceRemoteInfoZendeskRole{value: val, isSet: true} +} + +func (v NullableResourceRemoteInfoZendeskRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableResourceRemoteInfoZendeskRole) 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 9f38b18..3ce0b0d 100644 --- a/model_resource_type_enum.go +++ b/model_resource_type_enum.go @@ -30,6 +30,7 @@ const ( RESOURCETYPEENUM_AWS_RDS_MYSQL_INSTANCE ResourceTypeEnum = "AWS_RDS_MYSQL_INSTANCE" RESOURCETYPEENUM_AWS_ACCOUNT ResourceTypeEnum = "AWS_ACCOUNT" RESOURCETYPEENUM_AWS_SSO_PERMISSION_SET ResourceTypeEnum = "AWS_SSO_PERMISSION_SET" + RESOURCETYPEENUM_AWS_ORGANIZATIONAL_UNIT ResourceTypeEnum = "AWS_ORGANIZATIONAL_UNIT" RESOURCETYPEENUM_AZURE_MANAGEMENT_GROUP ResourceTypeEnum = "AZURE_MANAGEMENT_GROUP" RESOURCETYPEENUM_AZURE_RESOURCE_GROUP ResourceTypeEnum = "AZURE_RESOURCE_GROUP" RESOURCETYPEENUM_AZURE_SUBSCRIPTION ResourceTypeEnum = "AZURE_SUBSCRIPTION" @@ -58,10 +59,13 @@ const ( RESOURCETYPEENUM_GCP_BIG_QUERY_TABLE ResourceTypeEnum = "GCP_BIG_QUERY_TABLE" RESOURCETYPEENUM_GCP_SERVICE_ACCOUNT ResourceTypeEnum = "GCP_SERVICE_ACCOUNT" RESOURCETYPEENUM_GIT_HUB_REPO ResourceTypeEnum = "GIT_HUB_REPO" + RESOURCETYPEENUM_GIT_HUB_ORG_ROLE ResourceTypeEnum = "GIT_HUB_ORG_ROLE" RESOURCETYPEENUM_GIT_LAB_PROJECT ResourceTypeEnum = "GIT_LAB_PROJECT" RESOURCETYPEENUM_GOOGLE_WORKSPACE_ROLE ResourceTypeEnum = "GOOGLE_WORKSPACE_ROLE" RESOURCETYPEENUM_MONGO_INSTANCE ResourceTypeEnum = "MONGO_INSTANCE" RESOURCETYPEENUM_MONGO_ATLAS_INSTANCE ResourceTypeEnum = "MONGO_ATLAS_INSTANCE" + RESOURCETYPEENUM_NETSUITE_ROLE ResourceTypeEnum = "NETSUITE_ROLE" + RESOURCETYPEENUM_DATADOG_ROLE ResourceTypeEnum = "DATADOG_ROLE" RESOURCETYPEENUM_OKTA_APP ResourceTypeEnum = "OKTA_APP" RESOURCETYPEENUM_OKTA_ROLE ResourceTypeEnum = "OKTA_ROLE" RESOURCETYPEENUM_OPAL_ROLE ResourceTypeEnum = "OPAL_ROLE" @@ -79,6 +83,30 @@ const ( RESOURCETYPEENUM_MARIADB_INSTANCE ResourceTypeEnum = "MARIADB_INSTANCE" RESOURCETYPEENUM_POSTGRES_INSTANCE ResourceTypeEnum = "POSTGRES_INSTANCE" RESOURCETYPEENUM_TELEPORT_ROLE ResourceTypeEnum = "TELEPORT_ROLE" + 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" + RESOURCETYPEENUM_GIT_HUB_ENTERPRISE_ROLE ResourceTypeEnum = "GIT_HUB_ENTERPRISE_ROLE" + RESOURCETYPEENUM_GRAFANA_FOLDER ResourceTypeEnum = "GRAFANA_FOLDER" + RESOURCETYPEENUM_GRAFANA_DASHBOARD ResourceTypeEnum = "GRAFANA_DASHBOARD" + RESOURCETYPEENUM_GRAFANA_BASIC_ROLE ResourceTypeEnum = "GRAFANA_BASIC_ROLE" + RESOURCETYPEENUM_GRAFANA_ROLE ResourceTypeEnum = "GRAFANA_ROLE" + RESOURCETYPEENUM_CLICKHOUSE_DATABASE ResourceTypeEnum = "CLICKHOUSE_DATABASE" + RESOURCETYPEENUM_CLICKHOUSE_TABLE ResourceTypeEnum = "CLICKHOUSE_TABLE" + RESOURCETYPEENUM_TWINGATE_RESOURCE ResourceTypeEnum = "TWINGATE_RESOURCE" + RESOURCETYPEENUM_ZENDESK_ROLE ResourceTypeEnum = "ZENDESK_ROLE" + RESOURCETYPEENUM_HUBSPOT_ROLE ResourceTypeEnum = "HUBSPOT_ROLE" ) // All allowed values of ResourceTypeEnum enum @@ -92,6 +120,7 @@ var AllowedResourceTypeEnumEnumValues = []ResourceTypeEnum{ "AWS_RDS_MYSQL_INSTANCE", "AWS_ACCOUNT", "AWS_SSO_PERMISSION_SET", + "AWS_ORGANIZATIONAL_UNIT", "AZURE_MANAGEMENT_GROUP", "AZURE_RESOURCE_GROUP", "AZURE_SUBSCRIPTION", @@ -120,10 +149,13 @@ var AllowedResourceTypeEnumEnumValues = []ResourceTypeEnum{ "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", + "NETSUITE_ROLE", + "DATADOG_ROLE", "OKTA_APP", "OKTA_ROLE", "OPAL_ROLE", @@ -141,6 +173,30 @@ var AllowedResourceTypeEnumEnumValues = []ResourceTypeEnum{ "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", + "GIT_HUB_ENTERPRISE_ROLE", + "GRAFANA_FOLDER", + "GRAFANA_DASHBOARD", + "GRAFANA_BASIC_ROLE", + "GRAFANA_ROLE", + "CLICKHOUSE_DATABASE", + "CLICKHOUSE_TABLE", + "TWINGATE_RESOURCE", + "ZENDESK_ROLE", + "HUBSPOT_ROLE", } func (v *ResourceTypeEnum) UnmarshalJSON(src []byte) error { diff --git a/model_review_stage_operator.go b/model_review_stage_operator.go new file mode 100644 index 0000000..4ab3fd9 --- /dev/null +++ b/model_review_stage_operator.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" +) + +// ReviewStageOperator The operator to apply to reviewers in a stage +type ReviewStageOperator string + +// List of ReviewStageOperator +const ( + REVIEWSTAGEOPERATOR_AND ReviewStageOperator = "AND" + REVIEWSTAGEOPERATOR_OR ReviewStageOperator = "OR" +) + +// All allowed values of ReviewStageOperator enum +var AllowedReviewStageOperatorEnumValues = []ReviewStageOperator{ + "AND", + "OR", +} + +func (v *ReviewStageOperator) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ReviewStageOperator(value) + for _, existing := range AllowedReviewStageOperatorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ReviewStageOperator", value) +} + +// NewReviewStageOperatorFromValue returns a pointer to a valid ReviewStageOperator +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewReviewStageOperatorFromValue(v string) (*ReviewStageOperator, error) { + ev := ReviewStageOperator(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ReviewStageOperator: valid values are %v", v, AllowedReviewStageOperatorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ReviewStageOperator) IsValid() bool { + for _, existing := range AllowedReviewStageOperatorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ReviewStageOperator value +func (v ReviewStageOperator) Ptr() *ReviewStageOperator { + return &v +} + +type NullableReviewStageOperator struct { + value *ReviewStageOperator + isSet bool +} + +func (v NullableReviewStageOperator) Get() *ReviewStageOperator { + return v.value +} + +func (v *NullableReviewStageOperator) Set(val *ReviewStageOperator) { + v.value = val + v.isSet = true +} + +func (v NullableReviewStageOperator) IsSet() bool { + return v.isSet +} + +func (v *NullableReviewStageOperator) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReviewStageOperator(val *ReviewStageOperator) *NullableReviewStageOperator { + return &NullableReviewStageOperator{value: val, isSet: true} +} + +func (v NullableReviewStageOperator) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReviewStageOperator) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_reviewer_stage.go b/model_reviewer_stage.go index 993e83b..63e27d0 100644 --- a/model_reviewer_stage.go +++ b/model_reviewer_stage.go @@ -28,7 +28,10 @@ type ReviewerStage struct { RequireAdminApproval *bool `json:"require_admin_approval,omitempty"` // The operator of the reviewer stage. Admin and manager approval are also treated as reviewers. Operator string `json:"operator"` + // The IDs of owners assigned as reviewers for this stage. OwnerIds []string `json:"owner_ids"` + // The IDs of service users assigned as reviewers for this stage. + ServiceUserIds []string `json:"service_user_ids,omitempty"` } type _ReviewerStage ReviewerStage @@ -157,6 +160,38 @@ func (o *ReviewerStage) SetOwnerIds(v []string) { o.OwnerIds = v } +// GetServiceUserIds returns the ServiceUserIds field value if set, zero value otherwise. +func (o *ReviewerStage) GetServiceUserIds() []string { + if o == nil || IsNil(o.ServiceUserIds) { + var ret []string + return ret + } + return o.ServiceUserIds +} + +// GetServiceUserIdsOk returns a tuple with the ServiceUserIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ReviewerStage) GetServiceUserIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ServiceUserIds) { + return nil, false + } + return o.ServiceUserIds, true +} + +// HasServiceUserIds returns a boolean if a field has been set. +func (o *ReviewerStage) HasServiceUserIds() bool { + if o != nil && !IsNil(o.ServiceUserIds) { + return true + } + + return false +} + +// SetServiceUserIds gets a reference to the given []string and assigns it to the ServiceUserIds field. +func (o *ReviewerStage) SetServiceUserIds(v []string) { + o.ServiceUserIds = v +} + func (o ReviewerStage) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -173,6 +208,9 @@ func (o ReviewerStage) ToMap() (map[string]interface{}, error) { } toSerialize["operator"] = o.Operator toSerialize["owner_ids"] = o.OwnerIds + if !IsNil(o.ServiceUserIds) { + toSerialize["service_user_ids"] = o.ServiceUserIds + } return toSerialize, nil } diff --git a/model_role_permission_name_enum.go b/model_role_permission_name_enum.go new file mode 100644 index 0000000..c9e9a6c --- /dev/null +++ b/model_role_permission_name_enum.go @@ -0,0 +1,146 @@ +/* +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" +) + +// RolePermissionNameEnum The name of the role permission. +type RolePermissionNameEnum string + +// List of RolePermissionNameEnum +const ( + ROLEPERMISSIONNAMEENUM_READ RolePermissionNameEnum = "READ" + ROLEPERMISSIONNAMEENUM_READ_ASSIGNMENTS RolePermissionNameEnum = "READ_ASSIGNMENTS" + ROLEPERMISSIONNAMEENUM_CREATE RolePermissionNameEnum = "CREATE" + ROLEPERMISSIONNAMEENUM_IMPORT RolePermissionNameEnum = "IMPORT" + ROLEPERMISSIONNAMEENUM_EXPORT RolePermissionNameEnum = "EXPORT" + ROLEPERMISSIONNAMEENUM_SYNC RolePermissionNameEnum = "SYNC" + ROLEPERMISSIONNAMEENUM_DELETE RolePermissionNameEnum = "DELETE" + ROLEPERMISSIONNAMEENUM_READ_SETTINGS RolePermissionNameEnum = "READ_SETTINGS" + ROLEPERMISSIONNAMEENUM_EDIT_TAGS RolePermissionNameEnum = "EDIT_TAGS" + ROLEPERMISSIONNAMEENUM_EDIT_SETTINGS RolePermissionNameEnum = "EDIT_SETTINGS" + ROLEPERMISSIONNAMEENUM_EDIT_SYNC_SETTINGS RolePermissionNameEnum = "EDIT_SYNC_SETTINGS" + ROLEPERMISSIONNAMEENUM_EDIT_ASSIGNMENTS RolePermissionNameEnum = "EDIT_ASSIGNMENTS" + ROLEPERMISSIONNAMEENUM_EDIT_REQUEST_CONFIGURATIONS RolePermissionNameEnum = "EDIT_REQUEST_CONFIGURATIONS" + ROLEPERMISSIONNAMEENUM_EDIT_EVENT_STREAM RolePermissionNameEnum = "EDIT_EVENT_STREAM" + ROLEPERMISSIONNAMEENUM_ASSIGN_UAR_REVIEWERS RolePermissionNameEnum = "ASSIGN_UAR_REVIEWERS" + ROLEPERMISSIONNAMEENUM_SEND_REMINDERS RolePermissionNameEnum = "SEND_REMINDERS" + ROLEPERMISSIONNAMEENUM_STOP RolePermissionNameEnum = "STOP" + ROLEPERMISSIONNAMEENUM_REQUEST_ON_BEHALF RolePermissionNameEnum = "REQUEST_ON_BEHALF" + ROLEPERMISSIONNAMEENUM_RESET_MFA RolePermissionNameEnum = "RESET_MFA" +) + +// All allowed values of RolePermissionNameEnum enum +var AllowedRolePermissionNameEnumEnumValues = []RolePermissionNameEnum{ + "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", +} + +func (v *RolePermissionNameEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RolePermissionNameEnum(value) + for _, existing := range AllowedRolePermissionNameEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RolePermissionNameEnum", value) +} + +// NewRolePermissionNameEnumFromValue returns a pointer to a valid RolePermissionNameEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRolePermissionNameEnumFromValue(v string) (*RolePermissionNameEnum, error) { + ev := RolePermissionNameEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RolePermissionNameEnum: valid values are %v", v, AllowedRolePermissionNameEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RolePermissionNameEnum) IsValid() bool { + for _, existing := range AllowedRolePermissionNameEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RolePermissionNameEnum value +func (v RolePermissionNameEnum) Ptr() *RolePermissionNameEnum { + return &v +} + +type NullableRolePermissionNameEnum struct { + value *RolePermissionNameEnum + isSet bool +} + +func (v NullableRolePermissionNameEnum) Get() *RolePermissionNameEnum { + return v.value +} + +func (v *NullableRolePermissionNameEnum) Set(val *RolePermissionNameEnum) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionNameEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionNameEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionNameEnum(val *RolePermissionNameEnum) *NullableRolePermissionNameEnum { + return &NullableRolePermissionNameEnum{value: val, isSet: true} +} + +func (v NullableRolePermissionNameEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionNameEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_role_permission_target_type_enum.go b/model_role_permission_target_type_enum.go new file mode 100644 index 0000000..d5b410d --- /dev/null +++ b/model_role_permission_target_type_enum.go @@ -0,0 +1,122 @@ +/* +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" +) + +// RolePermissionTargetTypeEnum The type of the target for the role permission. +type RolePermissionTargetTypeEnum string + +// List of RolePermissionTargetTypeEnum +const ( + ROLEPERMISSIONTARGETTYPEENUM_RESOURCE RolePermissionTargetTypeEnum = "RESOURCE" + ROLEPERMISSIONTARGETTYPEENUM_CONNECTION RolePermissionTargetTypeEnum = "CONNECTION" + ROLEPERMISSIONTARGETTYPEENUM_GROUP RolePermissionTargetTypeEnum = "GROUP" + ROLEPERMISSIONTARGETTYPEENUM_BUNDLE RolePermissionTargetTypeEnum = "BUNDLE" + ROLEPERMISSIONTARGETTYPEENUM_USER RolePermissionTargetTypeEnum = "USER" + ROLEPERMISSIONTARGETTYPEENUM_ACCESS_REVIEW RolePermissionTargetTypeEnum = "ACCESS_REVIEW" + ROLEPERMISSIONTARGETTYPEENUM_OWNER RolePermissionTargetTypeEnum = "OWNER" +) + +// All allowed values of RolePermissionTargetTypeEnum enum +var AllowedRolePermissionTargetTypeEnumEnumValues = []RolePermissionTargetTypeEnum{ + "RESOURCE", + "CONNECTION", + "GROUP", + "BUNDLE", + "USER", + "ACCESS_REVIEW", + "OWNER", +} + +func (v *RolePermissionTargetTypeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RolePermissionTargetTypeEnum(value) + for _, existing := range AllowedRolePermissionTargetTypeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RolePermissionTargetTypeEnum", value) +} + +// NewRolePermissionTargetTypeEnumFromValue returns a pointer to a valid RolePermissionTargetTypeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRolePermissionTargetTypeEnumFromValue(v string) (*RolePermissionTargetTypeEnum, error) { + ev := RolePermissionTargetTypeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RolePermissionTargetTypeEnum: valid values are %v", v, AllowedRolePermissionTargetTypeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RolePermissionTargetTypeEnum) IsValid() bool { + for _, existing := range AllowedRolePermissionTargetTypeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RolePermissionTargetTypeEnum value +func (v RolePermissionTargetTypeEnum) Ptr() *RolePermissionTargetTypeEnum { + return &v +} + +type NullableRolePermissionTargetTypeEnum struct { + value *RolePermissionTargetTypeEnum + isSet bool +} + +func (v NullableRolePermissionTargetTypeEnum) Get() *RolePermissionTargetTypeEnum { + return v.value +} + +func (v *NullableRolePermissionTargetTypeEnum) Set(val *RolePermissionTargetTypeEnum) { + v.value = val + v.isSet = true +} + +func (v NullableRolePermissionTargetTypeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableRolePermissionTargetTypeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRolePermissionTargetTypeEnum(val *RolePermissionTargetTypeEnum) *NullableRolePermissionTargetTypeEnum { + return &NullableRolePermissionTargetTypeEnum{value: val, isSet: true} +} + +func (v NullableRolePermissionTargetTypeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRolePermissionTargetTypeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rule_disjunction.go b/model_rule_disjunction.go index b865db3..769941e 100644 --- a/model_rule_disjunction.go +++ b/model_rule_disjunction.go @@ -23,6 +23,7 @@ var _ MappedNullable = &RuleDisjunction{} // RuleDisjunction struct for RuleDisjunction type RuleDisjunction struct { Selectors []TagSelector `json:"selectors"` + AttributeSelectors []UserAttributeSelector `json:"attribute_selectors,omitempty"` } type _RuleDisjunction RuleDisjunction @@ -69,6 +70,38 @@ func (o *RuleDisjunction) SetSelectors(v []TagSelector) { o.Selectors = v } +// GetAttributeSelectors returns the AttributeSelectors field value if set, zero value otherwise. +func (o *RuleDisjunction) GetAttributeSelectors() []UserAttributeSelector { + if o == nil || IsNil(o.AttributeSelectors) { + var ret []UserAttributeSelector + return ret + } + return o.AttributeSelectors +} + +// GetAttributeSelectorsOk returns a tuple with the AttributeSelectors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RuleDisjunction) GetAttributeSelectorsOk() ([]UserAttributeSelector, bool) { + if o == nil || IsNil(o.AttributeSelectors) { + return nil, false + } + return o.AttributeSelectors, true +} + +// HasAttributeSelectors returns a boolean if a field has been set. +func (o *RuleDisjunction) HasAttributeSelectors() bool { + if o != nil && !IsNil(o.AttributeSelectors) { + return true + } + + return false +} + +// SetAttributeSelectors gets a reference to the given []UserAttributeSelector and assigns it to the AttributeSelectors field. +func (o *RuleDisjunction) SetAttributeSelectors(v []UserAttributeSelector) { + o.AttributeSelectors = v +} + func (o RuleDisjunction) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -80,6 +113,9 @@ func (o RuleDisjunction) MarshalJSON() ([]byte, error) { func (o RuleDisjunction) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["selectors"] = o.Selectors + if !IsNil(o.AttributeSelectors) { + toSerialize["attribute_selectors"] = o.AttributeSelectors + } return toSerialize, nil } diff --git a/model_scoped_role_permission.go b/model_scoped_role_permission.go new file mode 100644 index 0000000..56879d5 --- /dev/null +++ b/model_scoped_role_permission.go @@ -0,0 +1,252 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ScopedRolePermission type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScopedRolePermission{} + +// ScopedRolePermission struct for ScopedRolePermission +type ScopedRolePermission struct { + // The IDs of the entities that this permission applies to. If empty of missing, the permission will have untargeted scope. + TargetIds []string `json:"target_ids,omitempty"` + TargetType RolePermissionTargetTypeEnum `json:"target_type"` + PermissionName RolePermissionNameEnum `json:"permission_name"` + AllowAll bool `json:"allow_all"` +} + +type _ScopedRolePermission ScopedRolePermission + +// NewScopedRolePermission instantiates a new ScopedRolePermission 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 NewScopedRolePermission(targetType RolePermissionTargetTypeEnum, permissionName RolePermissionNameEnum, allowAll bool) *ScopedRolePermission { + this := ScopedRolePermission{} + this.TargetType = targetType + this.PermissionName = permissionName + this.AllowAll = allowAll + return &this +} + +// NewScopedRolePermissionWithDefaults instantiates a new ScopedRolePermission 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 NewScopedRolePermissionWithDefaults() *ScopedRolePermission { + this := ScopedRolePermission{} + return &this +} + +// GetTargetIds returns the TargetIds field value if set, zero value otherwise. +func (o *ScopedRolePermission) GetTargetIds() []string { + if o == nil || IsNil(o.TargetIds) { + var ret []string + return ret + } + return o.TargetIds +} + +// GetTargetIdsOk returns a tuple with the TargetIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ScopedRolePermission) GetTargetIdsOk() ([]string, bool) { + if o == nil || IsNil(o.TargetIds) { + return nil, false + } + return o.TargetIds, true +} + +// HasTargetIds returns a boolean if a field has been set. +func (o *ScopedRolePermission) HasTargetIds() bool { + if o != nil && !IsNil(o.TargetIds) { + return true + } + + return false +} + +// SetTargetIds gets a reference to the given []string and assigns it to the TargetIds field. +func (o *ScopedRolePermission) SetTargetIds(v []string) { + o.TargetIds = v +} + +// GetTargetType returns the TargetType field value +func (o *ScopedRolePermission) GetTargetType() RolePermissionTargetTypeEnum { + if o == nil { + var ret RolePermissionTargetTypeEnum + return ret + } + + return o.TargetType +} + +// GetTargetTypeOk returns a tuple with the TargetType field value +// and a boolean to check if the value has been set. +func (o *ScopedRolePermission) GetTargetTypeOk() (*RolePermissionTargetTypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.TargetType, true +} + +// SetTargetType sets field value +func (o *ScopedRolePermission) SetTargetType(v RolePermissionTargetTypeEnum) { + o.TargetType = v +} + +// GetPermissionName returns the PermissionName field value +func (o *ScopedRolePermission) GetPermissionName() RolePermissionNameEnum { + if o == nil { + var ret RolePermissionNameEnum + return ret + } + + return o.PermissionName +} + +// GetPermissionNameOk returns a tuple with the PermissionName field value +// and a boolean to check if the value has been set. +func (o *ScopedRolePermission) GetPermissionNameOk() (*RolePermissionNameEnum, bool) { + if o == nil { + return nil, false + } + return &o.PermissionName, true +} + +// SetPermissionName sets field value +func (o *ScopedRolePermission) SetPermissionName(v RolePermissionNameEnum) { + o.PermissionName = v +} + +// GetAllowAll returns the AllowAll field value +func (o *ScopedRolePermission) GetAllowAll() bool { + if o == nil { + var ret bool + return ret + } + + return o.AllowAll +} + +// GetAllowAllOk returns a tuple with the AllowAll field value +// and a boolean to check if the value has been set. +func (o *ScopedRolePermission) GetAllowAllOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AllowAll, true +} + +// SetAllowAll sets field value +func (o *ScopedRolePermission) SetAllowAll(v bool) { + o.AllowAll = v +} + +func (o ScopedRolePermission) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScopedRolePermission) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.TargetIds) { + toSerialize["target_ids"] = o.TargetIds + } + toSerialize["target_type"] = o.TargetType + toSerialize["permission_name"] = o.PermissionName + toSerialize["allow_all"] = o.AllowAll + return toSerialize, nil +} + +func (o *ScopedRolePermission) 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{ + "target_type", + "permission_name", + "allow_all", + } + + 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) + } + } + + varScopedRolePermission := _ScopedRolePermission{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varScopedRolePermission) + + if err != nil { + return err + } + + *o = ScopedRolePermission(varScopedRolePermission) + + return err +} + +type NullableScopedRolePermission struct { + value *ScopedRolePermission + isSet bool +} + +func (v NullableScopedRolePermission) Get() *ScopedRolePermission { + return v.value +} + +func (v *NullableScopedRolePermission) Set(val *ScopedRolePermission) { + v.value = val + v.isSet = true +} + +func (v NullableScopedRolePermission) IsSet() bool { + return v.isSet +} + +func (v *NullableScopedRolePermission) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScopedRolePermission(val *ScopedRolePermission) *NullableScopedRolePermission { + return &NullableScopedRolePermission{value: val, isSet: true} +} + +func (v NullableScopedRolePermission) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScopedRolePermission) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_scoped_role_permission_list.go b/model_scoped_role_permission_list.go new file mode 100644 index 0000000..bc76d44 --- /dev/null +++ b/model_scoped_role_permission_list.go @@ -0,0 +1,159 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the ScopedRolePermissionList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScopedRolePermissionList{} + +// ScopedRolePermissionList struct for ScopedRolePermissionList +type ScopedRolePermissionList struct { + Permissions []ScopedRolePermission `json:"permissions"` +} + +type _ScopedRolePermissionList ScopedRolePermissionList + +// NewScopedRolePermissionList instantiates a new ScopedRolePermissionList 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 NewScopedRolePermissionList(permissions []ScopedRolePermission) *ScopedRolePermissionList { + this := ScopedRolePermissionList{} + this.Permissions = permissions + return &this +} + +// NewScopedRolePermissionListWithDefaults instantiates a new ScopedRolePermissionList 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 NewScopedRolePermissionListWithDefaults() *ScopedRolePermissionList { + this := ScopedRolePermissionList{} + return &this +} + +// GetPermissions returns the Permissions field value +func (o *ScopedRolePermissionList) GetPermissions() []ScopedRolePermission { + if o == nil { + var ret []ScopedRolePermission + return ret + } + + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value +// and a boolean to check if the value has been set. +func (o *ScopedRolePermissionList) GetPermissionsOk() ([]ScopedRolePermission, bool) { + if o == nil { + return nil, false + } + return o.Permissions, true +} + +// SetPermissions sets field value +func (o *ScopedRolePermissionList) SetPermissions(v []ScopedRolePermission) { + o.Permissions = v +} + +func (o ScopedRolePermissionList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScopedRolePermissionList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["permissions"] = o.Permissions + return toSerialize, nil +} + +func (o *ScopedRolePermissionList) 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{ + "permissions", + } + + 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) + } + } + + varScopedRolePermissionList := _ScopedRolePermissionList{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varScopedRolePermissionList) + + if err != nil { + return err + } + + *o = ScopedRolePermissionList(varScopedRolePermissionList) + + return err +} + +type NullableScopedRolePermissionList struct { + value *ScopedRolePermissionList + isSet bool +} + +func (v NullableScopedRolePermissionList) Get() *ScopedRolePermissionList { + return v.value +} + +func (v *NullableScopedRolePermissionList) Set(val *ScopedRolePermissionList) { + v.value = val + v.isSet = true +} + +func (v NullableScopedRolePermissionList) IsSet() bool { + return v.isSet +} + +func (v *NullableScopedRolePermissionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScopedRolePermissionList(val *ScopedRolePermissionList) *NullableScopedRolePermissionList { + return &NullableScopedRolePermissionList{value: val, isSet: true} +} + +func (v NullableScopedRolePermissionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScopedRolePermissionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_string_match_type.go b/model_string_match_type.go new file mode 100644 index 0000000..3f9cd2b --- /dev/null +++ b/model_string_match_type.go @@ -0,0 +1,116 @@ +/* +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" +) + +// StringMatchType How to match a string value against entity names. +type StringMatchType string + +// List of StringMatchType +const ( + STRINGMATCHTYPE_CONTAINS StringMatchType = "CONTAINS" + STRINGMATCHTYPE_EQUALS StringMatchType = "EQUALS" + STRINGMATCHTYPE_STARTS_WITH StringMatchType = "STARTS_WITH" + STRINGMATCHTYPE_ENDS_WITH StringMatchType = "ENDS_WITH" +) + +// All allowed values of StringMatchType enum +var AllowedStringMatchTypeEnumValues = []StringMatchType{ + "CONTAINS", + "EQUALS", + "STARTS_WITH", + "ENDS_WITH", +} + +func (v *StringMatchType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := StringMatchType(value) + for _, existing := range AllowedStringMatchTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid StringMatchType", value) +} + +// NewStringMatchTypeFromValue returns a pointer to a valid StringMatchType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewStringMatchTypeFromValue(v string) (*StringMatchType, error) { + ev := StringMatchType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for StringMatchType: valid values are %v", v, AllowedStringMatchTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v StringMatchType) IsValid() bool { + for _, existing := range AllowedStringMatchTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to StringMatchType value +func (v StringMatchType) Ptr() *StringMatchType { + return &v +} + +type NullableStringMatchType struct { + value *StringMatchType + isSet bool +} + +func (v NullableStringMatchType) Get() *StringMatchType { + return v.value +} + +func (v *NullableStringMatchType) Set(val *StringMatchType) { + v.value = val + v.isSet = true +} + +func (v NullableStringMatchType) IsSet() bool { + return v.isSet +} + +func (v *NullableStringMatchType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStringMatchType(val *StringMatchType) *NullableStringMatchType { + return &NullableStringMatchType{value: val, isSet: true} +} + +func (v NullableStringMatchType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStringMatchType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_sub_event.go b/model_sub_event.go index d1d00de..e65f820 100644 --- a/model_sub_event.go +++ b/model_sub_event.go @@ -22,7 +22,7 @@ var _ MappedNullable = &SubEvent{} // SubEvent # Sub event Object ### Description The `SubEvent` object is used to represent a subevent. ### Usage Example Fetch from the `LIST Events` endpoint. type SubEvent struct { // The subevent type. - SubEventType interface{} `json:"sub_event_type"` + SubEventType string `json:"sub_event_type"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _SubEvent SubEvent // 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 NewSubEvent(subEventType interface{}) *SubEvent { +func NewSubEvent(subEventType string) *SubEvent { this := SubEvent{} this.SubEventType = subEventType return &this @@ -47,10 +47,9 @@ func NewSubEventWithDefaults() *SubEvent { } // GetSubEventType returns the SubEventType field value -// If the value is explicit nil, the zero value for interface{} will be returned -func (o *SubEvent) GetSubEventType() interface{} { +func (o *SubEvent) GetSubEventType() string { if o == nil { - var ret interface{} + var ret string return ret } @@ -59,16 +58,15 @@ func (o *SubEvent) GetSubEventType() interface{} { // GetSubEventTypeOk returns a tuple with the SubEventType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SubEvent) GetSubEventTypeOk() (*interface{}, bool) { - if o == nil || IsNil(o.SubEventType) { +func (o *SubEvent) GetSubEventTypeOk() (*string, bool) { + if o == nil { return nil, false } return &o.SubEventType, true } // SetSubEventType sets field value -func (o *SubEvent) SetSubEventType(v interface{}) { +func (o *SubEvent) SetSubEventType(v string) { o.SubEventType = v } @@ -82,9 +80,7 @@ func (o SubEvent) MarshalJSON() ([]byte, error) { func (o SubEvent) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.SubEventType != nil { - toSerialize["sub_event_type"] = o.SubEventType - } + toSerialize["sub_event_type"] = o.SubEventType for key, value := range o.AdditionalProperties { toSerialize[key] = value diff --git a/model_sync_task.go b/model_sync_task.go new file mode 100644 index 0000000..587ea15 --- /dev/null +++ b/model_sync_task.go @@ -0,0 +1,190 @@ +/* +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" + "time" + "bytes" + "fmt" +) + +// checks if the SyncTask type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SyncTask{} + +// SyncTask Represents a sync task that has been completed, either successfully or with errors. +type SyncTask struct { + // The ID of the sync task. + Id string `json:"id"` + // The time when the sync task was completed. + CompletedAt time.Time `json:"completed_at"` +} + +type _SyncTask SyncTask + +// NewSyncTask instantiates a new SyncTask 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 NewSyncTask(id string, completedAt time.Time) *SyncTask { + this := SyncTask{} + this.Id = id + this.CompletedAt = completedAt + return &this +} + +// NewSyncTaskWithDefaults instantiates a new SyncTask 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 NewSyncTaskWithDefaults() *SyncTask { + this := SyncTask{} + return &this +} + +// GetId returns the Id field value +func (o *SyncTask) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SyncTask) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SyncTask) SetId(v string) { + o.Id = v +} + +// GetCompletedAt returns the CompletedAt field value +func (o *SyncTask) GetCompletedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CompletedAt +} + +// GetCompletedAtOk returns a tuple with the CompletedAt field value +// and a boolean to check if the value has been set. +func (o *SyncTask) GetCompletedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CompletedAt, true +} + +// SetCompletedAt sets field value +func (o *SyncTask) SetCompletedAt(v time.Time) { + o.CompletedAt = v +} + +func (o SyncTask) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SyncTask) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["completed_at"] = o.CompletedAt + return toSerialize, nil +} + +func (o *SyncTask) 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{ + "id", + "completed_at", + } + + 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) + } + } + + varSyncTask := _SyncTask{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSyncTask) + + if err != nil { + return err + } + + *o = SyncTask(varSyncTask) + + return err +} + +type NullableSyncTask struct { + value *SyncTask + isSet bool +} + +func (v NullableSyncTask) Get() *SyncTask { + return v.value +} + +func (v *NullableSyncTask) Set(val *SyncTask) { + v.value = val + v.isSet = true +} + +func (v NullableSyncTask) IsSet() bool { + return v.isSet +} + +func (v *NullableSyncTask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSyncTask(val *SyncTask) *NullableSyncTask { + return &NullableSyncTask{value: val, isSet: true} +} + +func (v NullableSyncTask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSyncTask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_third_party_provider_enum.go b/model_third_party_provider_enum.go new file mode 100644 index 0000000..db98f32 --- /dev/null +++ b/model_third_party_provider_enum.go @@ -0,0 +1,136 @@ +/* +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" +) + +// ThirdPartyProviderEnum The third party provider of the remote user. +type ThirdPartyProviderEnum string + +// List of ThirdPartyProviderEnum +const ( + THIRDPARTYPROVIDERENUM_AUTH0 ThirdPartyProviderEnum = "AUTH0" + THIRDPARTYPROVIDERENUM_SLACK ThirdPartyProviderEnum = "SLACK" + THIRDPARTYPROVIDERENUM_GOOGLE_CHAT ThirdPartyProviderEnum = "GOOGLE_CHAT" + 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" +) + +// All allowed values of ThirdPartyProviderEnum enum +var AllowedThirdPartyProviderEnumEnumValues = []ThirdPartyProviderEnum{ + "AUTH0", + "SLACK", + "GOOGLE_CHAT", + "JIRA", + "LINEAR", + "SERVICE_NOW", + "FRESH_SERVICE", + "SHORTCUT", + "PAGER_DUTY", + "OPSGENIE", + "GIT_HUB", + "GIT_LAB", + "GIT_LAB_CONNECTION", + "TELEPORT", +} + +func (v *ThirdPartyProviderEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ThirdPartyProviderEnum(value) + for _, existing := range AllowedThirdPartyProviderEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ThirdPartyProviderEnum", value) +} + +// NewThirdPartyProviderEnumFromValue returns a pointer to a valid ThirdPartyProviderEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewThirdPartyProviderEnumFromValue(v string) (*ThirdPartyProviderEnum, error) { + ev := ThirdPartyProviderEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ThirdPartyProviderEnum: valid values are %v", v, AllowedThirdPartyProviderEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ThirdPartyProviderEnum) IsValid() bool { + for _, existing := range AllowedThirdPartyProviderEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ThirdPartyProviderEnum value +func (v ThirdPartyProviderEnum) Ptr() *ThirdPartyProviderEnum { + return &v +} + +type NullableThirdPartyProviderEnum struct { + value *ThirdPartyProviderEnum + isSet bool +} + +func (v NullableThirdPartyProviderEnum) Get() *ThirdPartyProviderEnum { + return v.value +} + +func (v *NullableThirdPartyProviderEnum) Set(val *ThirdPartyProviderEnum) { + v.value = val + v.isSet = true +} + +func (v NullableThirdPartyProviderEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableThirdPartyProviderEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableThirdPartyProviderEnum(val *ThirdPartyProviderEnum) *NullableThirdPartyProviderEnum { + return &NullableThirdPartyProviderEnum{value: val, isSet: true} +} + +func (v NullableThirdPartyProviderEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableThirdPartyProviderEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_token.go b/model_token.go new file mode 100644 index 0000000..d3380a9 --- /dev/null +++ b/model_token.go @@ -0,0 +1,379 @@ +/* +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" + "time" + "bytes" + "fmt" +) + +// checks if the Token type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Token{} + +// Token A first-party API token. +type Token struct { + // The ID of the API token. + TokenId string `json:"token_id"` + // The date and time the token was created. + CreatedAt time.Time `json:"created_at"` + // A human-readable label for the token. + TokenLabel string `json:"token_label"` + // The ID of the user who created the token. + CreatorUserId string `json:"creator_user_id"` + // The ID of the user the token authenticates as. + UserId string `json:"user_id"` + // The date and time the token was last used. + LastUsedAt *time.Time `json:"last_used_at,omitempty"` + AccessLevel ApiAccessLevelEnum `json:"access_level"` + // The date and time the token expires. + ExpiresAt *time.Time `json:"expires_at,omitempty"` +} + +type _Token Token + +// NewToken instantiates a new Token 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 NewToken(tokenId string, createdAt time.Time, tokenLabel string, creatorUserId string, userId string, accessLevel ApiAccessLevelEnum) *Token { + this := Token{} + this.TokenId = tokenId + this.CreatedAt = createdAt + this.TokenLabel = tokenLabel + this.CreatorUserId = creatorUserId + this.UserId = userId + this.AccessLevel = accessLevel + return &this +} + +// NewTokenWithDefaults instantiates a new Token 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 NewTokenWithDefaults() *Token { + this := Token{} + return &this +} + +// GetTokenId returns the TokenId field value +func (o *Token) GetTokenId() string { + if o == nil { + var ret string + return ret + } + + return o.TokenId +} + +// GetTokenIdOk returns a tuple with the TokenId field value +// and a boolean to check if the value has been set. +func (o *Token) GetTokenIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenId, true +} + +// SetTokenId sets field value +func (o *Token) SetTokenId(v string) { + o.TokenId = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *Token) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *Token) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *Token) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetTokenLabel returns the TokenLabel field value +func (o *Token) GetTokenLabel() string { + if o == nil { + var ret string + return ret + } + + return o.TokenLabel +} + +// GetTokenLabelOk returns a tuple with the TokenLabel field value +// and a boolean to check if the value has been set. +func (o *Token) GetTokenLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TokenLabel, true +} + +// SetTokenLabel sets field value +func (o *Token) SetTokenLabel(v string) { + o.TokenLabel = v +} + +// GetCreatorUserId returns the CreatorUserId field value +func (o *Token) GetCreatorUserId() string { + if o == nil { + var ret string + return ret + } + + return o.CreatorUserId +} + +// GetCreatorUserIdOk returns a tuple with the CreatorUserId field value +// and a boolean to check if the value has been set. +func (o *Token) GetCreatorUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatorUserId, true +} + +// SetCreatorUserId sets field value +func (o *Token) SetCreatorUserId(v string) { + o.CreatorUserId = v +} + +// GetUserId returns the UserId field value +func (o *Token) GetUserId() string { + if o == nil { + var ret string + return ret + } + + return o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value +// and a boolean to check if the value has been set. +func (o *Token) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *Token) SetUserId(v string) { + o.UserId = v +} + +// GetLastUsedAt returns the LastUsedAt field value if set, zero value otherwise. +func (o *Token) GetLastUsedAt() time.Time { + if o == nil || IsNil(o.LastUsedAt) { + var ret time.Time + return ret + } + return *o.LastUsedAt +} + +// GetLastUsedAtOk returns a tuple with the LastUsedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Token) GetLastUsedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastUsedAt) { + return nil, false + } + return o.LastUsedAt, true +} + +// HasLastUsedAt returns a boolean if a field has been set. +func (o *Token) HasLastUsedAt() bool { + if o != nil && !IsNil(o.LastUsedAt) { + return true + } + + return false +} + +// SetLastUsedAt gets a reference to the given time.Time and assigns it to the LastUsedAt field. +func (o *Token) SetLastUsedAt(v time.Time) { + o.LastUsedAt = &v +} + +// GetAccessLevel returns the AccessLevel field value +func (o *Token) GetAccessLevel() ApiAccessLevelEnum { + if o == nil { + var ret ApiAccessLevelEnum + return ret + } + + return o.AccessLevel +} + +// GetAccessLevelOk returns a tuple with the AccessLevel field value +// and a boolean to check if the value has been set. +func (o *Token) GetAccessLevelOk() (*ApiAccessLevelEnum, bool) { + if o == nil { + return nil, false + } + return &o.AccessLevel, true +} + +// SetAccessLevel sets field value +func (o *Token) SetAccessLevel(v ApiAccessLevelEnum) { + o.AccessLevel = v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. +func (o *Token) GetExpiresAt() time.Time { + if o == nil || IsNil(o.ExpiresAt) { + var ret time.Time + return ret + } + return *o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Token) GetExpiresAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *Token) HasExpiresAt() bool { + if o != nil && !IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given time.Time and assigns it to the ExpiresAt field. +func (o *Token) SetExpiresAt(v time.Time) { + o.ExpiresAt = &v +} + +func (o Token) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Token) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["token_id"] = o.TokenId + toSerialize["created_at"] = o.CreatedAt + toSerialize["token_label"] = o.TokenLabel + toSerialize["creator_user_id"] = o.CreatorUserId + toSerialize["user_id"] = o.UserId + if !IsNil(o.LastUsedAt) { + toSerialize["last_used_at"] = o.LastUsedAt + } + toSerialize["access_level"] = o.AccessLevel + if !IsNil(o.ExpiresAt) { + toSerialize["expires_at"] = o.ExpiresAt + } + return toSerialize, nil +} + +func (o *Token) 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{ + "token_id", + "created_at", + "token_label", + "creator_user_id", + "user_id", + "access_level", + } + + 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) + } + } + + varToken := _Token{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varToken) + + if err != nil { + return err + } + + *o = Token(varToken) + + return err +} + +type NullableToken struct { + value *Token + isSet bool +} + +func (v NullableToken) Get() *Token { + return v.value +} + +func (v *NullableToken) Set(val *Token) { + v.value = val + v.isSet = true +} + +func (v NullableToken) IsSet() bool { + return v.isSet +} + +func (v *NullableToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableToken(val *Token) *NullableToken { + return &NullableToken{value: val, isSet: true} +} + +func (v NullableToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_uar.go b/model_uar.go index 175a2ea..5fe1830 100644 --- a/model_uar.go +++ b/model_uar.go @@ -36,6 +36,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"` } @@ -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 } @@ -300,6 +328,7 @@ func (o *UAR) UnmarshalJSON(data []byte) (err error) { "deadline", "time_zone", "self_review_allowed", + "instantly_action_reviews", } allProperties := make(map[string]interface{}) 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_access_rule_info.go b/model_update_access_rule_info.go new file mode 100644 index 0000000..bf8c725 --- /dev/null +++ b/model_update_access_rule_info.go @@ -0,0 +1,275 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the UpdateAccessRuleInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAccessRuleInfo{} + +// UpdateAccessRuleInfo # UpdateAccessRuleInfo Object ### Description The `UpdateAccessRuleInfo` object is used as an input to the UpdateAccessRule and CreateAccessRule API. +type UpdateAccessRuleInfo struct { + // The name of the access rule. + Name string `json:"name"` + // A description of the group. + Description string `json:"description"` + // The ID of the owner of the group. + AdminOwnerId string `json:"admin_owner_id"` + // The status of the access rule. + Status string `json:"status"` + RuleClauses RuleClauses `json:"ruleClauses"` +} + +type _UpdateAccessRuleInfo UpdateAccessRuleInfo + +// NewUpdateAccessRuleInfo instantiates a new UpdateAccessRuleInfo 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 NewUpdateAccessRuleInfo(name string, description string, adminOwnerId string, status string, ruleClauses RuleClauses) *UpdateAccessRuleInfo { + this := UpdateAccessRuleInfo{} + this.Name = name + this.Description = description + this.AdminOwnerId = adminOwnerId + this.Status = status + this.RuleClauses = ruleClauses + return &this +} + +// NewUpdateAccessRuleInfoWithDefaults instantiates a new UpdateAccessRuleInfo 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 NewUpdateAccessRuleInfoWithDefaults() *UpdateAccessRuleInfo { + this := UpdateAccessRuleInfo{} + return &this +} + +// GetName returns the Name field value +func (o *UpdateAccessRuleInfo) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateAccessRuleInfo) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateAccessRuleInfo) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value +func (o *UpdateAccessRuleInfo) 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 *UpdateAccessRuleInfo) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *UpdateAccessRuleInfo) SetDescription(v string) { + o.Description = v +} + +// GetAdminOwnerId returns the AdminOwnerId field value +func (o *UpdateAccessRuleInfo) GetAdminOwnerId() string { + if o == nil { + var ret string + return ret + } + + return o.AdminOwnerId +} + +// GetAdminOwnerIdOk returns a tuple with the AdminOwnerId field value +// and a boolean to check if the value has been set. +func (o *UpdateAccessRuleInfo) GetAdminOwnerIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AdminOwnerId, true +} + +// SetAdminOwnerId sets field value +func (o *UpdateAccessRuleInfo) SetAdminOwnerId(v string) { + o.AdminOwnerId = v +} + +// GetStatus returns the Status field value +func (o *UpdateAccessRuleInfo) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *UpdateAccessRuleInfo) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *UpdateAccessRuleInfo) SetStatus(v string) { + o.Status = v +} + +// GetRuleClauses returns the RuleClauses field value +func (o *UpdateAccessRuleInfo) GetRuleClauses() RuleClauses { + if o == nil { + var ret RuleClauses + return ret + } + + return o.RuleClauses +} + +// GetRuleClausesOk returns a tuple with the RuleClauses field value +// and a boolean to check if the value has been set. +func (o *UpdateAccessRuleInfo) GetRuleClausesOk() (*RuleClauses, bool) { + if o == nil { + return nil, false + } + return &o.RuleClauses, true +} + +// SetRuleClauses sets field value +func (o *UpdateAccessRuleInfo) SetRuleClauses(v RuleClauses) { + o.RuleClauses = v +} + +func (o UpdateAccessRuleInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAccessRuleInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["description"] = o.Description + toSerialize["admin_owner_id"] = o.AdminOwnerId + toSerialize["status"] = o.Status + toSerialize["ruleClauses"] = o.RuleClauses + return toSerialize, nil +} + +func (o *UpdateAccessRuleInfo) 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{ + "name", + "description", + "admin_owner_id", + "status", + "ruleClauses", + } + + 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) + } + } + + varUpdateAccessRuleInfo := _UpdateAccessRuleInfo{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateAccessRuleInfo) + + if err != nil { + return err + } + + *o = UpdateAccessRuleInfo(varUpdateAccessRuleInfo) + + return err +} + +type NullableUpdateAccessRuleInfo struct { + value *UpdateAccessRuleInfo + isSet bool +} + +func (v NullableUpdateAccessRuleInfo) Get() *UpdateAccessRuleInfo { + return v.value +} + +func (v *NullableUpdateAccessRuleInfo) Set(val *UpdateAccessRuleInfo) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAccessRuleInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAccessRuleInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAccessRuleInfo(val *UpdateAccessRuleInfo) *NullableUpdateAccessRuleInfo { + return &NullableUpdateAccessRuleInfo{value: val, isSet: true} +} + +func (v NullableUpdateAccessRuleInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAccessRuleInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_configuration_template_info.go b/model_update_configuration_template_info.go index 3e91f6d..880f2bc 100644 --- a/model_update_configuration_template_info.go +++ b/model_update_configuration_template_info.go @@ -28,11 +28,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_event_stream_info.go b/model_update_event_stream_info.go new file mode 100644 index 0000000..70d3752 --- /dev/null +++ b/model_update_event_stream_info.go @@ -0,0 +1,238 @@ +/* +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" +) + +// checks if the UpdateEventStreamInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateEventStreamInfo{} + +// UpdateEventStreamInfo Information needed to update an event stream. +type UpdateEventStreamInfo struct { + // Updated name for the event stream. + Name *string `json:"name,omitempty"` + // Whether the event stream should be enabled. + Enabled *bool `json:"enabled,omitempty"` + // Updated webhook URL. + WebhookUrl *string `json:"webhook_url,omitempty"` + Credentials *WebhookCredentials `json:"credentials,omitempty"` +} + +// NewUpdateEventStreamInfo instantiates a new UpdateEventStreamInfo 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 NewUpdateEventStreamInfo() *UpdateEventStreamInfo { + this := UpdateEventStreamInfo{} + return &this +} + +// NewUpdateEventStreamInfoWithDefaults instantiates a new UpdateEventStreamInfo 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 NewUpdateEventStreamInfoWithDefaults() *UpdateEventStreamInfo { + this := UpdateEventStreamInfo{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *UpdateEventStreamInfo) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateEventStreamInfo) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *UpdateEventStreamInfo) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *UpdateEventStreamInfo) SetName(v string) { + o.Name = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *UpdateEventStreamInfo) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateEventStreamInfo) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *UpdateEventStreamInfo) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *UpdateEventStreamInfo) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetWebhookUrl returns the WebhookUrl field value if set, zero value otherwise. +func (o *UpdateEventStreamInfo) GetWebhookUrl() string { + if o == nil || IsNil(o.WebhookUrl) { + var ret string + return ret + } + return *o.WebhookUrl +} + +// GetWebhookUrlOk returns a tuple with the WebhookUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateEventStreamInfo) GetWebhookUrlOk() (*string, bool) { + if o == nil || IsNil(o.WebhookUrl) { + return nil, false + } + return o.WebhookUrl, true +} + +// HasWebhookUrl returns a boolean if a field has been set. +func (o *UpdateEventStreamInfo) HasWebhookUrl() bool { + if o != nil && !IsNil(o.WebhookUrl) { + return true + } + + return false +} + +// SetWebhookUrl gets a reference to the given string and assigns it to the WebhookUrl field. +func (o *UpdateEventStreamInfo) SetWebhookUrl(v string) { + o.WebhookUrl = &v +} + +// GetCredentials returns the Credentials field value if set, zero value otherwise. +func (o *UpdateEventStreamInfo) GetCredentials() WebhookCredentials { + if o == nil || IsNil(o.Credentials) { + var ret WebhookCredentials + return ret + } + return *o.Credentials +} + +// GetCredentialsOk returns a tuple with the Credentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateEventStreamInfo) GetCredentialsOk() (*WebhookCredentials, bool) { + if o == nil || IsNil(o.Credentials) { + return nil, false + } + return o.Credentials, true +} + +// HasCredentials returns a boolean if a field has been set. +func (o *UpdateEventStreamInfo) HasCredentials() bool { + if o != nil && !IsNil(o.Credentials) { + return true + } + + return false +} + +// SetCredentials gets a reference to the given WebhookCredentials and assigns it to the Credentials field. +func (o *UpdateEventStreamInfo) SetCredentials(v WebhookCredentials) { + o.Credentials = &v +} + +func (o UpdateEventStreamInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateEventStreamInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + if !IsNil(o.WebhookUrl) { + toSerialize["webhook_url"] = o.WebhookUrl + } + if !IsNil(o.Credentials) { + toSerialize["credentials"] = o.Credentials + } + return toSerialize, nil +} + +type NullableUpdateEventStreamInfo struct { + value *UpdateEventStreamInfo + isSet bool +} + +func (v NullableUpdateEventStreamInfo) Get() *UpdateEventStreamInfo { + return v.value +} + +func (v *NullableUpdateEventStreamInfo) Set(val *UpdateEventStreamInfo) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateEventStreamInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateEventStreamInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateEventStreamInfo(val *UpdateEventStreamInfo) *NullableUpdateEventStreamInfo { + return &NullableUpdateEventStreamInfo{value: val, isSet: true} +} + +func (v NullableUpdateEventStreamInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateEventStreamInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_group_info.go b/model_update_group_info.go index 106539d..4cc8ebf 100644 --- a/model_update_group_info.go +++ b/model_update_group_info.go @@ -63,8 +63,13 @@ type UpdateGroupInfo struct { IsRequestable *bool `json:"is_requestable,omitempty"` // A list of User IDs for the group leaders of the group GroupLeaderUserIds []string `json:"group_leader_user_ids,omitempty"` + // 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. + // Deprecated + 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"` @@ -622,6 +627,41 @@ func (o *UpdateGroupInfo) SetGroupLeaderUserIds(v []string) { o.GroupLeaderUserIds = v } +// GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field value if set, zero value otherwise. +// Deprecated +func (o *UpdateGroupInfo) GetExtensionsDurationInMinutes() int32 { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + var ret int32 + return ret + } + return *o.ExtensionsDurationInMinutes +} + +// GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateGroupInfo) GetExtensionsDurationInMinutesOk() (*int32, bool) { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + return nil, false + } + return o.ExtensionsDurationInMinutes, true +} + +// HasExtensionsDurationInMinutes returns a boolean if a field has been set. +func (o *UpdateGroupInfo) HasExtensionsDurationInMinutes() bool { + if o != nil && !IsNil(o.ExtensionsDurationInMinutes) { + return true + } + + return false +} + +// SetExtensionsDurationInMinutes gets a reference to the given int32 and assigns it to the ExtensionsDurationInMinutes field. +// Deprecated +func (o *UpdateGroupInfo) SetExtensionsDurationInMinutes(v int32) { + o.ExtensionsDurationInMinutes = &v +} + // GetRequestConfigurations returns the RequestConfigurations field value if set, zero value otherwise. func (o *UpdateGroupInfo) GetRequestConfigurations() []RequestConfiguration { if o == nil || IsNil(o.RequestConfigurations) { @@ -655,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 @@ -665,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 @@ -682,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 } @@ -806,6 +849,9 @@ func (o UpdateGroupInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.GroupLeaderUserIds) { toSerialize["group_leader_user_ids"] = o.GroupLeaderUserIds } + if !IsNil(o.ExtensionsDurationInMinutes) { + toSerialize["extensions_duration_in_minutes"] = o.ExtensionsDurationInMinutes + } if !IsNil(o.RequestConfigurations) { toSerialize["request_configurations"] = o.RequestConfigurations } diff --git a/model_update_group_user_request.go b/model_update_group_user_request.go new file mode 100644 index 0000000..ec6741e --- /dev/null +++ b/model_update_group_user_request.go @@ -0,0 +1,197 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the UpdateGroupUserRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateGroupUserRequest{} + +// UpdateGroupUserRequest struct for UpdateGroupUserRequest +type UpdateGroupUserRequest struct { + // The updated duration for which the group can be accessed (in minutes). Use 0 for indefinite, or a negative value to revoke access. + DurationMinutes int32 `json:"duration_minutes"` + // The updated remote ID of the access level granted to this user. + AccessLevelRemoteId *string `json:"access_level_remote_id,omitempty"` +} + +type _UpdateGroupUserRequest UpdateGroupUserRequest + +// NewUpdateGroupUserRequest instantiates a new UpdateGroupUserRequest 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 NewUpdateGroupUserRequest(durationMinutes int32) *UpdateGroupUserRequest { + this := UpdateGroupUserRequest{} + this.DurationMinutes = durationMinutes + return &this +} + +// NewUpdateGroupUserRequestWithDefaults instantiates a new UpdateGroupUserRequest 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 NewUpdateGroupUserRequestWithDefaults() *UpdateGroupUserRequest { + this := UpdateGroupUserRequest{} + return &this +} + +// GetDurationMinutes returns the DurationMinutes field value +func (o *UpdateGroupUserRequest) GetDurationMinutes() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DurationMinutes +} + +// GetDurationMinutesOk returns a tuple with the DurationMinutes field value +// and a boolean to check if the value has been set. +func (o *UpdateGroupUserRequest) GetDurationMinutesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DurationMinutes, true +} + +// SetDurationMinutes sets field value +func (o *UpdateGroupUserRequest) SetDurationMinutes(v int32) { + o.DurationMinutes = v +} + +// GetAccessLevelRemoteId returns the AccessLevelRemoteId field value if set, zero value otherwise. +func (o *UpdateGroupUserRequest) 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 *UpdateGroupUserRequest) 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 *UpdateGroupUserRequest) 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 *UpdateGroupUserRequest) SetAccessLevelRemoteId(v string) { + o.AccessLevelRemoteId = &v +} + +func (o UpdateGroupUserRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateGroupUserRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["duration_minutes"] = o.DurationMinutes + if !IsNil(o.AccessLevelRemoteId) { + toSerialize["access_level_remote_id"] = o.AccessLevelRemoteId + } + return toSerialize, nil +} + +func (o *UpdateGroupUserRequest) 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{ + "duration_minutes", + } + + 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) + } + } + + varUpdateGroupUserRequest := _UpdateGroupUserRequest{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateGroupUserRequest) + + if err != nil { + return err + } + + *o = UpdateGroupUserRequest(varUpdateGroupUserRequest) + + return err +} + +type NullableUpdateGroupUserRequest struct { + value *UpdateGroupUserRequest + isSet bool +} + +func (v NullableUpdateGroupUserRequest) Get() *UpdateGroupUserRequest { + return v.value +} + +func (v *NullableUpdateGroupUserRequest) Set(val *UpdateGroupUserRequest) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateGroupUserRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateGroupUserRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateGroupUserRequest(val *UpdateGroupUserRequest) *NullableUpdateGroupUserRequest { + return &NullableUpdateGroupUserRequest{value: val, isSet: true} +} + +func (v NullableUpdateGroupUserRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateGroupUserRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_resource_info.go b/model_update_resource_info.go index 5e1a21b..674a990 100644 --- a/model_update_resource_info.go +++ b/model_update_resource_info.go @@ -67,8 +67,15 @@ type UpdateResourceInfo struct { // A bool representing whether or not to allow access requests to this resource. Deprecated in favor of `request_configurations`. // Deprecated IsRequestable *bool `json:"is_requestable,omitempty"` + // 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. + // Deprecated + ExtensionsDurationInMinutes *int32 `json:"extensions_duration_in_minutes,omitempty"` + // The ID of the parent resource. + ParentResourceId *string `json:"parent_resource_id,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"` } @@ -719,6 +726,73 @@ func (o *UpdateResourceInfo) SetIsRequestable(v bool) { o.IsRequestable = &v } +// GetExtensionsDurationInMinutes returns the ExtensionsDurationInMinutes field value if set, zero value otherwise. +// Deprecated +func (o *UpdateResourceInfo) GetExtensionsDurationInMinutes() int32 { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + var ret int32 + return ret + } + return *o.ExtensionsDurationInMinutes +} + +// GetExtensionsDurationInMinutesOk returns a tuple with the ExtensionsDurationInMinutes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *UpdateResourceInfo) GetExtensionsDurationInMinutesOk() (*int32, bool) { + if o == nil || IsNil(o.ExtensionsDurationInMinutes) { + return nil, false + } + return o.ExtensionsDurationInMinutes, true +} + +// HasExtensionsDurationInMinutes returns a boolean if a field has been set. +func (o *UpdateResourceInfo) HasExtensionsDurationInMinutes() bool { + if o != nil && !IsNil(o.ExtensionsDurationInMinutes) { + return true + } + + return false +} + +// SetExtensionsDurationInMinutes gets a reference to the given int32 and assigns it to the ExtensionsDurationInMinutes field. +// Deprecated +func (o *UpdateResourceInfo) SetExtensionsDurationInMinutes(v int32) { + o.ExtensionsDurationInMinutes = &v +} + +// GetParentResourceId returns the ParentResourceId field value if set, zero value otherwise. +func (o *UpdateResourceInfo) GetParentResourceId() string { + if o == nil || IsNil(o.ParentResourceId) { + var ret string + return ret + } + return *o.ParentResourceId +} + +// GetParentResourceIdOk returns a tuple with the ParentResourceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateResourceInfo) GetParentResourceIdOk() (*string, bool) { + if o == nil || IsNil(o.ParentResourceId) { + return nil, false + } + return o.ParentResourceId, true +} + +// HasParentResourceId returns a boolean if a field has been set. +func (o *UpdateResourceInfo) HasParentResourceId() bool { + if o != nil && !IsNil(o.ParentResourceId) { + return true + } + + return false +} + +// SetParentResourceId gets a reference to the given string and assigns it to the ParentResourceId field. +func (o *UpdateResourceInfo) SetParentResourceId(v string) { + o.ParentResourceId = &v +} + // GetRequestConfigurations returns the RequestConfigurations field value if set, zero value otherwise. func (o *UpdateResourceInfo) GetRequestConfigurations() []RequestConfiguration { if o == nil || IsNil(o.RequestConfigurations) { @@ -752,6 +826,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 @@ -762,6 +837,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 @@ -779,6 +855,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 } @@ -848,6 +925,12 @@ func (o UpdateResourceInfo) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsRequestable) { toSerialize["is_requestable"] = o.IsRequestable } + if !IsNil(o.ExtensionsDurationInMinutes) { + toSerialize["extensions_duration_in_minutes"] = o.ExtensionsDurationInMinutes + } + if !IsNil(o.ParentResourceId) { + toSerialize["parent_resource_id"] = o.ParentResourceId + } if !IsNil(o.RequestConfigurations) { toSerialize["request_configurations"] = o.RequestConfigurations } diff --git a/model_user_attribute_selector.go b/model_user_attribute_selector.go new file mode 100644 index 0000000..b6d525f --- /dev/null +++ b/model_user_attribute_selector.go @@ -0,0 +1,187 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the UserAttributeSelector type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserAttributeSelector{} + +// UserAttributeSelector struct for UserAttributeSelector +type UserAttributeSelector struct { + Attribute string `json:"attribute"` + Values []string `json:"values"` +} + +type _UserAttributeSelector UserAttributeSelector + +// NewUserAttributeSelector instantiates a new UserAttributeSelector 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 NewUserAttributeSelector(attribute string, values []string) *UserAttributeSelector { + this := UserAttributeSelector{} + this.Attribute = attribute + this.Values = values + return &this +} + +// NewUserAttributeSelectorWithDefaults instantiates a new UserAttributeSelector 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 NewUserAttributeSelectorWithDefaults() *UserAttributeSelector { + this := UserAttributeSelector{} + return &this +} + +// GetAttribute returns the Attribute field value +func (o *UserAttributeSelector) GetAttribute() string { + if o == nil { + var ret string + return ret + } + + return o.Attribute +} + +// GetAttributeOk returns a tuple with the Attribute field value +// and a boolean to check if the value has been set. +func (o *UserAttributeSelector) GetAttributeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Attribute, true +} + +// SetAttribute sets field value +func (o *UserAttributeSelector) SetAttribute(v string) { + o.Attribute = v +} + +// GetValues returns the Values field value +func (o *UserAttributeSelector) GetValues() []string { + if o == nil { + var ret []string + return ret + } + + return o.Values +} + +// GetValuesOk returns a tuple with the Values field value +// and a boolean to check if the value has been set. +func (o *UserAttributeSelector) GetValuesOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Values, true +} + +// SetValues sets field value +func (o *UserAttributeSelector) SetValues(v []string) { + o.Values = v +} + +func (o UserAttributeSelector) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserAttributeSelector) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["attribute"] = o.Attribute + toSerialize["values"] = o.Values + return toSerialize, nil +} + +func (o *UserAttributeSelector) 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{ + "attribute", + "values", + } + + 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) + } + } + + varUserAttributeSelector := _UserAttributeSelector{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUserAttributeSelector) + + if err != nil { + return err + } + + *o = UserAttributeSelector(varUserAttributeSelector) + + return err +} + +type NullableUserAttributeSelector struct { + value *UserAttributeSelector + isSet bool +} + +func (v NullableUserAttributeSelector) Get() *UserAttributeSelector { + return v.value +} + +func (v *NullableUserAttributeSelector) Set(val *UserAttributeSelector) { + v.value = val + v.isSet = true +} + +func (v NullableUserAttributeSelector) IsSet() bool { + return v.isSet +} + +func (v *NullableUserAttributeSelector) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserAttributeSelector(val *UserAttributeSelector) *NullableUserAttributeSelector { + return &NullableUserAttributeSelector{value: val, isSet: true} +} + +func (v NullableUserAttributeSelector) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserAttributeSelector) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_webhook_api_key_credential.go b/model_webhook_api_key_credential.go new file mode 100644 index 0000000..2bd5b95 --- /dev/null +++ b/model_webhook_api_key_credential.go @@ -0,0 +1,246 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the WebhookApiKeyCredential type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebhookApiKeyCredential{} + +// WebhookApiKeyCredential An API key credential for webhook authentication. +type WebhookApiKeyCredential struct { + // The unique identifier for the credential. + Id string `json:"id"` + // The name of the API key. + Name string `json:"name"` + // The value of the API key. + Value string `json:"value"` + Location WebhookApiKeyLocationEnum `json:"location"` +} + +type _WebhookApiKeyCredential WebhookApiKeyCredential + +// NewWebhookApiKeyCredential instantiates a new WebhookApiKeyCredential 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 NewWebhookApiKeyCredential(id string, name string, value string, location WebhookApiKeyLocationEnum) *WebhookApiKeyCredential { + this := WebhookApiKeyCredential{} + this.Id = id + this.Name = name + this.Value = value + this.Location = location + return &this +} + +// NewWebhookApiKeyCredentialWithDefaults instantiates a new WebhookApiKeyCredential 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 NewWebhookApiKeyCredentialWithDefaults() *WebhookApiKeyCredential { + this := WebhookApiKeyCredential{} + return &this +} + +// GetId returns the Id field value +func (o *WebhookApiKeyCredential) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WebhookApiKeyCredential) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WebhookApiKeyCredential) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *WebhookApiKeyCredential) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *WebhookApiKeyCredential) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *WebhookApiKeyCredential) SetName(v string) { + o.Name = v +} + +// GetValue returns the Value field value +func (o *WebhookApiKeyCredential) GetValue() string { + if o == nil { + var ret string + return ret + } + + return o.Value +} + +// GetValueOk returns a tuple with the Value field value +// and a boolean to check if the value has been set. +func (o *WebhookApiKeyCredential) GetValueOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Value, true +} + +// SetValue sets field value +func (o *WebhookApiKeyCredential) SetValue(v string) { + o.Value = v +} + +// GetLocation returns the Location field value +func (o *WebhookApiKeyCredential) GetLocation() WebhookApiKeyLocationEnum { + if o == nil { + var ret WebhookApiKeyLocationEnum + return ret + } + + return o.Location +} + +// GetLocationOk returns a tuple with the Location field value +// and a boolean to check if the value has been set. +func (o *WebhookApiKeyCredential) GetLocationOk() (*WebhookApiKeyLocationEnum, bool) { + if o == nil { + return nil, false + } + return &o.Location, true +} + +// SetLocation sets field value +func (o *WebhookApiKeyCredential) SetLocation(v WebhookApiKeyLocationEnum) { + o.Location = v +} + +func (o WebhookApiKeyCredential) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebhookApiKeyCredential) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["value"] = o.Value + toSerialize["location"] = o.Location + return toSerialize, nil +} + +func (o *WebhookApiKeyCredential) 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{ + "id", + "name", + "value", + "location", + } + + 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) + } + } + + varWebhookApiKeyCredential := _WebhookApiKeyCredential{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varWebhookApiKeyCredential) + + if err != nil { + return err + } + + *o = WebhookApiKeyCredential(varWebhookApiKeyCredential) + + return err +} + +type NullableWebhookApiKeyCredential struct { + value *WebhookApiKeyCredential + isSet bool +} + +func (v NullableWebhookApiKeyCredential) Get() *WebhookApiKeyCredential { + return v.value +} + +func (v *NullableWebhookApiKeyCredential) Set(val *WebhookApiKeyCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWebhookApiKeyCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWebhookApiKeyCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebhookApiKeyCredential(val *WebhookApiKeyCredential) *NullableWebhookApiKeyCredential { + return &NullableWebhookApiKeyCredential{value: val, isSet: true} +} + +func (v NullableWebhookApiKeyCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebhookApiKeyCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_webhook_api_key_location_enum.go b/model_webhook_api_key_location_enum.go new file mode 100644 index 0000000..0410a9d --- /dev/null +++ b/model_webhook_api_key_location_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" +) + +// WebhookApiKeyLocationEnum Where the API key is placed in webhook requests. +type WebhookApiKeyLocationEnum string + +// List of WebhookApiKeyLocationEnum +const ( + WEBHOOKAPIKEYLOCATIONENUM_HEADER WebhookApiKeyLocationEnum = "HEADER" + WEBHOOKAPIKEYLOCATIONENUM_QUERY_PARAM WebhookApiKeyLocationEnum = "QUERY_PARAM" +) + +// All allowed values of WebhookApiKeyLocationEnum enum +var AllowedWebhookApiKeyLocationEnumEnumValues = []WebhookApiKeyLocationEnum{ + "HEADER", + "QUERY_PARAM", +} + +func (v *WebhookApiKeyLocationEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WebhookApiKeyLocationEnum(value) + for _, existing := range AllowedWebhookApiKeyLocationEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WebhookApiKeyLocationEnum", value) +} + +// NewWebhookApiKeyLocationEnumFromValue returns a pointer to a valid WebhookApiKeyLocationEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWebhookApiKeyLocationEnumFromValue(v string) (*WebhookApiKeyLocationEnum, error) { + ev := WebhookApiKeyLocationEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WebhookApiKeyLocationEnum: valid values are %v", v, AllowedWebhookApiKeyLocationEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WebhookApiKeyLocationEnum) IsValid() bool { + for _, existing := range AllowedWebhookApiKeyLocationEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WebhookApiKeyLocationEnum value +func (v WebhookApiKeyLocationEnum) Ptr() *WebhookApiKeyLocationEnum { + return &v +} + +type NullableWebhookApiKeyLocationEnum struct { + value *WebhookApiKeyLocationEnum + isSet bool +} + +func (v NullableWebhookApiKeyLocationEnum) Get() *WebhookApiKeyLocationEnum { + return v.value +} + +func (v *NullableWebhookApiKeyLocationEnum) Set(val *WebhookApiKeyLocationEnum) { + v.value = val + v.isSet = true +} + +func (v NullableWebhookApiKeyLocationEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableWebhookApiKeyLocationEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebhookApiKeyLocationEnum(val *WebhookApiKeyLocationEnum) *NullableWebhookApiKeyLocationEnum { + return &NullableWebhookApiKeyLocationEnum{value: val, isSet: true} +} + +func (v NullableWebhookApiKeyLocationEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebhookApiKeyLocationEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_webhook_auth_type_enum.go b/model_webhook_auth_type_enum.go new file mode 100644 index 0000000..a430115 --- /dev/null +++ b/model_webhook_auth_type_enum.go @@ -0,0 +1,114 @@ +/* +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" +) + +// WebhookAuthTypeEnum The authentication type for webhook connections. +type WebhookAuthTypeEnum string + +// List of WebhookAuthTypeEnum +const ( + WEBHOOKAUTHTYPEENUM_NONE WebhookAuthTypeEnum = "NONE" + WEBHOOKAUTHTYPEENUM_API_KEY WebhookAuthTypeEnum = "API_KEY" + WEBHOOKAUTHTYPEENUM_HMAC WebhookAuthTypeEnum = "HMAC" +) + +// All allowed values of WebhookAuthTypeEnum enum +var AllowedWebhookAuthTypeEnumEnumValues = []WebhookAuthTypeEnum{ + "NONE", + "API_KEY", + "HMAC", +} + +func (v *WebhookAuthTypeEnum) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WebhookAuthTypeEnum(value) + for _, existing := range AllowedWebhookAuthTypeEnumEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WebhookAuthTypeEnum", value) +} + +// NewWebhookAuthTypeEnumFromValue returns a pointer to a valid WebhookAuthTypeEnum +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWebhookAuthTypeEnumFromValue(v string) (*WebhookAuthTypeEnum, error) { + ev := WebhookAuthTypeEnum(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WebhookAuthTypeEnum: valid values are %v", v, AllowedWebhookAuthTypeEnumEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WebhookAuthTypeEnum) IsValid() bool { + for _, existing := range AllowedWebhookAuthTypeEnumEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WebhookAuthTypeEnum value +func (v WebhookAuthTypeEnum) Ptr() *WebhookAuthTypeEnum { + return &v +} + +type NullableWebhookAuthTypeEnum struct { + value *WebhookAuthTypeEnum + isSet bool +} + +func (v NullableWebhookAuthTypeEnum) Get() *WebhookAuthTypeEnum { + return v.value +} + +func (v *NullableWebhookAuthTypeEnum) Set(val *WebhookAuthTypeEnum) { + v.value = val + v.isSet = true +} + +func (v NullableWebhookAuthTypeEnum) IsSet() bool { + return v.isSet +} + +func (v *NullableWebhookAuthTypeEnum) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebhookAuthTypeEnum(val *WebhookAuthTypeEnum) *NullableWebhookAuthTypeEnum { + return &NullableWebhookAuthTypeEnum{value: val, isSet: true} +} + +func (v NullableWebhookAuthTypeEnum) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebhookAuthTypeEnum) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_webhook_credentials.go b/model_webhook_credentials.go new file mode 100644 index 0000000..6879af0 --- /dev/null +++ b/model_webhook_credentials.go @@ -0,0 +1,270 @@ +/* +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" + "bytes" + "fmt" +) + +// checks if the WebhookCredentials type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebhookCredentials{} + +// WebhookCredentials Authentication credentials for a webhook connection. +type WebhookCredentials struct { + AuthType WebhookAuthTypeEnum `json:"auth_type"` + // API key credentials, present when auth_type is API_KEY. + ApiKeyCredentials []WebhookApiKeyCredential `json:"api_key_credentials,omitempty"` + // Primary HMAC credential, present when auth_type is HMAC. + HmacCredential1 *WebhookHmacCredential `json:"hmac_credential_1,omitempty"` + // Secondary HMAC credential for rotation, present when auth_type is HMAC. + HmacCredential2 *WebhookHmacCredential `json:"hmac_credential_2,omitempty"` +} + +type _WebhookCredentials WebhookCredentials + +// NewWebhookCredentials instantiates a new WebhookCredentials 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 NewWebhookCredentials(authType WebhookAuthTypeEnum) *WebhookCredentials { + this := WebhookCredentials{} + this.AuthType = authType + return &this +} + +// NewWebhookCredentialsWithDefaults instantiates a new WebhookCredentials 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 NewWebhookCredentialsWithDefaults() *WebhookCredentials { + this := WebhookCredentials{} + return &this +} + +// GetAuthType returns the AuthType field value +func (o *WebhookCredentials) GetAuthType() WebhookAuthTypeEnum { + if o == nil { + var ret WebhookAuthTypeEnum + return ret + } + + return o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value +// and a boolean to check if the value has been set. +func (o *WebhookCredentials) GetAuthTypeOk() (*WebhookAuthTypeEnum, bool) { + if o == nil { + return nil, false + } + return &o.AuthType, true +} + +// SetAuthType sets field value +func (o *WebhookCredentials) SetAuthType(v WebhookAuthTypeEnum) { + o.AuthType = v +} + +// GetApiKeyCredentials returns the ApiKeyCredentials field value if set, zero value otherwise. +func (o *WebhookCredentials) GetApiKeyCredentials() []WebhookApiKeyCredential { + if o == nil || IsNil(o.ApiKeyCredentials) { + var ret []WebhookApiKeyCredential + return ret + } + return o.ApiKeyCredentials +} + +// GetApiKeyCredentialsOk returns a tuple with the ApiKeyCredentials field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookCredentials) GetApiKeyCredentialsOk() ([]WebhookApiKeyCredential, bool) { + if o == nil || IsNil(o.ApiKeyCredentials) { + return nil, false + } + return o.ApiKeyCredentials, true +} + +// HasApiKeyCredentials returns a boolean if a field has been set. +func (o *WebhookCredentials) HasApiKeyCredentials() bool { + if o != nil && !IsNil(o.ApiKeyCredentials) { + return true + } + + return false +} + +// SetApiKeyCredentials gets a reference to the given []WebhookApiKeyCredential and assigns it to the ApiKeyCredentials field. +func (o *WebhookCredentials) SetApiKeyCredentials(v []WebhookApiKeyCredential) { + o.ApiKeyCredentials = v +} + +// GetHmacCredential1 returns the HmacCredential1 field value if set, zero value otherwise. +func (o *WebhookCredentials) GetHmacCredential1() WebhookHmacCredential { + if o == nil || IsNil(o.HmacCredential1) { + var ret WebhookHmacCredential + return ret + } + return *o.HmacCredential1 +} + +// GetHmacCredential1Ok returns a tuple with the HmacCredential1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookCredentials) GetHmacCredential1Ok() (*WebhookHmacCredential, bool) { + if o == nil || IsNil(o.HmacCredential1) { + return nil, false + } + return o.HmacCredential1, true +} + +// HasHmacCredential1 returns a boolean if a field has been set. +func (o *WebhookCredentials) HasHmacCredential1() bool { + if o != nil && !IsNil(o.HmacCredential1) { + return true + } + + return false +} + +// SetHmacCredential1 gets a reference to the given WebhookHmacCredential and assigns it to the HmacCredential1 field. +func (o *WebhookCredentials) SetHmacCredential1(v WebhookHmacCredential) { + o.HmacCredential1 = &v +} + +// GetHmacCredential2 returns the HmacCredential2 field value if set, zero value otherwise. +func (o *WebhookCredentials) GetHmacCredential2() WebhookHmacCredential { + if o == nil || IsNil(o.HmacCredential2) { + var ret WebhookHmacCredential + return ret + } + return *o.HmacCredential2 +} + +// GetHmacCredential2Ok returns a tuple with the HmacCredential2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookCredentials) GetHmacCredential2Ok() (*WebhookHmacCredential, bool) { + if o == nil || IsNil(o.HmacCredential2) { + return nil, false + } + return o.HmacCredential2, true +} + +// HasHmacCredential2 returns a boolean if a field has been set. +func (o *WebhookCredentials) HasHmacCredential2() bool { + if o != nil && !IsNil(o.HmacCredential2) { + return true + } + + return false +} + +// SetHmacCredential2 gets a reference to the given WebhookHmacCredential and assigns it to the HmacCredential2 field. +func (o *WebhookCredentials) SetHmacCredential2(v WebhookHmacCredential) { + o.HmacCredential2 = &v +} + +func (o WebhookCredentials) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebhookCredentials) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["auth_type"] = o.AuthType + if !IsNil(o.ApiKeyCredentials) { + toSerialize["api_key_credentials"] = o.ApiKeyCredentials + } + if !IsNil(o.HmacCredential1) { + toSerialize["hmac_credential_1"] = o.HmacCredential1 + } + if !IsNil(o.HmacCredential2) { + toSerialize["hmac_credential_2"] = o.HmacCredential2 + } + return toSerialize, nil +} + +func (o *WebhookCredentials) 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{ + "auth_type", + } + + 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) + } + } + + varWebhookCredentials := _WebhookCredentials{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varWebhookCredentials) + + if err != nil { + return err + } + + *o = WebhookCredentials(varWebhookCredentials) + + return err +} + +type NullableWebhookCredentials struct { + value *WebhookCredentials + isSet bool +} + +func (v NullableWebhookCredentials) Get() *WebhookCredentials { + return v.value +} + +func (v *NullableWebhookCredentials) Set(val *WebhookCredentials) { + v.value = val + v.isSet = true +} + +func (v NullableWebhookCredentials) IsSet() bool { + return v.isSet +} + +func (v *NullableWebhookCredentials) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebhookCredentials(val *WebhookCredentials) *NullableWebhookCredentials { + return &NullableWebhookCredentials{value: val, isSet: true} +} + +func (v NullableWebhookCredentials) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebhookCredentials) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_webhook_hmac_credential.go b/model_webhook_hmac_credential.go new file mode 100644 index 0000000..388ca07 --- /dev/null +++ b/model_webhook_hmac_credential.go @@ -0,0 +1,219 @@ +/* +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" + "time" + "bytes" + "fmt" +) + +// checks if the WebhookHmacCredential type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebhookHmacCredential{} + +// WebhookHmacCredential An HMAC credential for webhook authentication. +type WebhookHmacCredential struct { + // The unique identifier for the credential. + Id string `json:"id"` + // The HMAC secret value. + Secret string `json:"secret"` + // When the credential was created. + CreatedAt time.Time `json:"created_at"` +} + +type _WebhookHmacCredential WebhookHmacCredential + +// NewWebhookHmacCredential instantiates a new WebhookHmacCredential 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 NewWebhookHmacCredential(id string, secret string, createdAt time.Time) *WebhookHmacCredential { + this := WebhookHmacCredential{} + this.Id = id + this.Secret = secret + this.CreatedAt = createdAt + return &this +} + +// NewWebhookHmacCredentialWithDefaults instantiates a new WebhookHmacCredential 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 NewWebhookHmacCredentialWithDefaults() *WebhookHmacCredential { + this := WebhookHmacCredential{} + return &this +} + +// GetId returns the Id field value +func (o *WebhookHmacCredential) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WebhookHmacCredential) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WebhookHmacCredential) SetId(v string) { + o.Id = v +} + +// GetSecret returns the Secret field value +func (o *WebhookHmacCredential) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *WebhookHmacCredential) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *WebhookHmacCredential) SetSecret(v string) { + o.Secret = v +} + +// GetCreatedAt returns the CreatedAt field value +func (o *WebhookHmacCredential) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *WebhookHmacCredential) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *WebhookHmacCredential) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +func (o WebhookHmacCredential) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebhookHmacCredential) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["secret"] = o.Secret + toSerialize["created_at"] = o.CreatedAt + return toSerialize, nil +} + +func (o *WebhookHmacCredential) 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{ + "id", + "secret", + "created_at", + } + + 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) + } + } + + varWebhookHmacCredential := _WebhookHmacCredential{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varWebhookHmacCredential) + + if err != nil { + return err + } + + *o = WebhookHmacCredential(varWebhookHmacCredential) + + return err +} + +type NullableWebhookHmacCredential struct { + value *WebhookHmacCredential + isSet bool +} + +func (v NullableWebhookHmacCredential) Get() *WebhookHmacCredential { + return v.value +} + +func (v *NullableWebhookHmacCredential) Set(val *WebhookHmacCredential) { + v.value = val + v.isSet = true +} + +func (v NullableWebhookHmacCredential) IsSet() bool { + return v.isSet +} + +func (v *NullableWebhookHmacCredential) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebhookHmacCredential(val *WebhookHmacCredential) *NullableWebhookHmacCredential { + return &NullableWebhookHmacCredential{value: val, isSet: true} +} + +func (v NullableWebhookHmacCredential) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebhookHmacCredential) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +