model

package
v0.0.97 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelConfigBody

type ChannelConfigBody struct {
	Smn *TrackerSmnChannelConfigBody `json:"smn,omitempty"`

	Obs *TrackerObsChannelConfigBody `json:"obs,omitempty"`
}

tracker通道配置

func (ChannelConfigBody) String

func (o ChannelConfigBody) String() string

type CreatePolicyAssignmentsRequest

type CreatePolicyAssignmentsRequest struct {
	Body *PolicyAssignmentRequestBody `json:"body,omitempty"`
}

Request Object

func (CreatePolicyAssignmentsRequest) String

type CreatePolicyAssignmentsResponse

type CreatePolicyAssignmentsResponse struct {

	// 规则ID
	Id *string `json:"id,omitempty"`

	// 规则名字
	Name *string `json:"name,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`

	// 规则状态
	State *string `json:"state,omitempty"`

	// 规则创建时间
	Created *string `json:"created,omitempty"`

	// 规则更新时间
	Updated *string `json:"updated,omitempty"`

	// 规则的策略ID
	PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`

	// 规则参数
	Parameters     map[string]PolicyParameterValue `json:"parameters,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (CreatePolicyAssignmentsResponse) String

type CreateStoredQueryRequest added in v0.0.93

type CreateStoredQueryRequest struct {
	Body *StoredQueryRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateStoredQueryRequest) String added in v0.0.93

func (o CreateStoredQueryRequest) String() string

type CreateStoredQueryResponse added in v0.0.93

type CreateStoredQueryResponse struct {

	// ResourceQL ID
	Id *string `json:"id,omitempty"`

	// ResourceQL 名字
	Name *string `json:"name,omitempty"`

	// ResourceQL 描述
	Description *string `json:"description,omitempty"`

	// ResourceQL 表达式
	Expression *string `json:"expression,omitempty"`

	// ResourceQL 创建时间
	Created *string `json:"created,omitempty"`

	// ResourceQL 更新时间
	Updated        *string `json:"updated,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateStoredQueryResponse) String added in v0.0.93

func (o CreateStoredQueryResponse) String() string

type CreateTrackerConfigRequest

type CreateTrackerConfigRequest struct {
	Body *TrackerConfigBody `json:"body,omitempty"`
}

Request Object

func (CreateTrackerConfigRequest) String

type CreateTrackerConfigResponse

type CreateTrackerConfigResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateTrackerConfigResponse) String

type DeletePolicyAssignmentRequest

type DeletePolicyAssignmentRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`
}

Request Object

func (DeletePolicyAssignmentRequest) String

type DeletePolicyAssignmentResponse

type DeletePolicyAssignmentResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeletePolicyAssignmentResponse) String

type DeleteStoredQueryRequest added in v0.0.93

type DeleteStoredQueryRequest struct {

	// 查询ID
	QueryId string `json:"query_id"`
}

Request Object

func (DeleteStoredQueryRequest) String added in v0.0.93

func (o DeleteStoredQueryRequest) String() string

type DeleteStoredQueryResponse added in v0.0.93

type DeleteStoredQueryResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteStoredQueryResponse) String added in v0.0.93

func (o DeleteStoredQueryResponse) String() string

type DeleteTrackerConfigRequest

type DeleteTrackerConfigRequest struct {
}

Request Object

func (DeleteTrackerConfigRequest) String

type DeleteTrackerConfigResponse

type DeleteTrackerConfigResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteTrackerConfigResponse) String

type DisablePolicyAssignmentRequest

type DisablePolicyAssignmentRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`
}

Request Object

func (DisablePolicyAssignmentRequest) String

type DisablePolicyAssignmentResponse

type DisablePolicyAssignmentResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DisablePolicyAssignmentResponse) String

type EnablePolicyAssignmentRequest

type EnablePolicyAssignmentRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`
}

Request Object

func (EnablePolicyAssignmentRequest) String

type EnablePolicyAssignmentResponse

type EnablePolicyAssignmentResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (EnablePolicyAssignmentResponse) String

type HistoryItem

type HistoryItem struct {

	// 用户id
	DomainId *string `json:"domain_id,omitempty"`

	// 资源id
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源类型
	ResourceType *string `json:"resource_type,omitempty"`

	// 该资源在RMS系统捕获时间
	CaptureTime *string `json:"capture_time,omitempty"`

	// 资源状态
	Status *string `json:"status,omitempty"`

	// 资源关系列表
	Relations *[]ResourceRelation `json:"relations,omitempty"`

	Resource *ResourceEntity `json:"resource,omitempty"`
}

资源历史

func (HistoryItem) String

func (o HistoryItem) String() string

type ListAllResourcesRequest

type ListAllResourcesRequest struct {

	// 区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 企业项目ID
	EpId *string `json:"ep_id,omitempty"`

	// 资源类型(provider.type)
	Type *string `json:"type,omitempty"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListAllResourcesRequest) String

func (o ListAllResourcesRequest) String() string

type ListAllResourcesResponse

type ListAllResourcesResponse struct {

	// 资源列表
	Resources *[]ResourceEntity `json:"resources,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListAllResourcesResponse) String

func (o ListAllResourcesResponse) String() string

type ListBuiltInPolicyDefinitionsRequest

type ListBuiltInPolicyDefinitionsRequest struct {

	// 选择接口返回的信息的语言,默认为\"zh-cn\"中文
	XLanguage *string `json:"X-Language,omitempty"`
}

Request Object

func (ListBuiltInPolicyDefinitionsRequest) String

type ListBuiltInPolicyDefinitionsResponse

type ListBuiltInPolicyDefinitionsResponse struct {

	// 策略定义列表
	Value *[]PolicyDefinition `json:"value,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListBuiltInPolicyDefinitionsResponse) String

type ListPolicyAssignmentsRequest

type ListPolicyAssignmentsRequest struct {
}

Request Object

func (ListPolicyAssignmentsRequest) String

type ListPolicyAssignmentsResponse

type ListPolicyAssignmentsResponse struct {

	// 规则列表
	Value *[]PolicyAssignment `json:"value,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPolicyAssignmentsResponse) String

type ListPolicyStatesByAssignmentIdRequest

type ListPolicyStatesByAssignmentIdRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`

	// 合规状态
	ComplianceState *string `json:"compliance_state,omitempty"`

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称
	ResourceName *string `json:"resource_name,omitempty"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListPolicyStatesByAssignmentIdRequest) String

type ListPolicyStatesByAssignmentIdResponse

type ListPolicyStatesByAssignmentIdResponse struct {

	// 合规结果查询返回值
	Value *[]PolicyState `json:"value,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPolicyStatesByAssignmentIdResponse) String

type ListPolicyStatesByDomainIdRequest

type ListPolicyStatesByDomainIdRequest struct {

	// 合规状态
	ComplianceState *string `json:"compliance_state,omitempty"`

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称
	ResourceName *string `json:"resource_name,omitempty"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListPolicyStatesByDomainIdRequest) String

type ListPolicyStatesByDomainIdResponse

type ListPolicyStatesByDomainIdResponse struct {

	// 合规结果查询返回值
	Value *[]PolicyState `json:"value,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPolicyStatesByDomainIdResponse) String

type ListPolicyStatesByResourceIdRequest

type ListPolicyStatesByResourceIdRequest struct {

	// 资源ID
	ResourceId string `json:"resource_id"`

	// 合规状态
	ComplianceState *string `json:"compliance_state,omitempty"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListPolicyStatesByResourceIdRequest) String

type ListPolicyStatesByResourceIdResponse

type ListPolicyStatesByResourceIdResponse struct {

	// 合规结果查询返回值
	Value *[]PolicyState `json:"value,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListPolicyStatesByResourceIdResponse) String

type ListProvidersRequest

type ListProvidersRequest struct {

	// 分页偏移
	Offset *int32 `json:"offset,omitempty"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 选择接口返回的信息的语言,默认为\"zh-cn\"中文
	XLanguage *ListProvidersRequestXLanguage `json:"X-Language,omitempty"`
}

Request Object

func (ListProvidersRequest) String

func (o ListProvidersRequest) String() string

type ListProvidersRequestXLanguage

type ListProvidersRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListProvidersRequestXLanguage) MarshalJSON

func (c ListProvidersRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListProvidersRequestXLanguage) UnmarshalJSON

func (c *ListProvidersRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListProvidersRequestXLanguage) Value added in v0.0.90

type ListProvidersRequestXLanguageEnum

type ListProvidersRequestXLanguageEnum struct {
	ZH_CN ListProvidersRequestXLanguage
	EN_US ListProvidersRequestXLanguage
}

func GetListProvidersRequestXLanguageEnum

func GetListProvidersRequestXLanguageEnum() ListProvidersRequestXLanguageEnum

type ListProvidersResponse

type ListProvidersResponse struct {

	// 云服务详情列表
	ResourceProviders *[]ResourceProviderResponse `json:"resource_providers,omitempty"`

	// 当前支持的云服务总数
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListProvidersResponse) String

func (o ListProvidersResponse) String() string

type ListRegionsRequest

type ListRegionsRequest struct {

	// 选择接口返回的信息的语言,默认为\"zh-cn\"中文
	XLanguage *ListRegionsRequestXLanguage `json:"X-Language,omitempty"`
}

Request Object

func (ListRegionsRequest) String

func (o ListRegionsRequest) String() string

type ListRegionsRequestXLanguage

type ListRegionsRequestXLanguage struct {
	// contains filtered or unexported fields
}

func (ListRegionsRequestXLanguage) MarshalJSON

func (c ListRegionsRequestXLanguage) MarshalJSON() ([]byte, error)

func (*ListRegionsRequestXLanguage) UnmarshalJSON

func (c *ListRegionsRequestXLanguage) UnmarshalJSON(b []byte) error

func (ListRegionsRequestXLanguage) Value added in v0.0.90

type ListRegionsRequestXLanguageEnum

type ListRegionsRequestXLanguageEnum struct {
	ZH_CN ListRegionsRequestXLanguage
	EN_US ListRegionsRequestXLanguage
}

func GetListRegionsRequestXLanguageEnum

func GetListRegionsRequestXLanguageEnum() ListRegionsRequestXLanguageEnum

type ListRegionsResponse

type ListRegionsResponse struct {

	// 区域信息项列表
	Value          *[]Region `json:"value,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListRegionsResponse) String

func (o ListRegionsResponse) String() string

type ListResourcesRequest

type ListResourcesRequest struct {

	// 云服务名称
	Provider string `json:"provider"`

	// 资源类型名称
	Type string `json:"type"`

	// 区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 企业项目ID
	EpId *string `json:"ep_id,omitempty"`

	// 标签
	Tag map[string][]string `json:"tag,omitempty"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListResourcesRequest) String

func (o ListResourcesRequest) String() string

type ListResourcesResponse

type ListResourcesResponse struct {

	// 资源列表
	Resources *[]ResourceEntity `json:"resources,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListResourcesResponse) String

func (o ListResourcesResponse) String() string

type ListSchemasRequest added in v0.0.97

type ListSchemasRequest struct {

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ListSchemasRequest) String added in v0.0.97

func (o ListSchemasRequest) String() string

type ListSchemasResponse added in v0.0.97

type ListSchemasResponse struct {

	// schemas 接口.
	Value *[]ResourceSchemaResponse `json:"value,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListSchemasResponse) String added in v0.0.97

func (o ListSchemasResponse) String() string

type ListStoredQueriesRequest added in v0.0.93

type ListStoredQueriesRequest struct {

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`

	// ResourceQL 名字
	Name *string `json:"name,omitempty"`
}

Request Object

func (ListStoredQueriesRequest) String added in v0.0.93

func (o ListStoredQueriesRequest) String() string

type ListStoredQueriesResponse added in v0.0.93

type ListStoredQueriesResponse struct {

	// 高级查询列表
	Value *[]StoredQuery `json:"value,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListStoredQueriesResponse) String added in v0.0.93

func (o ListStoredQueriesResponse) String() string

type PageInfo

type PageInfo struct {

	// 当前页的资源数量
	CurrentCount *int32 `json:"current_count,omitempty"`

	// 下一页的marker
	NextMarker *string `json:"next_marker,omitempty"`
}

分页对象

func (PageInfo) String

func (o PageInfo) String() string

type PolicyAssignment

type PolicyAssignment struct {

	// 规则ID
	Id *string `json:"id,omitempty"`

	// 规则名字
	Name *string `json:"name,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`

	// 规则状态
	State *string `json:"state,omitempty"`

	// 规则创建时间
	Created *string `json:"created,omitempty"`

	// 规则更新时间
	Updated *string `json:"updated,omitempty"`

	// 规则的策略ID
	PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`

	// 规则参数
	Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
}

规则

func (PolicyAssignment) String

func (o PolicyAssignment) String() string

type PolicyAssignmentRequestBody

type PolicyAssignmentRequestBody struct {

	// 规则名字
	Name string `json:"name"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	PolicyFilter *PolicyFilterDefinition `json:"policy_filter"`

	// 策略定义ID
	PolicyDefinitionId string `json:"policy_definition_id"`

	// 规则参数
	Parameters map[string]PolicyParameterValue `json:"parameters"`
}

规则请求体

func (PolicyAssignmentRequestBody) String

type PolicyDefinition

type PolicyDefinition struct {

	// 策略id
	Id *string `json:"id,omitempty"`

	// 策略名字
	Name *string `json:"name,omitempty"`

	// 策略类型
	PolicyType *string `json:"policy_type,omitempty"`

	// 策略描述
	Description *string `json:"description,omitempty"`

	// 策略语法类型
	PolicyRuleType *string `json:"policy_rule_type,omitempty"`

	// 策略规则
	PolicyRule *interface{} `json:"policy_rule,omitempty"`

	// 关键词列表
	Keywords *[]string `json:"keywords,omitempty"`

	// 策略参数
	Parameters map[string]PolicyParameterDefinition `json:"parameters,omitempty"`
}

策略定义

func (PolicyDefinition) String

func (o PolicyDefinition) String() string

type PolicyFilterDefinition

type PolicyFilterDefinition struct {

	// 区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 云服务名称
	ResourceProvider *string `json:"resource_provider,omitempty"`

	// 资源类型
	ResourceType *string `json:"resource_type,omitempty"`

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 标签键
	TagKey *string `json:"tag_key,omitempty"`

	// 标签值
	TagValue *string `json:"tag_value,omitempty"`
}

规则过滤器

func (PolicyFilterDefinition) String

func (o PolicyFilterDefinition) String() string

type PolicyParameterDefinition

type PolicyParameterDefinition struct {

	// 策略参数名字
	Name *string `json:"name,omitempty"`

	// 策略参数描述
	Description *string `json:"description,omitempty"`

	// 策略参数允许值列表
	AllowedValues *[]interface{} `json:"allowed_values,omitempty"`

	// 策略参数默认值
	DefaultValue *string `json:"default_value,omitempty"`

	// 策略参数类型
	Type *PolicyParameterDefinitionType `json:"type,omitempty"`
}

策略参数定义

func (PolicyParameterDefinition) String

func (o PolicyParameterDefinition) String() string

type PolicyParameterDefinitionType

type PolicyParameterDefinitionType struct {
	// contains filtered or unexported fields
}

func (PolicyParameterDefinitionType) MarshalJSON

func (c PolicyParameterDefinitionType) MarshalJSON() ([]byte, error)

func (*PolicyParameterDefinitionType) UnmarshalJSON

func (c *PolicyParameterDefinitionType) UnmarshalJSON(b []byte) error

func (PolicyParameterDefinitionType) Value added in v0.0.90

type PolicyParameterValue

type PolicyParameterValue struct {

	// 规则参数值
	Value *interface{} `json:"value,omitempty"`
}

规则参数值

func (PolicyParameterValue) String

func (o PolicyParameterValue) String() string

type PolicyState

type PolicyState struct {

	// 用户ID
	DomainId *string `json:"domain_id,omitempty"`

	// 资源区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 资源ID
	ResourceId *string `json:"resource_id,omitempty"`

	// 资源名称
	ResourceName *string `json:"resource_name,omitempty"`

	// 云服务名称
	ResourceProvider *string `json:"resource_provider,omitempty"`

	// 资源类型
	ResourceType *string `json:"resource_type,omitempty"`

	// 合规状态
	ComplianceState *string `json:"compliance_state,omitempty"`

	// 规则ID
	PolicyAssignmentId *string `json:"policy_assignment_id,omitempty"`

	// 规则名称
	PolicyAssignmentName *string `json:"policy_assignment_name,omitempty"`

	// 策略ID
	PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`

	// 合规状态评估时间
	EvaluationTime *string `json:"evaluation_time,omitempty"`
}

合规状态

func (PolicyState) String

func (o PolicyState) String() string

type QueryInfo added in v0.0.93

type QueryInfo struct {

	// ResourceQL 查询字段
	SelectFields *[]string `json:"select_fields,omitempty"`
}

func (QueryInfo) String added in v0.0.93

func (o QueryInfo) String() string

type QueryRunRequestBody added in v0.0.93

type QueryRunRequestBody struct {

	// ResourceQL 表达式
	Expression string `json:"expression"`
}

func (QueryRunRequestBody) String added in v0.0.93

func (o QueryRunRequestBody) String() string

type Region

type Region struct {

	// 区域ID
	RegionId *string `json:"region_id,omitempty"`

	// 区域显示名称
	DisplayName *string `json:"display_name,omitempty"`
}

区域

func (Region) String

func (o Region) String() string

type ResourceEntity

type ResourceEntity struct {

	// 资源id
	Id *string `json:"id,omitempty"`

	// 资源名称
	Name *string `json:"name,omitempty"`

	// 云服务名称
	Provider *string `json:"provider,omitempty"`

	// 资源类型
	Type *string `json:"type,omitempty"`

	// 区域id
	RegionId *string `json:"region_id,omitempty"`

	// Openstack中的项目id
	ProjectId *string `json:"project_id,omitempty"`

	// Openstack中的项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 企业项目id
	EpId *string `json:"ep_id,omitempty"`

	// 企业项目名称
	EpName *string `json:"ep_name,omitempty"`

	// 资源详情校验码
	Checksum *string `json:"checksum,omitempty"`

	// 资源创建时间
	Created *string `json:"created,omitempty"`

	// 资源更新时间
	Updated *string `json:"updated,omitempty"`

	// 资源操作状态
	ProvisioningState *string `json:"provisioning_state,omitempty"`

	// 资源Tag
	Tags map[string]string `json:"tags,omitempty"`

	// 资源详细属性
	Properties map[string]interface{} `json:"properties,omitempty"`
}

资源对象

func (ResourceEntity) String

func (o ResourceEntity) String() string

type ResourceProviderResponse

type ResourceProviderResponse struct {

	// 云服务名称
	Provider *string `json:"provider,omitempty"`

	// 云服务显示名称,可以通过请求Header中的'X-Language'设置语言
	DisplayName *string `json:"display_name,omitempty"`

	// 云服务类别显示名称,可以通过请求Header中的'X-Language'设置语言
	CategoryDisplayName *string `json:"category_display_name,omitempty"`

	// 资源类型列表
	ResourceTypes *[]ResourceTypeResponse `json:"resource_types,omitempty"`
}

云服务详情

func (ResourceProviderResponse) String

func (o ResourceProviderResponse) String() string

type ResourceRelation

type ResourceRelation struct {

	// 关系类型
	RelationType *string `json:"relation_type,omitempty"`

	// 源资源类型
	FromResourceType *string `json:"from_resource_type,omitempty"`

	// 目的资源类型
	ToResourceType *string `json:"to_resource_type,omitempty"`

	// 源资源ID
	FromResourceId *string `json:"from_resource_id,omitempty"`

	// 目的资源ID
	ToResourceId *string `json:"to_resource_id,omitempty"`
}

func (ResourceRelation) String

func (o ResourceRelation) String() string

type ResourceSchemaResponse added in v0.0.97

type ResourceSchemaResponse struct {

	// 资源类型.
	Type *string `json:"type,omitempty"`

	// schema 内容.
	Schema *interface{} `json:"schema,omitempty"`
}

单条schema信息

func (ResourceSchemaResponse) String added in v0.0.97

func (o ResourceSchemaResponse) String() string

type ResourceTypeResponse

type ResourceTypeResponse struct {

	// 资源类型名称
	Name *string `json:"name,omitempty"`

	// 资源类型显示名称,可以通过请求中 'X-Language'设置语言
	DisplayName *string `json:"display_name,omitempty"`

	// 是否是全局类型的资源
	Global *bool `json:"global,omitempty"`

	// 支持的region列表
	Regions *[]string `json:"regions,omitempty"`

	// console终端id
	ConsoleEndpointId *string `json:"console_endpoint_id,omitempty"`

	// console列表页地址
	ConsoleListUrl *string `json:"console_list_url,omitempty"`

	// console详情页地址
	ConsoleDetailUrl *string `json:"console_detail_url,omitempty"`
}

资源类型详情

func (ResourceTypeResponse) String

func (o ResourceTypeResponse) String() string

type RunEvaluationByPolicyAssignmentIdRequest

type RunEvaluationByPolicyAssignmentIdRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`
}

Request Object

func (RunEvaluationByPolicyAssignmentIdRequest) String

type RunEvaluationByPolicyAssignmentIdResponse

type RunEvaluationByPolicyAssignmentIdResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (RunEvaluationByPolicyAssignmentIdResponse) String

type RunQueryRequest added in v0.0.93

type RunQueryRequest struct {
	Body *QueryRunRequestBody `json:"body,omitempty"`
}

Request Object

func (RunQueryRequest) String added in v0.0.93

func (o RunQueryRequest) String() string

type RunQueryResponse added in v0.0.93

type RunQueryResponse struct {
	QueryInfo *QueryInfo `json:"query_info,omitempty"`

	// ResourceQL 查询结果.
	Results        *[]interface{} `json:"results,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (RunQueryResponse) String added in v0.0.93

func (o RunQueryResponse) String() string

type SelectorConfigBody

type SelectorConfigBody struct {

	// 是否选择所有支持的资源
	AllSupported bool `json:"all_supported"`

	// 资源类型列表
	ResourceTypes []string `json:"resource_types"`
}

tracker选择器

func (SelectorConfigBody) String

func (o SelectorConfigBody) String() string

type ShowBuiltInPolicyDefinitionRequest

type ShowBuiltInPolicyDefinitionRequest struct {

	// 策略ID
	PolicyDefinitionId string `json:"policy_definition_id"`

	// 选择接口返回的信息的语言,默认为\"zh-cn\"中文
	XLanguage *string `json:"X-Language,omitempty"`
}

Request Object

func (ShowBuiltInPolicyDefinitionRequest) String

type ShowBuiltInPolicyDefinitionResponse

type ShowBuiltInPolicyDefinitionResponse struct {

	// 策略id
	Id *string `json:"id,omitempty"`

	// 策略名字
	Name *string `json:"name,omitempty"`

	// 策略类型
	PolicyType *string `json:"policy_type,omitempty"`

	// 策略描述
	Description *string `json:"description,omitempty"`

	// 策略语法类型
	PolicyRuleType *string `json:"policy_rule_type,omitempty"`

	// 策略规则
	PolicyRule *interface{} `json:"policy_rule,omitempty"`

	// 关键词列表
	Keywords *[]string `json:"keywords,omitempty"`

	// 策略参数
	Parameters     map[string]PolicyParameterDefinition `json:"parameters,omitempty"`
	HttpStatusCode int                                  `json:"-"`
}

Response Object

func (ShowBuiltInPolicyDefinitionResponse) String

type ShowEvaluationStateByAssignmentIdRequest

type ShowEvaluationStateByAssignmentIdRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`
}

Request Object

func (ShowEvaluationStateByAssignmentIdRequest) String

type ShowEvaluationStateByAssignmentIdResponse

type ShowEvaluationStateByAssignmentIdResponse struct {

	// 规则ID
	PolicyAssignmentId *string `json:"policy_assignment_id,omitempty"`

	// 评估任务执行状态
	State *string `json:"state,omitempty"`

	// 评估任务开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 评估任务结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 评估任务失败信息
	ErrorMessage   *string `json:"error_message,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowEvaluationStateByAssignmentIdResponse) String

type ShowPolicyAssignmentRequest

type ShowPolicyAssignmentRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`
}

Request Object

func (ShowPolicyAssignmentRequest) String

type ShowPolicyAssignmentResponse

type ShowPolicyAssignmentResponse struct {

	// 规则ID
	Id *string `json:"id,omitempty"`

	// 规则名字
	Name *string `json:"name,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`

	// 规则状态
	State *string `json:"state,omitempty"`

	// 规则创建时间
	Created *string `json:"created,omitempty"`

	// 规则更新时间
	Updated *string `json:"updated,omitempty"`

	// 规则的策略ID
	PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`

	// 规则参数
	Parameters     map[string]PolicyParameterValue `json:"parameters,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (ShowPolicyAssignmentResponse) String

type ShowResourceByIdRequest

type ShowResourceByIdRequest struct {

	// 云服务名称
	Provider string `json:"provider"`

	// 资源类型名称
	Type string `json:"type"`

	// 资源ID
	ResourceId string `json:"resource_id"`
}

Request Object

func (ShowResourceByIdRequest) String

func (o ShowResourceByIdRequest) String() string

type ShowResourceByIdResponse

type ShowResourceByIdResponse struct {

	// 资源id
	Id *string `json:"id,omitempty"`

	// 资源名称
	Name *string `json:"name,omitempty"`

	// 云服务名称
	Provider *string `json:"provider,omitempty"`

	// 资源类型
	Type *string `json:"type,omitempty"`

	// 区域id
	RegionId *string `json:"region_id,omitempty"`

	// Openstack中的项目id
	ProjectId *string `json:"project_id,omitempty"`

	// Openstack中的项目名称
	ProjectName *string `json:"project_name,omitempty"`

	// 企业项目id
	EpId *string `json:"ep_id,omitempty"`

	// 企业项目名称
	EpName *string `json:"ep_name,omitempty"`

	// 资源详情校验码
	Checksum *string `json:"checksum,omitempty"`

	// 资源创建时间
	Created *string `json:"created,omitempty"`

	// 资源更新时间
	Updated *string `json:"updated,omitempty"`

	// 资源操作状态
	ProvisioningState *string `json:"provisioning_state,omitempty"`

	// 资源Tag
	Tags map[string]string `json:"tags,omitempty"`

	// 资源详细属性
	Properties     map[string]interface{} `json:"properties,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowResourceByIdResponse) String

func (o ShowResourceByIdResponse) String() string

type ShowResourceHistoryRequest

type ShowResourceHistoryRequest struct {

	// 资源ID
	ResourceId string `json:"resource_id"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询范围的起始时间点,如果不设置此参数,默认为最早的时间
	EarlierTime *int64 `json:"earlier_time,omitempty"`

	// 指定查询范围的结束时间点,如果不设置此参数,默认为当前时间
	LaterTime *int64 `json:"later_time,omitempty"`

	// 指定返回数据的时间顺序,默认为倒序
	ChronologicalOrder *ShowResourceHistoryRequestChronologicalOrder `json:"chronological_order,omitempty"`
}

Request Object

func (ShowResourceHistoryRequest) String

type ShowResourceHistoryRequestChronologicalOrder

type ShowResourceHistoryRequestChronologicalOrder struct {
	// contains filtered or unexported fields
}

func (ShowResourceHistoryRequestChronologicalOrder) MarshalJSON

func (*ShowResourceHistoryRequestChronologicalOrder) UnmarshalJSON

func (ShowResourceHistoryRequestChronologicalOrder) Value added in v0.0.90

type ShowResourceHistoryResponse

type ShowResourceHistoryResponse struct {

	// 资源历史列表
	Items *[]HistoryItem `json:"items,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowResourceHistoryResponse) String

type ShowResourceRelationsRequest

type ShowResourceRelationsRequest struct {

	// 资源ID
	ResourceId string `json:"resource_id"`

	// 资源关系的指向
	Direction ShowResourceRelationsRequestDirection `json:"direction"`

	// 最大的返回数量
	Limit *int32 `json:"limit,omitempty"`

	// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
	Marker *string `json:"marker,omitempty"`
}

Request Object

func (ShowResourceRelationsRequest) String

type ShowResourceRelationsRequestDirection

type ShowResourceRelationsRequestDirection struct {
	// contains filtered or unexported fields
}

func (ShowResourceRelationsRequestDirection) MarshalJSON

func (c ShowResourceRelationsRequestDirection) MarshalJSON() ([]byte, error)

func (*ShowResourceRelationsRequestDirection) UnmarshalJSON

func (c *ShowResourceRelationsRequestDirection) UnmarshalJSON(b []byte) error

func (ShowResourceRelationsRequestDirection) Value added in v0.0.90

type ShowResourceRelationsResponse

type ShowResourceRelationsResponse struct {

	// 资源关系列表
	Relations *[]ResourceRelation `json:"relations,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ShowResourceRelationsResponse) String

type ShowStoredQueryRequest added in v0.0.93

type ShowStoredQueryRequest struct {

	// 查询ID
	QueryId string `json:"query_id"`
}

Request Object

func (ShowStoredQueryRequest) String added in v0.0.93

func (o ShowStoredQueryRequest) String() string

type ShowStoredQueryResponse added in v0.0.93

type ShowStoredQueryResponse struct {

	// ResourceQL ID
	Id *string `json:"id,omitempty"`

	// ResourceQL 名字
	Name *string `json:"name,omitempty"`

	// ResourceQL 描述
	Description *string `json:"description,omitempty"`

	// ResourceQL 表达式
	Expression *string `json:"expression,omitempty"`

	// ResourceQL 创建时间
	Created *string `json:"created,omitempty"`

	// ResourceQL 更新时间
	Updated        *string `json:"updated,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowStoredQueryResponse) String added in v0.0.93

func (o ShowStoredQueryResponse) String() string

type ShowTrackerConfigRequest

type ShowTrackerConfigRequest struct {
}

Request Object

func (ShowTrackerConfigRequest) String

func (o ShowTrackerConfigRequest) String() string

type ShowTrackerConfigResponse

type ShowTrackerConfigResponse struct {
	Channel *ChannelConfigBody `json:"channel,omitempty"`

	Selector *SelectorConfigBody `json:"selector,omitempty"`

	// IAM委托名称
	AgencyName     *string `json:"agency_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowTrackerConfigResponse) String

func (o ShowTrackerConfigResponse) String() string

type StoredQuery added in v0.0.93

type StoredQuery struct {

	// ResourceQL ID
	Id *string `json:"id,omitempty"`

	// ResourceQL 名字
	Name *string `json:"name,omitempty"`

	// ResourceQL 描述
	Description *string `json:"description,omitempty"`

	// ResourceQL 表达式
	Expression *string `json:"expression,omitempty"`

	// ResourceQL 创建时间
	Created *string `json:"created,omitempty"`

	// ResourceQL 更新时间
	Updated *string `json:"updated,omitempty"`
}

func (StoredQuery) String added in v0.0.93

func (o StoredQuery) String() string

type StoredQueryRequestBody added in v0.0.93

type StoredQueryRequestBody struct {

	// ResourceQL 名字
	Name string `json:"name"`

	// ResourceQL 描述
	Description *string `json:"description,omitempty"`

	// ResourceQL 表达式
	Expression string `json:"expression"`
}

func (StoredQueryRequestBody) String added in v0.0.93

func (o StoredQueryRequestBody) String() string

type TrackerConfigBody

type TrackerConfigBody struct {
	Channel *ChannelConfigBody `json:"channel"`

	Selector *SelectorConfigBody `json:"selector"`

	// IAM委托名称
	AgencyName string `json:"agency_name"`
}

TrackerConfig对象

func (TrackerConfigBody) String

func (o TrackerConfigBody) String() string

type TrackerObsChannelConfigBody

type TrackerObsChannelConfigBody struct {

	// OBS桶名称
	BucketName string `json:"bucket_name"`

	// 区域id
	RegionId string `json:"region_id"`
}

OBS设置对象

func (TrackerObsChannelConfigBody) String

type TrackerSmnChannelConfigBody

type TrackerSmnChannelConfigBody struct {

	// 区域id
	RegionId string `json:"region_id"`

	// 项目id
	ProjectId string `json:"project_id"`

	// SMN主题urn
	TopicUrn string `json:"topic_urn"`
}

SMN通道设置对象

func (TrackerSmnChannelConfigBody) String

type UpdatePolicyAssignmentRequest

type UpdatePolicyAssignmentRequest struct {

	// 规则ID
	PolicyAssignmentId string `json:"policy_assignment_id"`

	Body *PolicyAssignmentRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdatePolicyAssignmentRequest) String

type UpdatePolicyAssignmentResponse

type UpdatePolicyAssignmentResponse struct {

	// 规则ID
	Id *string `json:"id,omitempty"`

	// 规则名字
	Name *string `json:"name,omitempty"`

	// 规则描述
	Description *string `json:"description,omitempty"`

	PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`

	// 规则状态
	State *string `json:"state,omitempty"`

	// 规则创建时间
	Created *string `json:"created,omitempty"`

	// 规则更新时间
	Updated *string `json:"updated,omitempty"`

	// 规则的策略ID
	PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`

	// 规则参数
	Parameters     map[string]PolicyParameterValue `json:"parameters,omitempty"`
	HttpStatusCode int                             `json:"-"`
}

Response Object

func (UpdatePolicyAssignmentResponse) String

type UpdateStoredQueryRequest added in v0.0.93

type UpdateStoredQueryRequest struct {

	// 查询ID
	QueryId string `json:"query_id"`

	Body *StoredQueryRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateStoredQueryRequest) String added in v0.0.93

func (o UpdateStoredQueryRequest) String() string

type UpdateStoredQueryResponse added in v0.0.93

type UpdateStoredQueryResponse struct {

	// ResourceQL ID
	Id *string `json:"id,omitempty"`

	// ResourceQL 名字
	Name *string `json:"name,omitempty"`

	// ResourceQL 描述
	Description *string `json:"description,omitempty"`

	// ResourceQL 表达式
	Expression *string `json:"expression,omitempty"`

	// ResourceQL 创建时间
	Created *string `json:"created,omitempty"`

	// ResourceQL 更新时间
	Updated        *string `json:"updated,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateStoredQueryResponse) String added in v0.0.93

func (o UpdateStoredQueryResponse) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL