Documentation ¶
Index ¶
- type ChannelConfigBody
- type CreatePolicyAssignmentsRequest
- type CreatePolicyAssignmentsResponse
- type CreateTrackerConfigRequest
- type CreateTrackerConfigResponse
- type DeletePolicyAssignmentRequest
- type DeletePolicyAssignmentResponse
- type DeleteTrackerConfigRequest
- type DeleteTrackerConfigResponse
- type DisablePolicyAssignmentRequest
- type DisablePolicyAssignmentResponse
- type EnablePolicyAssignmentRequest
- type EnablePolicyAssignmentResponse
- type HistoryItem
- type ListAllResourcesRequest
- type ListAllResourcesResponse
- type ListBuiltInPolicyDefinitionsRequest
- type ListBuiltInPolicyDefinitionsResponse
- type ListPolicyAssignmentsRequest
- type ListPolicyAssignmentsResponse
- type ListPolicyStatesByAssignmentIdRequest
- type ListPolicyStatesByAssignmentIdResponse
- type ListPolicyStatesByDomainIdRequest
- type ListPolicyStatesByDomainIdResponse
- type ListPolicyStatesByResourceIdRequest
- type ListPolicyStatesByResourceIdResponse
- type ListProvidersRequest
- type ListProvidersRequestXLanguage
- type ListProvidersRequestXLanguageEnum
- type ListProvidersResponse
- type ListRegionsRequest
- type ListRegionsRequestXLanguage
- type ListRegionsRequestXLanguageEnum
- type ListRegionsResponse
- type ListResourcesRequest
- type ListResourcesResponse
- type PageInfo
- type PolicyAssignment
- type PolicyAssignmentRequestBody
- type PolicyDefinition
- type PolicyFilterDefinition
- type PolicyParameterDefinition
- type PolicyParameterDefinitionType
- type PolicyParameterDefinitionTypeEnum
- type PolicyParameterValue
- type PolicyState
- type Region
- type ResourceEntity
- type ResourceProviderResponse
- type ResourceRelation
- type ResourceTypeResponse
- type RunEvaluationByPolicyAssignmentIdRequest
- type RunEvaluationByPolicyAssignmentIdResponse
- type SelectorConfigBody
- type ShowBuiltInPolicyDefinitionRequest
- type ShowBuiltInPolicyDefinitionResponse
- type ShowEvaluationStateByAssignmentIdRequest
- type ShowEvaluationStateByAssignmentIdResponse
- type ShowPolicyAssignmentRequest
- type ShowPolicyAssignmentResponse
- type ShowResourceByIdRequest
- type ShowResourceByIdResponse
- type ShowResourceHistoryRequest
- type ShowResourceHistoryRequestChronologicalOrder
- type ShowResourceHistoryRequestChronologicalOrderEnum
- type ShowResourceHistoryResponse
- type ShowResourceRelationsRequest
- type ShowResourceRelationsRequestDirection
- type ShowResourceRelationsRequestDirectionEnum
- type ShowResourceRelationsResponse
- type ShowTrackerConfigRequest
- type ShowTrackerConfigResponse
- type TrackerConfigBody
- type TrackerObsChannelConfigBody
- type TrackerSmnChannelConfigBody
- type UpdatePolicyAssignmentRequest
- type UpdatePolicyAssignmentResponse
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 ¶
func (o CreatePolicyAssignmentsRequest) String() 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 ¶
func (o CreatePolicyAssignmentsResponse) String() string
type CreateTrackerConfigRequest ¶
type CreateTrackerConfigRequest struct {
Body *TrackerConfigBody `json:"body,omitempty"`
}
Request Object
func (CreateTrackerConfigRequest) String ¶
func (o CreateTrackerConfigRequest) String() string
type CreateTrackerConfigResponse ¶
type CreateTrackerConfigResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (CreateTrackerConfigResponse) String ¶
func (o CreateTrackerConfigResponse) String() string
type DeletePolicyAssignmentRequest ¶
type DeletePolicyAssignmentRequest struct {
PolicyAssignmentId string `json:"policy_assignment_id"`
}
Request Object
func (DeletePolicyAssignmentRequest) String ¶
func (o DeletePolicyAssignmentRequest) String() string
type DeletePolicyAssignmentResponse ¶
type DeletePolicyAssignmentResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeletePolicyAssignmentResponse) String ¶
func (o DeletePolicyAssignmentResponse) String() string
type DeleteTrackerConfigRequest ¶
type DeleteTrackerConfigRequest struct { }
Request Object
func (DeleteTrackerConfigRequest) String ¶
func (o DeleteTrackerConfigRequest) String() string
type DeleteTrackerConfigResponse ¶
type DeleteTrackerConfigResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteTrackerConfigResponse) String ¶
func (o DeleteTrackerConfigResponse) String() string
type DisablePolicyAssignmentRequest ¶
type DisablePolicyAssignmentRequest struct {
PolicyAssignmentId string `json:"policy_assignment_id"`
}
Request Object
func (DisablePolicyAssignmentRequest) String ¶
func (o DisablePolicyAssignmentRequest) String() string
type DisablePolicyAssignmentResponse ¶
type DisablePolicyAssignmentResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DisablePolicyAssignmentResponse) String ¶
func (o DisablePolicyAssignmentResponse) String() string
type EnablePolicyAssignmentRequest ¶
type EnablePolicyAssignmentRequest struct {
PolicyAssignmentId string `json:"policy_assignment_id"`
}
Request Object
func (EnablePolicyAssignmentRequest) String ¶
func (o EnablePolicyAssignmentRequest) String() string
type EnablePolicyAssignmentResponse ¶
type EnablePolicyAssignmentResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (EnablePolicyAssignmentResponse) String ¶
func (o EnablePolicyAssignmentResponse) String() 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 ¶
func (o ListBuiltInPolicyDefinitionsRequest) String() 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 ¶
func (o ListBuiltInPolicyDefinitionsResponse) String() string
type ListPolicyAssignmentsRequest ¶
type ListPolicyAssignmentsRequest struct { }
Request Object
func (ListPolicyAssignmentsRequest) String ¶
func (o ListPolicyAssignmentsRequest) String() 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 ¶
func (o ListPolicyAssignmentsResponse) String() 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 ¶
func (o ListPolicyStatesByAssignmentIdRequest) String() 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 ¶
func (o ListPolicyStatesByAssignmentIdResponse) String() 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 ¶
func (o ListPolicyStatesByDomainIdRequest) String() 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 ¶
func (o ListPolicyStatesByDomainIdResponse) String() 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 ¶
func (o ListPolicyStatesByResourceIdRequest) String() 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 ¶
func (o ListPolicyStatesByResourceIdResponse) String() 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"` }
分页对象
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 ¶
func (o PolicyAssignmentRequestBody) String() 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 PolicyParameterDefinitionTypeEnum ¶
type PolicyParameterDefinitionTypeEnum struct { ARRAY PolicyParameterDefinitionType BOOLEAN PolicyParameterDefinitionType INTEGER PolicyParameterDefinitionType FLOAT PolicyParameterDefinitionType STRING PolicyParameterDefinitionType DATE_TIME PolicyParameterDefinitionType }
func GetPolicyParameterDefinitionTypeEnum ¶
func GetPolicyParameterDefinitionTypeEnum() PolicyParameterDefinitionTypeEnum
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"` }
区域
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 ¶
func (o RunEvaluationByPolicyAssignmentIdRequest) String() string
type RunEvaluationByPolicyAssignmentIdResponse ¶
type RunEvaluationByPolicyAssignmentIdResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (RunEvaluationByPolicyAssignmentIdResponse) String ¶
func (o RunEvaluationByPolicyAssignmentIdResponse) 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 { PolicyDefinitionId string `json:"policy_definition_id"` XLanguage *string `json:"X-Language,omitempty"` }
Request Object
func (ShowBuiltInPolicyDefinitionRequest) String ¶
func (o ShowBuiltInPolicyDefinitionRequest) String() 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 ¶
func (o ShowBuiltInPolicyDefinitionResponse) String() string
type ShowEvaluationStateByAssignmentIdRequest ¶
type ShowEvaluationStateByAssignmentIdRequest struct {
PolicyAssignmentId string `json:"policy_assignment_id"`
}
Request Object
func (ShowEvaluationStateByAssignmentIdRequest) String ¶
func (o ShowEvaluationStateByAssignmentIdRequest) String() 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 ¶
func (o ShowEvaluationStateByAssignmentIdResponse) String() string
type ShowPolicyAssignmentRequest ¶
type ShowPolicyAssignmentRequest struct {
PolicyAssignmentId string `json:"policy_assignment_id"`
}
Request Object
func (ShowPolicyAssignmentRequest) String ¶
func (o ShowPolicyAssignmentRequest) String() 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 ¶
func (o ShowPolicyAssignmentResponse) String() 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 ¶
func (o ShowResourceHistoryRequest) String() string
type ShowResourceHistoryRequestChronologicalOrder ¶
type ShowResourceHistoryRequestChronologicalOrder struct {
// contains filtered or unexported fields
}
func (ShowResourceHistoryRequestChronologicalOrder) MarshalJSON ¶
func (c ShowResourceHistoryRequestChronologicalOrder) MarshalJSON() ([]byte, error)
func (*ShowResourceHistoryRequestChronologicalOrder) UnmarshalJSON ¶
func (c *ShowResourceHistoryRequestChronologicalOrder) UnmarshalJSON(b []byte) error
type ShowResourceHistoryRequestChronologicalOrderEnum ¶
type ShowResourceHistoryRequestChronologicalOrderEnum struct { FORWARD ShowResourceHistoryRequestChronologicalOrder REVERSE ShowResourceHistoryRequestChronologicalOrder }
func GetShowResourceHistoryRequestChronologicalOrderEnum ¶
func GetShowResourceHistoryRequestChronologicalOrderEnum() ShowResourceHistoryRequestChronologicalOrderEnum
type ShowResourceHistoryResponse ¶
type ShowResourceHistoryResponse struct { // 资源历史列表 Items *[]HistoryItem `json:"items,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowResourceHistoryResponse) String ¶
func (o ShowResourceHistoryResponse) String() 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 ¶
func (o ShowResourceRelationsRequest) String() 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 ShowResourceRelationsRequestDirectionEnum ¶
type ShowResourceRelationsRequestDirectionEnum struct { IN ShowResourceRelationsRequestDirection OUT ShowResourceRelationsRequestDirection }
func GetShowResourceRelationsRequestDirectionEnum ¶
func GetShowResourceRelationsRequestDirectionEnum() ShowResourceRelationsRequestDirectionEnum
type ShowResourceRelationsResponse ¶
type ShowResourceRelationsResponse struct { // 资源关系列表 Relations *[]ResourceRelation `json:"relations,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowResourceRelationsResponse) String ¶
func (o ShowResourceRelationsResponse) 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 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 ¶
func (o TrackerObsChannelConfigBody) String() 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 ¶
func (o TrackerSmnChannelConfigBody) String() string
type UpdatePolicyAssignmentRequest ¶
type UpdatePolicyAssignmentRequest struct { PolicyAssignmentId string `json:"policy_assignment_id"` Body *PolicyAssignmentRequestBody `json:"body,omitempty"` }
Request Object
func (UpdatePolicyAssignmentRequest) String ¶
func (o UpdatePolicyAssignmentRequest) String() 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 ¶
func (o UpdatePolicyAssignmentResponse) String() string
Source Files ¶
- model_channel_config_body.go
- model_create_policy_assignments_request.go
- model_create_policy_assignments_response.go
- model_create_tracker_config_request.go
- model_create_tracker_config_response.go
- model_delete_policy_assignment_request.go
- model_delete_policy_assignment_response.go
- model_delete_tracker_config_request.go
- model_delete_tracker_config_response.go
- model_disable_policy_assignment_request.go
- model_disable_policy_assignment_response.go
- model_enable_policy_assignment_request.go
- model_enable_policy_assignment_response.go
- model_history_item.go
- model_list_all_resources_request.go
- model_list_all_resources_response.go
- model_list_built_in_policy_definitions_request.go
- model_list_built_in_policy_definitions_response.go
- model_list_policy_assignments_request.go
- model_list_policy_assignments_response.go
- model_list_policy_states_by_assignment_id_request.go
- model_list_policy_states_by_assignment_id_response.go
- model_list_policy_states_by_domain_id_request.go
- model_list_policy_states_by_domain_id_response.go
- model_list_policy_states_by_resource_id_request.go
- model_list_policy_states_by_resource_id_response.go
- model_list_providers_request.go
- model_list_providers_response.go
- model_list_regions_request.go
- model_list_regions_response.go
- model_list_resources_request.go
- model_list_resources_response.go
- model_page_info.go
- model_policy_assignment.go
- model_policy_assignment_request_body.go
- model_policy_definition.go
- model_policy_filter_definition.go
- model_policy_parameter_definition.go
- model_policy_parameter_value.go
- model_policy_state.go
- model_region.go
- model_resource_entity.go
- model_resource_provider_response.go
- model_resource_relation.go
- model_resource_type_response.go
- model_run_evaluation_by_policy_assignment_id_request.go
- model_run_evaluation_by_policy_assignment_id_response.go
- model_selector_config_body.go
- model_show_built_in_policy_definition_request.go
- model_show_built_in_policy_definition_response.go
- model_show_evaluation_state_by_assignment_id_request.go
- model_show_evaluation_state_by_assignment_id_response.go
- model_show_policy_assignment_request.go
- model_show_policy_assignment_response.go
- model_show_resource_by_id_request.go
- model_show_resource_by_id_response.go
- model_show_resource_history_request.go
- model_show_resource_history_response.go
- model_show_resource_relations_request.go
- model_show_resource_relations_response.go
- model_show_tracker_config_request.go
- model_show_tracker_config_response.go
- model_tracker_config_body.go
- model_tracker_obs_channel_config_body.go
- model_tracker_smn_channel_config_body.go
- model_update_policy_assignment_request.go
- model_update_policy_assignment_response.go