Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 9.81 KB

File metadata and controls

38 lines (29 loc) · 9.81 KB

CreateResourceInfo

CreateResourceInfo Object ### Description The CreateResourceInfo object is used to store creation info for a resource. ### Usage Example Use in the POST Resources endpoint.

Properties

Name Type Description Notes
name str The name of the remote resource.
description str A description of the remote resource. [optional]
resource_type ResourceTypeEnum
app_id UUID The ID of the app for the resource.
remote_info ResourceRemoteInfo [optional]
remote_resource_id str Deprecated - use remote_info instead. The ID of the resource on the remote system. Include only for items linked to remote systems. See this guide for details on how to specify this field. [optional]
metadata str Deprecated - use remote_info instead. JSON metadata about the remote resource. Include only for items linked to remote systems. See this guide for details on how to specify this field. The required format is dependent on resource_type and should have the following schema: <style type=&quot;text/css&quot;> code {max-height:300px !important} </style> ```json { &quot;$schema&quot;: &quot;http://json-schema.org/draft-04/schema#\", &quot;title&quot;: &quot;Resource Metadata&quot;, &quot;properties&quot;: { &quot;aws_ec2_instance&quot;: { &quot;properties&quot;: { &quot;instance_id&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;region&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;instance_id&quot;, &quot;region&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;AWS EC2 Instance&quot; }, &quot;aws_eks_cluster&quot;: { &quot;properties&quot;: { &quot;cluster_name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;cluster_region&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;cluster_arn&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;cluster_name&quot;, &quot;cluster_region&quot;, &quot;cluster_arn&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;AWS EKS Cluster&quot; }, &quot;aws_rds_instance&quot;: { &quot;properties&quot;: { &quot;instance_id&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;engine&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;region&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;resource_id&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;database_name&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [ &quot;instance_id&quot;, &quot;engine&quot;, &quot;region&quot;, &quot;resource_id&quot;, &quot;database_name&quot; ], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;AWS RDS Instance&quot; }, &quot;aws_role&quot;: { &quot;properties&quot;: { &quot;arn&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;name&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;arn&quot;, &quot;name&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;AWS Role&quot; }, &quot;gcp_bucket&quot;: { &quot;properties&quot;: { &quot;bucket_id&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;bucket_id&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;GCP Bucket&quot; }, &quot;gcp_compute_instance&quot;: { &quot;properties&quot;: { &quot;instance_id&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;project_id&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;zone&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;instance_id&quot;, &quot;project_id&quot;, &quot;zone&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;GCP Compute Instance&quot; }, &quot;gcp_folder&quot;: { &quot;properties&quot;: { &quot;folder_id&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;folder_id&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;GCP Folder&quot; }, &quot;gcp_gke_cluster&quot;: { &quot;properties&quot;: { &quot;cluster_name&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;cluster_name&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;GCP GKE Cluster&quot; }, &quot;gcp_project&quot;: { &quot;properties&quot;: { &quot;project_id&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;project_id&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;GCP Project&quot; }, &quot;gcp_sql_instance&quot;: { &quot;properties&quot;: { &quot;instance_id&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;project_id&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;instance_id&quot;, &quot;project_id&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;GCP SQL Instance&quot; }, &quot;git_hub_repo&quot;: { &quot;properties&quot;: { &quot;org_name&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;repo_name&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;org_name&quot;, &quot;repo_name&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;GitHub Repo&quot; }, &quot;okta_directory_app&quot;: { &quot;properties&quot;: { &quot;app_id&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;logo_url&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;app_id&quot;, &quot;logo_url&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;Okta Directory App&quot; }, &quot;okta_directory_role&quot;: { &quot;properties&quot;: { &quot;role_type&quot;: { &quot;type&quot;: &quot;string&quot; }, &quot;role_id&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;role_type&quot;, &quot;role_id&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;Okta Directory Role&quot; }, &quot;salesforce_profile&quot;: { &quot;properties&quot;: { &quot;user_license&quot;: { &quot;type&quot;: &quot;string&quot; } }, &quot;required&quot;: [&quot;user_license&quot;], &quot;additionalProperties&quot;: false, &quot;type&quot;: &quot;object&quot;, &quot;title&quot;: &quot;Salesforce Profile&quot; } }, &quot;additionalProperties&quot;: false, &quot;minProperties&quot;: 1, &quot;maxProperties&quot;: 1, &quot;type&quot;: &quot;object&quot; } ``` [optional]
custom_request_notification str Custom request notification sent upon request approval. [optional]
risk_sensitivity_override RiskSensitivityEnum [optional]

Example

from opal_security.models.create_resource_info import CreateResourceInfo

# TODO update the JSON string below
json = "{}"
# create an instance of CreateResourceInfo from a JSON string
create_resource_info_instance = CreateResourceInfo.from_json(json)
# print the JSON string representation of the object
print(CreateResourceInfo.to_json())

# convert the object into a dict
create_resource_info_dict = create_resource_info_instance.to_dict()
# create an instance of CreateResourceInfo from a dict
create_resource_info_from_dict = CreateResourceInfo.from_dict(create_resource_info_dict)

[Back to Model list] [Back to API list] [Back to README]