// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListIntegrationPoliciesResponseBodyPoliciesBindResource extends $dara.Model { /** * @remarks * The cluster ID. * * @example * cv68tt87d78vyc89zy9v */ clusterId?: string; /** * @remarks * The cluster type. * * @example * ManagedKubernetes */ clusterType?: string; /** * @remarks * The UID of the actual owner of the bound resource in cross-account scenarios. * * @example * 12xxxx */ entityUserId?: string; /** * @remarks * The VPC CIDR block. * * @example * 100.100.0.1/16 */ vpcCidr?: string; /** * @remarks * The VPC ID. * * @example * vpc-uf664nyle5khp5d4d7hdo */ vpcId?: string; static names(): { [key: string]: string } { return { clusterId: 'clusterId', clusterType: 'clusterType', entityUserId: 'entityUserId', vpcCidr: 'vpcCidr', vpcId: 'vpcId', }; } static types(): { [key: string]: any } { return { clusterId: 'string', clusterType: 'string', entityUserId: 'string', vpcCidr: 'string', vpcId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesAnnotations extends $dara.Model { /** * @remarks * The operation to be performed. * * @example * add */ op?: string; /** * @remarks * The tag key. * * @example * key */ tagKey?: string; /** * @remarks * The tag value. */ tagValues?: string[]; static names(): { [key: string]: string } { return { op: 'op', tagKey: 'tagKey', tagValues: 'tagValues', }; } static types(): { [key: string]: any } { return { op: 'string', tagKey: 'string', tagValues: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.tagValues)) { $dara.Model.validateArray(this.tagValues); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesFieldRules extends $dara.Model { /** * @remarks * The unique identifier of the field. * * @example * test */ fieldKey?: string; /** * @remarks * The field content. Separate multiple values with commas (,). */ fieldValues?: string[]; /** * @remarks * The operation to be performed. * * @example * add */ op?: string; static names(): { [key: string]: string } { return { fieldKey: 'fieldKey', fieldValues: 'fieldValues', op: 'op', }; } static types(): { [key: string]: any } { return { fieldKey: 'string', fieldValues: { 'type': 'array', 'itemType': 'string' }, op: 'string', }; } validate() { if(Array.isArray(this.fieldValues)) { $dara.Model.validateArray(this.fieldValues); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesIpMatchRule extends $dara.Model { /** * @remarks * The IP address CIDR block. * * @example * 100.100.1.0/16 */ ipCidr?: string; /** * @remarks * The key of the IP address field. * * @example * xxxx */ ipFieldKey?: string; static names(): { [key: string]: string } { return { ipCidr: 'ipCidr', ipFieldKey: 'ipFieldKey', }; } static types(): { [key: string]: any } { return { ipCidr: 'string', ipFieldKey: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesLabels extends $dara.Model { /** * @remarks * The operation to be performed. * * @example * add */ op?: string; /** * @remarks * The label key. * * @example * test */ tagKey?: string; /** * @remarks * The tag value. */ tagValues?: string[]; static names(): { [key: string]: string } { return { op: 'op', tagKey: 'tagKey', tagValues: 'tagValues', }; } static types(): { [key: string]: any } { return { op: 'string', tagKey: 'string', tagValues: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.tagValues)) { $dara.Model.validateArray(this.tagValues); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesTags extends $dara.Model { /** * @remarks * The operation to be performed. * * @example * add */ op?: string; /** * @remarks * The label key. * * @example * key */ tagKey?: string; /** * @remarks * The tag value. */ tagValues?: string[]; static names(): { [key: string]: string } { return { op: 'op', tagKey: 'tagKey', tagValues: 'tagValues', }; } static types(): { [key: string]: any } { return { op: 'string', tagKey: 'string', tagValues: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.tagValues)) { $dara.Model.validateArray(this.tagValues); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRules extends $dara.Model { /** * @remarks * The annotations. */ annotations?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesAnnotations[]; /** * @remarks * The list of entity types. */ entityTypes?: string[]; /** * @remarks * The field rules. */ fieldRules?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesFieldRules[]; /** * @remarks * The instance IDs. */ instanceIds?: string[]; /** * @remarks * The IP address matching rule. */ ipMatchRule?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesIpMatchRule; /** * @remarks * The labels. */ labels?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesLabels[]; /** * @remarks * The list of region IDs. */ regionIds?: string[]; /** * @remarks * The resource group ID. * * @example * rg-5i6dbwxfxuqihk7k */ resourceGroupId?: string; /** * @remarks * The tag information of the instance. */ tags?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesTags[]; static names(): { [key: string]: string } { return { annotations: 'annotations', entityTypes: 'entityTypes', fieldRules: 'fieldRules', instanceIds: 'instanceIds', ipMatchRule: 'ipMatchRule', labels: 'labels', regionIds: 'regionIds', resourceGroupId: 'resourceGroupId', tags: 'tags', }; } static types(): { [key: string]: any } { return { annotations: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesAnnotations }, entityTypes: { 'type': 'array', 'itemType': 'string' }, fieldRules: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesFieldRules }, instanceIds: { 'type': 'array', 'itemType': 'string' }, ipMatchRule: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesIpMatchRule, labels: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesLabels }, regionIds: { 'type': 'array', 'itemType': 'string' }, resourceGroupId: 'string', tags: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRulesTags }, }; } validate() { if(Array.isArray(this.annotations)) { $dara.Model.validateArray(this.annotations); } if(Array.isArray(this.entityTypes)) { $dara.Model.validateArray(this.entityTypes); } if(Array.isArray(this.fieldRules)) { $dara.Model.validateArray(this.fieldRules); } if(Array.isArray(this.instanceIds)) { $dara.Model.validateArray(this.instanceIds); } if(this.ipMatchRule && typeof (this.ipMatchRule as any).validate === 'function') { (this.ipMatchRule as any).validate(); } if(Array.isArray(this.labels)) { $dara.Model.validateArray(this.labels); } if(Array.isArray(this.regionIds)) { $dara.Model.validateArray(this.regionIds); } if(Array.isArray(this.tags)) { $dara.Model.validateArray(this.tags); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesEntityGroup extends $dara.Model { /** * @remarks * The description. * * @example * xxxx */ description?: string; /** * @remarks * The entity group ID. * * @example * eg-b79f65d11fb94e779867cf937c3a3002 */ entityGroupId?: string; /** * @remarks * The entity group name. * * @example * test-eg */ entityGroupName?: string; /** * @remarks * The entity group. */ entityRules?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRules; /** * @remarks * The search keyword. Document library names and descriptions are supported. * * @example * Haval */ query?: string; /** * @remarks * The region ID. * * @example * cn-heyuan */ regionId?: string; /** * @remarks * The user ID. * * @example * 1236812738 */ userId?: string; /** * @remarks * The workspace. * * @example * test-api */ workspace?: string; static names(): { [key: string]: string } { return { description: 'description', entityGroupId: 'entityGroupId', entityGroupName: 'entityGroupName', entityRules: 'entityRules', query: 'query', regionId: 'regionId', userId: 'userId', workspace: 'workspace', }; } static types(): { [key: string]: any } { return { description: 'string', entityGroupId: 'string', entityGroupName: 'string', entityRules: ListIntegrationPoliciesResponseBodyPoliciesEntityGroupEntityRules, query: 'string', regionId: 'string', userId: 'string', workspace: 'string', }; } validate() { if(this.entityRules && typeof (this.entityRules as any).validate === 'function') { (this.entityRules as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesManagedInfo extends $dara.Model { /** * @remarks * The elastic network interface (ENI) ID of the managed probe. Example: eni-xxxx. * * @example * eni-12345678 */ eniId?: string; /** * @remarks * The security group ID. * * @example * sg-xxxxx */ securityGroupId?: string; /** * @remarks * The vSwitch ID. * * @example * vsw-xxxxxx */ vswitchId?: string; static names(): { [key: string]: string } { return { eniId: 'eniId', securityGroupId: 'securityGroupId', vswitchId: 'vswitchId', }; } static types(): { [key: string]: any } { return { eniId: 'string', securityGroupId: 'string', vswitchId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPoliciesSubAddonRelease extends $dara.Model { /** * @remarks * The number of ready sub-releases. * * @example * 30 */ ready?: number; /** * @remarks * The total number of rules. * * @example * 278 */ total?: number; static names(): { [key: string]: string } { return { ready: 'ready', total: 'total', }; } static types(): { [key: string]: any } { return { ready: 'number', total: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBodyPolicies extends $dara.Model { /** * @remarks * The names of all add-ons installed in this policy. */ addonNames?: string[]; /** * @remarks * The policy version. * * @example * v2 */ apiVersion?: string; /** * @remarks * The information about the bound resource. */ bindResource?: ListIntegrationPoliciesResponseBodyPoliciesBindResource; /** * @remarks * The installation status of umodel in the container environment. * * @example * true */ csUmodelStatus?: boolean; /** * @remarks * The entity group. */ entityGroup?: ListIntegrationPoliciesResponseBodyPoliciesEntityGroup; /** * @remarks * The billing method. * * @example * CS_Pro */ feePackage?: string; /** * @remarks * The network management information of the policy. */ managedInfo?: ListIntegrationPoliciesResponseBodyPoliciesManagedInfo; /** * @remarks * The policy ID. * * @example * policy-ac38a7cb02d14ff48bc9f97d0a75063e */ policyId?: string; /** * @remarks * The rule name. * * @example * 6f5HSsg3AP */ policyName?: string; /** * @remarks * The access center policy type. * * @example * ECS */ policyType?: string; /** * @remarks * The region ID. * * @example * cn-heyuan */ regionId?: string; /** * @remarks * The resource group ID. * * @example * rg-xxxxx */ resourceGroupId?: string; /** * @remarks * The number of sub-releases. */ subAddonRelease?: ListIntegrationPoliciesResponseBodyPoliciesSubAddonRelease; /** * @remarks * The user ID. * * @example * 128470923 */ userId?: string; /** * @remarks * The workspace. * * @example * test-api */ workspace?: string; static names(): { [key: string]: string } { return { addonNames: 'addonNames', apiVersion: 'apiVersion', bindResource: 'bindResource', csUmodelStatus: 'csUmodelStatus', entityGroup: 'entityGroup', feePackage: 'feePackage', managedInfo: 'managedInfo', policyId: 'policyId', policyName: 'policyName', policyType: 'policyType', regionId: 'regionId', resourceGroupId: 'resourceGroupId', subAddonRelease: 'subAddonRelease', userId: 'userId', workspace: 'workspace', }; } static types(): { [key: string]: any } { return { addonNames: { 'type': 'array', 'itemType': 'string' }, apiVersion: 'string', bindResource: ListIntegrationPoliciesResponseBodyPoliciesBindResource, csUmodelStatus: 'boolean', entityGroup: ListIntegrationPoliciesResponseBodyPoliciesEntityGroup, feePackage: 'string', managedInfo: ListIntegrationPoliciesResponseBodyPoliciesManagedInfo, policyId: 'string', policyName: 'string', policyType: 'string', regionId: 'string', resourceGroupId: 'string', subAddonRelease: ListIntegrationPoliciesResponseBodyPoliciesSubAddonRelease, userId: 'string', workspace: 'string', }; } validate() { if(Array.isArray(this.addonNames)) { $dara.Model.validateArray(this.addonNames); } if(this.bindResource && typeof (this.bindResource as any).validate === 'function') { (this.bindResource as any).validate(); } if(this.entityGroup && typeof (this.entityGroup as any).validate === 'function') { (this.entityGroup as any).validate(); } if(this.managedInfo && typeof (this.managedInfo as any).validate === 'function') { (this.managedInfo as any).validate(); } if(this.subAddonRelease && typeof (this.subAddonRelease as any).validate === 'function') { (this.subAddonRelease as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPoliciesResponseBody extends $dara.Model { /** * @remarks * The maximum number of entries per page. * Default value: * 50 * Maximum value: * 50 * * @example * 100 */ maxResults?: number; /** * @remarks * The pagination token. * * @example * 44ANBjKZmQeKnaB1fXRq06w7sFYK3MUcCALMD9qQbmEiE */ nextToken?: string; /** * @remarks * The list of access policies. */ policies?: ListIntegrationPoliciesResponseBodyPolicies[]; /** * @remarks * Id of the request * * @example * CD8BA7D6-995D-578D-9941-78B0FECD14B5 */ requestId?: string; /** * @remarks * The total number of entries. * * @example * 0 */ totalCount?: number; static names(): { [key: string]: string } { return { maxResults: 'maxResults', nextToken: 'nextToken', policies: 'policies', requestId: 'requestId', totalCount: 'totalCount', }; } static types(): { [key: string]: any } { return { maxResults: 'number', nextToken: 'string', policies: { 'type': 'array', 'itemType': ListIntegrationPoliciesResponseBodyPolicies }, requestId: 'string', totalCount: 'number', }; } validate() { if(Array.isArray(this.policies)) { $dara.Model.validateArray(this.policies); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }