model

package
v0.0.32-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 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 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 {
	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 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 {
	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 {
	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 {
	RegionId *string `json:"region_id,omitempty"`
	EpId     *string `json:"ep_id,omitempty"`
	Type     *string `json:"type,omitempty"`
	Limit    *int32  `json:"limit,omitempty"`
	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 {
	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 {
	PolicyAssignmentId string  `json:"policy_assignment_id"`
	ComplianceState    *string `json:"compliance_state,omitempty"`
	ResourceId         *string `json:"resource_id,omitempty"`
	ResourceName       *string `json:"resource_name,omitempty"`
	Limit              *int32  `json:"limit,omitempty"`
	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"`
	ResourceId      *string `json:"resource_id,omitempty"`
	ResourceName    *string `json:"resource_name,omitempty"`
	Limit           *int32  `json:"limit,omitempty"`
	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 {
	ResourceId      string  `json:"resource_id"`
	ComplianceState *string `json:"compliance_state,omitempty"`
	Limit           *int32  `json:"limit,omitempty"`
	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"`
	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

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 {
	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

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"`
	RegionId *string `json:"region_id,omitempty"`
	EpId     *string `json:"ep_id,omitempty"`
	Limit    *int32  `json:"limit,omitempty"`
	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 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,omitempty"`
	// 规则描述
	Description  *string                 `json:"description,omitempty"`
	PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
	// 策略定义ID
	PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
	// 规则参数
	Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
}

规则请求体

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

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"`
	// 合规状态所属资源provider
	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 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"`
	// region id
	RegionId *string `json:"region_id,omitempty"`
	// Openstack中的project id
	ProjectId *string `json:"project_id,omitempty"`
	// Openstack中的project名称
	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 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 {
	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 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 {
	PolicyDefinitionId string  `json:"policy_definition_id"`
	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 {
	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 {
	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"`
	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"`
	// region id
	RegionId *string `json:"region_id,omitempty"`
	// Openstack中的project id
	ProjectId *string `json:"project_id,omitempty"`
	// Openstack中的project名称
	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 {
	ResourceId         string                                        `json:"resource_id"`
	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

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 {
	ResourceId string                                `json:"resource_id"`
	Direction  ShowResourceRelationsRequestDirection `json:"direction"`
	Limit      *int32                                `json:"limit,omitempty"`
	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

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 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 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"`
	// region id
	RegionId string `json:"region_id"`
}

OBS设置对象

func (TrackerObsChannelConfigBody) String

type TrackerSmnChannelConfigBody

type TrackerSmnChannelConfigBody struct {
	// region id
	RegionId string `json:"region_id"`
	// project id
	ProjectId string `json:"project_id"`
	// SMN 主题urn
	TopicUrn string `json:"topic_urn"`
}

SMN通道设置对象

func (TrackerSmnChannelConfigBody) String

type UpdatePolicyAssignmentRequest

type UpdatePolicyAssignmentRequest struct {
	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

Source Files

Jump to

Keyboard shortcuts

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