model

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 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 AccountAggregationSource added in v0.1.27

type AccountAggregationSource struct {

	// 帐号列表。
	DomainIds *[]string `json:"domain_ids,omitempty"`
}

聚合数据的源帐号。

func (AccountAggregationSource) String added in v0.1.27

func (o AccountAggregationSource) String() string

type AggregateComplianceDetailRequest added in v0.1.39

type AggregateComplianceDetailRequest struct {

	// 资源聚合器ID
	AggregatorId string `json:"aggregator_id"`

	// 租户ID
	AccountId string `json:"account_id"`

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

	// 合规规则名称
	PolicyAssignmentName string `json:"policy_assignment_name"`

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

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

聚合合规策略详情请求体

func (AggregateComplianceDetailRequest) String added in v0.1.39

type AggregateComplianceDetailRequestComplianceState added in v0.1.39

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

func (AggregateComplianceDetailRequestComplianceState) MarshalJSON added in v0.1.39

func (*AggregateComplianceDetailRequestComplianceState) UnmarshalJSON added in v0.1.39

func (AggregateComplianceDetailRequestComplianceState) Value added in v0.1.39

type AggregateComplianceDetailRequestComplianceStateEnum added in v0.1.39

type AggregateComplianceDetailRequestComplianceStateEnum struct {
	NON_COMPLIANT AggregateComplianceDetailRequestComplianceState
	COMPLIANT     AggregateComplianceDetailRequestComplianceState
}

func GetAggregateComplianceDetailRequestComplianceStateEnum added in v0.1.39

func GetAggregateComplianceDetailRequestComplianceStateEnum() AggregateComplianceDetailRequestComplianceStateEnum

type AggregateDiscoveredResourceCountsRequest added in v0.1.27

type AggregateDiscoveredResourceCountsRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`

	Filter *ResourceCountsFilters `json:"filter,omitempty"`

	// 用于对资源计数进行分组的键(RESOURCE_TYPE | ACCOUNT_ID)。
	GroupByKey string `json:"group_by_key"`
}

查询聚合器中帐号资源计数请求体。

func (AggregateDiscoveredResourceCountsRequest) String added in v0.1.27

type AggregateDiscoveredResourcesRequest added in v0.1.27

type AggregateDiscoveredResourcesRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`

	Filter *ResourcesFilters `json:"filter,omitempty"`

	// 云服务类型。
	Provider *string `json:"provider,omitempty"`

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

查询聚合器中帐号资源计数请求体。

func (AggregateDiscoveredResourcesRequest) String added in v0.1.27

type AggregatePolicyAssignmentDetailRequest added in v0.1.39

type AggregatePolicyAssignmentDetailRequest struct {

	// 资源聚合器ID
	AggregatorId string `json:"aggregator_id"`

	// 租户ID
	AccountId string `json:"account_id"`

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

聚合合规策略详情请求体

func (AggregatePolicyAssignmentDetailRequest) String added in v0.1.39

type AggregatePolicyAssignments added in v0.1.39

type AggregatePolicyAssignments struct {

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

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

	Compliance *Compliance `json:"compliance,omitempty"`

	// 账户ID
	AccountId *string `json:"account_id,omitempty"`
}

聚合合规策略响应列表

func (AggregatePolicyAssignments) String added in v0.1.39

type AggregatePolicyAssignmentsFilters added in v0.1.39

type AggregatePolicyAssignmentsFilters struct {

	// 租户ID
	AccountId *string `json:"account_id,omitempty"`

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

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

AggregatePolicyAssignmentsFilters对象

func (AggregatePolicyAssignmentsFilters) String added in v0.1.39

type AggregatePolicyAssignmentsFiltersComplianceState added in v0.1.39

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

func (AggregatePolicyAssignmentsFiltersComplianceState) MarshalJSON added in v0.1.39

func (*AggregatePolicyAssignmentsFiltersComplianceState) UnmarshalJSON added in v0.1.39

func (AggregatePolicyAssignmentsFiltersComplianceState) Value added in v0.1.39

type AggregatePolicyAssignmentsFiltersComplianceStateEnum added in v0.1.39

type AggregatePolicyAssignmentsFiltersComplianceStateEnum struct {
	NON_COMPLIANT AggregatePolicyAssignmentsFiltersComplianceState
	COMPLIANT     AggregatePolicyAssignmentsFiltersComplianceState
	NOT_STARTED   AggregatePolicyAssignmentsFiltersComplianceState
}

func GetAggregatePolicyAssignmentsFiltersComplianceStateEnum added in v0.1.39

func GetAggregatePolicyAssignmentsFiltersComplianceStateEnum() AggregatePolicyAssignmentsFiltersComplianceStateEnum

type AggregatePolicyAssignmentsRequest added in v0.1.39

type AggregatePolicyAssignmentsRequest struct {

	// 资源聚合器ID
	AggregatorId string `json:"aggregator_id"`

	Filter *AggregatePolicyAssignmentsFilters `json:"filter,omitempty"`
}

聚合合规策略请求体

func (AggregatePolicyAssignmentsRequest) String added in v0.1.39

type AggregatePolicyComplianceSummaryResult added in v0.1.39

type AggregatePolicyComplianceSummaryResult struct {
	ResourceDetails *PolicyComplianceSummaryUnit `json:"resource_details,omitempty"`

	AssignmentDetails *PolicyComplianceSummaryUnit `json:"assignment_details,omitempty"`

	// 分组名称
	GroupName *string `json:"group_name,omitempty"`
}

合规总结结果

func (AggregatePolicyComplianceSummaryResult) String added in v0.1.39

type AggregatePolicyStatesRequest added in v0.1.39

type AggregatePolicyStatesRequest struct {

	// 资源聚合器ID
	AggregatorId string `json:"aggregator_id"`

	// 租户ID
	AccountId *string `json:"account_id,omitempty"`

	// 用于对资源计数进行分组的键(DOMAIN)。
	GroupByKey *string `json:"group_by_key,omitempty"`
}

聚合合规评估结果请求体

func (AggregatePolicyStatesRequest) String added in v0.1.39

type AggregateResourceConfigRequest added in v0.1.27

type AggregateResourceConfigRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`

	ResourceIdentifier *ResourceIdentifier `json:"resource_identifier"`
}

查询源帐号中的特定资源聚合的配置项请求体。

func (AggregateResourceConfigRequest) String added in v0.1.27

type AggregatedSourceStatus added in v0.1.27

type AggregatedSourceStatus struct {

	// 源帐号最近一次聚合失败时返回的错误码。
	LastErrorCode *string `json:"last_error_code,omitempty"`

	// 源帐号最近一次聚合失败时返回的错误消息。
	LastErrorMessage *string `json:"last_error_message,omitempty"`

	// 最近一次更新的状态类型。
	LastUpdateStatus *string `json:"last_update_status,omitempty"`

	// 最近一次更新的时间。
	LastUpdateTime *string `json:"last_update_time,omitempty"`

	// 源帐号ID或组织。
	SourceId *string `json:"source_id,omitempty"`

	// 源帐号类型(ACCOUNT | ORGANIZATION)。
	SourceType *string `json:"source_type,omitempty"`
}

资源聚合器状态响应体。

func (AggregatedSourceStatus) String added in v0.1.27

func (o AggregatedSourceStatus) String() string

type AggregationAuthorizationRequest added in v0.1.27

type AggregationAuthorizationRequest struct {

	// 要授权的资源聚合器的帐号ID。
	AuthorizedAccountId string `json:"authorized_account_id"`
}

资源聚合器授权请求体。

func (AggregationAuthorizationRequest) String added in v0.1.27

type AggregationAuthorizationResp added in v0.1.27

type AggregationAuthorizationResp struct {

	// 资源聚合器授权标识符。
	AggregationAuthorizationUrn *string `json:"aggregation_authorization_urn,omitempty"`

	// 授权的资源聚合器的帐号ID。
	AuthorizedAccountId *string `json:"authorized_account_id,omitempty"`

	// 资源聚合器授权的创建时间。
	CreatedAt *string `json:"created_at,omitempty"`
}

资源聚合器授权。

func (AggregationAuthorizationResp) String added in v0.1.27

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 CollectAllResourcesSummaryRequest added in v0.1.27

type CollectAllResourcesSummaryRequest struct {

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

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

	// 区域ID列表
	RegionId *[]string `json:"region_id,omitempty"`

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

	// 项目ID
	ProjectId *[]string `json:"project_id,omitempty"`

	// 标签列表
	Tags *[]string `json:"tags,omitempty"`
}

Request Object

func (CollectAllResourcesSummaryRequest) String added in v0.1.27

type CollectAllResourcesSummaryResponse added in v0.1.27

type CollectAllResourcesSummaryResponse struct {

	// 资源概要信息列表
	Body           *[]ResourceSummaryResponseItem `json:"body,omitempty"`
	HttpStatusCode int                            `json:"-"`
}

Response Object

func (CollectAllResourcesSummaryResponse) String added in v0.1.27

type Compliance added in v0.1.39

type Compliance struct {

	// 合规规则合规结果
	ComplianceState *string `json:"compliance_state,omitempty"`

	ResourceDetails *PolicyComplianceSummaryUnit `json:"resource_details,omitempty"`
}

合规规则合规性

func (Compliance) String added in v0.1.39

func (o Compliance) String() string

type ConfigurationAggregatorRequest added in v0.1.27

type ConfigurationAggregatorRequest struct {

	// 资源聚合器名称。
	AggregatorName string `json:"aggregator_name"`

	// 聚合器类型(ACCOUNT | ORGANIZATION)。
	AggregatorType string `json:"aggregator_type"`

	AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`
}

资源聚合器请求体。

func (ConfigurationAggregatorRequest) String added in v0.1.27

type ConfigurationAggregatorResp added in v0.1.27

type ConfigurationAggregatorResp struct {

	// 资源聚合器名称。
	AggregatorName *string `json:"aggregator_name,omitempty"`

	// 资源聚合器ID。
	AggregatorId *string `json:"aggregator_id,omitempty"`

	// 资源聚合器标识符。
	AggregatorUrn *string `json:"aggregator_urn,omitempty"`

	// 聚合器类型。
	AggregatorType *string `json:"aggregator_type,omitempty"`

	AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`

	// 资源聚合器更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源聚合器创建时间。
	CreatedAt *string `json:"created_at,omitempty"`
}

资源聚合器响应体。

func (ConfigurationAggregatorResp) String added in v0.1.27

type CountAllResourcesRequest added in v0.1.27

type CountAllResourcesRequest struct {

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

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

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

	// 区域ID列表
	RegionId *[]string `json:"region_id,omitempty"`

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

	// 项目ID
	ProjectId *[]string `json:"project_id,omitempty"`

	// 标签列表
	Tags *[]string `json:"tags,omitempty"`
}

Request Object

func (CountAllResourcesRequest) String added in v0.1.27

func (o CountAllResourcesRequest) String() string

type CountAllResourcesResponse added in v0.1.27

type CountAllResourcesResponse struct {

	// 资源总数
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (CountAllResourcesResponse) String added in v0.1.27

func (o CountAllResourcesResponse) String() string

type CreateAggregationAuthorizationRequest added in v0.1.27

type CreateAggregationAuthorizationRequest struct {
	Body *AggregationAuthorizationRequest `json:"body,omitempty"`
}

Request Object

func (CreateAggregationAuthorizationRequest) String added in v0.1.27

type CreateAggregationAuthorizationResponse added in v0.1.27

type CreateAggregationAuthorizationResponse struct {

	// 资源聚合器授权标识符。
	AggregationAuthorizationUrn *string `json:"aggregation_authorization_urn,omitempty"`

	// 授权的资源聚合器的帐号ID。
	AuthorizedAccountId *string `json:"authorized_account_id,omitempty"`

	// 资源聚合器授权的创建时间。
	CreatedAt      *string `json:"created_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateAggregationAuthorizationResponse) String added in v0.1.27

type CreateConfigurationAggregatorRequest added in v0.1.27

type CreateConfigurationAggregatorRequest struct {
	Body *ConfigurationAggregatorRequest `json:"body,omitempty"`
}

Request Object

func (CreateConfigurationAggregatorRequest) String added in v0.1.27

type CreateConfigurationAggregatorResponse added in v0.1.27

type CreateConfigurationAggregatorResponse struct {

	// 资源聚合器名称。
	AggregatorName *string `json:"aggregator_name,omitempty"`

	// 资源聚合器ID。
	AggregatorId *string `json:"aggregator_id,omitempty"`

	// 资源聚合器标识符。
	AggregatorUrn *string `json:"aggregator_urn,omitempty"`

	// 聚合器类型。
	AggregatorType *string `json:"aggregator_type,omitempty"`

	AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`

	// 资源聚合器更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源聚合器创建时间。
	CreatedAt      *string `json:"created_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateConfigurationAggregatorResponse) String added in v0.1.27

type CreateOrganizationPolicyAssignmentRequest added in v0.1.27

type CreateOrganizationPolicyAssignmentRequest struct {

	// 组织ID。
	OrganizationId string `json:"organization_id"`

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

Request Object

func (CreateOrganizationPolicyAssignmentRequest) String added in v0.1.27

type CreateOrganizationPolicyAssignmentResponse added in v0.1.27

type CreateOrganizationPolicyAssignmentResponse struct {

	// 组织合规规则创建者。
	OwnerId *string `json:"owner_id,omitempty"`

	// 组织ID。
	OrganizationId *string `json:"organization_id,omitempty"`

	// 组织合规规则资源唯一标识。
	OrganizationPolicyAssignmentUrn *string `json:"organization_policy_assignment_urn,omitempty"`

	// 组织合规规则ID。
	OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`

	// 描述信息。
	Description *string `json:"description,omitempty"`

	// 触发周期。
	Period *string `json:"period,omitempty"`

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

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

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

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt      *string `json:"updated_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateOrganizationPolicyAssignmentResponse) String added in v0.1.27

type CreatePolicyAssignmentsRequest

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

Request Object

func (CreatePolicyAssignmentsRequest) String

type CreatePolicyAssignmentsResponse

type CreatePolicyAssignmentsResponse struct {

	// 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
	PolicyAssignmentType *CreatePolicyAssignmentsResponsePolicyAssignmentType `json:"policy_assignment_type,omitempty"`

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

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

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

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

	// 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
	Period *string `json:"period,omitempty"`

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

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

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

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

	CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`

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

Response Object

func (CreatePolicyAssignmentsResponse) String

type CreatePolicyAssignmentsResponsePolicyAssignmentType added in v0.1.13

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

func (CreatePolicyAssignmentsResponsePolicyAssignmentType) MarshalJSON added in v0.1.13

func (*CreatePolicyAssignmentsResponsePolicyAssignmentType) UnmarshalJSON added in v0.1.13

func (CreatePolicyAssignmentsResponsePolicyAssignmentType) Value added in v0.1.13

type CreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum added in v0.1.13

type CreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum struct {
	BUILTIN CreatePolicyAssignmentsResponsePolicyAssignmentType
	CUSTOM  CreatePolicyAssignmentsResponsePolicyAssignmentType
}

func GetCreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum added in v0.1.13

func GetCreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum() CreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum

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 CustomPolicy added in v0.1.13

type CustomPolicy struct {

	// 自定义函数的urn
	FunctionUrn string `json:"function_urn"`

	// 自定义合规规则调用function方式
	AuthType CustomPolicyAuthType `json:"auth_type"`

	// method参数值,method为agency时,为{\"agency_name\":rms_fg_agency}, rms_fg_agency为授权RMS调用FunctionGraph接口的委托名称
	AuthValue map[string]interface{} `json:"auth_value,omitempty"`
}

自定义合规规则

func (CustomPolicy) String added in v0.1.13

func (o CustomPolicy) String() string

type CustomPolicyAuthType added in v0.1.13

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

func (CustomPolicyAuthType) MarshalJSON added in v0.1.13

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

func (*CustomPolicyAuthType) UnmarshalJSON added in v0.1.13

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

func (CustomPolicyAuthType) Value added in v0.1.13

func (c CustomPolicyAuthType) Value() string

type CustomPolicyAuthTypeEnum added in v0.1.13

type CustomPolicyAuthTypeEnum struct {
	AGENCY CustomPolicyAuthType
}

func GetCustomPolicyAuthTypeEnum added in v0.1.13

func GetCustomPolicyAuthTypeEnum() CustomPolicyAuthTypeEnum

type DeleteAggregationAuthorizationRequest added in v0.1.27

type DeleteAggregationAuthorizationRequest struct {

	// 授权的资源聚合器的帐号ID。
	AuthorizedAccountId string `json:"authorized_account_id"`
}

Request Object

func (DeleteAggregationAuthorizationRequest) String added in v0.1.27

type DeleteAggregationAuthorizationResponse added in v0.1.27

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

Response Object

func (DeleteAggregationAuthorizationResponse) String added in v0.1.27

type DeleteConfigurationAggregatorRequest added in v0.1.27

type DeleteConfigurationAggregatorRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`
}

Request Object

func (DeleteConfigurationAggregatorRequest) String added in v0.1.27

type DeleteConfigurationAggregatorResponse added in v0.1.27

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

Response Object

func (DeleteConfigurationAggregatorResponse) String added in v0.1.27

type DeleteOrganizationPolicyAssignmentRequest added in v0.1.27

type DeleteOrganizationPolicyAssignmentRequest struct {

	// 组织ID。
	OrganizationId string `json:"organization_id"`

	// 组织合规规则ID。
	OrganizationPolicyAssignmentId string `json:"organization_policy_assignment_id"`
}

Request Object

func (DeleteOrganizationPolicyAssignmentRequest) String added in v0.1.27

type DeleteOrganizationPolicyAssignmentResponse added in v0.1.27

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

Response Object

func (DeleteOrganizationPolicyAssignmentResponse) String added in v0.1.27

type DeletePendingAggregationRequestRequest added in v0.1.27

type DeletePendingAggregationRequestRequest struct {

	// 请求聚合数据的帐号ID。
	RequesterAccountId string `json:"requester_account_id"`
}

Request Object

func (DeletePendingAggregationRequestRequest) String added in v0.1.27

type DeletePendingAggregationRequestResponse added in v0.1.27

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

Response Object

func (DeletePendingAggregationRequestResponse) String added in v0.1.27

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 GroupedResourceCount added in v0.1.27

type GroupedResourceCount struct {

	// 分组名称。
	GroupName *string `json:"group_name,omitempty"`

	// 资源数量。
	ResourceCount *int32 `json:"resource_count,omitempty"`
}

func (GroupedResourceCount) String added in v0.1.27

func (o GroupedResourceCount) 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 ListAggregateComplianceByPolicyAssignmentRequest added in v0.1.39

type ListAggregateComplianceByPolicyAssignmentRequest struct {

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

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

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

Request Object

func (ListAggregateComplianceByPolicyAssignmentRequest) String added in v0.1.39

type ListAggregateComplianceByPolicyAssignmentResponse added in v0.1.39

type ListAggregateComplianceByPolicyAssignmentResponse struct {

	// AggregatePolicyAssignment对象的列表。
	AggregatePolicyAssignments *[]AggregatePolicyAssignments `json:"aggregate_policy_assignments,omitempty"`

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

Response Object

func (ListAggregateComplianceByPolicyAssignmentResponse) String added in v0.1.39

type ListAggregateDiscoveredResourcesRequest added in v0.1.27

type ListAggregateDiscoveredResourcesRequest struct {

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

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

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

Request Object

func (ListAggregateDiscoveredResourcesRequest) String added in v0.1.27

type ListAggregateDiscoveredResourcesResponse added in v0.1.27

type ListAggregateDiscoveredResourcesResponse struct {

	// 资源信息列表。
	ResourceIdentifiers *[]ResourceIdentifier `json:"resource_identifiers,omitempty"`

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

Response Object

func (ListAggregateDiscoveredResourcesResponse) String added in v0.1.27

type ListAggregationAuthorizationsRequest added in v0.1.27

type ListAggregationAuthorizationsRequest struct {

	// 授权的帐号ID。
	AccountId *string `json:"account_id,omitempty"`

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

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

Request Object

func (ListAggregationAuthorizationsRequest) String added in v0.1.27

type ListAggregationAuthorizationsResponse added in v0.1.27

type ListAggregationAuthorizationsResponse struct {

	// 授权过的资源聚合器帐号列表。
	AggregationAuthorizations *[]AggregationAuthorizationResp `json:"aggregation_authorizations,omitempty"`

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

Response Object

func (ListAggregationAuthorizationsResponse) String added in v0.1.27

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"`

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

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

	// 标签列表
	Tags *[]string `json:"tags,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 ListAllTagsRequest added in v0.1.27

type ListAllTagsRequest struct {

	// 标签键名
	Key *string `json:"key,omitempty"`

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

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

Request Object

func (ListAllTagsRequest) String added in v0.1.27

func (o ListAllTagsRequest) String() string

type ListAllTagsResponse added in v0.1.27

type ListAllTagsResponse struct {

	// 标签列表
	Tags *[]TagDetail `json:"tags,omitempty"`

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

Response Object

func (ListAllTagsResponse) String added in v0.1.27

func (o ListAllTagsResponse) 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 ListConfigurationAggregatorsRequest added in v0.1.27

type ListConfigurationAggregatorsRequest struct {

	// 资源聚合器名称。
	AggregatorName *string `json:"aggregator_name,omitempty"`

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

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

Request Object

func (ListConfigurationAggregatorsRequest) String added in v0.1.27

type ListConfigurationAggregatorsResponse added in v0.1.27

type ListConfigurationAggregatorsResponse struct {

	// 资源聚合器列表。
	ConfigurationAggregators *[]ConfigurationAggregatorResp `json:"configuration_aggregators,omitempty"`

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

Response Object

func (ListConfigurationAggregatorsResponse) String added in v0.1.27

type ListOrganizationPolicyAssignmentsRequest added in v0.1.27

type ListOrganizationPolicyAssignmentsRequest struct {

	// 组织ID。
	OrganizationId string `json:"organization_id"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`

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

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

Request Object

func (ListOrganizationPolicyAssignmentsRequest) String added in v0.1.27

type ListOrganizationPolicyAssignmentsResponse added in v0.1.27

type ListOrganizationPolicyAssignmentsResponse struct {

	// 组织合规规则列表。
	OrganizationPolicyAssignments *[]OrganizationPolicyAssignmentResponse `json:"organization_policy_assignments,omitempty"`

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

Response Object

func (ListOrganizationPolicyAssignmentsResponse) String added in v0.1.27

type ListPendingAggregationRequestsRequest added in v0.1.27

type ListPendingAggregationRequestsRequest struct {

	// 授权的帐号ID。
	AccountId *string `json:"account_id,omitempty"`

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

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

Request Object

func (ListPendingAggregationRequestsRequest) String added in v0.1.27

type ListPendingAggregationRequestsResponse added in v0.1.27

type ListPendingAggregationRequestsResponse struct {

	// 挂起的聚合请求列表。
	PendingAggregationRequests *[]PendingAggregationRequest `json:"pending_aggregation_requests,omitempty"`

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

Response Object

func (ListPendingAggregationRequestsResponse) String added in v0.1.27

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"`

	// 资源是否默认收集
	Track *ListProvidersRequestTrack `json:"track,omitempty"`

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

Request Object

func (ListProvidersRequest) String

func (o ListProvidersRequest) String() string

type ListProvidersRequestTrack added in v0.1.27

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

func (ListProvidersRequestTrack) MarshalJSON added in v0.1.27

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

func (*ListProvidersRequestTrack) UnmarshalJSON added in v0.1.27

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

func (ListProvidersRequestTrack) Value added in v0.1.27

type ListProvidersRequestTrackEnum added in v0.1.27

type ListProvidersRequestTrackEnum struct {
	TRACKED   ListProvidersRequestTrack
	UNTRACKED ListProvidersRequestTrack
}

func GetListProvidersRequestTrackEnum added in v0.1.27

func GetListProvidersRequestTrackEnum() ListProvidersRequestTrackEnum

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 ManagedPolicyAssignmentMetadata added in v0.1.27

type ManagedPolicyAssignmentMetadata struct {

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

	// 触发周期。
	Period *ManagedPolicyAssignmentMetadataPeriod `json:"period,omitempty"`

	// 输入参数。
	Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`

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

	// 预定义策略标识符。
	PolicyDefinitionId string `json:"policy_definition_id"`
}

托管规则元数据。

func (ManagedPolicyAssignmentMetadata) String added in v0.1.27

type ManagedPolicyAssignmentMetadataPeriod added in v0.1.27

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

func (ManagedPolicyAssignmentMetadataPeriod) MarshalJSON added in v0.1.27

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

func (*ManagedPolicyAssignmentMetadataPeriod) UnmarshalJSON added in v0.1.27

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

func (ManagedPolicyAssignmentMetadataPeriod) Value added in v0.1.27

type ManagedPolicyAssignmentMetadataPeriodEnum added in v0.1.27

type ManagedPolicyAssignmentMetadataPeriodEnum struct {
	ONE_HOUR          ManagedPolicyAssignmentMetadataPeriod
	THREE_HOURS       ManagedPolicyAssignmentMetadataPeriod
	SIX_HOURS         ManagedPolicyAssignmentMetadataPeriod
	TWELVE_HOURS      ManagedPolicyAssignmentMetadataPeriod
	TWENTY_FOUR_HOURS ManagedPolicyAssignmentMetadataPeriod
}

func GetManagedPolicyAssignmentMetadataPeriodEnum added in v0.1.27

func GetManagedPolicyAssignmentMetadataPeriodEnum() ManagedPolicyAssignmentMetadataPeriodEnum

type OrganizationPolicyAssignmentDetailedStatusResponse added in v0.1.27

type OrganizationPolicyAssignmentDetailedStatusResponse struct {

	// 帐号ID。
	DomainId *string `json:"domain_id,omitempty"`

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

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

	// 成员帐号中配置规则的部署状态。
	MemberAccountPolicyAssignmentStatus *string `json:"member_account_policy_assignment_status,omitempty"`

	// 当创建或更新合规规则失败时错误码。
	ErrorCode *string `json:"error_code,omitempty"`

	// 当创建或更新合规规则失败时错误信息。
	ErrorMessage *string `json:"error_message,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`
}

组织合规规则部署详细状态。

func (OrganizationPolicyAssignmentDetailedStatusResponse) String added in v0.1.27

type OrganizationPolicyAssignmentRequest added in v0.1.27

type OrganizationPolicyAssignmentRequest struct {

	// 需要排除配置规则的帐号。
	ExcludedAccounts *[]string `json:"excluded_accounts,omitempty"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName string `json:"organization_policy_assignment_name"`

	ManagedPolicyAssignmentMetadata *ManagedPolicyAssignmentMetadata `json:"managed_policy_assignment_metadata,omitempty"`
}

组织合规规则请求体。

func (OrganizationPolicyAssignmentRequest) String added in v0.1.27

type OrganizationPolicyAssignmentResponse added in v0.1.27

type OrganizationPolicyAssignmentResponse struct {

	// 组织合规规则创建者。
	OwnerId *string `json:"owner_id,omitempty"`

	// 组织ID。
	OrganizationId *string `json:"organization_id,omitempty"`

	// 组织合规规则资源唯一标识。
	OrganizationPolicyAssignmentUrn *string `json:"organization_policy_assignment_urn,omitempty"`

	// 组织合规规则ID。
	OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`

	// 描述信息。
	Description *string `json:"description,omitempty"`

	// 触发周期。
	Period *string `json:"period,omitempty"`

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

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

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

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`
}

组织合规规则部署返回。

func (OrganizationPolicyAssignmentResponse) String added in v0.1.27

type OrganizationPolicyAssignmentStatusResponse added in v0.1.27

type OrganizationPolicyAssignmentStatusResponse struct {

	// 组织合规规则ID。
	OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`

	// 组织合规规则部署状态。
	OrganizationPolicyAssignmentStatus *string `json:"organization_policy_assignment_status,omitempty"`

	// 当创建或更新组织合规规则失败时错误码。
	ErrorCode *string `json:"error_code,omitempty"`

	// 当创建或更新组织合规规则失败时错误信息。
	ErrorMessage *string `json:"error_message,omitempty"`

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`
}

组织合规规则部署状态。

func (OrganizationPolicyAssignmentStatusResponse) String added in v0.1.27

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 PendingAggregationRequest added in v0.1.27

type PendingAggregationRequest struct {

	// 请求聚合数据的帐号ID。
	RequesterAccountId *string `json:"requester_account_id,omitempty"`
}

PendingAggregationRequest对象。

func (PendingAggregationRequest) String added in v0.1.27

func (o PendingAggregationRequest) String() string

type PolicyAssignment

type PolicyAssignment struct {

	// 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
	PolicyAssignmentType *PolicyAssignmentPolicyAssignmentType `json:"policy_assignment_type,omitempty"`

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

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

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

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

	// 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
	Period *string `json:"period,omitempty"`

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

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

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

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

	CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`

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

规则

func (PolicyAssignment) String

func (o PolicyAssignment) String() string

type PolicyAssignmentPolicyAssignmentType added in v0.1.13

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

func (PolicyAssignmentPolicyAssignmentType) MarshalJSON added in v0.1.13

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

func (*PolicyAssignmentPolicyAssignmentType) UnmarshalJSON added in v0.1.13

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

func (PolicyAssignmentPolicyAssignmentType) Value added in v0.1.13

type PolicyAssignmentPolicyAssignmentTypeEnum added in v0.1.13

type PolicyAssignmentPolicyAssignmentTypeEnum struct {
	BUILTIN PolicyAssignmentPolicyAssignmentType
	CUSTOM  PolicyAssignmentPolicyAssignmentType
}

func GetPolicyAssignmentPolicyAssignmentTypeEnum added in v0.1.13

func GetPolicyAssignmentPolicyAssignmentTypeEnum() PolicyAssignmentPolicyAssignmentTypeEnum

type PolicyAssignmentRequestBody

type PolicyAssignmentRequestBody struct {

	// 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
	PolicyAssignmentType *PolicyAssignmentRequestBodyPolicyAssignmentType `json:"policy_assignment_type,omitempty"`

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

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

	// 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
	Period *PolicyAssignmentRequestBodyPeriod `json:"period,omitempty"`

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

	CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`

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

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

规则请求体

func (PolicyAssignmentRequestBody) String

type PolicyAssignmentRequestBodyPeriod added in v0.1.1

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

func (PolicyAssignmentRequestBodyPeriod) MarshalJSON added in v0.1.1

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

func (*PolicyAssignmentRequestBodyPeriod) UnmarshalJSON added in v0.1.1

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

func (PolicyAssignmentRequestBodyPeriod) Value added in v0.1.1

type PolicyAssignmentRequestBodyPeriodEnum added in v0.1.1

type PolicyAssignmentRequestBodyPeriodEnum struct {
	ONE_HOUR          PolicyAssignmentRequestBodyPeriod
	THREE_HOURS       PolicyAssignmentRequestBodyPeriod
	SIX_HOURS         PolicyAssignmentRequestBodyPeriod
	TWELVE_HOURS      PolicyAssignmentRequestBodyPeriod
	TWENTY_FOUR_HOURS PolicyAssignmentRequestBodyPeriod
}

func GetPolicyAssignmentRequestBodyPeriodEnum added in v0.1.1

func GetPolicyAssignmentRequestBodyPeriodEnum() PolicyAssignmentRequestBodyPeriodEnum

type PolicyAssignmentRequestBodyPolicyAssignmentType added in v0.1.13

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

func (PolicyAssignmentRequestBodyPolicyAssignmentType) MarshalJSON added in v0.1.13

func (*PolicyAssignmentRequestBodyPolicyAssignmentType) UnmarshalJSON added in v0.1.13

func (PolicyAssignmentRequestBodyPolicyAssignmentType) Value added in v0.1.13

type PolicyAssignmentRequestBodyPolicyAssignmentTypeEnum added in v0.1.13

type PolicyAssignmentRequestBodyPolicyAssignmentTypeEnum struct {
	BUILTIN PolicyAssignmentRequestBodyPolicyAssignmentType
	CUSTOM  PolicyAssignmentRequestBodyPolicyAssignmentType
}

func GetPolicyAssignmentRequestBodyPolicyAssignmentTypeEnum added in v0.1.13

func GetPolicyAssignmentRequestBodyPolicyAssignmentTypeEnum() PolicyAssignmentRequestBodyPolicyAssignmentTypeEnum

type PolicyComplianceSummaryUnit added in v0.1.39

type PolicyComplianceSummaryUnit struct {

	// 合规数量
	CompliantCount *int32 `json:"compliant_count,omitempty"`

	// 不合规数量
	NonCompliantCount *int32 `json:"non_compliant_count,omitempty"`
}

规则总结详情

func (PolicyComplianceSummaryUnit) String added in v0.1.39

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"`

	// 触发器类型,可选值:resource, period
	TriggerType *string `json:"trigger_type,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 PolicyResource added in v0.1.13

type PolicyResource struct {

	// 资源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"`

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

	// 资源所属用户ID
	DomainId *string `json:"domain_id,omitempty"`
}

资源

func (PolicyResource) String added in v0.1.13

func (o PolicyResource) 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"`

	// 触发器类型,可选值:resource, period
	TriggerType *string `json:"trigger_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 PolicyStateRequestBody added in v0.1.13

type PolicyStateRequestBody struct {
	PolicyResource *PolicyResource `json:"policy_resource"`

	// 触发器类型
	TriggerType PolicyStateRequestBodyTriggerType `json:"trigger_type"`

	// 合规状态
	ComplianceState PolicyStateRequestBodyComplianceState `json:"compliance_state"`

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

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

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

	// 评估校验码
	EvaluationHash string `json:"evaluation_hash"`
}

合规评估结果

func (PolicyStateRequestBody) String added in v0.1.13

func (o PolicyStateRequestBody) String() string

type PolicyStateRequestBodyComplianceState added in v0.1.13

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

func (PolicyStateRequestBodyComplianceState) MarshalJSON added in v0.1.13

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

func (*PolicyStateRequestBodyComplianceState) UnmarshalJSON added in v0.1.13

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

func (PolicyStateRequestBodyComplianceState) Value added in v0.1.13

type PolicyStateRequestBodyComplianceStateEnum added in v0.1.13

type PolicyStateRequestBodyComplianceStateEnum struct {
	NON_COMPLIANT PolicyStateRequestBodyComplianceState
	COMPLIANT     PolicyStateRequestBodyComplianceState
}

func GetPolicyStateRequestBodyComplianceStateEnum added in v0.1.13

func GetPolicyStateRequestBodyComplianceStateEnum() PolicyStateRequestBodyComplianceStateEnum

type PolicyStateRequestBodyTriggerType added in v0.1.13

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

func (PolicyStateRequestBodyTriggerType) MarshalJSON added in v0.1.13

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

func (*PolicyStateRequestBodyTriggerType) UnmarshalJSON added in v0.1.13

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

func (PolicyStateRequestBodyTriggerType) Value added in v0.1.13

type PolicyStateRequestBodyTriggerTypeEnum added in v0.1.13

type PolicyStateRequestBodyTriggerTypeEnum struct {
	RESOURCE PolicyStateRequestBodyTriggerType
	PERIOD   PolicyStateRequestBodyTriggerType
}

func GetPolicyStateRequestBodyTriggerTypeEnum added in v0.1.13

func GetPolicyStateRequestBodyTriggerTypeEnum() PolicyStateRequestBodyTriggerTypeEnum

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 ResourceCountsFilters added in v0.1.27

type ResourceCountsFilters struct {

	// 帐号ID。
	AccountId *string `json:"account_id,omitempty"`

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

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

资源计数过滤器。

func (ResourceCountsFilters) String added in v0.1.27

func (o ResourceCountsFilters) 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 ResourceIdentifier added in v0.1.27

type ResourceIdentifier struct {

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

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

	// 云服务类型。
	Provider string `json:"provider"`

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

	// 源帐号ID。
	SourceAccountId string `json:"source_account_id"`

	// 资源所属区域。
	RegionId string `json:"region_id"`
}

func (ResourceIdentifier) String added in v0.1.27

func (o ResourceIdentifier) 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 ResourceSummaryResponseItem added in v0.1.27

type ResourceSummaryResponseItem struct {

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

	// 资源类型列表
	Types *[]ResourceSummaryResponseItemTypes `json:"types,omitempty"`
}

资源概要信息

func (ResourceSummaryResponseItem) String added in v0.1.27

type ResourceSummaryResponseItemRegions added in v0.1.27

type ResourceSummaryResponseItemRegions struct {

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

	// 该资源类型在当前区域的数量
	Count *int64 `json:"count,omitempty"`
}

区域概要

func (ResourceSummaryResponseItemRegions) String added in v0.1.27

type ResourceSummaryResponseItemTypes added in v0.1.27

type ResourceSummaryResponseItemTypes struct {

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

	// 区域列表
	Regions *[]ResourceSummaryResponseItemRegions `json:"regions,omitempty"`
}

资源类型

func (ResourceSummaryResponseItemTypes) String added in v0.1.27

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"`

	// 资源是否默认收集,\"tracked\"表示默认收集,\"untracked\"表示默认不收集
	Track *string `json:"track,omitempty"`
}

资源类型详情

func (ResourceTypeResponse) String

func (o ResourceTypeResponse) String() string

type ResourcesFilters added in v0.1.27

type ResourcesFilters struct {

	// 帐号ID。
	AccountId *string `json:"account_id,omitempty"`

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

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

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

资源计数过滤器。

func (ResourcesFilters) String added in v0.1.27

func (o ResourcesFilters) String() string

type RunAggregateResourceQueryRequest added in v0.1.27

type RunAggregateResourceQueryRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`

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

Request Object

func (RunAggregateResourceQueryRequest) String added in v0.1.27

type RunAggregateResourceQueryResponse added in v0.1.27

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

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

Response Object

func (RunAggregateResourceQueryResponse) String added in v0.1.27

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 ShowAggregateComplianceDetailsByPolicyAssignmentRequest added in v0.1.39

type ShowAggregateComplianceDetailsByPolicyAssignmentRequest struct {

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

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

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

Request Object

func (ShowAggregateComplianceDetailsByPolicyAssignmentRequest) String added in v0.1.39

type ShowAggregateComplianceDetailsByPolicyAssignmentResponse added in v0.1.39

type ShowAggregateComplianceDetailsByPolicyAssignmentResponse struct {

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

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

Response Object

func (ShowAggregateComplianceDetailsByPolicyAssignmentResponse) String added in v0.1.39

type ShowAggregateDiscoveredResourceCountsRequest added in v0.1.27

type ShowAggregateDiscoveredResourceCountsRequest struct {
	Body *AggregateDiscoveredResourceCountsRequest `json:"body,omitempty"`
}

Request Object

func (ShowAggregateDiscoveredResourceCountsRequest) String added in v0.1.27

type ShowAggregateDiscoveredResourceCountsResponse added in v0.1.27

type ShowAggregateDiscoveredResourceCountsResponse struct {

	// 资源计数进行分组的键。
	GroupByKey *string `json:"group_by_key,omitempty"`

	// 分组资源计数的列表。
	GroupedResourceCounts *[]GroupedResourceCount `json:"grouped_resource_counts,omitempty"`

	// 指定过滤器的资源聚合器中存在的资源总数。
	TotalDiscoveredResources *int32 `json:"total_discovered_resources,omitempty"`
	HttpStatusCode           int    `json:"-"`
}

Response Object

func (ShowAggregateDiscoveredResourceCountsResponse) String added in v0.1.27

type ShowAggregatePolicyAssignmentDetailRequest added in v0.1.39

type ShowAggregatePolicyAssignmentDetailRequest struct {
	Body *AggregatePolicyAssignmentDetailRequest `json:"body,omitempty"`
}

Request Object

func (ShowAggregatePolicyAssignmentDetailRequest) String added in v0.1.39

type ShowAggregatePolicyAssignmentDetailResponse added in v0.1.39

type ShowAggregatePolicyAssignmentDetailResponse struct {

	// 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
	PolicyAssignmentType *ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentType `json:"policy_assignment_type,omitempty"`

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

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

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

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

	// 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
	Period *string `json:"period,omitempty"`

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

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

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

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

	CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`

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

Response Object

func (ShowAggregatePolicyAssignmentDetailResponse) String added in v0.1.39

type ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentType added in v0.1.39

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

func (ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentType) MarshalJSON added in v0.1.39

func (*ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentType) UnmarshalJSON added in v0.1.39

func (ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentType) Value added in v0.1.39

type ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentTypeEnum added in v0.1.39

type ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentTypeEnum struct {
	BUILTIN ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentType
	CUSTOM  ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentType
}

func GetShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentTypeEnum added in v0.1.39

func GetShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentTypeEnum() ShowAggregatePolicyAssignmentDetailResponsePolicyAssignmentTypeEnum

type ShowAggregatePolicyStateComplianceSummaryRequest added in v0.1.39

type ShowAggregatePolicyStateComplianceSummaryRequest struct {
	Body *AggregatePolicyStatesRequest `json:"body,omitempty"`
}

Request Object

func (ShowAggregatePolicyStateComplianceSummaryRequest) String added in v0.1.39

type ShowAggregatePolicyStateComplianceSummaryResponse added in v0.1.39

type ShowAggregatePolicyStateComplianceSummaryResponse struct {

	// 合规总结结果列表
	Results        *[]AggregatePolicyComplianceSummaryResult `json:"results,omitempty"`
	HttpStatusCode int                                       `json:"-"`
}

Response Object

func (ShowAggregatePolicyStateComplianceSummaryResponse) String added in v0.1.39

type ShowAggregateResourceConfigRequest added in v0.1.27

type ShowAggregateResourceConfigRequest struct {
	Body *AggregateResourceConfigRequest `json:"body,omitempty"`
}

Request Object

func (ShowAggregateResourceConfigRequest) String added in v0.1.27

type ShowAggregateResourceConfigResponse added in v0.1.27

type ShowAggregateResourceConfigResponse struct {

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

	// 聚合器ID。
	AggregatorId *string `json:"aggregator_id,omitempty"`

	// 聚合器帐号。
	AggregatorDomainId *string `json:"aggregator_domain_id,omitempty"`

	// 聚合资源所属帐号的ID。
	DomainId *string `json:"domain_id,omitempty"`

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

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

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

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

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

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

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

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

	// 资源标签。
	Tags map[string]string `json:"tags,omitempty"`

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

Response Object

func (ShowAggregateResourceConfigResponse) String added in v0.1.27

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"`

	// 触发器类型,可选值:resource, period
	TriggerType *string `json:"trigger_type,omitempty"`

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

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

Response Object

func (ShowBuiltInPolicyDefinitionResponse) String

type ShowConfigurationAggregatorRequest added in v0.1.27

type ShowConfigurationAggregatorRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`
}

Request Object

func (ShowConfigurationAggregatorRequest) String added in v0.1.27

type ShowConfigurationAggregatorResponse added in v0.1.27

type ShowConfigurationAggregatorResponse struct {

	// 资源聚合器名称。
	AggregatorName *string `json:"aggregator_name,omitempty"`

	// 资源聚合器ID。
	AggregatorId *string `json:"aggregator_id,omitempty"`

	// 资源聚合器标识符。
	AggregatorUrn *string `json:"aggregator_urn,omitempty"`

	// 聚合器类型。
	AggregatorType *string `json:"aggregator_type,omitempty"`

	AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`

	// 资源聚合器更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源聚合器创建时间。
	CreatedAt      *string `json:"created_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowConfigurationAggregatorResponse) String added in v0.1.27

type ShowConfigurationAggregatorSourcesStatusRequest added in v0.1.27

type ShowConfigurationAggregatorSourcesStatusRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`

	// 聚合帐号的状态。
	UpdateStatus *ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus `json:"update_status,omitempty"`

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

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

Request Object

func (ShowConfigurationAggregatorSourcesStatusRequest) String added in v0.1.27

type ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus added in v0.1.27

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

func (ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus) MarshalJSON added in v0.1.27

func (*ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus) UnmarshalJSON added in v0.1.27

func (ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus) Value added in v0.1.27

type ShowConfigurationAggregatorSourcesStatusResponse added in v0.1.27

type ShowConfigurationAggregatorSourcesStatusResponse struct {

	// 资源聚合器状态列表。
	AggregatedSourceStatuses *[]AggregatedSourceStatus `json:"aggregated_source_statuses,omitempty"`

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

Response Object

func (ShowConfigurationAggregatorSourcesStatusResponse) String added in v0.1.27

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 ShowOrganizationPolicyAssignmentDetailedStatusRequest added in v0.1.27

type ShowOrganizationPolicyAssignmentDetailedStatusRequest struct {

	// 组织ID。
	OrganizationId string `json:"organization_id"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName string `json:"organization_policy_assignment_name"`

	// 成员帐号规则部署状态,区分大小写。
	Status *ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus `json:"status,omitempty"`

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

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

Request Object

func (ShowOrganizationPolicyAssignmentDetailedStatusRequest) String added in v0.1.27

type ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus added in v0.1.27

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

func (ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus) MarshalJSON added in v0.1.27

func (*ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus) UnmarshalJSON added in v0.1.27

func (ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus) Value added in v0.1.27

type ShowOrganizationPolicyAssignmentDetailedStatusResponse added in v0.1.27

type ShowOrganizationPolicyAssignmentDetailedStatusResponse struct {

	// 组织合规规则部署详细状态结果列表。
	Value *[]OrganizationPolicyAssignmentDetailedStatusResponse `json:"value,omitempty"`

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

Response Object

func (ShowOrganizationPolicyAssignmentDetailedStatusResponse) String added in v0.1.27

type ShowOrganizationPolicyAssignmentRequest added in v0.1.27

type ShowOrganizationPolicyAssignmentRequest struct {

	// 组织ID。
	OrganizationId string `json:"organization_id"`

	// 组织合规规则ID。
	OrganizationPolicyAssignmentId string `json:"organization_policy_assignment_id"`
}

Request Object

func (ShowOrganizationPolicyAssignmentRequest) String added in v0.1.27

type ShowOrganizationPolicyAssignmentResponse added in v0.1.27

type ShowOrganizationPolicyAssignmentResponse struct {

	// 组织合规规则创建者。
	OwnerId *string `json:"owner_id,omitempty"`

	// 组织ID。
	OrganizationId *string `json:"organization_id,omitempty"`

	// 组织合规规则资源唯一标识。
	OrganizationPolicyAssignmentUrn *string `json:"organization_policy_assignment_urn,omitempty"`

	// 组织合规规则ID。
	OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`

	// 排除配置规则的帐号。
	ExcludedAccounts *[]string `json:"excluded_accounts,omitempty"`

	// 描述信息。
	Description *string `json:"description,omitempty"`

	// 触发周期。
	Period *string `json:"period,omitempty"`

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

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

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

	// 创建时间。
	CreatedAt *string `json:"created_at,omitempty"`

	// 更新时间。
	UpdatedAt      *string `json:"updated_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowOrganizationPolicyAssignmentResponse) String added in v0.1.27

type ShowOrganizationPolicyAssignmentStatusesRequest added in v0.1.27

type ShowOrganizationPolicyAssignmentStatusesRequest struct {

	// 组织ID。
	OrganizationId string `json:"organization_id"`

	// 组织合规规则名称。
	OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`

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

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

Request Object

func (ShowOrganizationPolicyAssignmentStatusesRequest) String added in v0.1.27

type ShowOrganizationPolicyAssignmentStatusesResponse added in v0.1.27

type ShowOrganizationPolicyAssignmentStatusesResponse struct {

	// 组织合规规则部署状态结果列表。
	Value *[]OrganizationPolicyAssignmentStatusResponse `json:"value,omitempty"`

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

Response Object

func (ShowOrganizationPolicyAssignmentStatusesResponse) String added in v0.1.27

type ShowPolicyAssignmentRequest

type ShowPolicyAssignmentRequest struct {

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

Request Object

func (ShowPolicyAssignmentRequest) String

type ShowPolicyAssignmentResponse

type ShowPolicyAssignmentResponse struct {

	// 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
	PolicyAssignmentType *ShowPolicyAssignmentResponsePolicyAssignmentType `json:"policy_assignment_type,omitempty"`

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

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

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

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

	// 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
	Period *string `json:"period,omitempty"`

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

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

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

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

	CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`

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

Response Object

func (ShowPolicyAssignmentResponse) String

type ShowPolicyAssignmentResponsePolicyAssignmentType added in v0.1.13

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

func (ShowPolicyAssignmentResponsePolicyAssignmentType) MarshalJSON added in v0.1.13

func (*ShowPolicyAssignmentResponsePolicyAssignmentType) UnmarshalJSON added in v0.1.13

func (ShowPolicyAssignmentResponsePolicyAssignmentType) Value added in v0.1.13

type ShowPolicyAssignmentResponsePolicyAssignmentTypeEnum added in v0.1.13

type ShowPolicyAssignmentResponsePolicyAssignmentTypeEnum struct {
	BUILTIN ShowPolicyAssignmentResponsePolicyAssignmentType
	CUSTOM  ShowPolicyAssignmentResponsePolicyAssignmentType
}

func GetShowPolicyAssignmentResponsePolicyAssignmentTypeEnum added in v0.1.13

func GetShowPolicyAssignmentResponsePolicyAssignmentTypeEnum() ShowPolicyAssignmentResponsePolicyAssignmentTypeEnum

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 ShowResourceDetailRequest added in v0.1.27

type ShowResourceDetailRequest struct {

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

Request Object

func (ShowResourceDetailRequest) String added in v0.1.27

func (o ShowResourceDetailRequest) String() string

type ShowResourceDetailResponse added in v0.1.27

type ShowResourceDetailResponse 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 (ShowResourceDetailResponse) String added in v0.1.27

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 ShowResourceRelationsDetailRequest added in v0.1.27

type ShowResourceRelationsDetailRequest struct {

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

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

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

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

Request Object

func (ShowResourceRelationsDetailRequest) String added in v0.1.27

type ShowResourceRelationsDetailRequestDirection added in v0.1.27

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

func (ShowResourceRelationsDetailRequestDirection) MarshalJSON added in v0.1.27

func (*ShowResourceRelationsDetailRequestDirection) UnmarshalJSON added in v0.1.27

func (ShowResourceRelationsDetailRequestDirection) Value added in v0.1.27

type ShowResourceRelationsDetailRequestDirectionEnum added in v0.1.27

type ShowResourceRelationsDetailRequestDirectionEnum struct {
	IN  ShowResourceRelationsDetailRequestDirection
	OUT ShowResourceRelationsDetailRequestDirection
}

func GetShowResourceRelationsDetailRequestDirectionEnum added in v0.1.27

func GetShowResourceRelationsDetailRequestDirectionEnum() ShowResourceRelationsDetailRequestDirectionEnum

type ShowResourceRelationsDetailResponse added in v0.1.27

type ShowResourceRelationsDetailResponse struct {

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

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

Response Object

func (ShowResourceRelationsDetailResponse) String added in v0.1.27

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 TagDetail added in v0.1.27

type TagDetail struct {

	// 标签key
	Key *string `json:"key,omitempty"`

	// 标签值列表
	Value *[]string `json:"value,omitempty"`
}

标签对象

func (TagDetail) String added in v0.1.27

func (o TagDetail) 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设置对象。跨帐号授予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通道设置对象。跨帐号授予SMN主题发送通知的权限请参考《用户指南- 资源记录器- 开启/配置/修改资源记录器》中的“跨帐号授权”内容。

func (TrackerSmnChannelConfigBody) String

type UpdateConfigurationAggregatorRequest added in v0.1.27

type UpdateConfigurationAggregatorRequest struct {

	// 资源聚合器ID。
	AggregatorId string `json:"aggregator_id"`

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

Request Object

func (UpdateConfigurationAggregatorRequest) String added in v0.1.27

type UpdateConfigurationAggregatorResponse added in v0.1.27

type UpdateConfigurationAggregatorResponse struct {

	// 资源聚合器名称。
	AggregatorName *string `json:"aggregator_name,omitempty"`

	// 资源聚合器ID。
	AggregatorId *string `json:"aggregator_id,omitempty"`

	// 资源聚合器标识符。
	AggregatorUrn *string `json:"aggregator_urn,omitempty"`

	// 聚合器类型。
	AggregatorType *string `json:"aggregator_type,omitempty"`

	AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`

	// 资源聚合器更新时间。
	UpdatedAt *string `json:"updated_at,omitempty"`

	// 资源聚合器创建时间。
	CreatedAt      *string `json:"created_at,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateConfigurationAggregatorResponse) String added in v0.1.27

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 {

	// 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
	PolicyAssignmentType *UpdatePolicyAssignmentResponsePolicyAssignmentType `json:"policy_assignment_type,omitempty"`

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

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

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

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

	// 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
	Period *string `json:"period,omitempty"`

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

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

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

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

	CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`

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

Response Object

func (UpdatePolicyAssignmentResponse) String

type UpdatePolicyAssignmentResponsePolicyAssignmentType added in v0.1.13

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

func (UpdatePolicyAssignmentResponsePolicyAssignmentType) MarshalJSON added in v0.1.13

func (*UpdatePolicyAssignmentResponsePolicyAssignmentType) UnmarshalJSON added in v0.1.13

func (UpdatePolicyAssignmentResponsePolicyAssignmentType) Value added in v0.1.13

type UpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum added in v0.1.13

type UpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum struct {
	BUILTIN UpdatePolicyAssignmentResponsePolicyAssignmentType
	CUSTOM  UpdatePolicyAssignmentResponsePolicyAssignmentType
}

func GetUpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum added in v0.1.13

func GetUpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum() UpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum

type UpdatePolicyStateRequest added in v0.1.13

type UpdatePolicyStateRequest struct {
	Body *PolicyStateRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdatePolicyStateRequest) String added in v0.1.13

func (o UpdatePolicyStateRequest) String() string

type UpdatePolicyStateResponse added in v0.1.13

type UpdatePolicyStateResponse 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"`

	// 触发器类型,可选值:resource, period
	TriggerType *string `json:"trigger_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"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdatePolicyStateResponse) String added in v0.1.13

func (o UpdatePolicyStateResponse) String() 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