diff --git a/CHANGELOG.md b/CHANGELOG.md index 54882ed36..3ea57f7c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,425 @@ +# 3.1.117 2024-09-26 + +### HuaweiCloud SDK CC + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the following APIs: + - `ListGcbResourceTags` + - `CreateGcbResourceTag` + - `DeleteGcbResourceTag` + - `BatchCreateGcbResourceTags` + - `BatchDeleteGcbResourceTags` + - `CountGcbResourceByTag` + - `ListGcbResourceByTag` + - `ListGcbTenantTags` + +### HuaweiCloud SDK CC + +- _API Version_ + - V3 +- _Features_ + - Support the following APIs: + - `ListGcbResourceTags` + - `CreateGcbResourceTag` + - `DeleteGcbResourceTag` + - `BatchCreateGcbResourceTags` + - `BatchDeleteGcbResourceTags` + - `CountGcbResourceByTag` + - `ListGcbResourceByTag` + - `ListGcbTenantTags` +- _Bug Fix_ + - None +- _Change_ + - **ListNetworkInstances** + - changes of request param + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **ListCloudConnectionRoutes** + - changes of request param + - `* cloud_connection_id: list -> list` + - **ListAuthorisations** + - changes of request param + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - changes of response param + - `+ authorisations.is_loaded_by_cloud_connection` + - **CreateAuthorisation** + - changes of response param + - `+ authorisation.is_loaded_by_cloud_connection` + - **ListPermissions** + - changes of request param + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **UpdateAuthorisation** + - changes of response param + - `+ authorisation.is_loaded_by_cloud_connection` + - **ListCentralNetworkGdgwAttachments** + - changes of request param + - `* id: list -> list` + - `* global_dc_gateway_id: list -> list` + - changes of response param + - `+ central_network_gdgw_attachments.auto_associate_route_enabled` + - `+ central_network_gdgw_attachments.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachments.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **CreateCentralNetworkGdgwAttachment** + - changes of response param + - `+ central_network_gdgw_attachment.auto_associate_route_enabled` + - `+ central_network_gdgw_attachment.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ListCentralNetworkErRouteTableAttachments** + - changes of request param + - `* id: list -> list` + - `* attachment_instance_id: list -> list` + - changes of response param + - `+ central_network_er_route_table_attachments.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachments.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachments.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **CreateCentralNetworkErRouteTableAttachment** + - changes of request param + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - changes of response param + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ShowCentralNetworkErRouteTableAttachment** + - changes of response param + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **UpdateCentralNetworkErRouteTableAttachment** + - changes of response param + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ShowCentralNetworkGdgwAttachment** + - changes of response param + - `+ central_network_gdgw_attachment.auto_associate_route_enabled` + - `+ central_network_gdgw_attachment.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **UpdateCentralNetworkGdgwAttachment** + - changes of response param + - `+ central_network_gdgw_attachment.auto_associate_route_enabled` + - `+ central_network_gdgw_attachment.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ListCentralNetworkCapabilities** + - changes of response param + - `+ capabilities.capability: enum value [central-network.is-support-custom-er-table,connection-bandwidth.free-line,er-instance.support-sts5-regions,gdgw-instance.support-dscp-regions,gdgw-instance.support-freeze-regions]` + - **ListGlobalConnectionBandwidthConfigs** + - changes of response param + - `+ configs.charge_mode: enum value [95avr]` + - `+ configs.size_range.type: enum value [95avr]` + - **ListGlobalConnectionBandwidthSpecCodes** + - changes of request param + - `* id: list -> list` + - **ListGlobalConnectionBandwidthSites** + - changes of request param + - `+ name_en` + - `+ name_cn` + - `* id: list -> list` + - **ListGlobalConnectionBandwidthLineLevels** + - changes of request param + - `* id: list -> list` + - **ListCloudConnections** + - changes of request param + - `* id: list -> list` + - **ListBandwidthPackages** + - changes of request param + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **ListInterRegionBandwidths** + - changes of request param + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **ListCentralNetworkConnections** + - changes of request param + - `* id: list -> list` + - `* global_connection_bandwidth_id: list -> list` + - changes of response param + - `+ central_network_connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_connections.connection_point_pair.parent_instance_id` + - **UpdateCentralNetworkConnection** + - changes of response param + - `+ central_network_connection.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_connection.connection_point_pair.parent_instance_id` + - **ListCentralNetworkAttachments** + - changes of request param + - `* id: list -> list` + - `* attachment_instance_id: list -> list` + - changes of response param + - `+ central_network_attachments.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_attachments.specification_value.auto_associate_route_enabled` + - `+ central_network_attachments.specification_value.auto_propagate_route_enabled` + - `+ central_network_attachments.specification_value.attachment_parent_instance_id` + - `- central_network_attachments.specification_value.attached_er_id` + - **DeleteCentralNetworkAttachment** + - changes of response param + - `+ central_network_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_attachment.specification_value.auto_associate_route_enabled` + - `+ central_network_attachment.specification_value.auto_propagate_route_enabled` + - `+ central_network_attachment.specification_value.attachment_parent_instance_id` + - `- central_network_attachment.specification_value.attached_er_id` + - **ListGlobalConnectionBandwidths** + - changes of request param + - `+ instance_id` + - `+ instance_type` + - `+ admin_state` + - `* id: list -> list` + - changes of response param + - `+ globalconnection_bandwidths.charge_mode: enum value [95avr]` + - **CreateGlobalConnectionBandwidth** + - changes of response param + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - **ShowGlobalConnectionBandwidth** + - changes of response param + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - **UpdateGlobalConnectionBandwidth** + - changes of request param + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - changes of response param + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - **ListSupportBindingConnectionBandwidths** + - changes of request param + - `* binding_service: required -> optional` + - changes of response param + - `+ globalconnection_bandwidths.charge_mode: enum value [95avr]` + - **ListCentralNetworks** + - changes of request param + - `* id: list -> list` + - `* enterprise_router_id: list -> list` + - `* attachment_instance_id: list -> list` + - `* global_connection_bandwidth_id: list -> list` + - `* connection_id: list -> list` + - changes of response param + - `+ central_networks.auto_associate_route_enabled` + - `+ central_networks.auto_propagate_route_enabled` + - `+ central_networks.state: enum value [RESTORING]` + - `+ central_networks.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_networks.connections.connection_point_pair.parent_instance_id` + - **CreateCentralNetwork** + - changes of request param + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - changes of response param + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **ShowCentralNetwork** + - changes of response param + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **UpdateCentralNetwork** + - changes of request param + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - changes of response param + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **DeleteCentralNetwork** + - changes of response param + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **ListCentralNetworksByTags** + - changes of response param + - `+ central_networks.auto_associate_route_enabled` + - `+ central_networks.auto_propagate_route_enabled` + - `+ central_networks.state: enum value [RESTORING]` + - `+ central_networks.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_networks.connections.connection_point_pair.parent_instance_id` + - **ListCentralNetworkPolicies** + - changes of request param + - `* id: list -> list` + +### HuaweiCloud SDK CCE + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowNode** + - changes of response param + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **UpdateNode** + - changes of response param + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **DeleteNode** + - changes of response param + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **CreateNode** + - changes of request param + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - changes of response param + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **ListNodes** + - changes of response param + - `+ items.spec.rootVolume.iops` + - `+ items.spec.rootVolume.throughput` + - `+ items.spec.storage.storageSelectors.matchLabels.iops` + - `+ items.spec.storage.storageSelectors.matchLabels.throughput` + - **ShowNodePool** + - changes of response param + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **UpdateNodePool** + - changes of response param + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **DeleteNodePool** + - changes of response param + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **AddNode** + - changes of request param + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.iops` + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.throughput` + - **ResetNode** + - changes of request param + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.iops` + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.throughput` + - **CreateNodePool** + - changes of request param + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - changes of response param + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **ListNodePools** + - changes of response param + - `+ items.spec.nodeTemplate.rootVolume.iops` + - `+ items.spec.nodeTemplate.rootVolume.throughput` + - `+ items.spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ items.spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + +### HuaweiCloud SDK CES + +- _API Version_ + - V2 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateAlarmRules** + - changes of request param + - `+ tags` + +### HuaweiCloud SDK DDS + +- _API Version_ + - V3 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ResizeInstance** + - changes of request param + - `+ resize.target_type: enum value [config,readonly]` + +### HuaweiCloud SDK HSS + +- _API Version_ + - V5 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the APIs `ListAccounts`, `BatchAddAccounts`, `DeleteAccount`, `ListOrganizationTree` + +### HuaweiCloud SDK Live + +- _API Version_ + - V1 +- _Features_ + - Support the following APIs: + - `ListHarvestTask` + - `ModifyHarvestTask` + - `CreateHarvestTask` + - `DeleteHarvestTask` + - `UpdateHarvestJobStatus` +- _Bug Fix_ + - None +- _Change_ + - None + +### HuaweiCloud SDK Meeting + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **ShowRecordInfo** + - changes of response param + - `+ data.subject` + - `+ data.beginTime` + - `+ data.segmentOffset` + - `+ data.segmentLimit` + - `+ data.segmentCount` + - `+ data.segmentList` + - `* data: object -> object` + +### HuaweiCloud SDK VPCEP + +- _API Version_ + - V1 +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - **CreateEndpointService** + - changes of request param + - `+ snat_network_id` + # 3.1.116 2024-09-23 ### HuaweiCloud SDK AOM diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index 3d0bbf246..c5f91934f 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,425 @@ +# 3.1.117 2024-09-26 + +### HuaweiCloud SDK CC + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除以下接口: + - `ListGcbResourceTags` + - `CreateGcbResourceTag` + - `DeleteGcbResourceTag` + - `BatchCreateGcbResourceTags` + - `BatchDeleteGcbResourceTags` + - `CountGcbResourceByTag` + - `ListGcbResourceByTag` + - `ListGcbTenantTags` + +### HuaweiCloud SDK CC + +- _接口版本_ + - V3 +- _新增特性_ + - 支持以下接口: + - `ListGcbResourceTags` + - `CreateGcbResourceTag` + - `DeleteGcbResourceTag` + - `BatchCreateGcbResourceTags` + - `BatchDeleteGcbResourceTags` + - `CountGcbResourceByTag` + - `ListGcbResourceByTag` + - `ListGcbTenantTags` +- _解决问题_ + - 无 +- _特性变更_ + - **ListNetworkInstances** + - 请求参数变更 + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **ListCloudConnectionRoutes** + - 请求参数变更 + - `* cloud_connection_id: list -> list` + - **ListAuthorisations** + - 请求参数变更 + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - 响应参数变更 + - `+ authorisations.is_loaded_by_cloud_connection` + - **CreateAuthorisation** + - 响应参数变更 + - `+ authorisation.is_loaded_by_cloud_connection` + - **ListPermissions** + - 请求参数变更 + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **UpdateAuthorisation** + - 响应参数变更 + - `+ authorisation.is_loaded_by_cloud_connection` + - **ListCentralNetworkGdgwAttachments** + - 请求参数变更 + - `* id: list -> list` + - `* global_dc_gateway_id: list -> list` + - 响应参数变更 + - `+ central_network_gdgw_attachments.auto_associate_route_enabled` + - `+ central_network_gdgw_attachments.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachments.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **CreateCentralNetworkGdgwAttachment** + - 响应参数变更 + - `+ central_network_gdgw_attachment.auto_associate_route_enabled` + - `+ central_network_gdgw_attachment.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ListCentralNetworkErRouteTableAttachments** + - 请求参数变更 + - `* id: list -> list` + - `* attachment_instance_id: list -> list` + - 响应参数变更 + - `+ central_network_er_route_table_attachments.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachments.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachments.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **CreateCentralNetworkErRouteTableAttachment** + - 请求参数变更 + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - 响应参数变更 + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ShowCentralNetworkErRouteTableAttachment** + - 响应参数变更 + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **UpdateCentralNetworkErRouteTableAttachment** + - 响应参数变更 + - `+ central_network_er_route_table_attachment.auto_associate_route_enabled` + - `+ central_network_er_route_table_attachment.auto_propagate_route_enabled` + - `+ central_network_er_route_table_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ShowCentralNetworkGdgwAttachment** + - 响应参数变更 + - `+ central_network_gdgw_attachment.auto_associate_route_enabled` + - `+ central_network_gdgw_attachment.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **UpdateCentralNetworkGdgwAttachment** + - 响应参数变更 + - `+ central_network_gdgw_attachment.auto_associate_route_enabled` + - `+ central_network_gdgw_attachment.auto_propagate_route_enabled` + - `+ central_network_gdgw_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - **ListCentralNetworkCapabilities** + - 响应参数变更 + - `+ capabilities.capability: enum value [central-network.is-support-custom-er-table,connection-bandwidth.free-line,er-instance.support-sts5-regions,gdgw-instance.support-dscp-regions,gdgw-instance.support-freeze-regions]` + - **ListGlobalConnectionBandwidthConfigs** + - 响应参数变更 + - `+ configs.charge_mode: enum value [95avr]` + - `+ configs.size_range.type: enum value [95avr]` + - **ListGlobalConnectionBandwidthSpecCodes** + - 请求参数变更 + - `* id: list -> list` + - **ListGlobalConnectionBandwidthSites** + - 请求参数变更 + - `+ name_en` + - `+ name_cn` + - `* id: list -> list` + - **ListGlobalConnectionBandwidthLineLevels** + - 请求参数变更 + - `* id: list -> list` + - **ListCloudConnections** + - 请求参数变更 + - `* id: list -> list` + - **ListBandwidthPackages** + - 请求参数变更 + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **ListInterRegionBandwidths** + - 请求参数变更 + - `* id: list -> list` + - `* cloud_connection_id: list -> list` + - **ListCentralNetworkConnections** + - 请求参数变更 + - `* id: list -> list` + - `* global_connection_bandwidth_id: list -> list` + - 响应参数变更 + - `+ central_network_connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_connections.connection_point_pair.parent_instance_id` + - **UpdateCentralNetworkConnection** + - 响应参数变更 + - `+ central_network_connection.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_connection.connection_point_pair.parent_instance_id` + - **ListCentralNetworkAttachments** + - 请求参数变更 + - `* id: list -> list` + - `* attachment_instance_id: list -> list` + - 响应参数变更 + - `+ central_network_attachments.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_attachments.specification_value.auto_associate_route_enabled` + - `+ central_network_attachments.specification_value.auto_propagate_route_enabled` + - `+ central_network_attachments.specification_value.attachment_parent_instance_id` + - `- central_network_attachments.specification_value.attached_er_id` + - **DeleteCentralNetworkAttachment** + - 响应参数变更 + - `+ central_network_attachment.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network_attachment.specification_value.auto_associate_route_enabled` + - `+ central_network_attachment.specification_value.auto_propagate_route_enabled` + - `+ central_network_attachment.specification_value.attachment_parent_instance_id` + - `- central_network_attachment.specification_value.attached_er_id` + - **ListGlobalConnectionBandwidths** + - 请求参数变更 + - `+ instance_id` + - `+ instance_type` + - `+ admin_state` + - `* id: list -> list` + - 响应参数变更 + - `+ globalconnection_bandwidths.charge_mode: enum value [95avr]` + - **CreateGlobalConnectionBandwidth** + - 响应参数变更 + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - **ShowGlobalConnectionBandwidth** + - 响应参数变更 + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - **UpdateGlobalConnectionBandwidth** + - 请求参数变更 + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - 响应参数变更 + - `+ globalconnection_bandwidth.charge_mode: enum value [95avr]` + - **ListSupportBindingConnectionBandwidths** + - 请求参数变更 + - `* binding_service: required -> optional` + - 响应参数变更 + - `+ globalconnection_bandwidths.charge_mode: enum value [95avr]` + - **ListCentralNetworks** + - 请求参数变更 + - `* id: list -> list` + - `* enterprise_router_id: list -> list` + - `* attachment_instance_id: list -> list` + - `* global_connection_bandwidth_id: list -> list` + - `* connection_id: list -> list` + - 响应参数变更 + - `+ central_networks.auto_associate_route_enabled` + - `+ central_networks.auto_propagate_route_enabled` + - `+ central_networks.state: enum value [RESTORING]` + - `+ central_networks.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_networks.connections.connection_point_pair.parent_instance_id` + - **CreateCentralNetwork** + - 请求参数变更 + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - 响应参数变更 + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **ShowCentralNetwork** + - 响应参数变更 + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **UpdateCentralNetwork** + - 请求参数变更 + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - 响应参数变更 + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **DeleteCentralNetwork** + - 响应参数变更 + - `+ central_network.auto_associate_route_enabled` + - `+ central_network.auto_propagate_route_enabled` + - `+ central_network.state: enum value [RESTORING]` + - `+ central_network.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_network.connections.connection_point_pair.parent_instance_id` + - **ListCentralNetworksByTags** + - 响应参数变更 + - `+ central_networks.auto_associate_route_enabled` + - `+ central_networks.auto_propagate_route_enabled` + - `+ central_networks.state: enum value [RESTORING]` + - `+ central_networks.connections.state: enum value [APPROVING,APPROVED,UNAPPROVED]` + - `+ central_networks.connections.connection_point_pair.parent_instance_id` + - **ListCentralNetworkPolicies** + - 请求参数变更 + - `* id: list -> list` + +### HuaweiCloud SDK CCE + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowNode** + - 响应参数变更 + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **UpdateNode** + - 响应参数变更 + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **DeleteNode** + - 响应参数变更 + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **CreateNode** + - 请求参数变更 + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - 响应参数变更 + - `+ spec.rootVolume.iops` + - `+ spec.rootVolume.throughput` + - `+ spec.storage.storageSelectors.matchLabels.iops` + - `+ spec.storage.storageSelectors.matchLabels.throughput` + - **ListNodes** + - 响应参数变更 + - `+ items.spec.rootVolume.iops` + - `+ items.spec.rootVolume.throughput` + - `+ items.spec.storage.storageSelectors.matchLabels.iops` + - `+ items.spec.storage.storageSelectors.matchLabels.throughput` + - **ShowNodePool** + - 响应参数变更 + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **UpdateNodePool** + - 响应参数变更 + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **DeleteNodePool** + - 响应参数变更 + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **AddNode** + - 请求参数变更 + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.iops` + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.throughput` + - **ResetNode** + - 请求参数变更 + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.iops` + - `+ nodeList.spec.volumeConfig.storage.storageSelectors.matchLabels.throughput` + - **CreateNodePool** + - 请求参数变更 + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - 响应参数变更 + - `+ spec.nodeTemplate.rootVolume.iops` + - `+ spec.nodeTemplate.rootVolume.throughput` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + - **ListNodePools** + - 响应参数变更 + - `+ items.spec.nodeTemplate.rootVolume.iops` + - `+ items.spec.nodeTemplate.rootVolume.throughput` + - `+ items.spec.nodeTemplate.storage.storageSelectors.matchLabels.iops` + - `+ items.spec.nodeTemplate.storage.storageSelectors.matchLabels.throughput` + +### HuaweiCloud SDK CES + +- _接口版本_ + - V2 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateAlarmRules** + - 请求参数变更 + - `+ tags` + +### HuaweiCloud SDK DDS + +- _接口版本_ + - V3 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ResizeInstance** + - 请求参数变更 + - `+ resize.target_type: enum value [config,readonly]` + +### HuaweiCloud SDK HSS + +- _接口版本_ + - V5 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 移除接口`ListAccounts`、`BatchAddAccounts`、`DeleteAccount`、`ListOrganizationTree` + +### HuaweiCloud SDK Live + +- _接口版本_ + - V1 +- _新增特性_ + - 支持以下接口: + - `ListHarvestTask` + - `ModifyHarvestTask` + - `CreateHarvestTask` + - `DeleteHarvestTask` + - `UpdateHarvestJobStatus` +- _解决问题_ + - 无 +- _特性变更_ + - 无 + +### HuaweiCloud SDK Meeting + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **ShowRecordInfo** + - 响应参数变更 + - `+ data.subject` + - `+ data.beginTime` + - `+ data.segmentOffset` + - `+ data.segmentLimit` + - `+ data.segmentCount` + - `+ data.segmentList` + - `* data: object -> object` + +### HuaweiCloud SDK VPCEP + +- _接口版本_ + - V1 +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - **CreateEndpointService** + - 请求参数变更 + - `+ snat_network_id` + # 3.1.116 2024-09-23 ### HuaweiCloud SDK AOM diff --git a/VERSION b/VERSION index 4f092be4a..14a3dc385 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.1.116 +3.1.117 diff --git a/all/package.json b/all/package.json index 0c77cc490..40459b1c6 100644 --- a/all/package.json +++ b/all/package.json @@ -1,106 +1,106 @@ { "name": "@huaweicloud/huaweicloud-sdk-all", - "version": "3.1.116", + "version": "3.1.117", "description": "Huawei Cloud SDK for Node.js includes all cloud services", "repository": { "type": "git", "url": "https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3" }, "dependencies": { - "@huaweicloud/huaweicloud-sdk-aad": "3.1.116", - "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.116", - "@huaweicloud/huaweicloud-sdk-aom": "3.1.116", - "@huaweicloud/huaweicloud-sdk-aos": "3.1.116", - "@huaweicloud/huaweicloud-sdk-apig": "3.1.116", - "@huaweicloud/huaweicloud-sdk-as": "3.1.116", - "@huaweicloud/huaweicloud-sdk-bms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cbh": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cbr": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cc": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cce": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cdm": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cdn": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ces": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cfw": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.116", - "@huaweicloud/huaweicloud-sdk-coc": "3.1.116", - "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.116", - "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.116", - "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.116", - "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.116", - "@huaweicloud/huaweicloud-sdk-config": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cse": "3.1.116", - "@huaweicloud/huaweicloud-sdk-csms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-css": "3.1.116", - "@huaweicloud/huaweicloud-sdk-cts": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dbss": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dc": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dcs": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dds": "3.1.116", - "@huaweicloud/huaweicloud-sdk-devstar": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dli": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dns": "3.1.116", - "@huaweicloud/huaweicloud-sdk-drs": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dsc": "3.1.116", - "@huaweicloud/huaweicloud-sdk-dws": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ecs": "3.1.116", - "@huaweicloud/huaweicloud-sdk-eip": "3.1.116", - "@huaweicloud/huaweicloud-sdk-elb": "3.1.116", - "@huaweicloud/huaweicloud-sdk-eps": "3.1.116", - "@huaweicloud/huaweicloud-sdk-er": "3.1.116", - "@huaweicloud/huaweicloud-sdk-evs": "3.1.116", - "@huaweicloud/huaweicloud-sdk-frs": "3.1.116", - "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ga": "3.1.116", - "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.116", - "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.116", - "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ges": "3.1.116", - "@huaweicloud/huaweicloud-sdk-hss": "3.1.116", - "@huaweicloud/huaweicloud-sdk-iam": "3.1.116", - "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.116", - "@huaweicloud/huaweicloud-sdk-image": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ims": "3.1.116", - "@huaweicloud/huaweicloud-sdk-iotda": "3.1.116", - "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ivs": "3.1.116", - "@huaweicloud/huaweicloud-sdk-kafka": "3.1.116", - "@huaweicloud/huaweicloud-sdk-kms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-kps": "3.1.116", - "@huaweicloud/huaweicloud-sdk-live": "3.1.116", - "@huaweicloud/huaweicloud-sdk-lts": "3.1.116", - "@huaweicloud/huaweicloud-sdk-meeting": "3.1.116", - "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.116", - "@huaweicloud/huaweicloud-sdk-moderation": "3.1.116", - "@huaweicloud/huaweicloud-sdk-mpc": "3.1.116", - "@huaweicloud/huaweicloud-sdk-mrs": "3.1.116", - "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-nat": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ocr": "3.1.116", - "@huaweicloud/huaweicloud-sdk-oms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-organizations": "3.1.116", - "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.116", - "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.116", - "@huaweicloud/huaweicloud-sdk-ram": "3.1.116", - "@huaweicloud/huaweicloud-sdk-rds": "3.1.116", - "@huaweicloud/huaweicloud-sdk-rms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.116", - "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.116", - "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.116", - "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.116", - "@huaweicloud/huaweicloud-sdk-sis": "3.1.116", - "@huaweicloud/huaweicloud-sdk-smn": "3.1.116", - "@huaweicloud/huaweicloud-sdk-sms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-swr": "3.1.116", - "@huaweicloud/huaweicloud-sdk-tics": "3.1.116", - "@huaweicloud/huaweicloud-sdk-tms": "3.1.116", - "@huaweicloud/huaweicloud-sdk-vod": "3.1.116", - "@huaweicloud/huaweicloud-sdk-vpc": "3.1.116", - "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.116", - "@huaweicloud/huaweicloud-sdk-vpn": "3.1.116", - "@huaweicloud/huaweicloud-sdk-waf": "3.1.116" + "@huaweicloud/huaweicloud-sdk-aad": "3.1.117", + "@huaweicloud/huaweicloud-sdk-antiddos": "3.1.117", + "@huaweicloud/huaweicloud-sdk-aom": "3.1.117", + "@huaweicloud/huaweicloud-sdk-aos": "3.1.117", + "@huaweicloud/huaweicloud-sdk-apig": "3.1.117", + "@huaweicloud/huaweicloud-sdk-as": "3.1.117", + "@huaweicloud/huaweicloud-sdk-bms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cbh": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cbr": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cc": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cce": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cdm": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cdn": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ces": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cfw": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cloudrtc": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cloudtable": "3.1.117", + "@huaweicloud/huaweicloud-sdk-coc": "3.1.117", + "@huaweicloud/huaweicloud-sdk-codeartsartifact": "3.1.117", + "@huaweicloud/huaweicloud-sdk-codeartsbuild": "3.1.117", + "@huaweicloud/huaweicloud-sdk-codeartsdeploy": "3.1.117", + "@huaweicloud/huaweicloud-sdk-codeartspipeline": "3.1.117", + "@huaweicloud/huaweicloud-sdk-config": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cse": "3.1.117", + "@huaweicloud/huaweicloud-sdk-csms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-css": "3.1.117", + "@huaweicloud/huaweicloud-sdk-cts": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dataartsstudio": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dbss": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dc": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dcs": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dds": "3.1.117", + "@huaweicloud/huaweicloud-sdk-devstar": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dli": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dns": "3.1.117", + "@huaweicloud/huaweicloud-sdk-drs": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dsc": "3.1.117", + "@huaweicloud/huaweicloud-sdk-dws": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ecs": "3.1.117", + "@huaweicloud/huaweicloud-sdk-eip": "3.1.117", + "@huaweicloud/huaweicloud-sdk-elb": "3.1.117", + "@huaweicloud/huaweicloud-sdk-eps": "3.1.117", + "@huaweicloud/huaweicloud-sdk-er": "3.1.117", + "@huaweicloud/huaweicloud-sdk-evs": "3.1.117", + "@huaweicloud/huaweicloud-sdk-frs": "3.1.117", + "@huaweicloud/huaweicloud-sdk-functiongraph": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ga": "3.1.117", + "@huaweicloud/huaweicloud-sdk-gaussdb": "3.1.117", + "@huaweicloud/huaweicloud-sdk-gaussdbfornosql": "3.1.117", + "@huaweicloud/huaweicloud-sdk-gaussdbforopengauss": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ges": "3.1.117", + "@huaweicloud/huaweicloud-sdk-hss": "3.1.117", + "@huaweicloud/huaweicloud-sdk-iam": "3.1.117", + "@huaweicloud/huaweicloud-sdk-iamaccessanalyzer": "3.1.117", + "@huaweicloud/huaweicloud-sdk-image": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ims": "3.1.117", + "@huaweicloud/huaweicloud-sdk-iotda": "3.1.117", + "@huaweicloud/huaweicloud-sdk-iotdm": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ivs": "3.1.117", + "@huaweicloud/huaweicloud-sdk-kafka": "3.1.117", + "@huaweicloud/huaweicloud-sdk-kms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-kps": "3.1.117", + "@huaweicloud/huaweicloud-sdk-live": "3.1.117", + "@huaweicloud/huaweicloud-sdk-lts": "3.1.117", + "@huaweicloud/huaweicloud-sdk-meeting": "3.1.117", + "@huaweicloud/huaweicloud-sdk-metastudio": "3.1.117", + "@huaweicloud/huaweicloud-sdk-moderation": "3.1.117", + "@huaweicloud/huaweicloud-sdk-mpc": "3.1.117", + "@huaweicloud/huaweicloud-sdk-mrs": "3.1.117", + "@huaweicloud/huaweicloud-sdk-msgsms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-nat": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ocr": "3.1.117", + "@huaweicloud/huaweicloud-sdk-oms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-organizations": "3.1.117", + "@huaweicloud/huaweicloud-sdk-pangulargemodels": "3.1.117", + "@huaweicloud/huaweicloud-sdk-rabbitmq": "3.1.117", + "@huaweicloud/huaweicloud-sdk-ram": "3.1.117", + "@huaweicloud/huaweicloud-sdk-rds": "3.1.117", + "@huaweicloud/huaweicloud-sdk-rms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-rocketmq": "3.1.117", + "@huaweicloud/huaweicloud-sdk-secmaster": "3.1.117", + "@huaweicloud/huaweicloud-sdk-servicestage": "3.1.117", + "@huaweicloud/huaweicloud-sdk-sfsturbo": "3.1.117", + "@huaweicloud/huaweicloud-sdk-sis": "3.1.117", + "@huaweicloud/huaweicloud-sdk-smn": "3.1.117", + "@huaweicloud/huaweicloud-sdk-sms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-swr": "3.1.117", + "@huaweicloud/huaweicloud-sdk-tics": "3.1.117", + "@huaweicloud/huaweicloud-sdk-tms": "3.1.117", + "@huaweicloud/huaweicloud-sdk-vod": "3.1.117", + "@huaweicloud/huaweicloud-sdk-vpc": "3.1.117", + "@huaweicloud/huaweicloud-sdk-vpcep": "3.1.117", + "@huaweicloud/huaweicloud-sdk-vpn": "3.1.117", + "@huaweicloud/huaweicloud-sdk-waf": "3.1.117" }, "files": ["package.json"] } diff --git a/package.json b/package.json index 9dd2c2fef..a3fbb8b2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huaweicloud-sdk-nodejs-v3", - "version": "3.1.116", + "version": "3.1.117", "description": "Core code for Huaweicloud SDK for Node.js", "main": "index.js", "scripts": { diff --git a/services/cc/v2/CcClient.ts b/services/cc/v2/CcClient.ts index 9498a94aa..7eb9acd80 100644 --- a/services/cc/v2/CcClient.ts +++ b/services/cc/v2/CcClient.ts @@ -5,45 +5,21 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; import { AggTag } from './model/AggTag'; import { BatchCreateDeleteTagsRequest } from './model/BatchCreateDeleteTagsRequest'; import { BatchCreateDeleteTagsResponse } from './model/BatchCreateDeleteTagsResponse'; -import { BatchCreateGcbResourceTagsRequest } from './model/BatchCreateGcbResourceTagsRequest'; -import { BatchCreateGcbResourceTagsResponse } from './model/BatchCreateGcbResourceTagsResponse'; -import { BatchDeleteGcbResourceTagsRequest } from './model/BatchDeleteGcbResourceTagsRequest'; -import { BatchDeleteGcbResourceTagsResponse } from './model/BatchDeleteGcbResourceTagsResponse'; -import { CountGcbResourceByTagRequest } from './model/CountGcbResourceByTagRequest'; -import { CountGcbResourceByTagResponse } from './model/CountGcbResourceByTagResponse'; -import { CreateDeleteGcbTagsRequestBody } from './model/CreateDeleteGcbTagsRequestBody'; -import { CreateGcbResourceTagRequest } from './model/CreateGcbResourceTagRequest'; -import { CreateGcbResourceTagResponse } from './model/CreateGcbResourceTagResponse'; -import { CreateGcbTagRequestBody } from './model/CreateGcbTagRequestBody'; import { CreateTagRequest } from './model/CreateTagRequest'; import { CreateTagRequestBody } from './model/CreateTagRequestBody'; import { CreateTagResponse } from './model/CreateTagResponse'; -import { DeleteGcbResourceTagRequest } from './model/DeleteGcbResourceTagRequest'; -import { DeleteGcbResourceTagResponse } from './model/DeleteGcbResourceTagResponse'; import { DeleteTagRequest } from './model/DeleteTagRequest'; import { DeleteTagResponse } from './model/DeleteTagResponse'; import { FilterTagResource } from './model/FilterTagResource'; import { ListDomainTagsRequest } from './model/ListDomainTagsRequest'; import { ListDomainTagsResponse } from './model/ListDomainTagsResponse'; -import { ListGcbResourceByTagRequest } from './model/ListGcbResourceByTagRequest'; -import { ListGcbResourceByTagResponse } from './model/ListGcbResourceByTagResponse'; -import { ListGcbResourceTagsRequest } from './model/ListGcbResourceTagsRequest'; -import { ListGcbResourceTagsResponse } from './model/ListGcbResourceTagsResponse'; -import { ListGcbTenantTagsRequest } from './model/ListGcbTenantTagsRequest'; -import { ListGcbTenantTagsResponse } from './model/ListGcbTenantTagsResponse'; import { ListResourceByFilterTagRequest } from './model/ListResourceByFilterTagRequest'; import { ListResourceByFilterTagRequestBody } from './model/ListResourceByFilterTagRequestBody'; import { ListResourceByFilterTagResponse } from './model/ListResourceByFilterTagResponse'; import { ListTagsRequest } from './model/ListTagsRequest'; import { ListTagsResponse } from './model/ListTagsResponse'; -import { QueryResourceByTagRequestBody } from './model/QueryResourceByTagRequestBody'; -import { QueryTag } from './model/QueryTag'; -import { RequiredTag } from './model/RequiredTag'; import { ResourceTags } from './model/ResourceTags'; import { Tag } from './model/Tag'; -import { TmsMatch } from './model/TmsMatch'; -import { TmsResource } from './model/TmsResource'; -import { TmsTagValues } from './model/TmsTagValues'; export class CcClient { public static newBuilder(): ClientBuilder { @@ -61,164 +37,7 @@ export class CcClient { /** - * TMS批量添加资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 批量添加账户全域互联带宽资源标签 - * @param {string} resourceId 资源唯一标识符。 - * @param {CreateDeleteGcbTagsRequestBody} createDeleteGcbTagsRequestBody 批量添加账户全域互联带宽资源标签。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public batchCreateGcbResourceTags(batchCreateGcbResourceTagsRequest?: BatchCreateGcbResourceTagsRequest): Promise { - const options = ParamCreater().batchCreateGcbResourceTags(batchCreateGcbResourceTagsRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 批量删除账户全域互联带宽资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 批量删除账户全域互联带宽资源标签 - * @param {string} resourceId 资源唯一标识符。 - * @param {CreateDeleteGcbTagsRequestBody} createDeleteGcbTagsRequestBody 批量删除账户全域互联带宽资源标签。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public batchDeleteGcbResourceTags(batchDeleteGcbResourceTagsRequest?: BatchDeleteGcbResourceTagsRequest): Promise { - const options = ParamCreater().batchDeleteGcbResourceTags(batchDeleteGcbResourceTagsRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 查询账户全域互联带宽资源标签数量 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 查询账户全域互联带宽资源标签数量 - * @param {QueryResourceByTagRequestBody} queryResourceByTagRequestBody 查询账户全域互联带宽资源标签数量。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public countGcbResourceByTag(countGcbResourceByTagRequest?: CountGcbResourceByTagRequest): Promise { - const options = ParamCreater().countGcbResourceByTag(countGcbResourceByTagRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 添加账户全域互联带宽资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 添加账户全域互联带宽资源标签 - * @param {string} resourceId 资源唯一标识符。 - * @param {CreateGcbTagRequestBody} createGcbTagRequestBody 添加账户全域互联带宽资源标签。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public createGcbResourceTag(createGcbResourceTagRequest?: CreateGcbResourceTagRequest): Promise { - const options = ParamCreater().createGcbResourceTag(createGcbResourceTagRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 删除账户全域互联带宽资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 删除账户全域互联带宽资源标签 - * @param {string} resourceId 资源唯一标识符。 - * @param {string} tagKey 删除的tag的key。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public deleteGcbResourceTag(deleteGcbResourceTagRequest?: DeleteGcbResourceTagRequest): Promise { - const options = ParamCreater().deleteGcbResourceTag(deleteGcbResourceTagRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 查询账户全域互联带宽资源实例列表 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 查询账户全域互联带宽资源实例列表 - * @param {QueryResourceByTagRequestBody} queryResourceByTagRequestBody 查询账户全域互联带宽资源实例列表。 - * @param {number} [limit] 查询记录数。 - * @param {number} [offset] 索引位置,偏移量。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public listGcbResourceByTag(listGcbResourceByTagRequest?: ListGcbResourceByTagRequest): Promise { - const options = ParamCreater().listGcbResourceByTag(listGcbResourceByTagRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 查询账户全域互联带宽资源的标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 查询账户全域互联带宽资源的标签 - * @param {string} resourceId 资源唯一标识符。 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public listGcbResourceTags(listGcbResourceTagsRequest?: ListGcbResourceTagsRequest): Promise { - const options = ParamCreater().listGcbResourceTags(listGcbResourceTagsRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 查询账户全域互联带宽所有资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 查询账户全域互联带宽所有资源标签 - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public listGcbTenantTags(listGcbTenantTagsRequest?: ListGcbTenantTagsRequest): Promise { - const options = ParamCreater().listGcbTenantTags(); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - - /** - * 批量创建和删除标签 + * 批量创建和删除标签。此API为历史API,请优先使用《 创建云连接实例标签》、《 创建带宽包标签》、《 删除云连接实例标签》、《 删除带宽包标签》。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -239,7 +58,7 @@ export class CcClient { } /** - * 添加资源标签 + * 添加资源标签。此API为历史API,请优先使用《 创建云连接实例标签》、《 创建带宽包标签》。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -260,7 +79,7 @@ export class CcClient { } /** - * 删除资源标签 + * 删除资源标签。此API为历史API,请优先使用《 删除云连接实例标签》或《 删除带宽包标签》。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -281,7 +100,7 @@ export class CcClient { } /** - * 查询账户资源标签 + * 查询账户资源标签。此API为历史API,请优先使用《查询云连接实例的标签信息》、《查询带宽包的标签信息》。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -300,7 +119,7 @@ export class CcClient { } /** - * 查询资源实例 + * 查询资源实例。此API为历史API,请优先使用《通过标签过滤云连接实例》、《通过标签过滤带宽包实例》。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -320,7 +139,7 @@ export class CcClient { } /** - * 查询资源标签 + * 查询资源标签。此API为历史API,请优先使用《查询云连接实例的标签信息》、《查询带宽包的标签信息》。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -344,338 +163,7 @@ export const ParamCreater = function () { return { /** - * TMS批量添加资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - batchCreateGcbResourceTags(batchCreateGcbResourceTagsRequest?: BatchCreateGcbResourceTagsRequest) { - const options = { - method: "POST", - url: "/v3/gcb/{resource_id}/tags/create", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - let resourceId; - - if (batchCreateGcbResourceTagsRequest !== null && batchCreateGcbResourceTagsRequest !== undefined) { - if (batchCreateGcbResourceTagsRequest instanceof BatchCreateGcbResourceTagsRequest) { - resourceId = batchCreateGcbResourceTagsRequest.resourceId; - body = batchCreateGcbResourceTagsRequest.body - } else { - resourceId = batchCreateGcbResourceTagsRequest['resource_id']; - body = batchCreateGcbResourceTagsRequest['body']; - } - } - - - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchCreateGcbResourceTags.'); - } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.pathParams = { 'resource_id': resourceId, }; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 批量删除账户全域互联带宽资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - batchDeleteGcbResourceTags(batchDeleteGcbResourceTagsRequest?: BatchDeleteGcbResourceTagsRequest) { - const options = { - method: "POST", - url: "/v3/gcb/{resource_id}/tags/delete", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - let resourceId; - - if (batchDeleteGcbResourceTagsRequest !== null && batchDeleteGcbResourceTagsRequest !== undefined) { - if (batchDeleteGcbResourceTagsRequest instanceof BatchDeleteGcbResourceTagsRequest) { - resourceId = batchDeleteGcbResourceTagsRequest.resourceId; - body = batchDeleteGcbResourceTagsRequest.body - } else { - resourceId = batchDeleteGcbResourceTagsRequest['resource_id']; - body = batchDeleteGcbResourceTagsRequest['body']; - } - } - - - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchDeleteGcbResourceTags.'); - } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.pathParams = { 'resource_id': resourceId, }; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 查询账户全域互联带宽资源标签数量 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - countGcbResourceByTag(countGcbResourceByTagRequest?: CountGcbResourceByTagRequest) { - const options = { - method: "POST", - url: "/v3/gcb/resource-instances/count", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - if (countGcbResourceByTagRequest !== null && countGcbResourceByTagRequest !== undefined) { - if (countGcbResourceByTagRequest instanceof CountGcbResourceByTagRequest) { - body = countGcbResourceByTagRequest.body - } else { - body = countGcbResourceByTagRequest['body']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 添加账户全域互联带宽资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - createGcbResourceTag(createGcbResourceTagRequest?: CreateGcbResourceTagRequest) { - const options = { - method: "POST", - url: "/v3/gcb/{resource_id}/tags", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - - let body: any; - - let resourceId; - - if (createGcbResourceTagRequest !== null && createGcbResourceTagRequest !== undefined) { - if (createGcbResourceTagRequest instanceof CreateGcbResourceTagRequest) { - resourceId = createGcbResourceTagRequest.resourceId; - body = createGcbResourceTagRequest.body - } else { - resourceId = createGcbResourceTagRequest['resource_id']; - body = createGcbResourceTagRequest['body']; - } - } - - - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling createGcbResourceTag.'); - } - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.pathParams = { 'resource_id': resourceId, }; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 删除账户全域互联带宽资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - deleteGcbResourceTag(deleteGcbResourceTagRequest?: DeleteGcbResourceTagRequest) { - const options = { - method: "DELETE", - url: "/v3/gcb/{resource_id}/tags/{tag_key}", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - - - let resourceId; - - let tagKey; - - if (deleteGcbResourceTagRequest !== null && deleteGcbResourceTagRequest !== undefined) { - if (deleteGcbResourceTagRequest instanceof DeleteGcbResourceTagRequest) { - resourceId = deleteGcbResourceTagRequest.resourceId; - tagKey = deleteGcbResourceTagRequest.tagKey; - } else { - resourceId = deleteGcbResourceTagRequest['resource_id']; - tagKey = deleteGcbResourceTagRequest['tag_key']; - } - } - - - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling deleteGcbResourceTag.'); - } - if (tagKey === null || tagKey === undefined) { - throw new RequiredError('tagKey','Required parameter tagKey was null or undefined when calling deleteGcbResourceTag.'); - } - - options.pathParams = { 'resource_id': resourceId,'tag_key': tagKey, }; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 查询账户全域互联带宽资源实例列表 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - listGcbResourceByTag(listGcbResourceByTagRequest?: ListGcbResourceByTagRequest) { - const options = { - method: "POST", - url: "/v3/gcb/resource-instances/filter", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - let body: any; - - let limit; - - let offset; - - if (listGcbResourceByTagRequest !== null && listGcbResourceByTagRequest !== undefined) { - if (listGcbResourceByTagRequest instanceof ListGcbResourceByTagRequest) { - body = listGcbResourceByTagRequest.body - limit = listGcbResourceByTagRequest.limit; - offset = listGcbResourceByTagRequest.offset; - } else { - body = listGcbResourceByTagRequest['body']; - limit = listGcbResourceByTagRequest['limit']; - offset = listGcbResourceByTagRequest['offset']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - if (offset !== null && offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.queryParams = localVarQueryParameter; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 查询账户全域互联带宽资源的标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - listGcbResourceTags(listGcbResourceTagsRequest?: ListGcbResourceTagsRequest) { - const options = { - method: "GET", - url: "/v3/gcb/{resource_id}/tags", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - - - let resourceId; - - if (listGcbResourceTagsRequest !== null && listGcbResourceTagsRequest !== undefined) { - if (listGcbResourceTagsRequest instanceof ListGcbResourceTagsRequest) { - resourceId = listGcbResourceTagsRequest.resourceId; - } else { - resourceId = listGcbResourceTagsRequest['resource_id']; - } - } - - - if (resourceId === null || resourceId === undefined) { - throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling listGcbResourceTags.'); - } - - options.pathParams = { 'resource_id': resourceId, }; - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 查询账户全域互联带宽所有资源标签 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - listGcbTenantTags() { - const options = { - method: "GET", - url: "/v3/gcb/tags", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - - - options.headers = localVarHeaderParameter; - return options; - }, - - /** - * 批量创建和删除标签 + * 批量创建和删除标签。此API为历史API,请优先使用《 创建云连接实例标签》、《 创建带宽包标签》、《 删除云连接实例标签》、《 删除带宽包标签》。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -725,7 +213,7 @@ export const ParamCreater = function () { }, /** - * 添加资源标签 + * 添加资源标签。此API为历史API,请优先使用《 创建云连接实例标签》、《 创建带宽包标签》。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -775,7 +263,7 @@ export const ParamCreater = function () { }, /** - * 删除资源标签 + * 删除资源标签。此API为历史API,请优先使用《 删除云连接实例标签》或《 删除带宽包标签》。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -826,7 +314,7 @@ export const ParamCreater = function () { }, /** - * 查询账户资源标签 + * 查询账户资源标签。此API为历史API,请优先使用《查询云连接实例的标签信息》、《查询带宽包的标签信息》。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -863,7 +351,7 @@ export const ParamCreater = function () { }, /** - * 查询资源实例 + * 查询资源实例。此API为历史API,请优先使用《通过标签过滤云连接实例》、《通过标签过滤带宽包实例》。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -906,7 +394,7 @@ export const ParamCreater = function () { }, /** - * 查询资源标签 + * 查询资源标签。此API为历史API,请优先使用《查询云连接实例的标签信息》、《查询带宽包的标签信息》。 * * Please refer to HUAWEI cloud API Explorer for details. */ diff --git a/services/cc/v2/public-api.ts b/services/cc/v2/public-api.ts index 30dac3c97..7151944f7 100644 --- a/services/cc/v2/public-api.ts +++ b/services/cc/v2/public-api.ts @@ -4,43 +4,19 @@ export * from './GlobalCredentials'; export * from './model/AggTag'; export * from './model/BatchCreateDeleteTagsRequest'; export * from './model/BatchCreateDeleteTagsResponse'; -export * from './model/BatchCreateGcbResourceTagsRequest'; -export * from './model/BatchCreateGcbResourceTagsResponse'; -export * from './model/BatchDeleteGcbResourceTagsRequest'; -export * from './model/BatchDeleteGcbResourceTagsResponse'; -export * from './model/CountGcbResourceByTagRequest'; -export * from './model/CountGcbResourceByTagResponse'; -export * from './model/CreateDeleteGcbTagsRequestBody'; -export * from './model/CreateGcbResourceTagRequest'; -export * from './model/CreateGcbResourceTagResponse'; -export * from './model/CreateGcbTagRequestBody'; export * from './model/CreateTagRequest'; export * from './model/CreateTagRequestBody'; export * from './model/CreateTagResponse'; -export * from './model/DeleteGcbResourceTagRequest'; -export * from './model/DeleteGcbResourceTagResponse'; export * from './model/DeleteTagRequest'; export * from './model/DeleteTagResponse'; export * from './model/FilterTagResource'; export * from './model/ListDomainTagsRequest'; export * from './model/ListDomainTagsResponse'; -export * from './model/ListGcbResourceByTagRequest'; -export * from './model/ListGcbResourceByTagResponse'; -export * from './model/ListGcbResourceTagsRequest'; -export * from './model/ListGcbResourceTagsResponse'; -export * from './model/ListGcbTenantTagsRequest'; -export * from './model/ListGcbTenantTagsResponse'; export * from './model/ListResourceByFilterTagRequest'; export * from './model/ListResourceByFilterTagRequestBody'; export * from './model/ListResourceByFilterTagResponse'; export * from './model/ListTagsRequest'; export * from './model/ListTagsResponse'; -export * from './model/QueryResourceByTagRequestBody'; -export * from './model/QueryTag'; -export * from './model/RequiredTag'; export * from './model/ResourceTags'; export * from './model/Tag'; -export * from './model/TmsMatch'; -export * from './model/TmsResource'; -export * from './model/TmsTagValues'; export * from './CcRegion'; diff --git a/services/cc/v3/CcClient.ts b/services/cc/v3/CcClient.ts index c3333a5e0..0210fffac 100644 --- a/services/cc/v3/CcClient.ts +++ b/services/cc/v3/CcClient.ts @@ -18,16 +18,26 @@ import { AssociateGlobalConnectionBandwidthInstanceRequestBody } from './model/A import { AssociateGlobalConnectionBandwidthInstanceRequestInfo } from './model/AssociateGlobalConnectionBandwidthInstanceRequestInfo'; import { AssociateGlobalConnectionBandwidthInstanceResponse } from './model/AssociateGlobalConnectionBandwidthInstanceResponse'; import { AssociateGlobalConnectionBandwidthInstanceResponseInfo } from './model/AssociateGlobalConnectionBandwidthInstanceResponseInfo'; +import { AttachmentId } from './model/AttachmentId'; import { AttachmentInstanceId } from './model/AttachmentInstanceId'; +import { AttachmentInstanceProjectId } from './model/AttachmentInstanceProjectId'; +import { AttachmentInstanceRegionId } from './model/AttachmentInstanceRegionId'; +import { AttachmentInstanceSiteCode } from './model/AttachmentInstanceSiteCode'; import { AttachmentInstanceType } from './model/AttachmentInstanceType'; import { AttachmentInstanceTypeEnum } from './model/AttachmentInstanceTypeEnum'; import { Authorisation } from './model/Authorisation'; +import { AutoAssociateRouteEnabled } from './model/AutoAssociateRouteEnabled'; +import { AutoPropagateRouteEnabled } from './model/AutoPropagateRouteEnabled'; import { BandwidthPackage } from './model/BandwidthPackage'; import { BandwidthPackageId } from './model/BandwidthPackageId'; import { BandwidthSize } from './model/BandwidthSize'; import { BandwidthSizeDefine } from './model/BandwidthSizeDefine'; import { BandwidthType } from './model/BandwidthType'; import { BandwidthTypeEnum } from './model/BandwidthTypeEnum'; +import { BatchCreateGcbResourceTagsRequest } from './model/BatchCreateGcbResourceTagsRequest'; +import { BatchCreateGcbResourceTagsResponse } from './model/BatchCreateGcbResourceTagsResponse'; +import { BatchDeleteGcbResourceTagsRequest } from './model/BatchDeleteGcbResourceTagsRequest'; +import { BatchDeleteGcbResourceTagsResponse } from './model/BatchDeleteGcbResourceTagsResponse'; import { BillingMode } from './model/BillingMode'; import { BillingModeEnum } from './model/BillingModeEnum'; import { CentralNetwork } from './model/CentralNetwork'; @@ -37,8 +47,10 @@ import { CentralNetworkCapability } from './model/CentralNetworkCapability'; import { CentralNetworkCapabilityEnum } from './model/CentralNetworkCapabilityEnum'; import { CentralNetworkConnection } from './model/CentralNetworkConnection'; import { CentralNetworkConnectionInfo } from './model/CentralNetworkConnectionInfo'; +import { CentralNetworkConnectionPlaneId } from './model/CentralNetworkConnectionPlaneId'; import { CentralNetworkConnectionState } from './model/CentralNetworkConnectionState'; import { CentralNetworkConnectionStateEnum } from './model/CentralNetworkConnectionStateEnum'; +import { CentralNetworkDefaultPlaneId } from './model/CentralNetworkDefaultPlaneId'; import { CentralNetworkElementChange } from './model/CentralNetworkElementChange'; import { CentralNetworkErInstance } from './model/CentralNetworkErInstance'; import { CentralNetworkErRouteTableAttachment } from './model/CentralNetworkErRouteTableAttachment'; @@ -65,6 +77,8 @@ import { ConnectionPointPair } from './model/ConnectionPointPair'; import { ConnectionPointTypeEnum } from './model/ConnectionPointTypeEnum'; import { ConnectionType } from './model/ConnectionType'; import { ConnectionTypeEnum } from './model/ConnectionTypeEnum'; +import { CountGcbResourceByTagRequest } from './model/CountGcbResourceByTagRequest'; +import { CountGcbResourceByTagResponse } from './model/CountGcbResourceByTagResponse'; import { CreateAuthorisation } from './model/CreateAuthorisation'; import { CreateAuthorisationRequest } from './model/CreateAuthorisationRequest'; import { CreateAuthorisationRequestBody } from './model/CreateAuthorisationRequestBody'; @@ -92,6 +106,10 @@ import { CreateCloudConnection } from './model/CreateCloudConnection'; import { CreateCloudConnectionRequest } from './model/CreateCloudConnectionRequest'; import { CreateCloudConnectionRequestBody } from './model/CreateCloudConnectionRequestBody'; import { CreateCloudConnectionResponse } from './model/CreateCloudConnectionResponse'; +import { CreateDeleteGcbTagsRequestBody } from './model/CreateDeleteGcbTagsRequestBody'; +import { CreateGcbResourceTagRequest } from './model/CreateGcbResourceTagRequest'; +import { CreateGcbResourceTagResponse } from './model/CreateGcbResourceTagResponse'; +import { CreateGcbTagRequestBody } from './model/CreateGcbTagRequestBody'; import { CreateGlobalConnectionBandwidth } from './model/CreateGlobalConnectionBandwidth'; import { CreateGlobalConnectionBandwidthRequest } from './model/CreateGlobalConnectionBandwidthRequest'; import { CreateGlobalConnectionBandwidthRequestBody } from './model/CreateGlobalConnectionBandwidthRequestBody'; @@ -117,6 +135,8 @@ import { DeleteCentralNetworkRequest } from './model/DeleteCentralNetworkRequest import { DeleteCentralNetworkResponse } from './model/DeleteCentralNetworkResponse'; import { DeleteCloudConnectionRequest } from './model/DeleteCloudConnectionRequest'; import { DeleteCloudConnectionResponse } from './model/DeleteCloudConnectionResponse'; +import { DeleteGcbResourceTagRequest } from './model/DeleteGcbResourceTagRequest'; +import { DeleteGcbResourceTagResponse } from './model/DeleteGcbResourceTagResponse'; import { DeleteGlobalConnectionBandwidthRequest } from './model/DeleteGlobalConnectionBandwidthRequest'; import { DeleteGlobalConnectionBandwidthResponse } from './model/DeleteGlobalConnectionBandwidthResponse'; import { DeleteInterRegionBandwidthRequest } from './model/DeleteInterRegionBandwidthRequest'; @@ -142,6 +162,7 @@ import { EnterpriseRouterAttachmentId } from './model/EnterpriseRouterAttachment import { EnterpriseRouterId } from './model/EnterpriseRouterId'; import { EnterpriseRouterProjectId } from './model/EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './model/EnterpriseRouterRegionId'; +import { EnterpriseRouterSiteCode } from './model/EnterpriseRouterSiteCode'; import { EnterpriseRouterTableId } from './model/EnterpriseRouterTableId'; import { GcbAdminState } from './model/GcbAdminState'; import { GcbBindingServiceAll } from './model/GcbBindingServiceAll'; @@ -172,6 +193,8 @@ import { GlobalConnectionBandwidthSizeRange } from './model/GlobalConnectionBand import { GlobalConnectionBandwidthSpecCode } from './model/GlobalConnectionBandwidthSpecCode'; import { GlobalDcGatewayId } from './model/GlobalDcGatewayId'; import { GlobalDcGatewayPeerLinkId } from './model/GlobalDcGatewayPeerLinkId'; +import { GlobalDcGatewayProjectId } from './model/GlobalDcGatewayProjectId'; +import { GlobalDcGatewayRegionId } from './model/GlobalDcGatewayRegionId'; import { HostedCloudEnum } from './model/HostedCloudEnum'; import { InstanceDomainId } from './model/InstanceDomainId'; import { InstanceId } from './model/InstanceId'; @@ -221,6 +244,12 @@ import { ListCloudConnectionsByTagsRequestBody } from './model/ListCloudConnecti import { ListCloudConnectionsByTagsResponse } from './model/ListCloudConnectionsByTagsResponse'; import { ListCloudConnectionsRequest } from './model/ListCloudConnectionsRequest'; import { ListCloudConnectionsResponse } from './model/ListCloudConnectionsResponse'; +import { ListGcbResourceByTagRequest } from './model/ListGcbResourceByTagRequest'; +import { ListGcbResourceByTagResponse } from './model/ListGcbResourceByTagResponse'; +import { ListGcbResourceTagsRequest } from './model/ListGcbResourceTagsRequest'; +import { ListGcbResourceTagsResponse } from './model/ListGcbResourceTagsResponse'; +import { ListGcbTenantTagsRequest } from './model/ListGcbTenantTagsRequest'; +import { ListGcbTenantTagsResponse } from './model/ListGcbTenantTagsResponse'; import { ListGlobalConnectionBandwidthConfigs } from './model/ListGlobalConnectionBandwidthConfigs'; import { ListGlobalConnectionBandwidthConfigsRequest } from './model/ListGlobalConnectionBandwidthConfigsRequest'; import { ListGlobalConnectionBandwidthConfigsResponse } from './model/ListGlobalConnectionBandwidthConfigsResponse'; @@ -247,13 +276,21 @@ import { Name } from './model/Name'; import { NameDef } from './model/NameDef'; import { NetworkInstance } from './model/NetworkInstance'; import { NextMarker } from './model/NextMarker'; +import { NonDefaultAutoAssociateRouteEnabled } from './model/NonDefaultAutoAssociateRouteEnabled'; +import { NonDefaultAutoPropagateRouteEnabled } from './model/NonDefaultAutoPropagateRouteEnabled'; +import { NonRequiredAutoAssociateRouteEnabled } from './model/NonRequiredAutoAssociateRouteEnabled'; +import { NonRequiredAutoPropagateRouteEnabled } from './model/NonRequiredAutoPropagateRouteEnabled'; +import { NonRequiredCentralNetworkPlaneId } from './model/NonRequiredCentralNetworkPlaneId'; +import { NonRequiredGcbChargeMode } from './model/NonRequiredGcbChargeMode'; +import { NonRequiredGcbSize } from './model/NonRequiredGcbSize'; import { NonRequiredName } from './model/NonRequiredName'; import { PageInfo } from './model/PageInfo'; import { Permission } from './model/Permission'; -import { PlaneId } from './model/PlaneId'; import { PreviousMarker } from './model/PreviousMarker'; import { ProjectId } from './model/ProjectId'; import { ProjectIdDef } from './model/ProjectIdDef'; +import { QueryResourceByTagRequestBody } from './model/QueryResourceByTagRequestBody'; +import { QueryTag } from './model/QueryTag'; import { QuotaLimit } from './model/QuotaLimit'; import { QuotaUnit } from './model/QuotaUnit'; import { QuotaUsed } from './model/QuotaUsed'; @@ -261,6 +298,7 @@ import { RegionId } from './model/RegionId'; import { RegionIdDef } from './model/RegionIdDef'; import { RemoteAreaId } from './model/RemoteAreaId'; import { RequestId } from './model/RequestId'; +import { RequiredTag } from './model/RequiredTag'; import { ResourceId } from './model/ResourceId'; import { ResourceType } from './model/ResourceType'; import { ShowBandwidthPackageRequest } from './model/ShowBandwidthPackageRequest'; @@ -299,8 +337,13 @@ import { TagCloudConnectionResponse } from './model/TagCloudConnectionResponse'; import { TagKey } from './model/TagKey'; import { TagValue } from './model/TagValue'; import { Tags } from './model/Tags'; -import { UUIDDef } from './model/UUIDDef'; -import { UUIDIdentifier } from './model/UUIDIdentifier'; +import { TmsMatch } from './model/TmsMatch'; +import { TmsResource } from './model/TmsResource'; +import { TmsTagValues } from './model/TmsTagValues'; +import { UUID32Def } from './model/UUID32Def'; +import { UUID32Identifier } from './model/UUID32Identifier'; +import { UUID64Def } from './model/UUID64Def'; +import { UUID64Identifier } from './model/UUID64Identifier'; import { UntagBandwidthPackageRequest } from './model/UntagBandwidthPackageRequest'; import { UntagBandwidthPackageRequestBody } from './model/UntagBandwidthPackageRequestBody'; import { UntagBandwidthPackageResponse } from './model/UntagBandwidthPackageResponse'; @@ -394,7 +437,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除授权 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -465,7 +508,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新授权 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UpdateAuthorisationRequestBody} updateAuthorisationRequestBody 更新授权实例的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -485,7 +528,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 将带宽包实例绑定到云连接实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {AssociateBandwidthPackageRequestBody} associateBandwidthPackageRequestBody 将带宽包实例关联到资源的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -524,7 +567,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除带宽包实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -543,7 +586,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 解除带宽包实例与云连接实例的绑定 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {DisassociateBandwidthPackageRequestBody} disassociateBandwidthPackageRequestBody 将带宽包实例与资源解关联的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -628,7 +671,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询带宽包实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -647,7 +690,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建带宽包标签 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {TagBandwidthPackageRequestBody} tagBandwidthPackageRequestBody 创建带宽包标签请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -667,7 +710,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除带宽包标签 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UntagBandwidthPackageRequestBody} untagBandwidthPackageRequestBody 删除带宽包标签请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -687,7 +730,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新带宽包实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UpdateBandwidthPackageRequestBody} updateBandwidthPackageRequestBody 更新带宽包实例的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1339,7 +1382,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除云连接实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1423,7 +1466,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云连接实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1442,7 +1485,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建云连接实例标签 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {TagCloudConnectionRequestBody} tagCloudConnectionRequestBody 创建云连接实例标签请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1462,7 +1505,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除云连接实例标签 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UntagCloudConnectionRequestBody} untagCloudConnectionRequestBody 删除云连接实例标签请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1482,7 +1525,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新云连接实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UpdateCloudConnectionRequestBody} updateCloudConnectionRequestBody 更新云连接实例的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1551,7 +1594,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询云连接路由条目详情 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1564,13 +1607,170 @@ export class CcClient { return this.hcClient.sendRequest(options); } + /** + * TMS批量添加资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 批量添加账户全域互联带宽资源标签 + * @param {string} resourceId 资源唯一标识符。 + * @param {CreateDeleteGcbTagsRequestBody} createDeleteGcbTagsRequestBody 批量添加账户全域互联带宽资源标签。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public batchCreateGcbResourceTags(batchCreateGcbResourceTagsRequest?: BatchCreateGcbResourceTagsRequest): Promise { + const options = ParamCreater().batchCreateGcbResourceTags(batchCreateGcbResourceTagsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 批量删除账户全域互联带宽资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 批量删除账户全域互联带宽资源标签 + * @param {string} resourceId 资源唯一标识符。 + * @param {CreateDeleteGcbTagsRequestBody} createDeleteGcbTagsRequestBody 批量删除账户全域互联带宽资源标签。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public batchDeleteGcbResourceTags(batchDeleteGcbResourceTagsRequest?: BatchDeleteGcbResourceTagsRequest): Promise { + const options = ParamCreater().batchDeleteGcbResourceTags(batchDeleteGcbResourceTagsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询账户全域互联带宽资源标签数量 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询账户全域互联带宽资源标签数量 + * @param {QueryResourceByTagRequestBody} queryResourceByTagRequestBody 查询账户全域互联带宽资源标签数量。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public countGcbResourceByTag(countGcbResourceByTagRequest?: CountGcbResourceByTagRequest): Promise { + const options = ParamCreater().countGcbResourceByTag(countGcbResourceByTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 添加账户全域互联带宽资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 添加账户全域互联带宽资源标签 + * @param {string} resourceId 资源唯一标识符。 + * @param {CreateGcbTagRequestBody} createGcbTagRequestBody 添加账户全域互联带宽资源标签。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createGcbResourceTag(createGcbResourceTagRequest?: CreateGcbResourceTagRequest): Promise { + const options = ParamCreater().createGcbResourceTag(createGcbResourceTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 删除账户全域互联带宽资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除账户全域互联带宽资源标签 + * @param {string} resourceId 资源唯一标识符。 + * @param {string} tagKey 删除的tag的key。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteGcbResourceTag(deleteGcbResourceTagRequest?: DeleteGcbResourceTagRequest): Promise { + const options = ParamCreater().deleteGcbResourceTag(deleteGcbResourceTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询账户全域互联带宽资源实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询账户全域互联带宽资源实例列表 + * @param {QueryResourceByTagRequestBody} queryResourceByTagRequestBody 查询账户全域互联带宽资源实例列表。 + * @param {number} [limit] 查询记录数。 + * @param {number} [offset] 索引位置,偏移量。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listGcbResourceByTag(listGcbResourceByTagRequest?: ListGcbResourceByTagRequest): Promise { + const options = ParamCreater().listGcbResourceByTag(listGcbResourceByTagRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询账户全域互联带宽资源的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询账户全域互联带宽资源的标签 + * @param {string} resourceId 资源唯一标识符。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listGcbResourceTags(listGcbResourceTagsRequest?: ListGcbResourceTagsRequest): Promise { + const options = ParamCreater().listGcbResourceTags(listGcbResourceTagsRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询账户全域互联带宽所有资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询账户全域互联带宽所有资源标签 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listGcbTenantTags(listGcbTenantTagsRequest?: ListGcbTenantTagsRequest): Promise { + const options = ParamCreater().listGcbTenantTags(); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * 全域互联带宽绑定实例。 * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 全域互联带宽绑定实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {AssociateGlobalConnectionBandwidthInstanceRequestBody} associateGlobalConnectionBandwidthInstanceRequestBody 全域互联带宽绑定实例的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1609,7 +1809,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除全域互联带宽 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1628,7 +1828,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 全域互联带宽解绑实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {DisassociateGlobalConnectionBandwidthInstanceRequestBody} disassociateGlobalConnectionBandwidthInstanceRequestBody 全域互联带宽解绑实例的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1695,6 +1895,8 @@ export class CcClient { * @param {number} [limit] 每页返回的个数。 取值范围:1~1000。 * @param {string} [marker] 翻页信息,从上次API调用返回的翻页数据中获取,可填写前一页marker或者后一页marker,填入前一页previous_marker就向前翻页,后一页next_marker就向翻页。 翻页过程中,查询条件不能修改,包括过滤条件,排序条件,limit。 * @param {Array} [id] 根据id查询,可查询多个id。 + * @param {string} [nameEn] 站点信息自定义英文名称。 + * @param {string} [nameCn] 站点信息自定义中文名称。 * @param {string} [siteCode] 站点编码。 * @param {'Area' | 'SubArea' | 'Region'} [siteType] 站点类型: - Area: 大区 - SubArea: 区域 - Region: 城域 * @param {*} [options] Override http request option. @@ -1746,9 +1948,12 @@ export class CcClient { * @param {Array} [id] 根据id查询,可查询多个id。 * @param {Array} [name] 根据名字查询,可查询多个名字。 * @param {Array} [enterpriseProjectId] 根据企业项目ID过滤列表。 + * @param {Array} [instanceId] 根据绑定实例id过滤全域互联带宽列表。 + * @param {Array<'CC' | 'GEIP' | 'GCN' | 'GSN'>} [instanceType] 根据绑定实例类型过滤全域互联带宽列表。实例类型: - CC: 云连接 - GEIP: 全域弹性公网IP - GCN: 中心网络 - GSN: 分支网络 * @param {Array<'CC' | 'GEIP' | 'GCN' | 'GSN'>} [bindingService] 根据支持绑定实例类型过滤全域互联带宽列表。实例类型: - CC: 云连接 - GEIP: 全域弹性公网IP - GCN: 中心网络 - GSN: 分支网络 * @param {Array<'TrsArea' | 'Area' | 'SubArea' | 'Region'>} [type] 根据带宽类型过滤全域互联带宽列表。带宽类型: - TrsArea: 跨区带宽 - Area: 大区带宽 - SubArea: 区域带宽 - Region: 城域带宽 - * @param {Array<'bwd' | '95'>} [chargeMode] 根据计费方式过滤全域互联带宽列表: - bwd: 按带宽计费 - 95: 按传统型95计费 + * @param {Array<'NORMAL' | 'FREEZED'>} [adminState] 根据带宽状态过滤全域互联带宽列表: - NORMAL: 正常 - FREEZED: 冻结 + * @param {Array<'bwd' | '95' | '95avr'>} [chargeMode] 根据计费方式过滤全域互联带宽列表: - bwd: 按带宽计费 - 95: 按传统型95计费 - 95avr (日95计费) * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1768,12 +1973,12 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询符合绑定条件的全域互联带宽列表 - * @param {'CC' | 'GEIP' | 'GCN' | 'GSN'} bindingService 根据支持绑定实例类型过滤全域互联带宽列表。实例类型: - CC: 云连接 - GEIP: 全域弹性公网IP - GCN: 中心网络 - GSN: 分支网络 * @param {number} [limit] 每页返回的个数。 取值范围:1~1000。 * @param {string} [marker] 翻页信息,从上次API调用返回的翻页数据中获取,可填写前一页marker或者后一页marker,填入前一页previous_marker就向前翻页,后一页next_marker就向翻页。 翻页过程中,查询条件不能修改,包括过滤条件,排序条件,limit。 * @param {Array} [enterpriseProjectId] 根据企业项目ID过滤列表。 * @param {string} [localArea] 功能说明:本端接入点。 如果是region类型,则返回所有满足条件的城域带宽,不进行该字段的匹配过滤 如果是其他类型,则会用该字段跟全域互联带宽的local_area进行匹配过滤 附带过滤条件:会通过local_area和remote_area推算最佳全域互联带宽类型进行过滤查询 限制:local_area和remote_area同为空或者同不为空,且站点类型需一致 * @param {string} [remoteArea] 功能说明:远端接入点。 如果是region类型,则返回所有满足条件的城域带宽,不进行该字段的匹配过滤 如果是其他类型,则会用该字段跟全域互联带宽的remote_area进行匹配过滤 附带过滤条件:会通过local_area和remote_area推算最佳全域互联带宽类型进行过滤查询 限制:local_area和remote_area同为空或者同不为空,且站点类型需一致 + * @param {'CC' | 'GEIP' | 'GCN' | 'GSN'} [bindingService] 根据支持绑定实例类型过滤全域互联带宽列表。实例类型: - CC: 云连接 - GEIP: 全域弹性公网IP - GCN: 中心网络 - GSN: 分支网络 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1792,7 +1997,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询全域互联带宽详情 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1811,7 +2016,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新全域互联带宽详情 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UpdateGlobalConnectionBandwidthRequestBody} updateGlobalConnectionBandwidthRequestBody 更新全域互联带宽详情的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1850,7 +2055,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除域间带宽实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1894,7 +2099,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询域间带宽实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -1913,7 +2118,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新域间带宽实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UpdateInterRegionBandwidthRequestBody} updateInterRegionBandwidthRequestBody 更新域间带宽实例的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -1952,7 +2157,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除网络实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2000,7 +2205,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询网络实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -2019,7 +2224,7 @@ export class CcClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 更新网络实例 - * @param {string} id 资源的Id。 + * @param {string} id 实例ID。 * @param {UpdateNetworkInstanceRequestBody} updateNetworkInstanceRequestBody 更新网络实例的请求体。 * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -4985,6 +5190,337 @@ export const ParamCreater = function () { return options; }, + /** + * TMS批量添加资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + batchCreateGcbResourceTags(batchCreateGcbResourceTagsRequest?: BatchCreateGcbResourceTagsRequest) { + const options = { + method: "POST", + url: "/v3/gcb/{resource_id}/tags/create", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let resourceId; + + if (batchCreateGcbResourceTagsRequest !== null && batchCreateGcbResourceTagsRequest !== undefined) { + if (batchCreateGcbResourceTagsRequest instanceof BatchCreateGcbResourceTagsRequest) { + resourceId = batchCreateGcbResourceTagsRequest.resourceId; + body = batchCreateGcbResourceTagsRequest.body + } else { + resourceId = batchCreateGcbResourceTagsRequest['resource_id']; + body = batchCreateGcbResourceTagsRequest['body']; + } + } + + + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchCreateGcbResourceTags.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'resource_id': resourceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 批量删除账户全域互联带宽资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + batchDeleteGcbResourceTags(batchDeleteGcbResourceTagsRequest?: BatchDeleteGcbResourceTagsRequest) { + const options = { + method: "POST", + url: "/v3/gcb/{resource_id}/tags/delete", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let resourceId; + + if (batchDeleteGcbResourceTagsRequest !== null && batchDeleteGcbResourceTagsRequest !== undefined) { + if (batchDeleteGcbResourceTagsRequest instanceof BatchDeleteGcbResourceTagsRequest) { + resourceId = batchDeleteGcbResourceTagsRequest.resourceId; + body = batchDeleteGcbResourceTagsRequest.body + } else { + resourceId = batchDeleteGcbResourceTagsRequest['resource_id']; + body = batchDeleteGcbResourceTagsRequest['body']; + } + } + + + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling batchDeleteGcbResourceTags.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'resource_id': resourceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询账户全域互联带宽资源标签数量 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + countGcbResourceByTag(countGcbResourceByTagRequest?: CountGcbResourceByTagRequest) { + const options = { + method: "POST", + url: "/v3/gcb/resource-instances/count", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + if (countGcbResourceByTagRequest !== null && countGcbResourceByTagRequest !== undefined) { + if (countGcbResourceByTagRequest instanceof CountGcbResourceByTagRequest) { + body = countGcbResourceByTagRequest.body + } else { + body = countGcbResourceByTagRequest['body']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 添加账户全域互联带宽资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + createGcbResourceTag(createGcbResourceTagRequest?: CreateGcbResourceTagRequest) { + const options = { + method: "POST", + url: "/v3/gcb/{resource_id}/tags", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let resourceId; + + if (createGcbResourceTagRequest !== null && createGcbResourceTagRequest !== undefined) { + if (createGcbResourceTagRequest instanceof CreateGcbResourceTagRequest) { + resourceId = createGcbResourceTagRequest.resourceId; + body = createGcbResourceTagRequest.body + } else { + resourceId = createGcbResourceTagRequest['resource_id']; + body = createGcbResourceTagRequest['body']; + } + } + + + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling createGcbResourceTag.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'resource_id': resourceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除账户全域互联带宽资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteGcbResourceTag(deleteGcbResourceTagRequest?: DeleteGcbResourceTagRequest) { + const options = { + method: "DELETE", + url: "/v3/gcb/{resource_id}/tags/{tag_key}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let resourceId; + + let tagKey; + + if (deleteGcbResourceTagRequest !== null && deleteGcbResourceTagRequest !== undefined) { + if (deleteGcbResourceTagRequest instanceof DeleteGcbResourceTagRequest) { + resourceId = deleteGcbResourceTagRequest.resourceId; + tagKey = deleteGcbResourceTagRequest.tagKey; + } else { + resourceId = deleteGcbResourceTagRequest['resource_id']; + tagKey = deleteGcbResourceTagRequest['tag_key']; + } + } + + + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling deleteGcbResourceTag.'); + } + if (tagKey === null || tagKey === undefined) { + throw new RequiredError('tagKey','Required parameter tagKey was null or undefined when calling deleteGcbResourceTag.'); + } + + options.pathParams = { 'resource_id': resourceId,'tag_key': tagKey, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询账户全域互联带宽资源实例列表 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listGcbResourceByTag(listGcbResourceByTagRequest?: ListGcbResourceByTagRequest) { + const options = { + method: "POST", + url: "/v3/gcb/resource-instances/filter", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let body: any; + + let limit; + + let offset; + + if (listGcbResourceByTagRequest !== null && listGcbResourceByTagRequest !== undefined) { + if (listGcbResourceByTagRequest instanceof ListGcbResourceByTagRequest) { + body = listGcbResourceByTagRequest.body + limit = listGcbResourceByTagRequest.limit; + offset = listGcbResourceByTagRequest.offset; + } else { + body = listGcbResourceByTagRequest['body']; + limit = listGcbResourceByTagRequest['limit']; + offset = listGcbResourceByTagRequest['offset']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询账户全域互联带宽资源的标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listGcbResourceTags(listGcbResourceTagsRequest?: ListGcbResourceTagsRequest) { + const options = { + method: "GET", + url: "/v3/gcb/{resource_id}/tags", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + let resourceId; + + if (listGcbResourceTagsRequest !== null && listGcbResourceTagsRequest !== undefined) { + if (listGcbResourceTagsRequest instanceof ListGcbResourceTagsRequest) { + resourceId = listGcbResourceTagsRequest.resourceId; + } else { + resourceId = listGcbResourceTagsRequest['resource_id']; + } + } + + + if (resourceId === null || resourceId === undefined) { + throw new RequiredError('resourceId','Required parameter resourceId was null or undefined when calling listGcbResourceTags.'); + } + + options.pathParams = { 'resource_id': resourceId, }; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询账户全域互联带宽所有资源标签 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listGcbTenantTags() { + const options = { + method: "GET", + url: "/v3/gcb/tags", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + + + options.headers = localVarHeaderParameter; + return options; + }, + /** * 全域互联带宽绑定实例。 * @@ -5270,6 +5806,10 @@ export const ParamCreater = function () { let id; + let nameEn; + + let nameCn; + let siteCode; let siteType; @@ -5279,12 +5819,16 @@ export const ParamCreater = function () { limit = listGlobalConnectionBandwidthSitesRequest.limit; marker = listGlobalConnectionBandwidthSitesRequest.marker; id = listGlobalConnectionBandwidthSitesRequest.id; + nameEn = listGlobalConnectionBandwidthSitesRequest.nameEn; + nameCn = listGlobalConnectionBandwidthSitesRequest.nameCn; siteCode = listGlobalConnectionBandwidthSitesRequest.siteCode; siteType = listGlobalConnectionBandwidthSitesRequest.siteType; } else { limit = listGlobalConnectionBandwidthSitesRequest['limit']; marker = listGlobalConnectionBandwidthSitesRequest['marker']; id = listGlobalConnectionBandwidthSitesRequest['id']; + nameEn = listGlobalConnectionBandwidthSitesRequest['name_en']; + nameCn = listGlobalConnectionBandwidthSitesRequest['name_cn']; siteCode = listGlobalConnectionBandwidthSitesRequest['site_code']; siteType = listGlobalConnectionBandwidthSitesRequest['site_type']; } @@ -5300,6 +5844,12 @@ export const ParamCreater = function () { if (id !== null && id !== undefined) { localVarQueryParameter['id'] = id; } + if (nameEn !== null && nameEn !== undefined) { + localVarQueryParameter['name_en'] = nameEn; + } + if (nameCn !== null && nameCn !== undefined) { + localVarQueryParameter['name_cn'] = nameCn; + } if (siteCode !== null && siteCode !== undefined) { localVarQueryParameter['site_code'] = siteCode; } @@ -5413,10 +5963,16 @@ export const ParamCreater = function () { let enterpriseProjectId; + let instanceId; + + let instanceType; + let bindingService; let type; + let adminState; + let chargeMode; if (listGlobalConnectionBandwidthsRequest !== null && listGlobalConnectionBandwidthsRequest !== undefined) { @@ -5426,8 +5982,11 @@ export const ParamCreater = function () { id = listGlobalConnectionBandwidthsRequest.id; name = listGlobalConnectionBandwidthsRequest.name; enterpriseProjectId = listGlobalConnectionBandwidthsRequest.enterpriseProjectId; + instanceId = listGlobalConnectionBandwidthsRequest.instanceId; + instanceType = listGlobalConnectionBandwidthsRequest.instanceType; bindingService = listGlobalConnectionBandwidthsRequest.bindingService; type = listGlobalConnectionBandwidthsRequest.type; + adminState = listGlobalConnectionBandwidthsRequest.adminState; chargeMode = listGlobalConnectionBandwidthsRequest.chargeMode; } else { limit = listGlobalConnectionBandwidthsRequest['limit']; @@ -5435,8 +5994,11 @@ export const ParamCreater = function () { id = listGlobalConnectionBandwidthsRequest['id']; name = listGlobalConnectionBandwidthsRequest['name']; enterpriseProjectId = listGlobalConnectionBandwidthsRequest['enterprise_project_id']; + instanceId = listGlobalConnectionBandwidthsRequest['instance_id']; + instanceType = listGlobalConnectionBandwidthsRequest['instance_type']; bindingService = listGlobalConnectionBandwidthsRequest['binding_service']; type = listGlobalConnectionBandwidthsRequest['type']; + adminState = listGlobalConnectionBandwidthsRequest['admin_state']; chargeMode = listGlobalConnectionBandwidthsRequest['charge_mode']; } } @@ -5457,12 +6019,21 @@ export const ParamCreater = function () { if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) { localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId; } + if (instanceId !== null && instanceId !== undefined) { + localVarQueryParameter['instance_id'] = instanceId; + } + if (instanceType !== null && instanceType !== undefined) { + localVarQueryParameter['instance_type'] = instanceType; + } if (bindingService !== null && bindingService !== undefined) { localVarQueryParameter['binding_service'] = bindingService; } if (type !== null && type !== undefined) { localVarQueryParameter['type'] = type; } + if (adminState !== null && adminState !== undefined) { + localVarQueryParameter['admin_state'] = adminState; + } if (chargeMode !== null && chargeMode !== undefined) { localVarQueryParameter['charge_mode'] = chargeMode; } @@ -5490,8 +6061,6 @@ export const ParamCreater = function () { const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - let bindingService; - let limit; let marker; @@ -5501,32 +6070,28 @@ export const ParamCreater = function () { let localArea; let remoteArea; + + let bindingService; if (listSupportBindingConnectionBandwidthsRequest !== null && listSupportBindingConnectionBandwidthsRequest !== undefined) { if (listSupportBindingConnectionBandwidthsRequest instanceof ListSupportBindingConnectionBandwidthsRequest) { - bindingService = listSupportBindingConnectionBandwidthsRequest.bindingService; limit = listSupportBindingConnectionBandwidthsRequest.limit; marker = listSupportBindingConnectionBandwidthsRequest.marker; enterpriseProjectId = listSupportBindingConnectionBandwidthsRequest.enterpriseProjectId; localArea = listSupportBindingConnectionBandwidthsRequest.localArea; remoteArea = listSupportBindingConnectionBandwidthsRequest.remoteArea; + bindingService = listSupportBindingConnectionBandwidthsRequest.bindingService; } else { - bindingService = listSupportBindingConnectionBandwidthsRequest['binding_service']; limit = listSupportBindingConnectionBandwidthsRequest['limit']; marker = listSupportBindingConnectionBandwidthsRequest['marker']; enterpriseProjectId = listSupportBindingConnectionBandwidthsRequest['enterprise_project_id']; localArea = listSupportBindingConnectionBandwidthsRequest['local_area']; remoteArea = listSupportBindingConnectionBandwidthsRequest['remote_area']; + bindingService = listSupportBindingConnectionBandwidthsRequest['binding_service']; } } - if (bindingService === null || bindingService === undefined) { - throw new RequiredError('bindingService','Required parameter bindingService was null or undefined when calling listSupportBindingConnectionBandwidths.'); - } - if (bindingService !== null && bindingService !== undefined) { - localVarQueryParameter['binding_service'] = bindingService; - } if (limit !== null && limit !== undefined) { localVarQueryParameter['limit'] = limit; } @@ -5542,6 +6107,9 @@ export const ParamCreater = function () { if (remoteArea !== null && remoteArea !== undefined) { localVarQueryParameter['remote_area'] = remoteArea; } + if (bindingService !== null && bindingService !== undefined) { + localVarQueryParameter['binding_service'] = bindingService; + } options.queryParams = localVarQueryParameter; options.headers = localVarHeaderParameter; diff --git a/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceRequestInfo.ts b/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceRequestInfo.ts index 484bbdd75..9d289b38f 100644 --- a/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceRequestInfo.ts +++ b/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceRequestInfo.ts @@ -1,4 +1,5 @@ import { GcbProjectId } from './GcbProjectId'; +import { GcbRegionId } from './GcbRegionId'; import { GcbResourceId } from './GcbResourceId'; import { GcbResourceType } from './GcbResourceType'; @@ -6,8 +7,8 @@ import { GcbResourceType } from './GcbResourceType'; export class AssociateGlobalConnectionBandwidthInstanceRequestInfo { private 'resource_id'?: string; private 'resource_type'?: string; - private 'project_id'?: string; private 'region_id'?: string; + private 'project_id'?: string; public constructor(resourceId?: string, resourceType?: string, projectId?: string) { this['resource_id'] = resourceId; this['resource_type'] = resourceType; @@ -33,16 +34,6 @@ export class AssociateGlobalConnectionBandwidthInstanceRequestInfo { public get resourceType(): string | undefined { return this['resource_type']; } - public withProjectId(projectId: string): AssociateGlobalConnectionBandwidthInstanceRequestInfo { - this['project_id'] = projectId; - return this; - } - public set projectId(projectId: string | undefined) { - this['project_id'] = projectId; - } - public get projectId(): string | undefined { - return this['project_id']; - } public withRegionId(regionId: string): AssociateGlobalConnectionBandwidthInstanceRequestInfo { this['region_id'] = regionId; return this; @@ -53,4 +44,14 @@ export class AssociateGlobalConnectionBandwidthInstanceRequestInfo { public get regionId(): string | undefined { return this['region_id']; } + public withProjectId(projectId: string): AssociateGlobalConnectionBandwidthInstanceRequestInfo { + this['project_id'] = projectId; + return this; + } + public set projectId(projectId: string | undefined) { + this['project_id'] = projectId; + } + public get projectId(): string | undefined { + return this['project_id']; + } } \ No newline at end of file diff --git a/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceResponseInfo.ts b/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceResponseInfo.ts index e4317c6a6..4c322d8de 100644 --- a/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceResponseInfo.ts +++ b/services/cc/v3/model/AssociateGlobalConnectionBandwidthInstanceResponseInfo.ts @@ -11,7 +11,10 @@ export class AssociateGlobalConnectionBandwidthInstanceResponseInfo { private 'project_id'?: string; public result?: AssociateGlobalConnectionBandwidthInstanceResponseInfoResultEnum | string; public message?: string; - public constructor() { + public constructor(resourceId?: string, resourceType?: string, projectId?: string) { + this['resource_id'] = resourceId; + this['resource_type'] = resourceType; + this['project_id'] = projectId; } public withResourceId(resourceId: string): AssociateGlobalConnectionBandwidthInstanceResponseInfo { this['resource_id'] = resourceId; diff --git a/services/cc/v3/model/AttachmentId.ts b/services/cc/v3/model/AttachmentId.ts new file mode 100644 index 000000000..3c3a450d8 --- /dev/null +++ b/services/cc/v3/model/AttachmentId.ts @@ -0,0 +1,17 @@ + + +export class AttachmentId { + private 'attachment_id'?: string; + public constructor() { + } + public withAttachmentId(attachmentId: string): AttachmentId { + this['attachment_id'] = attachmentId; + return this; + } + public set attachmentId(attachmentId: string | undefined) { + this['attachment_id'] = attachmentId; + } + public get attachmentId(): string | undefined { + return this['attachment_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachmentInstanceProjectId.ts b/services/cc/v3/model/AttachmentInstanceProjectId.ts new file mode 100644 index 000000000..8d3410a32 --- /dev/null +++ b/services/cc/v3/model/AttachmentInstanceProjectId.ts @@ -0,0 +1,18 @@ + + +export class AttachmentInstanceProjectId { + private 'attachment_instance_project_id'?: string; + public constructor(attachmentInstanceProjectId?: string) { + this['attachment_instance_project_id'] = attachmentInstanceProjectId; + } + public withAttachmentInstanceProjectId(attachmentInstanceProjectId: string): AttachmentInstanceProjectId { + this['attachment_instance_project_id'] = attachmentInstanceProjectId; + return this; + } + public set attachmentInstanceProjectId(attachmentInstanceProjectId: string | undefined) { + this['attachment_instance_project_id'] = attachmentInstanceProjectId; + } + public get attachmentInstanceProjectId(): string | undefined { + return this['attachment_instance_project_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachmentInstanceRegionId.ts b/services/cc/v3/model/AttachmentInstanceRegionId.ts new file mode 100644 index 000000000..c5850e901 --- /dev/null +++ b/services/cc/v3/model/AttachmentInstanceRegionId.ts @@ -0,0 +1,18 @@ + + +export class AttachmentInstanceRegionId { + private 'attachment_instance_region_id'?: string; + public constructor(attachmentInstanceRegionId?: string) { + this['attachment_instance_region_id'] = attachmentInstanceRegionId; + } + public withAttachmentInstanceRegionId(attachmentInstanceRegionId: string): AttachmentInstanceRegionId { + this['attachment_instance_region_id'] = attachmentInstanceRegionId; + return this; + } + public set attachmentInstanceRegionId(attachmentInstanceRegionId: string | undefined) { + this['attachment_instance_region_id'] = attachmentInstanceRegionId; + } + public get attachmentInstanceRegionId(): string | undefined { + return this['attachment_instance_region_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AttachmentInstanceSiteCode.ts b/services/cc/v3/model/AttachmentInstanceSiteCode.ts new file mode 100644 index 000000000..84513ae8a --- /dev/null +++ b/services/cc/v3/model/AttachmentInstanceSiteCode.ts @@ -0,0 +1,18 @@ + + +export class AttachmentInstanceSiteCode { + private 'attachment_instance_site_code'?: string; + public constructor(attachmentInstanceSiteCode?: string) { + this['attachment_instance_site_code'] = attachmentInstanceSiteCode; + } + public withAttachmentInstanceSiteCode(attachmentInstanceSiteCode: string): AttachmentInstanceSiteCode { + this['attachment_instance_site_code'] = attachmentInstanceSiteCode; + return this; + } + public set attachmentInstanceSiteCode(attachmentInstanceSiteCode: string | undefined) { + this['attachment_instance_site_code'] = attachmentInstanceSiteCode; + } + public get attachmentInstanceSiteCode(): string | undefined { + return this['attachment_instance_site_code']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/Authorisation.ts b/services/cc/v3/model/Authorisation.ts index 507d9d7ab..ab94a028a 100644 --- a/services/cc/v3/model/Authorisation.ts +++ b/services/cc/v3/model/Authorisation.ts @@ -6,7 +6,7 @@ import { InstanceId } from './InstanceId'; import { Name } from './Name'; import { ProjectId } from './ProjectId'; import { RegionId } from './RegionId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; import { UpdatedAt } from './UpdatedAt'; @@ -24,6 +24,7 @@ export class Authorisation { public status?: string; private 'instance_type'?: string; private 'cloud_connection_domain_id'?: string; + private 'is_loaded_by_cloud_connection'?: boolean; public constructor(id?: string, name?: string, instanceId?: string, projectId?: string, regionId?: string, createdAt?: Date, updatedAt?: Date, domainId?: string, cloudConnectionId?: string) { this['id'] = id; this['name'] = name; @@ -141,4 +142,14 @@ export class Authorisation { public get cloudConnectionDomainId(): string | undefined { return this['cloud_connection_domain_id']; } + public withIsLoadedByCloudConnection(isLoadedByCloudConnection: boolean): Authorisation { + this['is_loaded_by_cloud_connection'] = isLoadedByCloudConnection; + return this; + } + public set isLoadedByCloudConnection(isLoadedByCloudConnection: boolean | undefined) { + this['is_loaded_by_cloud_connection'] = isLoadedByCloudConnection; + } + public get isLoadedByCloudConnection(): boolean | undefined { + return this['is_loaded_by_cloud_connection']; + } } \ No newline at end of file diff --git a/services/cc/v3/model/AutoAssociateRouteEnabled.ts b/services/cc/v3/model/AutoAssociateRouteEnabled.ts new file mode 100644 index 000000000..386eccba8 --- /dev/null +++ b/services/cc/v3/model/AutoAssociateRouteEnabled.ts @@ -0,0 +1,6 @@ + + +export class AutoAssociateRouteEnabled { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/AutoPropagateRouteEnabled.ts b/services/cc/v3/model/AutoPropagateRouteEnabled.ts new file mode 100644 index 000000000..8e55df079 --- /dev/null +++ b/services/cc/v3/model/AutoPropagateRouteEnabled.ts @@ -0,0 +1,6 @@ + + +export class AutoPropagateRouteEnabled { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/BandwidthPackage.ts b/services/cc/v3/model/BandwidthPackage.ts index 2282d947b..8b4eaf9cc 100644 --- a/services/cc/v3/model/BandwidthPackage.ts +++ b/services/cc/v3/model/BandwidthPackage.ts @@ -14,7 +14,7 @@ import { ResourceType } from './ResourceType'; import { SpecCode } from './SpecCode'; import { Tag } from './Tag'; import { Tags } from './Tags'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v2/model/BatchCreateGcbResourceTagsRequest.ts b/services/cc/v3/model/BatchCreateGcbResourceTagsRequest.ts similarity index 100% rename from services/cc/v2/model/BatchCreateGcbResourceTagsRequest.ts rename to services/cc/v3/model/BatchCreateGcbResourceTagsRequest.ts diff --git a/services/cc/v2/model/BatchCreateGcbResourceTagsResponse.ts b/services/cc/v3/model/BatchCreateGcbResourceTagsResponse.ts similarity index 100% rename from services/cc/v2/model/BatchCreateGcbResourceTagsResponse.ts rename to services/cc/v3/model/BatchCreateGcbResourceTagsResponse.ts diff --git a/services/cc/v2/model/BatchDeleteGcbResourceTagsRequest.ts b/services/cc/v3/model/BatchDeleteGcbResourceTagsRequest.ts similarity index 100% rename from services/cc/v2/model/BatchDeleteGcbResourceTagsRequest.ts rename to services/cc/v3/model/BatchDeleteGcbResourceTagsRequest.ts diff --git a/services/cc/v2/model/BatchDeleteGcbResourceTagsResponse.ts b/services/cc/v3/model/BatchDeleteGcbResourceTagsResponse.ts similarity index 100% rename from services/cc/v2/model/BatchDeleteGcbResourceTagsResponse.ts rename to services/cc/v3/model/BatchDeleteGcbResourceTagsResponse.ts diff --git a/services/cc/v3/model/CentralNetwork.ts b/services/cc/v3/model/CentralNetwork.ts index 0e9cef5c5..7b641229a 100644 --- a/services/cc/v3/model/CentralNetwork.ts +++ b/services/cc/v3/model/CentralNetwork.ts @@ -1,4 +1,7 @@ +import { AutoAssociateRouteEnabled } from './AutoAssociateRouteEnabled'; +import { AutoPropagateRouteEnabled } from './AutoPropagateRouteEnabled'; import { CentralNetworkConnectionInfo } from './CentralNetworkConnectionInfo'; +import { CentralNetworkDefaultPlaneId } from './CentralNetworkDefaultPlaneId'; import { CentralNetworkErInstance } from './CentralNetworkErInstance'; import { CentralNetworkPlane } from './CentralNetworkPlane'; import { CentralNetworkState } from './CentralNetworkState'; @@ -10,7 +13,7 @@ import { EnterpriseProjectId } from './EnterpriseProjectId'; import { Name } from './Name'; import { Tag } from './Tag'; import { Tags } from './Tags'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; @@ -24,17 +27,18 @@ export class CentralNetwork { public state?: CentralNetworkStateEnum; private 'enterprise_project_id'?: string; public tags?: Array; + private 'default_plane_id'?: string; public planes?: Array; private 'er_instances'?: Array; public connections?: Array; - private 'default_plane_id'?: string; - public constructor(id?: string, name?: string, createdAt?: Date, updatedAt?: Date, domainId?: string, state?: CentralNetworkStateEnum) { + public constructor(id?: string, name?: string, createdAt?: Date, updatedAt?: Date, domainId?: string, state?: CentralNetworkStateEnum, defaultPlaneId?: string) { this['id'] = id; this['name'] = name; this['created_at'] = createdAt; this['updated_at'] = updatedAt; this['domain_id'] = domainId; this['state'] = state; + this['default_plane_id'] = defaultPlaneId; } public withId(id: string): CentralNetwork { this['id'] = id; @@ -96,6 +100,16 @@ export class CentralNetwork { this['tags'] = tags; return this; } + public withDefaultPlaneId(defaultPlaneId: string): CentralNetwork { + this['default_plane_id'] = defaultPlaneId; + return this; + } + public set defaultPlaneId(defaultPlaneId: string | undefined) { + this['default_plane_id'] = defaultPlaneId; + } + public get defaultPlaneId(): string | undefined { + return this['default_plane_id']; + } public withPlanes(planes: Array): CentralNetwork { this['planes'] = planes; return this; @@ -114,14 +128,4 @@ export class CentralNetwork { this['connections'] = connections; return this; } - public withDefaultPlaneId(defaultPlaneId: string): CentralNetwork { - this['default_plane_id'] = defaultPlaneId; - return this; - } - public set defaultPlaneId(defaultPlaneId: string | undefined) { - this['default_plane_id'] = defaultPlaneId; - } - public get defaultPlaneId(): string | undefined { - return this['default_plane_id']; - } } \ No newline at end of file diff --git a/services/cc/v3/model/CentralNetworkAttachment.ts b/services/cc/v3/model/CentralNetworkAttachment.ts index 5f508475c..a94cfa6b0 100644 --- a/services/cc/v3/model/CentralNetworkAttachment.ts +++ b/services/cc/v3/model/CentralNetworkAttachment.ts @@ -1,4 +1,8 @@ +import { AttachmentId } from './AttachmentId'; import { AttachmentInstanceId } from './AttachmentInstanceId'; +import { AttachmentInstanceProjectId } from './AttachmentInstanceProjectId'; +import { AttachmentInstanceRegionId } from './AttachmentInstanceRegionId'; +import { AttachmentInstanceSiteCode } from './AttachmentInstanceSiteCode'; import { AttachmentInstanceType } from './AttachmentInstanceType'; import { AttachmentInstanceTypeEnum } from './AttachmentInstanceTypeEnum'; import { BandwidthSize } from './BandwidthSize'; @@ -16,10 +20,11 @@ import { EnterpriseRouterAttachmentId } from './EnterpriseRouterAttachmentId'; import { EnterpriseRouterId } from './EnterpriseRouterId'; import { EnterpriseRouterProjectId } from './EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './EnterpriseRouterRegionId'; +import { EnterpriseRouterSiteCode } from './EnterpriseRouterSiteCode'; import { GlobalConnectionBandwidthId } from './GlobalConnectionBandwidthId'; import { IsFrozen } from './IsFrozen'; import { Name } from './Name'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/CentralNetworkAttachmentSpecificationValueInfo.ts b/services/cc/v3/model/CentralNetworkAttachmentSpecificationValueInfo.ts index 32f9a1f65..b971ef46d 100644 --- a/services/cc/v3/model/CentralNetworkAttachmentSpecificationValueInfo.ts +++ b/services/cc/v3/model/CentralNetworkAttachmentSpecificationValueInfo.ts @@ -1,14 +1,18 @@ import { ApprovedStateEnum } from './ApprovedStateEnum'; +import { AutoAssociateRouteEnabled } from './AutoAssociateRouteEnabled'; +import { AutoPropagateRouteEnabled } from './AutoPropagateRouteEnabled'; +import { EnterpriseRouterTableId } from './EnterpriseRouterTableId'; import { HostedCloudEnum } from './HostedCloudEnum'; export class CentralNetworkAttachmentSpecificationValueInfo { private 'enterprise_router_table_id'?: string; - private 'attached_er_id'?: string; + private 'attachment_parent_instance_id'?: string; private 'approved_state'?: ApprovedStateEnum; private 'hosted_cloud'?: HostedCloudEnum; public reason?: string; - public constructor() { + public constructor(enterpriseRouterTableId?: string) { + this['enterprise_router_table_id'] = enterpriseRouterTableId; } public withEnterpriseRouterTableId(enterpriseRouterTableId: string): CentralNetworkAttachmentSpecificationValueInfo { this['enterprise_router_table_id'] = enterpriseRouterTableId; @@ -20,15 +24,15 @@ export class CentralNetworkAttachmentSpecificationValueInfo { public get enterpriseRouterTableId(): string | undefined { return this['enterprise_router_table_id']; } - public withAttachedErId(attachedErId: string): CentralNetworkAttachmentSpecificationValueInfo { - this['attached_er_id'] = attachedErId; + public withAttachmentParentInstanceId(attachmentParentInstanceId: string): CentralNetworkAttachmentSpecificationValueInfo { + this['attachment_parent_instance_id'] = attachmentParentInstanceId; return this; } - public set attachedErId(attachedErId: string | undefined) { - this['attached_er_id'] = attachedErId; + public set attachmentParentInstanceId(attachmentParentInstanceId: string | undefined) { + this['attachment_parent_instance_id'] = attachmentParentInstanceId; } - public get attachedErId(): string | undefined { - return this['attached_er_id']; + public get attachmentParentInstanceId(): string | undefined { + return this['attachment_parent_instance_id']; } public withApprovedState(approvedState: ApprovedStateEnum): CentralNetworkAttachmentSpecificationValueInfo { this['approved_state'] = approvedState; diff --git a/services/cc/v3/model/CentralNetworkCapability.ts b/services/cc/v3/model/CentralNetworkCapability.ts index ba8bfadf0..8898a7f1e 100644 --- a/services/cc/v3/model/CentralNetworkCapability.ts +++ b/services/cc/v3/model/CentralNetworkCapability.ts @@ -1,6 +1,6 @@ import { CentralNetworkCapabilityEnum } from './CentralNetworkCapabilityEnum'; import { DomainId } from './DomainId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; export class CentralNetworkCapability { diff --git a/services/cc/v3/model/CentralNetworkConnection.ts b/services/cc/v3/model/CentralNetworkConnection.ts index 604468672..9d2f10515 100644 --- a/services/cc/v3/model/CentralNetworkConnection.ts +++ b/services/cc/v3/model/CentralNetworkConnection.ts @@ -16,7 +16,7 @@ import { EnterpriseProjectId } from './EnterpriseProjectId'; import { GlobalConnectionBandwidthId } from './GlobalConnectionBandwidthId'; import { IsFrozen } from './IsFrozen'; import { Name } from './Name'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/CentralNetworkConnectionInfo.ts b/services/cc/v3/model/CentralNetworkConnectionInfo.ts index 8fca03f0a..fe2a16ac0 100644 --- a/services/cc/v3/model/CentralNetworkConnectionInfo.ts +++ b/services/cc/v3/model/CentralNetworkConnectionInfo.ts @@ -1,4 +1,5 @@ import { BandwidthSize } from './BandwidthSize'; +import { CentralNetworkConnectionPlaneId } from './CentralNetworkConnectionPlaneId'; import { CentralNetworkConnectionState } from './CentralNetworkConnectionState'; import { CentralNetworkConnectionStateEnum } from './CentralNetworkConnectionStateEnum'; import { ConnectionPoint } from './ConnectionPoint'; @@ -6,8 +7,7 @@ import { ConnectionPointPair } from './ConnectionPointPair'; import { ConnectionType } from './ConnectionType'; import { ConnectionTypeEnum } from './ConnectionTypeEnum'; import { GlobalConnectionBandwidthId } from './GlobalConnectionBandwidthId'; -import { PlaneId } from './PlaneId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; export class CentralNetworkConnectionInfo { diff --git a/services/cc/v3/model/PlaneId.ts b/services/cc/v3/model/CentralNetworkConnectionPlaneId.ts similarity index 75% rename from services/cc/v3/model/PlaneId.ts rename to services/cc/v3/model/CentralNetworkConnectionPlaneId.ts index 41f18ab73..9fb3f16c2 100644 --- a/services/cc/v3/model/PlaneId.ts +++ b/services/cc/v3/model/CentralNetworkConnectionPlaneId.ts @@ -1,11 +1,11 @@ -export class PlaneId { +export class CentralNetworkConnectionPlaneId { private 'plane_id'?: string; public constructor(planeId?: string) { this['plane_id'] = planeId; } - public withPlaneId(planeId: string): PlaneId { + public withPlaneId(planeId: string): CentralNetworkConnectionPlaneId { this['plane_id'] = planeId; return this; } diff --git a/services/cc/v3/model/CentralNetworkDefaultPlaneId.ts b/services/cc/v3/model/CentralNetworkDefaultPlaneId.ts new file mode 100644 index 000000000..194a25df5 --- /dev/null +++ b/services/cc/v3/model/CentralNetworkDefaultPlaneId.ts @@ -0,0 +1,18 @@ + + +export class CentralNetworkDefaultPlaneId { + private 'default_plane_id'?: string; + public constructor(defaultPlaneId?: string) { + this['default_plane_id'] = defaultPlaneId; + } + public withDefaultPlaneId(defaultPlaneId: string): CentralNetworkDefaultPlaneId { + this['default_plane_id'] = defaultPlaneId; + return this; + } + public set defaultPlaneId(defaultPlaneId: string | undefined) { + this['default_plane_id'] = defaultPlaneId; + } + public get defaultPlaneId(): string | undefined { + return this['default_plane_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/CentralNetworkErInstance.ts b/services/cc/v3/model/CentralNetworkErInstance.ts index 821d0306e..cd77b1c29 100644 --- a/services/cc/v3/model/CentralNetworkErInstance.ts +++ b/services/cc/v3/model/CentralNetworkErInstance.ts @@ -3,7 +3,7 @@ import { EnterpriseRouterId } from './EnterpriseRouterId'; import { ProjectId } from './ProjectId'; import { RegionId } from './RegionId'; import { SiteCode } from './SiteCode'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; export class CentralNetworkErInstance { diff --git a/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts b/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts index d2850910f..a7d933183 100644 --- a/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts +++ b/services/cc/v3/model/CentralNetworkErRouteTableAttachment.ts @@ -1,4 +1,6 @@ import { ApprovedStateEnum } from './ApprovedStateEnum'; +import { AutoAssociateRouteEnabled } from './AutoAssociateRouteEnabled'; +import { AutoPropagateRouteEnabled } from './AutoPropagateRouteEnabled'; import { BandwidthSize } from './BandwidthSize'; import { BandwidthType } from './BandwidthType'; import { BandwidthTypeEnum } from './BandwidthTypeEnum'; @@ -13,11 +15,13 @@ import { EnterpriseRouterAttachmentId } from './EnterpriseRouterAttachmentId'; import { EnterpriseRouterId } from './EnterpriseRouterId'; import { EnterpriseRouterProjectId } from './EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './EnterpriseRouterRegionId'; +import { EnterpriseRouterSiteCode } from './EnterpriseRouterSiteCode'; +import { EnterpriseRouterTableId } from './EnterpriseRouterTableId'; import { GlobalConnectionBandwidthId } from './GlobalConnectionBandwidthId'; import { HostedCloudEnum } from './HostedCloudEnum'; import { IsFrozen } from './IsFrozen'; import { Name } from './Name'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/CentralNetworkGdgwAttachment.ts b/services/cc/v3/model/CentralNetworkGdgwAttachment.ts index 719c30899..84d69a15e 100644 --- a/services/cc/v3/model/CentralNetworkGdgwAttachment.ts +++ b/services/cc/v3/model/CentralNetworkGdgwAttachment.ts @@ -1,3 +1,5 @@ +import { AutoAssociateRouteEnabled } from './AutoAssociateRouteEnabled'; +import { AutoPropagateRouteEnabled } from './AutoPropagateRouteEnabled'; import { BandwidthSize } from './BandwidthSize'; import { BandwidthType } from './BandwidthType'; import { BandwidthTypeEnum } from './BandwidthTypeEnum'; @@ -12,12 +14,15 @@ import { EnterpriseRouterAttachmentId } from './EnterpriseRouterAttachmentId'; import { EnterpriseRouterId } from './EnterpriseRouterId'; import { EnterpriseRouterProjectId } from './EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './EnterpriseRouterRegionId'; +import { EnterpriseRouterSiteCode } from './EnterpriseRouterSiteCode'; import { GlobalConnectionBandwidthId } from './GlobalConnectionBandwidthId'; import { GlobalDcGatewayId } from './GlobalDcGatewayId'; import { GlobalDcGatewayPeerLinkId } from './GlobalDcGatewayPeerLinkId'; +import { GlobalDcGatewayProjectId } from './GlobalDcGatewayProjectId'; +import { GlobalDcGatewayRegionId } from './GlobalDcGatewayRegionId'; import { IsFrozen } from './IsFrozen'; import { Name } from './Name'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/CentralNetworkPlane.ts b/services/cc/v3/model/CentralNetworkPlane.ts index 0063496fd..54052253c 100644 --- a/services/cc/v3/model/CentralNetworkPlane.ts +++ b/services/cc/v3/model/CentralNetworkPlane.ts @@ -1,7 +1,7 @@ import { AssociateErInstanceDocument } from './AssociateErInstanceDocument'; import { AssociateErTableDocument } from './AssociateErTableDocument'; import { Name } from './Name'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; export class CentralNetworkPlane { diff --git a/services/cc/v3/model/CentralNetworkPolicy.ts b/services/cc/v3/model/CentralNetworkPolicy.ts index ceeb5dd24..49832c19c 100644 --- a/services/cc/v3/model/CentralNetworkPolicy.ts +++ b/services/cc/v3/model/CentralNetworkPolicy.ts @@ -6,7 +6,7 @@ import { CreatedAt } from './CreatedAt'; import { DocumentTemplateVersion } from './DocumentTemplateVersion'; import { DocumentTemplateVersionEnum } from './DocumentTemplateVersionEnum'; import { DomainId } from './DomainId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; export class CentralNetworkPolicy { diff --git a/services/cc/v3/model/CloudConnection.ts b/services/cc/v3/model/CloudConnection.ts index db665b3d8..8f2e1cfeb 100644 --- a/services/cc/v3/model/CloudConnection.ts +++ b/services/cc/v3/model/CloudConnection.ts @@ -5,7 +5,7 @@ import { EnterpriseProjectId } from './EnterpriseProjectId'; import { Name } from './Name'; import { Tag } from './Tag'; import { Tags } from './Tags'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/CloudConnectionRoute.ts b/services/cc/v3/model/CloudConnectionRoute.ts index deb60ccf0..75646d8e2 100644 --- a/services/cc/v3/model/CloudConnectionRoute.ts +++ b/services/cc/v3/model/CloudConnectionRoute.ts @@ -3,7 +3,7 @@ import { DomainId } from './DomainId'; import { InstanceId } from './InstanceId'; import { ProjectId } from './ProjectId'; import { RegionId } from './RegionId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; export class CloudConnectionRoute { diff --git a/services/cc/v3/model/ConnectionPoint.ts b/services/cc/v3/model/ConnectionPoint.ts index e5d401594..cc781e543 100644 --- a/services/cc/v3/model/ConnectionPoint.ts +++ b/services/cc/v3/model/ConnectionPoint.ts @@ -2,7 +2,7 @@ import { ConnectionPointTypeEnum } from './ConnectionPointTypeEnum'; import { ProjectId } from './ProjectId'; import { RegionId } from './RegionId'; import { SiteCode } from './SiteCode'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; export class ConnectionPoint { @@ -12,6 +12,7 @@ export class ConnectionPoint { private 'site_code'?: string; private 'instance_id'?: string; public type?: ConnectionPointTypeEnum; + private 'parent_instance_id'?: string; public constructor(id?: string, projectId?: string, regionId?: string, siteCode?: string, instanceId?: string, type?: ConnectionPointTypeEnum) { this['id'] = id; this['project_id'] = projectId; @@ -68,4 +69,14 @@ export class ConnectionPoint { this['type'] = type; return this; } + public withParentInstanceId(parentInstanceId: string): ConnectionPoint { + this['parent_instance_id'] = parentInstanceId; + return this; + } + public set parentInstanceId(parentInstanceId: string | undefined) { + this['parent_instance_id'] = parentInstanceId; + } + public get parentInstanceId(): string | undefined { + return this['parent_instance_id']; + } } \ No newline at end of file diff --git a/services/cc/v2/model/CountGcbResourceByTagRequest.ts b/services/cc/v3/model/CountGcbResourceByTagRequest.ts similarity index 100% rename from services/cc/v2/model/CountGcbResourceByTagRequest.ts rename to services/cc/v3/model/CountGcbResourceByTagRequest.ts diff --git a/services/cc/v2/model/CountGcbResourceByTagResponse.ts b/services/cc/v3/model/CountGcbResourceByTagResponse.ts similarity index 100% rename from services/cc/v2/model/CountGcbResourceByTagResponse.ts rename to services/cc/v3/model/CountGcbResourceByTagResponse.ts diff --git a/services/cc/v3/model/CreateCentralNetwork.ts b/services/cc/v3/model/CreateCentralNetwork.ts index 1326e5cc4..3809952d1 100644 --- a/services/cc/v3/model/CreateCentralNetwork.ts +++ b/services/cc/v3/model/CreateCentralNetwork.ts @@ -2,6 +2,8 @@ import { CentralNetworkPolicyDocument } from './CentralNetworkPolicyDocument'; import { Description } from './Description'; import { EnterpriseProjectId } from './EnterpriseProjectId'; import { Name } from './Name'; +import { NonRequiredAutoAssociateRouteEnabled } from './NonRequiredAutoAssociateRouteEnabled'; +import { NonRequiredAutoPropagateRouteEnabled } from './NonRequiredAutoPropagateRouteEnabled'; import { Tag } from './Tag'; import { Tags } from './Tags'; diff --git a/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts b/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts index 53623c3b8..91c60be53 100644 --- a/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts +++ b/services/cc/v3/model/CreateCentralNetworkErRouteTableAttachment.ts @@ -1,8 +1,13 @@ +import { AttachmentId } from './AttachmentId'; +import { CentralNetworkPlaneId } from './CentralNetworkPlaneId'; import { Description } from './Description'; import { EnterpriseRouterId } from './EnterpriseRouterId'; import { EnterpriseRouterProjectId } from './EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './EnterpriseRouterRegionId'; +import { EnterpriseRouterTableId } from './EnterpriseRouterTableId'; import { Name } from './Name'; +import { NonRequiredAutoAssociateRouteEnabled } from './NonRequiredAutoAssociateRouteEnabled'; +import { NonRequiredAutoPropagateRouteEnabled } from './NonRequiredAutoPropagateRouteEnabled'; export class CreateCentralNetworkErRouteTableAttachment { @@ -11,25 +16,25 @@ export class CreateCentralNetworkErRouteTableAttachment { private 'enterprise_router_id'?: string; private 'enterprise_router_project_id'?: string; private 'enterprise_router_region_id'?: string; + private 'central_network_plane_id'?: string; private 'attachment_id'?: string; private 'enterprise_router_table_id'?: string; private 'attached_er_table_project_id'?: string; private 'attached_er_table_region_id'?: string; private 'attached_er_id'?: string; private 'attached_er_table_id'?: string; - private 'central_network_plane_id'?: string; private 'hosted_cloud'?: CreateCentralNetworkErRouteTableAttachmentHostedCloudEnum | string; - public constructor(name?: string, enterpriseRouterId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string, enterpriseRouterTableId?: string, attachedErTableProjectId?: string, attachedErTableRegionId?: string, attachedErId?: string, attachedErTableId?: string, centralNetworkPlaneId?: string, hostedCloud?: string) { + public constructor(name?: string, enterpriseRouterId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string, centralNetworkPlaneId?: string, enterpriseRouterTableId?: string, attachedErTableProjectId?: string, attachedErTableRegionId?: string, attachedErId?: string, attachedErTableId?: string, hostedCloud?: string) { this['name'] = name; this['enterprise_router_id'] = enterpriseRouterId; this['enterprise_router_project_id'] = enterpriseRouterProjectId; this['enterprise_router_region_id'] = enterpriseRouterRegionId; + this['central_network_plane_id'] = centralNetworkPlaneId; this['enterprise_router_table_id'] = enterpriseRouterTableId; this['attached_er_table_project_id'] = attachedErTableProjectId; this['attached_er_table_region_id'] = attachedErTableRegionId; this['attached_er_id'] = attachedErId; this['attached_er_table_id'] = attachedErTableId; - this['central_network_plane_id'] = centralNetworkPlaneId; this['hosted_cloud'] = hostedCloud; } public withName(name: string): CreateCentralNetworkErRouteTableAttachment { @@ -70,6 +75,16 @@ export class CreateCentralNetworkErRouteTableAttachment { public get enterpriseRouterRegionId(): string | undefined { return this['enterprise_router_region_id']; } + public withCentralNetworkPlaneId(centralNetworkPlaneId: string): CreateCentralNetworkErRouteTableAttachment { + this['central_network_plane_id'] = centralNetworkPlaneId; + return this; + } + public set centralNetworkPlaneId(centralNetworkPlaneId: string | undefined) { + this['central_network_plane_id'] = centralNetworkPlaneId; + } + public get centralNetworkPlaneId(): string | undefined { + return this['central_network_plane_id']; + } public withAttachmentId(attachmentId: string): CreateCentralNetworkErRouteTableAttachment { this['attachment_id'] = attachmentId; return this; @@ -130,16 +145,6 @@ export class CreateCentralNetworkErRouteTableAttachment { public get attachedErTableId(): string | undefined { return this['attached_er_table_id']; } - public withCentralNetworkPlaneId(centralNetworkPlaneId: string): CreateCentralNetworkErRouteTableAttachment { - this['central_network_plane_id'] = centralNetworkPlaneId; - return this; - } - public set centralNetworkPlaneId(centralNetworkPlaneId: string | undefined) { - this['central_network_plane_id'] = centralNetworkPlaneId; - } - public get centralNetworkPlaneId(): string | undefined { - return this['central_network_plane_id']; - } public withHostedCloud(hostedCloud: CreateCentralNetworkErRouteTableAttachmentHostedCloudEnum | string): CreateCentralNetworkErRouteTableAttachment { this['hosted_cloud'] = hostedCloud; return this; diff --git a/services/cc/v3/model/CreateCentralNetworkGdgwAttachment.ts b/services/cc/v3/model/CreateCentralNetworkGdgwAttachment.ts index d5142feeb..17c433f58 100644 --- a/services/cc/v3/model/CreateCentralNetworkGdgwAttachment.ts +++ b/services/cc/v3/model/CreateCentralNetworkGdgwAttachment.ts @@ -3,7 +3,12 @@ import { EnterpriseRouterId } from './EnterpriseRouterId'; import { EnterpriseRouterProjectId } from './EnterpriseRouterProjectId'; import { EnterpriseRouterRegionId } from './EnterpriseRouterRegionId'; import { GlobalDcGatewayId } from './GlobalDcGatewayId'; +import { GlobalDcGatewayProjectId } from './GlobalDcGatewayProjectId'; +import { GlobalDcGatewayRegionId } from './GlobalDcGatewayRegionId'; import { Name } from './Name'; +import { NonRequiredAutoAssociateRouteEnabled } from './NonRequiredAutoAssociateRouteEnabled'; +import { NonRequiredAutoPropagateRouteEnabled } from './NonRequiredAutoPropagateRouteEnabled'; +import { NonRequiredCentralNetworkPlaneId } from './NonRequiredCentralNetworkPlaneId'; export class CreateCentralNetworkGdgwAttachment { @@ -11,19 +16,19 @@ export class CreateCentralNetworkGdgwAttachment { public description?: string; private 'enterprise_router_id'?: string; private 'global_dc_gateway_id'?: string; - private 'enterprise_router_project_id'?: string; - private 'enterprise_router_region_id'?: string; private 'global_dc_gateway_project_id'?: string; private 'global_dc_gateway_region_id'?: string; + private 'enterprise_router_project_id'?: string; + private 'enterprise_router_region_id'?: string; private 'central_network_plane_id'?: string; - public constructor(name?: string, enterpriseRouterId?: string, globalDcGatewayId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string, globalDcGatewayProjectId?: string, globalDcGatewayRegionId?: string) { + public constructor(name?: string, enterpriseRouterId?: string, globalDcGatewayId?: string, globalDcGatewayProjectId?: string, globalDcGatewayRegionId?: string, enterpriseRouterProjectId?: string, enterpriseRouterRegionId?: string) { this['name'] = name; this['enterprise_router_id'] = enterpriseRouterId; this['global_dc_gateway_id'] = globalDcGatewayId; - this['enterprise_router_project_id'] = enterpriseRouterProjectId; - this['enterprise_router_region_id'] = enterpriseRouterRegionId; this['global_dc_gateway_project_id'] = globalDcGatewayProjectId; this['global_dc_gateway_region_id'] = globalDcGatewayRegionId; + this['enterprise_router_project_id'] = enterpriseRouterProjectId; + this['enterprise_router_region_id'] = enterpriseRouterRegionId; } public withName(name: string): CreateCentralNetworkGdgwAttachment { this['name'] = name; @@ -53,26 +58,6 @@ export class CreateCentralNetworkGdgwAttachment { public get globalDcGatewayId(): string | undefined { return this['global_dc_gateway_id']; } - public withEnterpriseRouterProjectId(enterpriseRouterProjectId: string): CreateCentralNetworkGdgwAttachment { - this['enterprise_router_project_id'] = enterpriseRouterProjectId; - return this; - } - public set enterpriseRouterProjectId(enterpriseRouterProjectId: string | undefined) { - this['enterprise_router_project_id'] = enterpriseRouterProjectId; - } - public get enterpriseRouterProjectId(): string | undefined { - return this['enterprise_router_project_id']; - } - public withEnterpriseRouterRegionId(enterpriseRouterRegionId: string): CreateCentralNetworkGdgwAttachment { - this['enterprise_router_region_id'] = enterpriseRouterRegionId; - return this; - } - public set enterpriseRouterRegionId(enterpriseRouterRegionId: string | undefined) { - this['enterprise_router_region_id'] = enterpriseRouterRegionId; - } - public get enterpriseRouterRegionId(): string | undefined { - return this['enterprise_router_region_id']; - } public withGlobalDcGatewayProjectId(globalDcGatewayProjectId: string): CreateCentralNetworkGdgwAttachment { this['global_dc_gateway_project_id'] = globalDcGatewayProjectId; return this; @@ -93,6 +78,26 @@ export class CreateCentralNetworkGdgwAttachment { public get globalDcGatewayRegionId(): string | undefined { return this['global_dc_gateway_region_id']; } + public withEnterpriseRouterProjectId(enterpriseRouterProjectId: string): CreateCentralNetworkGdgwAttachment { + this['enterprise_router_project_id'] = enterpriseRouterProjectId; + return this; + } + public set enterpriseRouterProjectId(enterpriseRouterProjectId: string | undefined) { + this['enterprise_router_project_id'] = enterpriseRouterProjectId; + } + public get enterpriseRouterProjectId(): string | undefined { + return this['enterprise_router_project_id']; + } + public withEnterpriseRouterRegionId(enterpriseRouterRegionId: string): CreateCentralNetworkGdgwAttachment { + this['enterprise_router_region_id'] = enterpriseRouterRegionId; + return this; + } + public set enterpriseRouterRegionId(enterpriseRouterRegionId: string | undefined) { + this['enterprise_router_region_id'] = enterpriseRouterRegionId; + } + public get enterpriseRouterRegionId(): string | undefined { + return this['enterprise_router_region_id']; + } public withCentralNetworkPlaneId(centralNetworkPlaneId: string): CreateCentralNetworkGdgwAttachment { this['central_network_plane_id'] = centralNetworkPlaneId; return this; diff --git a/services/cc/v2/model/CreateDeleteGcbTagsRequestBody.ts b/services/cc/v3/model/CreateDeleteGcbTagsRequestBody.ts similarity index 100% rename from services/cc/v2/model/CreateDeleteGcbTagsRequestBody.ts rename to services/cc/v3/model/CreateDeleteGcbTagsRequestBody.ts diff --git a/services/cc/v2/model/CreateGcbResourceTagRequest.ts b/services/cc/v3/model/CreateGcbResourceTagRequest.ts similarity index 100% rename from services/cc/v2/model/CreateGcbResourceTagRequest.ts rename to services/cc/v3/model/CreateGcbResourceTagRequest.ts diff --git a/services/cc/v2/model/CreateGcbResourceTagResponse.ts b/services/cc/v3/model/CreateGcbResourceTagResponse.ts similarity index 100% rename from services/cc/v2/model/CreateGcbResourceTagResponse.ts rename to services/cc/v3/model/CreateGcbResourceTagResponse.ts diff --git a/services/cc/v2/model/CreateGcbTagRequestBody.ts b/services/cc/v3/model/CreateGcbTagRequestBody.ts similarity index 100% rename from services/cc/v2/model/CreateGcbTagRequestBody.ts rename to services/cc/v3/model/CreateGcbTagRequestBody.ts diff --git a/services/cc/v3/model/CreateGlobalConnectionBandwidth.ts b/services/cc/v3/model/CreateGlobalConnectionBandwidth.ts index dbd343f72..3211f162c 100644 --- a/services/cc/v3/model/CreateGlobalConnectionBandwidth.ts +++ b/services/cc/v3/model/CreateGlobalConnectionBandwidth.ts @@ -6,8 +6,9 @@ import { GcbLocalArea } from './GcbLocalArea'; import { GcbRemoteArea } from './GcbRemoteArea'; import { GcbSize } from './GcbSize'; import { GcbSlaLevel } from './GcbSlaLevel'; +import { GcbSpecCodeId } from './GcbSpecCodeId'; import { GcbType } from './GcbType'; -import { NonRequiredName } from './NonRequiredName'; +import { Name } from './Name'; import { Tag } from './Tag'; import { Tags } from './Tags'; @@ -134,7 +135,8 @@ export enum CreateGlobalConnectionBandwidthTypeEnum { */ export enum CreateGlobalConnectionBandwidthChargeModeEnum { BWD = 'bwd', - E_95 = '95' + E_95 = '95', + E_95AVR = '95avr' } /** * @export diff --git a/services/cc/v2/model/DeleteGcbResourceTagRequest.ts b/services/cc/v3/model/DeleteGcbResourceTagRequest.ts similarity index 100% rename from services/cc/v2/model/DeleteGcbResourceTagRequest.ts rename to services/cc/v3/model/DeleteGcbResourceTagRequest.ts diff --git a/services/cc/v2/model/DeleteGcbResourceTagResponse.ts b/services/cc/v3/model/DeleteGcbResourceTagResponse.ts similarity index 100% rename from services/cc/v2/model/DeleteGcbResourceTagResponse.ts rename to services/cc/v3/model/DeleteGcbResourceTagResponse.ts diff --git a/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceRequestInfo.ts b/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceRequestInfo.ts index 7ce066745..7eb3f5808 100644 --- a/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceRequestInfo.ts +++ b/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceRequestInfo.ts @@ -1,4 +1,5 @@ import { GcbProjectId } from './GcbProjectId'; +import { GcbRegionId } from './GcbRegionId'; import { GcbResourceId } from './GcbResourceId'; import { GcbResourceType } from './GcbResourceType'; @@ -6,8 +7,8 @@ import { GcbResourceType } from './GcbResourceType'; export class DisassociateGlobalConnectionBandwidthInstanceRequestInfo { private 'resource_id'?: string; private 'resource_type'?: string; - private 'project_id'?: string; private 'region_id'?: string; + private 'project_id'?: string; public constructor(resourceId?: string, resourceType?: string, projectId?: string) { this['resource_id'] = resourceId; this['resource_type'] = resourceType; @@ -33,16 +34,6 @@ export class DisassociateGlobalConnectionBandwidthInstanceRequestInfo { public get resourceType(): string | undefined { return this['resource_type']; } - public withProjectId(projectId: string): DisassociateGlobalConnectionBandwidthInstanceRequestInfo { - this['project_id'] = projectId; - return this; - } - public set projectId(projectId: string | undefined) { - this['project_id'] = projectId; - } - public get projectId(): string | undefined { - return this['project_id']; - } public withRegionId(regionId: string): DisassociateGlobalConnectionBandwidthInstanceRequestInfo { this['region_id'] = regionId; return this; @@ -53,4 +44,14 @@ export class DisassociateGlobalConnectionBandwidthInstanceRequestInfo { public get regionId(): string | undefined { return this['region_id']; } + public withProjectId(projectId: string): DisassociateGlobalConnectionBandwidthInstanceRequestInfo { + this['project_id'] = projectId; + return this; + } + public set projectId(projectId: string | undefined) { + this['project_id'] = projectId; + } + public get projectId(): string | undefined { + return this['project_id']; + } } \ No newline at end of file diff --git a/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceResponseInfo.ts b/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceResponseInfo.ts index d02fa6474..88245c8fa 100644 --- a/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceResponseInfo.ts +++ b/services/cc/v3/model/DisassociateGlobalConnectionBandwidthInstanceResponseInfo.ts @@ -11,7 +11,10 @@ export class DisassociateGlobalConnectionBandwidthInstanceResponseInfo { private 'project_id'?: string; public result?: DisassociateGlobalConnectionBandwidthInstanceResponseInfoResultEnum | string; public message?: string; - public constructor() { + public constructor(resourceId?: string, resourceType?: string, projectId?: string) { + this['resource_id'] = resourceId; + this['resource_type'] = resourceType; + this['project_id'] = projectId; } public withResourceId(resourceId: string): DisassociateGlobalConnectionBandwidthInstanceResponseInfo { this['resource_id'] = resourceId; diff --git a/services/cc/v3/model/EnterpriseRouterSiteCode.ts b/services/cc/v3/model/EnterpriseRouterSiteCode.ts new file mode 100644 index 000000000..0c0142681 --- /dev/null +++ b/services/cc/v3/model/EnterpriseRouterSiteCode.ts @@ -0,0 +1,18 @@ + + +export class EnterpriseRouterSiteCode { + private 'enterprise_router_site_code'?: string; + public constructor(enterpriseRouterSiteCode?: string) { + this['enterprise_router_site_code'] = enterpriseRouterSiteCode; + } + public withEnterpriseRouterSiteCode(enterpriseRouterSiteCode: string): EnterpriseRouterSiteCode { + this['enterprise_router_site_code'] = enterpriseRouterSiteCode; + return this; + } + public set enterpriseRouterSiteCode(enterpriseRouterSiteCode: string | undefined) { + this['enterprise_router_site_code'] = enterpriseRouterSiteCode; + } + public get enterpriseRouterSiteCode(): string | undefined { + return this['enterprise_router_site_code']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/GcbBorderCross.ts b/services/cc/v3/model/GcbBorderCross.ts index 033d01231..db98b2e18 100644 --- a/services/cc/v3/model/GcbBorderCross.ts +++ b/services/cc/v3/model/GcbBorderCross.ts @@ -2,7 +2,8 @@ export class GcbBorderCross { public bordercross?: boolean; - public constructor() { + public constructor(bordercross?: boolean) { + this['bordercross'] = bordercross; } public withBordercross(bordercross: boolean): GcbBorderCross { this['bordercross'] = bordercross; diff --git a/services/cc/v3/model/GcbChargeMode.ts b/services/cc/v3/model/GcbChargeMode.ts index 2f5801719..cf39c45ec 100644 --- a/services/cc/v3/model/GcbChargeMode.ts +++ b/services/cc/v3/model/GcbChargeMode.ts @@ -2,7 +2,8 @@ export class GcbChargeMode { private 'charge_mode'?: GcbChargeModeChargeModeEnum | string; - public constructor() { + public constructor(chargeMode?: string) { + this['charge_mode'] = chargeMode; } public withChargeMode(chargeMode: GcbChargeModeChargeModeEnum | string): GcbChargeMode { this['charge_mode'] = chargeMode; @@ -22,5 +23,6 @@ export class GcbChargeMode { */ export enum GcbChargeModeChargeModeEnum { BWD = 'bwd', - E_95 = '95' + E_95 = '95', + E_95AVR = '95avr' } diff --git a/services/cc/v3/model/GcbProjectId.ts b/services/cc/v3/model/GcbProjectId.ts index 95e7d382a..b45e24b6d 100644 --- a/services/cc/v3/model/GcbProjectId.ts +++ b/services/cc/v3/model/GcbProjectId.ts @@ -2,7 +2,8 @@ export class GcbProjectId { private 'project_id'?: string; - public constructor() { + public constructor(projectId?: string) { + this['project_id'] = projectId; } public withProjectId(projectId: string): GcbProjectId { this['project_id'] = projectId; diff --git a/services/cc/v3/model/GcbResourceId.ts b/services/cc/v3/model/GcbResourceId.ts index 91c5ed459..6cbbf57df 100644 --- a/services/cc/v3/model/GcbResourceId.ts +++ b/services/cc/v3/model/GcbResourceId.ts @@ -2,7 +2,8 @@ export class GcbResourceId { private 'resource_id'?: string; - public constructor() { + public constructor(resourceId?: string) { + this['resource_id'] = resourceId; } public withResourceId(resourceId: string): GcbResourceId { this['resource_id'] = resourceId; diff --git a/services/cc/v3/model/GcbResourceType.ts b/services/cc/v3/model/GcbResourceType.ts index 1cee0a3ad..b38e55e3f 100644 --- a/services/cc/v3/model/GcbResourceType.ts +++ b/services/cc/v3/model/GcbResourceType.ts @@ -2,7 +2,8 @@ export class GcbResourceType { private 'resource_type'?: string; - public constructor() { + public constructor(resourceType?: string) { + this['resource_type'] = resourceType; } public withResourceType(resourceType: string): GcbResourceType { this['resource_type'] = resourceType; diff --git a/services/cc/v3/model/GcbSize.ts b/services/cc/v3/model/GcbSize.ts index 597b0a5bf..9bf581387 100644 --- a/services/cc/v3/model/GcbSize.ts +++ b/services/cc/v3/model/GcbSize.ts @@ -2,7 +2,8 @@ export class GcbSize { public size?: number; - public constructor() { + public constructor(size?: number) { + this['size'] = size; } public withSize(size: number): GcbSize { this['size'] = size; diff --git a/services/cc/v3/model/GcbType.ts b/services/cc/v3/model/GcbType.ts index 8439d16db..6d4d18a14 100644 --- a/services/cc/v3/model/GcbType.ts +++ b/services/cc/v3/model/GcbType.ts @@ -2,7 +2,8 @@ export class GcbType { public type?: GcbTypeTypeEnum | string; - public constructor() { + public constructor(type?: string) { + this['type'] = type; } public withType(type: GcbTypeTypeEnum | string): GcbType { this['type'] = type; diff --git a/services/cc/v3/model/GlobalConnectionBandwidth.ts b/services/cc/v3/model/GlobalConnectionBandwidth.ts index bbd3063cd..0cd74383c 100644 --- a/services/cc/v3/model/GlobalConnectionBandwidth.ts +++ b/services/cc/v3/model/GlobalConnectionBandwidth.ts @@ -16,10 +16,10 @@ import { GcbSlaLevel } from './GcbSlaLevel'; import { GcbSpecCodeId } from './GcbSpecCodeId'; import { GcbType } from './GcbType'; import { GlobalConnectionBandwidthAssociatedInstance } from './GlobalConnectionBandwidthAssociatedInstance'; -import { NonRequiredName } from './NonRequiredName'; +import { Name } from './Name'; import { Tag } from './Tag'; import { Tags } from './Tags'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; @@ -47,9 +47,14 @@ export class GlobalConnectionBandwidth { private 'updated_at'?: Date; private 'enable_share'?: boolean; public instances?: Array; - public constructor(id?: string, domainId?: string, createdAt?: Date, updatedAt?: Date) { + public constructor(id?: string, name?: string, domainId?: string, bordercross?: boolean, type?: string, chargeMode?: string, size?: number, createdAt?: Date, updatedAt?: Date) { this['id'] = id; + this['name'] = name; this['domain_id'] = domainId; + this['bordercross'] = bordercross; + this['type'] = type; + this['charge_mode'] = chargeMode; + this['size'] = size; this['created_at'] = createdAt; this['updated_at'] = updatedAt; } @@ -258,7 +263,8 @@ export enum GlobalConnectionBandwidthBindingServiceEnum { */ export enum GlobalConnectionBandwidthChargeModeEnum { BWD = 'bwd', - E_95 = '95' + E_95 = '95', + E_95AVR = '95avr' } /** * @export diff --git a/services/cc/v3/model/GlobalConnectionBandwidthLineLevel.ts b/services/cc/v3/model/GlobalConnectionBandwidthLineLevel.ts index 6d7bb1ec0..45846eae8 100644 --- a/services/cc/v3/model/GlobalConnectionBandwidthLineLevel.ts +++ b/services/cc/v3/model/GlobalConnectionBandwidthLineLevel.ts @@ -1,6 +1,6 @@ import { CreatedAt } from './CreatedAt'; import { Description } from './Description'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/GlobalConnectionBandwidthSites.ts b/services/cc/v3/model/GlobalConnectionBandwidthSites.ts index 6d84087fa..cc0dca203 100644 --- a/services/cc/v3/model/GlobalConnectionBandwidthSites.ts +++ b/services/cc/v3/model/GlobalConnectionBandwidthSites.ts @@ -1,7 +1,7 @@ import { CreatedAt } from './CreatedAt'; import { Description } from './Description'; import { SiteGroupReferenceInfo } from './SiteGroupReferenceInfo'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/GlobalConnectionBandwidthSizeRange.ts b/services/cc/v3/model/GlobalConnectionBandwidthSizeRange.ts index 870134bc9..0ea35046e 100644 --- a/services/cc/v3/model/GlobalConnectionBandwidthSizeRange.ts +++ b/services/cc/v3/model/GlobalConnectionBandwidthSizeRange.ts @@ -26,5 +26,6 @@ export class GlobalConnectionBandwidthSizeRange { */ export enum GlobalConnectionBandwidthSizeRangeTypeEnum { BWD = 'bwd', - E_95 = '95' + E_95 = '95', + E_95AVR = '95avr' } diff --git a/services/cc/v3/model/GlobalConnectionBandwidthSpecCode.ts b/services/cc/v3/model/GlobalConnectionBandwidthSpecCode.ts index ac5b01ebb..421dbebfa 100644 --- a/services/cc/v3/model/GlobalConnectionBandwidthSpecCode.ts +++ b/services/cc/v3/model/GlobalConnectionBandwidthSpecCode.ts @@ -1,7 +1,7 @@ import { CreatedAt } from './CreatedAt'; import { GcbLocalArea } from './GcbLocalArea'; import { GcbRemoteArea } from './GcbRemoteArea'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/GlobalDcGatewayProjectId.ts b/services/cc/v3/model/GlobalDcGatewayProjectId.ts new file mode 100644 index 000000000..61b99828a --- /dev/null +++ b/services/cc/v3/model/GlobalDcGatewayProjectId.ts @@ -0,0 +1,18 @@ + + +export class GlobalDcGatewayProjectId { + private 'global_dc_gateway_project_id'?: string; + public constructor(globalDcGatewayProjectId?: string) { + this['global_dc_gateway_project_id'] = globalDcGatewayProjectId; + } + public withGlobalDcGatewayProjectId(globalDcGatewayProjectId: string): GlobalDcGatewayProjectId { + this['global_dc_gateway_project_id'] = globalDcGatewayProjectId; + return this; + } + public set globalDcGatewayProjectId(globalDcGatewayProjectId: string | undefined) { + this['global_dc_gateway_project_id'] = globalDcGatewayProjectId; + } + public get globalDcGatewayProjectId(): string | undefined { + return this['global_dc_gateway_project_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/GlobalDcGatewayRegionId.ts b/services/cc/v3/model/GlobalDcGatewayRegionId.ts new file mode 100644 index 000000000..911f87496 --- /dev/null +++ b/services/cc/v3/model/GlobalDcGatewayRegionId.ts @@ -0,0 +1,18 @@ + + +export class GlobalDcGatewayRegionId { + private 'global_dc_gateway_region_id'?: string; + public constructor(globalDcGatewayRegionId?: string) { + this['global_dc_gateway_region_id'] = globalDcGatewayRegionId; + } + public withGlobalDcGatewayRegionId(globalDcGatewayRegionId: string): GlobalDcGatewayRegionId { + this['global_dc_gateway_region_id'] = globalDcGatewayRegionId; + return this; + } + public set globalDcGatewayRegionId(globalDcGatewayRegionId: string | undefined) { + this['global_dc_gateway_region_id'] = globalDcGatewayRegionId; + } + public get globalDcGatewayRegionId(): string | undefined { + return this['global_dc_gateway_region_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/InterRegion.ts b/services/cc/v3/model/InterRegion.ts index ba69378e4..fc9aa53ed 100644 --- a/services/cc/v3/model/InterRegion.ts +++ b/services/cc/v3/model/InterRegion.ts @@ -1,5 +1,5 @@ import { ProjectId } from './ProjectId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; export class InterRegion { diff --git a/services/cc/v3/model/InterRegionBandwidth.ts b/services/cc/v3/model/InterRegionBandwidth.ts index 0abaaa60d..7d0c13bcf 100644 --- a/services/cc/v3/model/InterRegionBandwidth.ts +++ b/services/cc/v3/model/InterRegionBandwidth.ts @@ -5,7 +5,7 @@ import { Description } from './Description'; import { DomainId } from './DomainId'; import { InterRegion } from './InterRegion'; import { Name } from './Name'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v2/model/ListGcbResourceByTagRequest.ts b/services/cc/v3/model/ListGcbResourceByTagRequest.ts similarity index 100% rename from services/cc/v2/model/ListGcbResourceByTagRequest.ts rename to services/cc/v3/model/ListGcbResourceByTagRequest.ts diff --git a/services/cc/v2/model/ListGcbResourceByTagResponse.ts b/services/cc/v3/model/ListGcbResourceByTagResponse.ts similarity index 100% rename from services/cc/v2/model/ListGcbResourceByTagResponse.ts rename to services/cc/v3/model/ListGcbResourceByTagResponse.ts diff --git a/services/cc/v2/model/ListGcbResourceTagsRequest.ts b/services/cc/v3/model/ListGcbResourceTagsRequest.ts similarity index 100% rename from services/cc/v2/model/ListGcbResourceTagsRequest.ts rename to services/cc/v3/model/ListGcbResourceTagsRequest.ts diff --git a/services/cc/v2/model/ListGcbResourceTagsResponse.ts b/services/cc/v3/model/ListGcbResourceTagsResponse.ts similarity index 100% rename from services/cc/v2/model/ListGcbResourceTagsResponse.ts rename to services/cc/v3/model/ListGcbResourceTagsResponse.ts diff --git a/services/cc/v2/model/ListGcbTenantTagsRequest.ts b/services/cc/v3/model/ListGcbTenantTagsRequest.ts similarity index 100% rename from services/cc/v2/model/ListGcbTenantTagsRequest.ts rename to services/cc/v3/model/ListGcbTenantTagsRequest.ts diff --git a/services/cc/v2/model/ListGcbTenantTagsResponse.ts b/services/cc/v3/model/ListGcbTenantTagsResponse.ts similarity index 100% rename from services/cc/v2/model/ListGcbTenantTagsResponse.ts rename to services/cc/v3/model/ListGcbTenantTagsResponse.ts diff --git a/services/cc/v3/model/ListGlobalConnectionBandwidthConfigs.ts b/services/cc/v3/model/ListGlobalConnectionBandwidthConfigs.ts index f4290cad7..793027976 100644 --- a/services/cc/v3/model/ListGlobalConnectionBandwidthConfigs.ts +++ b/services/cc/v3/model/ListGlobalConnectionBandwidthConfigs.ts @@ -16,7 +16,7 @@ export class ListGlobalConnectionBandwidthConfigs { private 'enable_area_bandwidth'?: boolean; private 'enable_change_95'?: boolean; private 'enable_spec_code'?: boolean; - public constructor(sizeRange?: Array, chargeMode?: Array, services?: Array, gcbType?: Array, crossborder?: boolean, quotas?: Array, slaLevel?: Array, bindLimit?: number) { + public constructor(sizeRange?: Array, chargeMode?: Array, services?: Array, gcbType?: Array, crossborder?: boolean, quotas?: Array, slaLevel?: Array, bindLimit?: number, enableAreaBandwidth?: boolean, enableChange95?: boolean) { this['size_range'] = sizeRange; this['charge_mode'] = chargeMode; this['services'] = services; @@ -25,6 +25,8 @@ export class ListGlobalConnectionBandwidthConfigs { this['quotas'] = quotas; this['sla_level'] = slaLevel; this['bind_limit'] = bindLimit; + this['enable_area_bandwidth'] = enableAreaBandwidth; + this['enable_change_95'] = enableChange95; } public withSizeRange(sizeRange: Array): ListGlobalConnectionBandwidthConfigs { this['size_range'] = sizeRange; @@ -146,7 +148,8 @@ export class ListGlobalConnectionBandwidthConfigs { */ export enum ListGlobalConnectionBandwidthConfigsChargeModeEnum { BWD = 'bwd', - E_95 = '95' + E_95 = '95', + E_95AVR = '95avr' } /** * @export diff --git a/services/cc/v3/model/ListGlobalConnectionBandwidthSitesRequest.ts b/services/cc/v3/model/ListGlobalConnectionBandwidthSitesRequest.ts index d62690684..b6f85a411 100644 --- a/services/cc/v3/model/ListGlobalConnectionBandwidthSitesRequest.ts +++ b/services/cc/v3/model/ListGlobalConnectionBandwidthSitesRequest.ts @@ -4,6 +4,8 @@ export class ListGlobalConnectionBandwidthSitesRequest { public limit?: number; public marker?: string; public id?: Array; + private 'name_en'?: string; + private 'name_cn'?: string; private 'site_code'?: string; private 'site_type'?: ListGlobalConnectionBandwidthSitesRequestSiteTypeEnum | string; public constructor() { @@ -20,6 +22,26 @@ export class ListGlobalConnectionBandwidthSitesRequest { this['id'] = id; return this; } + public withNameEn(nameEn: string): ListGlobalConnectionBandwidthSitesRequest { + this['name_en'] = nameEn; + return this; + } + public set nameEn(nameEn: string | undefined) { + this['name_en'] = nameEn; + } + public get nameEn(): string | undefined { + return this['name_en']; + } + public withNameCn(nameCn: string): ListGlobalConnectionBandwidthSitesRequest { + this['name_cn'] = nameCn; + return this; + } + public set nameCn(nameCn: string | undefined) { + this['name_cn'] = nameCn; + } + public get nameCn(): string | undefined { + return this['name_cn']; + } public withSiteCode(siteCode: string): ListGlobalConnectionBandwidthSitesRequest { this['site_code'] = siteCode; return this; diff --git a/services/cc/v3/model/ListGlobalConnectionBandwidthsRequest.ts b/services/cc/v3/model/ListGlobalConnectionBandwidthsRequest.ts index eeb5d4d5a..704b30932 100644 --- a/services/cc/v3/model/ListGlobalConnectionBandwidthsRequest.ts +++ b/services/cc/v3/model/ListGlobalConnectionBandwidthsRequest.ts @@ -6,8 +6,11 @@ export class ListGlobalConnectionBandwidthsRequest { public id?: Array; public name?: Array; private 'enterprise_project_id'?: Array; + private 'instance_id'?: Array; + private 'instance_type'?: Array | Array; private 'binding_service'?: Array | Array; public type?: Array | Array; + private 'admin_state'?: Array | Array; private 'charge_mode'?: Array | Array; public constructor() { } @@ -37,6 +40,26 @@ export class ListGlobalConnectionBandwidthsRequest { public get enterpriseProjectId(): Array | undefined { return this['enterprise_project_id']; } + public withInstanceId(instanceId: Array): ListGlobalConnectionBandwidthsRequest { + this['instance_id'] = instanceId; + return this; + } + public set instanceId(instanceId: Array | undefined) { + this['instance_id'] = instanceId; + } + public get instanceId(): Array | undefined { + return this['instance_id']; + } + public withInstanceType(instanceType: Array | Array): ListGlobalConnectionBandwidthsRequest { + this['instance_type'] = instanceType; + return this; + } + public set instanceType(instanceType: Array | Array | undefined) { + this['instance_type'] = instanceType; + } + public get instanceType(): Array | Array | undefined { + return this['instance_type']; + } public withBindingService(bindingService: Array | Array): ListGlobalConnectionBandwidthsRequest { this['binding_service'] = bindingService; return this; @@ -51,6 +74,16 @@ export class ListGlobalConnectionBandwidthsRequest { this['type'] = type; return this; } + public withAdminState(adminState: Array | Array): ListGlobalConnectionBandwidthsRequest { + this['admin_state'] = adminState; + return this; + } + public set adminState(adminState: Array | Array | undefined) { + this['admin_state'] = adminState; + } + public get adminState(): Array | Array | undefined { + return this['admin_state']; + } public withChargeMode(chargeMode: Array | Array): ListGlobalConnectionBandwidthsRequest { this['charge_mode'] = chargeMode; return this; @@ -63,6 +96,16 @@ export class ListGlobalConnectionBandwidthsRequest { } } +/** + * @export + * @enum {string} + */ +export enum ListGlobalConnectionBandwidthsRequestInstanceTypeEnum { + CC = 'CC', + GEIP = 'GEIP', + GCN = 'GCN', + GSN = 'GSN' +} /** * @export * @enum {string} @@ -83,11 +126,20 @@ export enum ListGlobalConnectionBandwidthsRequestTypeEnum { SUBAREA = 'SubArea', REGION = 'Region' } +/** + * @export + * @enum {string} + */ +export enum ListGlobalConnectionBandwidthsRequestAdminStateEnum { + NORMAL = 'NORMAL', + FREEZED = 'FREEZED' +} /** * @export * @enum {string} */ export enum ListGlobalConnectionBandwidthsRequestChargeModeEnum { BWD = 'bwd', - E_95 = '95' + E_95 = '95', + E_95AVR = '95avr' } diff --git a/services/cc/v3/model/ListSupportBindingConnectionBandwidthsRequest.ts b/services/cc/v3/model/ListSupportBindingConnectionBandwidthsRequest.ts index fc270be88..6b3ef430c 100644 --- a/services/cc/v3/model/ListSupportBindingConnectionBandwidthsRequest.ts +++ b/services/cc/v3/model/ListSupportBindingConnectionBandwidthsRequest.ts @@ -7,8 +7,7 @@ export class ListSupportBindingConnectionBandwidthsRequest { private 'local_area'?: string; private 'remote_area'?: string; private 'binding_service'?: ListSupportBindingConnectionBandwidthsRequestBindingServiceEnum | string; - public constructor(bindingService?: string) { - this['binding_service'] = bindingService; + public constructor() { } public withLimit(limit: number): ListSupportBindingConnectionBandwidthsRequest { this['limit'] = limit; diff --git a/services/cc/v3/model/NetworkInstance.ts b/services/cc/v3/model/NetworkInstance.ts index eda956b98..80c0fd33e 100644 --- a/services/cc/v3/model/NetworkInstance.ts +++ b/services/cc/v3/model/NetworkInstance.ts @@ -7,7 +7,7 @@ import { InstanceId } from './InstanceId'; import { Name } from './Name'; import { ProjectId } from './ProjectId'; import { RegionId } from './RegionId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; import { UpdatedAt } from './UpdatedAt'; diff --git a/services/cc/v3/model/NonDefaultAutoAssociateRouteEnabled.ts b/services/cc/v3/model/NonDefaultAutoAssociateRouteEnabled.ts new file mode 100644 index 000000000..916c5c0de --- /dev/null +++ b/services/cc/v3/model/NonDefaultAutoAssociateRouteEnabled.ts @@ -0,0 +1,6 @@ + + +export class NonDefaultAutoAssociateRouteEnabled { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/NonDefaultAutoPropagateRouteEnabled.ts b/services/cc/v3/model/NonDefaultAutoPropagateRouteEnabled.ts new file mode 100644 index 000000000..deb04fa1d --- /dev/null +++ b/services/cc/v3/model/NonDefaultAutoPropagateRouteEnabled.ts @@ -0,0 +1,6 @@ + + +export class NonDefaultAutoPropagateRouteEnabled { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/NonRequiredAutoAssociateRouteEnabled.ts b/services/cc/v3/model/NonRequiredAutoAssociateRouteEnabled.ts new file mode 100644 index 000000000..d7016c0f5 --- /dev/null +++ b/services/cc/v3/model/NonRequiredAutoAssociateRouteEnabled.ts @@ -0,0 +1,6 @@ + + +export class NonRequiredAutoAssociateRouteEnabled { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/NonRequiredAutoPropagateRouteEnabled.ts b/services/cc/v3/model/NonRequiredAutoPropagateRouteEnabled.ts new file mode 100644 index 000000000..bd20ea5d6 --- /dev/null +++ b/services/cc/v3/model/NonRequiredAutoPropagateRouteEnabled.ts @@ -0,0 +1,6 @@ + + +export class NonRequiredAutoPropagateRouteEnabled { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/NonRequiredCentralNetworkPlaneId.ts b/services/cc/v3/model/NonRequiredCentralNetworkPlaneId.ts new file mode 100644 index 000000000..415a6097d --- /dev/null +++ b/services/cc/v3/model/NonRequiredCentralNetworkPlaneId.ts @@ -0,0 +1,17 @@ + + +export class NonRequiredCentralNetworkPlaneId { + private 'central_network_plane_id'?: string; + public constructor() { + } + public withCentralNetworkPlaneId(centralNetworkPlaneId: string): NonRequiredCentralNetworkPlaneId { + this['central_network_plane_id'] = centralNetworkPlaneId; + return this; + } + public set centralNetworkPlaneId(centralNetworkPlaneId: string | undefined) { + this['central_network_plane_id'] = centralNetworkPlaneId; + } + public get centralNetworkPlaneId(): string | undefined { + return this['central_network_plane_id']; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/NonRequiredGcbChargeMode.ts b/services/cc/v3/model/NonRequiredGcbChargeMode.ts new file mode 100644 index 000000000..7a55a8d3b --- /dev/null +++ b/services/cc/v3/model/NonRequiredGcbChargeMode.ts @@ -0,0 +1,27 @@ + + +export class NonRequiredGcbChargeMode { + private 'charge_mode'?: NonRequiredGcbChargeModeChargeModeEnum | string; + public constructor() { + } + public withChargeMode(chargeMode: NonRequiredGcbChargeModeChargeModeEnum | string): NonRequiredGcbChargeMode { + this['charge_mode'] = chargeMode; + return this; + } + public set chargeMode(chargeMode: NonRequiredGcbChargeModeChargeModeEnum | string | undefined) { + this['charge_mode'] = chargeMode; + } + public get chargeMode(): NonRequiredGcbChargeModeChargeModeEnum | string | undefined { + return this['charge_mode']; + } +} + +/** + * @export + * @enum {string} + */ +export enum NonRequiredGcbChargeModeChargeModeEnum { + BWD = 'bwd', + E_95 = '95', + E_95AVR = '95avr' +} diff --git a/services/cc/v3/model/NonRequiredGcbSize.ts b/services/cc/v3/model/NonRequiredGcbSize.ts new file mode 100644 index 000000000..a32531977 --- /dev/null +++ b/services/cc/v3/model/NonRequiredGcbSize.ts @@ -0,0 +1,11 @@ + + +export class NonRequiredGcbSize { + public size?: number; + public constructor() { + } + public withSize(size: number): NonRequiredGcbSize { + this['size'] = size; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/Permission.ts b/services/cc/v3/model/Permission.ts index 1418a1806..4728feda8 100644 --- a/services/cc/v3/model/Permission.ts +++ b/services/cc/v3/model/Permission.ts @@ -6,7 +6,7 @@ import { InstanceId } from './InstanceId'; import { Name } from './Name'; import { ProjectId } from './ProjectId'; import { RegionId } from './RegionId'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID32Identifier } from './UUID32Identifier'; export class Permission { diff --git a/services/cc/v2/model/QueryResourceByTagRequestBody.ts b/services/cc/v3/model/QueryResourceByTagRequestBody.ts similarity index 100% rename from services/cc/v2/model/QueryResourceByTagRequestBody.ts rename to services/cc/v3/model/QueryResourceByTagRequestBody.ts diff --git a/services/cc/v2/model/QueryTag.ts b/services/cc/v3/model/QueryTag.ts similarity index 100% rename from services/cc/v2/model/QueryTag.ts rename to services/cc/v3/model/QueryTag.ts diff --git a/services/cc/v2/model/RequiredTag.ts b/services/cc/v3/model/RequiredTag.ts similarity index 100% rename from services/cc/v2/model/RequiredTag.ts rename to services/cc/v3/model/RequiredTag.ts diff --git a/services/cc/v3/model/SiteGroupReferenceInfo.ts b/services/cc/v3/model/SiteGroupReferenceInfo.ts index 82e5225a9..cc3ef89e3 100644 --- a/services/cc/v3/model/SiteGroupReferenceInfo.ts +++ b/services/cc/v3/model/SiteGroupReferenceInfo.ts @@ -1,5 +1,5 @@ import { Description } from './Description'; -import { UUIDIdentifier } from './UUIDIdentifier'; +import { UUID64Identifier } from './UUID64Identifier'; export class SiteGroupReferenceInfo { diff --git a/services/cc/v2/model/TmsMatch.ts b/services/cc/v3/model/TmsMatch.ts similarity index 100% rename from services/cc/v2/model/TmsMatch.ts rename to services/cc/v3/model/TmsMatch.ts diff --git a/services/cc/v2/model/TmsResource.ts b/services/cc/v3/model/TmsResource.ts similarity index 100% rename from services/cc/v2/model/TmsResource.ts rename to services/cc/v3/model/TmsResource.ts diff --git a/services/cc/v2/model/TmsTagValues.ts b/services/cc/v3/model/TmsTagValues.ts similarity index 100% rename from services/cc/v2/model/TmsTagValues.ts rename to services/cc/v3/model/TmsTagValues.ts diff --git a/services/cc/v3/model/UUIDDef.ts b/services/cc/v3/model/UUID32Def.ts similarity index 59% rename from services/cc/v3/model/UUIDDef.ts rename to services/cc/v3/model/UUID32Def.ts index 150e43722..6fa661ca1 100644 --- a/services/cc/v3/model/UUIDDef.ts +++ b/services/cc/v3/model/UUID32Def.ts @@ -1,6 +1,6 @@ -export class UUIDDef { +export class UUID32Def { public constructor() { } } \ No newline at end of file diff --git a/services/cc/v3/model/UUIDIdentifier.ts b/services/cc/v3/model/UUID32Identifier.ts similarity index 64% rename from services/cc/v3/model/UUIDIdentifier.ts rename to services/cc/v3/model/UUID32Identifier.ts index 3dd4f545c..9cc9f469c 100644 --- a/services/cc/v3/model/UUIDIdentifier.ts +++ b/services/cc/v3/model/UUID32Identifier.ts @@ -1,11 +1,11 @@ -export class UUIDIdentifier { +export class UUID32Identifier { public id?: string; public constructor(id?: string) { this['id'] = id; } - public withId(id: string): UUIDIdentifier { + public withId(id: string): UUID32Identifier { this['id'] = id; return this; } diff --git a/services/cc/v3/model/UUID64Def.ts b/services/cc/v3/model/UUID64Def.ts new file mode 100644 index 000000000..1d07e1822 --- /dev/null +++ b/services/cc/v3/model/UUID64Def.ts @@ -0,0 +1,6 @@ + + +export class UUID64Def { + public constructor() { + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UUID64Identifier.ts b/services/cc/v3/model/UUID64Identifier.ts new file mode 100644 index 000000000..70cfc850d --- /dev/null +++ b/services/cc/v3/model/UUID64Identifier.ts @@ -0,0 +1,12 @@ + + +export class UUID64Identifier { + public id?: string; + public constructor(id?: string) { + this['id'] = id; + } + public withId(id: string): UUID64Identifier { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/cc/v3/model/UpdateCentralNetwork.ts b/services/cc/v3/model/UpdateCentralNetwork.ts index f1e93c7cd..753a210d9 100644 --- a/services/cc/v3/model/UpdateCentralNetwork.ts +++ b/services/cc/v3/model/UpdateCentralNetwork.ts @@ -1,4 +1,6 @@ import { Description } from './Description'; +import { NonDefaultAutoAssociateRouteEnabled } from './NonDefaultAutoAssociateRouteEnabled'; +import { NonDefaultAutoPropagateRouteEnabled } from './NonDefaultAutoPropagateRouteEnabled'; import { NonRequiredName } from './NonRequiredName'; import { Tag } from './Tag'; import { Tags } from './Tags'; diff --git a/services/cc/v3/model/UpdateGlobalConnectionBandwidth.ts b/services/cc/v3/model/UpdateGlobalConnectionBandwidth.ts index 10c41e76c..6eab62cfb 100644 --- a/services/cc/v3/model/UpdateGlobalConnectionBandwidth.ts +++ b/services/cc/v3/model/UpdateGlobalConnectionBandwidth.ts @@ -1,9 +1,9 @@ import { Description } from './Description'; import { GcbBindingServiceAll } from './GcbBindingServiceAll'; -import { GcbChargeMode } from './GcbChargeMode'; -import { GcbSize } from './GcbSize'; import { GcbSlaLevel } from './GcbSlaLevel'; import { GcbSpecCodeId } from './GcbSpecCodeId'; +import { NonRequiredGcbChargeMode } from './NonRequiredGcbChargeMode'; +import { NonRequiredGcbSize } from './NonRequiredGcbSize'; import { NonRequiredName } from './NonRequiredName'; @@ -77,7 +77,8 @@ export class UpdateGlobalConnectionBandwidth { */ export enum UpdateGlobalConnectionBandwidthChargeModeEnum { BWD = 'bwd', - E_95 = '95' + E_95 = '95', + E_95AVR = '95avr' } /** * @export diff --git a/services/cc/v3/public-api.ts b/services/cc/v3/public-api.ts index 0b8e52c14..e04b9ef41 100644 --- a/services/cc/v3/public-api.ts +++ b/services/cc/v3/public-api.ts @@ -17,16 +17,26 @@ export * from './model/AssociateGlobalConnectionBandwidthInstanceRequestBody'; export * from './model/AssociateGlobalConnectionBandwidthInstanceRequestInfo'; export * from './model/AssociateGlobalConnectionBandwidthInstanceResponse'; export * from './model/AssociateGlobalConnectionBandwidthInstanceResponseInfo'; +export * from './model/AttachmentId'; export * from './model/AttachmentInstanceId'; +export * from './model/AttachmentInstanceProjectId'; +export * from './model/AttachmentInstanceRegionId'; +export * from './model/AttachmentInstanceSiteCode'; export * from './model/AttachmentInstanceType'; export * from './model/AttachmentInstanceTypeEnum'; export * from './model/Authorisation'; +export * from './model/AutoAssociateRouteEnabled'; +export * from './model/AutoPropagateRouteEnabled'; export * from './model/BandwidthPackage'; export * from './model/BandwidthPackageId'; export * from './model/BandwidthSize'; export * from './model/BandwidthSizeDefine'; export * from './model/BandwidthType'; export * from './model/BandwidthTypeEnum'; +export * from './model/BatchCreateGcbResourceTagsRequest'; +export * from './model/BatchCreateGcbResourceTagsResponse'; +export * from './model/BatchDeleteGcbResourceTagsRequest'; +export * from './model/BatchDeleteGcbResourceTagsResponse'; export * from './model/BillingMode'; export * from './model/BillingModeEnum'; export * from './model/CentralNetwork'; @@ -36,8 +46,10 @@ export * from './model/CentralNetworkCapability'; export * from './model/CentralNetworkCapabilityEnum'; export * from './model/CentralNetworkConnection'; export * from './model/CentralNetworkConnectionInfo'; +export * from './model/CentralNetworkConnectionPlaneId'; export * from './model/CentralNetworkConnectionState'; export * from './model/CentralNetworkConnectionStateEnum'; +export * from './model/CentralNetworkDefaultPlaneId'; export * from './model/CentralNetworkElementChange'; export * from './model/CentralNetworkErInstance'; export * from './model/CentralNetworkErRouteTableAttachment'; @@ -64,6 +76,8 @@ export * from './model/ConnectionPointPair'; export * from './model/ConnectionPointTypeEnum'; export * from './model/ConnectionType'; export * from './model/ConnectionTypeEnum'; +export * from './model/CountGcbResourceByTagRequest'; +export * from './model/CountGcbResourceByTagResponse'; export * from './model/CreateAuthorisation'; export * from './model/CreateAuthorisationRequest'; export * from './model/CreateAuthorisationRequestBody'; @@ -91,6 +105,10 @@ export * from './model/CreateCloudConnection'; export * from './model/CreateCloudConnectionRequest'; export * from './model/CreateCloudConnectionRequestBody'; export * from './model/CreateCloudConnectionResponse'; +export * from './model/CreateDeleteGcbTagsRequestBody'; +export * from './model/CreateGcbResourceTagRequest'; +export * from './model/CreateGcbResourceTagResponse'; +export * from './model/CreateGcbTagRequestBody'; export * from './model/CreateGlobalConnectionBandwidth'; export * from './model/CreateGlobalConnectionBandwidthRequest'; export * from './model/CreateGlobalConnectionBandwidthRequestBody'; @@ -116,6 +134,8 @@ export * from './model/DeleteCentralNetworkRequest'; export * from './model/DeleteCentralNetworkResponse'; export * from './model/DeleteCloudConnectionRequest'; export * from './model/DeleteCloudConnectionResponse'; +export * from './model/DeleteGcbResourceTagRequest'; +export * from './model/DeleteGcbResourceTagResponse'; export * from './model/DeleteGlobalConnectionBandwidthRequest'; export * from './model/DeleteGlobalConnectionBandwidthResponse'; export * from './model/DeleteInterRegionBandwidthRequest'; @@ -141,6 +161,7 @@ export * from './model/EnterpriseRouterAttachmentId'; export * from './model/EnterpriseRouterId'; export * from './model/EnterpriseRouterProjectId'; export * from './model/EnterpriseRouterRegionId'; +export * from './model/EnterpriseRouterSiteCode'; export * from './model/EnterpriseRouterTableId'; export * from './model/GcbAdminState'; export * from './model/GcbBindingServiceAll'; @@ -171,6 +192,8 @@ export * from './model/GlobalConnectionBandwidthSizeRange'; export * from './model/GlobalConnectionBandwidthSpecCode'; export * from './model/GlobalDcGatewayId'; export * from './model/GlobalDcGatewayPeerLinkId'; +export * from './model/GlobalDcGatewayProjectId'; +export * from './model/GlobalDcGatewayRegionId'; export * from './model/HostedCloudEnum'; export * from './model/InstanceDomainId'; export * from './model/InstanceId'; @@ -220,6 +243,12 @@ export * from './model/ListCloudConnectionsByTagsRequestBody'; export * from './model/ListCloudConnectionsByTagsResponse'; export * from './model/ListCloudConnectionsRequest'; export * from './model/ListCloudConnectionsResponse'; +export * from './model/ListGcbResourceByTagRequest'; +export * from './model/ListGcbResourceByTagResponse'; +export * from './model/ListGcbResourceTagsRequest'; +export * from './model/ListGcbResourceTagsResponse'; +export * from './model/ListGcbTenantTagsRequest'; +export * from './model/ListGcbTenantTagsResponse'; export * from './model/ListGlobalConnectionBandwidthConfigs'; export * from './model/ListGlobalConnectionBandwidthConfigsRequest'; export * from './model/ListGlobalConnectionBandwidthConfigsResponse'; @@ -246,13 +275,21 @@ export * from './model/Name'; export * from './model/NameDef'; export * from './model/NetworkInstance'; export * from './model/NextMarker'; +export * from './model/NonDefaultAutoAssociateRouteEnabled'; +export * from './model/NonDefaultAutoPropagateRouteEnabled'; +export * from './model/NonRequiredAutoAssociateRouteEnabled'; +export * from './model/NonRequiredAutoPropagateRouteEnabled'; +export * from './model/NonRequiredCentralNetworkPlaneId'; +export * from './model/NonRequiredGcbChargeMode'; +export * from './model/NonRequiredGcbSize'; export * from './model/NonRequiredName'; export * from './model/PageInfo'; export * from './model/Permission'; -export * from './model/PlaneId'; export * from './model/PreviousMarker'; export * from './model/ProjectId'; export * from './model/ProjectIdDef'; +export * from './model/QueryResourceByTagRequestBody'; +export * from './model/QueryTag'; export * from './model/QuotaLimit'; export * from './model/QuotaUnit'; export * from './model/QuotaUsed'; @@ -260,6 +297,7 @@ export * from './model/RegionId'; export * from './model/RegionIdDef'; export * from './model/RemoteAreaId'; export * from './model/RequestId'; +export * from './model/RequiredTag'; export * from './model/ResourceId'; export * from './model/ResourceType'; export * from './model/ShowBandwidthPackageRequest'; @@ -298,8 +336,13 @@ export * from './model/TagCloudConnectionResponse'; export * from './model/TagKey'; export * from './model/TagValue'; export * from './model/Tags'; -export * from './model/UUIDDef'; -export * from './model/UUIDIdentifier'; +export * from './model/TmsMatch'; +export * from './model/TmsResource'; +export * from './model/TmsTagValues'; +export * from './model/UUID32Def'; +export * from './model/UUID32Identifier'; +export * from './model/UUID64Def'; +export * from './model/UUID64Identifier'; export * from './model/UntagBandwidthPackageRequest'; export * from './model/UntagBandwidthPackageRequestBody'; export * from './model/UntagBandwidthPackageResponse'; diff --git a/services/cce/v3/model/StorageSelectorsMatchLabels.ts b/services/cce/v3/model/StorageSelectorsMatchLabels.ts index e1b7ec0ed..1ba2e3818 100644 --- a/services/cce/v3/model/StorageSelectorsMatchLabels.ts +++ b/services/cce/v3/model/StorageSelectorsMatchLabels.ts @@ -3,6 +3,8 @@ export class StorageSelectorsMatchLabels { public size?: string; public volumeType?: string; + public iops?: string; + public throughput?: string; public metadataEncrypted?: string; public metadataCmkid?: string; public count?: string; @@ -16,6 +18,14 @@ export class StorageSelectorsMatchLabels { this['volumeType'] = volumeType; return this; } + public withIops(iops: string): StorageSelectorsMatchLabels { + this['iops'] = iops; + return this; + } + public withThroughput(throughput: string): StorageSelectorsMatchLabels { + this['throughput'] = throughput; + return this; + } public withMetadataEncrypted(metadataEncrypted: string): StorageSelectorsMatchLabels { this['metadataEncrypted'] = metadataEncrypted; return this; diff --git a/services/cce/v3/model/Volume.ts b/services/cce/v3/model/Volume.ts index e1b417a2c..d09bb89a6 100644 --- a/services/cce/v3/model/Volume.ts +++ b/services/cce/v3/model/Volume.ts @@ -4,6 +4,8 @@ import { VolumeMetadata } from './VolumeMetadata'; export class Volume { public size?: number; public volumetype?: string; + public iops?: number; + public throughput?: number; public extendParam?: { [key: string]: object; }; private 'cluster_id'?: string; private 'cluster_type'?: string; @@ -21,6 +23,14 @@ export class Volume { this['volumetype'] = volumetype; return this; } + public withIops(iops: number): Volume { + this['iops'] = iops; + return this; + } + public withThroughput(throughput: number): Volume { + this['throughput'] = throughput; + return this; + } public withExtendParam(extendParam: { [key: string]: object; }): Volume { this['extendParam'] = extendParam; return this; diff --git a/services/ces/v1/CesRegion.ts b/services/ces/v1/CesRegion.ts index 1ea09d152..100b03cf6 100644 --- a/services/ces/v1/CesRegion.ts +++ b/services/ces/v1/CesRegion.ts @@ -31,6 +31,8 @@ export class CesRegion { public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://ces.ru-moscow-1.myhuaweicloud.com"]); public static CN_SOUTH_2 = new Region("cn-south-2", ["https://ces.cn-south-2.myhuaweicloud.com"]); public static CN_SOUTH_4 = new Region("cn-south-4", ["https://ces.cn-south-4.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://ces.cn-east-4.myhuaweicloud.com"]); + public static AF_NORTH_1 = new Region("af-north-1", ["https://ces.af-north-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -58,7 +60,9 @@ export class CesRegion { "eu-west-0":CesRegion.EU_WEST_0, "ru-moscow-1":CesRegion.RU_MOSCOW_1, "cn-south-2":CesRegion.CN_SOUTH_2, - "cn-south-4":CesRegion.CN_SOUTH_4 + "cn-south-4":CesRegion.CN_SOUTH_4, + "cn-east-4":CesRegion.CN_EAST_4, + "af-north-1":CesRegion.AF_NORTH_1 }; public static valueOf(regionId: string) { diff --git a/services/ces/v2/CesClient.ts b/services/ces/v2/CesClient.ts index ec5227545..993e37333 100644 --- a/services/ces/v2/CesClient.ts +++ b/services/ces/v2/CesClient.ts @@ -175,6 +175,7 @@ import { Resource } from './model/Resource'; import { ResourceCategory } from './model/ResourceCategory'; import { ResourceGroupID } from './model/ResourceGroupID'; import { ResourceGroupTagRelation } from './model/ResourceGroupTagRelation'; +import { ResourceTag } from './model/ResourceTag'; import { ResourcesInListResp } from './model/ResourcesInListResp'; import { ResourcesReq } from './model/ResourcesReq'; import { ResourcesReqV2 } from './model/ResourcesReqV2'; diff --git a/services/ces/v2/CesRegion.ts b/services/ces/v2/CesRegion.ts index 1ea09d152..100b03cf6 100644 --- a/services/ces/v2/CesRegion.ts +++ b/services/ces/v2/CesRegion.ts @@ -31,6 +31,8 @@ export class CesRegion { public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://ces.ru-moscow-1.myhuaweicloud.com"]); public static CN_SOUTH_2 = new Region("cn-south-2", ["https://ces.cn-south-2.myhuaweicloud.com"]); public static CN_SOUTH_4 = new Region("cn-south-4", ["https://ces.cn-south-4.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://ces.cn-east-4.myhuaweicloud.com"]); + public static AF_NORTH_1 = new Region("af-north-1", ["https://ces.af-north-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -58,7 +60,9 @@ export class CesRegion { "eu-west-0":CesRegion.EU_WEST_0, "ru-moscow-1":CesRegion.RU_MOSCOW_1, "cn-south-2":CesRegion.CN_SOUTH_2, - "cn-south-4":CesRegion.CN_SOUTH_4 + "cn-south-4":CesRegion.CN_SOUTH_4, + "cn-east-4":CesRegion.CN_EAST_4, + "af-north-1":CesRegion.AF_NORTH_1 }; public static valueOf(regionId: string) { diff --git a/services/ces/v2/model/PostAlarmsReqV2.ts b/services/ces/v2/model/PostAlarmsReqV2.ts index d97540633..88ea2ee62 100644 --- a/services/ces/v2/model/PostAlarmsReqV2.ts +++ b/services/ces/v2/model/PostAlarmsReqV2.ts @@ -2,6 +2,7 @@ import { AlarmType } from './AlarmType'; import { Dimension } from './Dimension'; import { Notification } from './Notification'; import { Policy } from './Policy'; +import { ResourceTag } from './ResourceTag'; export class PostAlarmsReqV2 { @@ -11,6 +12,7 @@ export class PostAlarmsReqV2 { private 'resource_group_id'?: string; public resources?: Array>; private 'alarm_template_id'?: string; + public tags?: Array; public policies?: Array; public type?: AlarmType; private 'alarm_notifications'?: Array; @@ -64,6 +66,10 @@ export class PostAlarmsReqV2 { public get alarmTemplateId(): string | undefined { return this['alarm_template_id']; } + public withTags(tags: Array): PostAlarmsReqV2 { + this['tags'] = tags; + return this; + } public withPolicies(policies: Array): PostAlarmsReqV2 { this['policies'] = policies; return this; diff --git a/services/ces/v2/model/ResourceTag.ts b/services/ces/v2/model/ResourceTag.ts new file mode 100644 index 000000000..fa30fead7 --- /dev/null +++ b/services/ces/v2/model/ResourceTag.ts @@ -0,0 +1,18 @@ + + +export class ResourceTag { + public key?: string; + public value?: string; + public constructor(key?: string, value?: string) { + this['key'] = key; + this['value'] = value; + } + public withKey(key: string): ResourceTag { + this['key'] = key; + return this; + } + public withValue(value: string): ResourceTag { + this['value'] = value; + return this; + } +} \ No newline at end of file diff --git a/services/ces/v2/public-api.ts b/services/ces/v2/public-api.ts index 71781c9a9..3e982d3f0 100644 --- a/services/ces/v2/public-api.ts +++ b/services/ces/v2/public-api.ts @@ -173,6 +173,7 @@ export * from './model/Resource'; export * from './model/ResourceCategory'; export * from './model/ResourceGroupID'; export * from './model/ResourceGroupTagRelation'; +export * from './model/ResourceTag'; export * from './model/ResourcesInListResp'; export * from './model/ResourcesReq'; export * from './model/ResourcesReqV2'; diff --git a/services/ces/v3/CesRegion.ts b/services/ces/v3/CesRegion.ts index 1ea09d152..100b03cf6 100644 --- a/services/ces/v3/CesRegion.ts +++ b/services/ces/v3/CesRegion.ts @@ -31,6 +31,8 @@ export class CesRegion { public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://ces.ru-moscow-1.myhuaweicloud.com"]); public static CN_SOUTH_2 = new Region("cn-south-2", ["https://ces.cn-south-2.myhuaweicloud.com"]); public static CN_SOUTH_4 = new Region("cn-south-4", ["https://ces.cn-south-4.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://ces.cn-east-4.myhuaweicloud.com"]); + public static AF_NORTH_1 = new Region("af-north-1", ["https://ces.af-north-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -58,7 +60,9 @@ export class CesRegion { "eu-west-0":CesRegion.EU_WEST_0, "ru-moscow-1":CesRegion.RU_MOSCOW_1, "cn-south-2":CesRegion.CN_SOUTH_2, - "cn-south-4":CesRegion.CN_SOUTH_4 + "cn-south-4":CesRegion.CN_SOUTH_4, + "cn-east-4":CesRegion.CN_EAST_4, + "af-north-1":CesRegion.AF_NORTH_1 }; public static valueOf(regionId: string) { diff --git a/services/dds/v3/model/ResizeInstanceOption.ts b/services/dds/v3/model/ResizeInstanceOption.ts index 4d1ee5af9..780a3ce0d 100644 --- a/services/dds/v3/model/ResizeInstanceOption.ts +++ b/services/dds/v3/model/ResizeInstanceOption.ts @@ -46,5 +46,7 @@ export class ResizeInstanceOption { */ export enum ResizeInstanceOptionTargetTypeEnum { MONGOS = 'mongos', - SHARD = 'shard' + SHARD = 'shard', + CONFIG = 'config', + READONLY = 'readonly' } diff --git a/services/dli/v1/DliClient.ts b/services/dli/v1/DliClient.ts index 4f8673a9f..d1e666cb2 100644 --- a/services/dli/v1/DliClient.ts +++ b/services/dli/v1/DliClient.ts @@ -2505,9 +2505,9 @@ export class DliClient { * Please refer to HUAWEI cloud API Explorer for details. * * @summary 查询作业模板列表 - * @param {string} [type] 类型。 + * @param {string} [type] 类型,需要且必须传入spark作为值。 * @param {string} [keyword] 模板名过滤关键字,模糊匹配,获取模板名含有该关键字的所有模板。 - * @param {number} [pageSize] 每页显示的最大结果行数,范围: [1, 100]。默认值为:50。 + * @param {number} [pageSize] 每页显示的最大结果行数,范围: [1, 1000]。默认值为:50。 * @param {number} [currentPage] 当前页码,默认为第一页。 * @param {*} [options] Override http request option. * @throws {RequiredError} diff --git a/services/hss/v5/HssClient.ts b/services/hss/v5/HssClient.ts index d0fd81e22..0afe6eb1a 100644 --- a/services/hss/v5/HssClient.ts +++ b/services/hss/v5/HssClient.ts @@ -2,8 +2,6 @@ import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient"; import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder"; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; -import { AccountResponseInfo } from './model/AccountResponseInfo'; -import { AddAccountsRequestInfo } from './model/AddAccountsRequestInfo'; import { AddHostsGroupRequest } from './model/AddHostsGroupRequest'; import { AddHostsGroupRequestInfo } from './model/AddHostsGroupRequestInfo'; import { AddHostsGroupResponse } from './model/AddHostsGroupResponse'; @@ -32,9 +30,6 @@ import { BackupTriggerPropertiesRequestInfo } from './model/BackupTriggerPropert import { BackupTriggerPropertiesRequestInfo1 } from './model/BackupTriggerPropertiesRequestInfo1'; import { BackupTriggerRequestInfo } from './model/BackupTriggerRequestInfo'; import { BackupTriggerRequestInfo1 } from './model/BackupTriggerRequestInfo1'; -import { BatchAddAccountsRequest } from './model/BatchAddAccountsRequest'; -import { BatchAddAccountsRequestInfo } from './model/BatchAddAccountsRequestInfo'; -import { BatchAddAccountsResponse } from './model/BatchAddAccountsResponse'; import { BatchCreateTagsRequest } from './model/BatchCreateTagsRequest'; import { BatchCreateTagsRequestInfo } from './model/BatchCreateTagsRequestInfo'; import { BatchCreateTagsResponse } from './model/BatchCreateTagsResponse'; @@ -82,9 +77,6 @@ import { CreateVulnerabilityScanTaskRequest } from './model/CreateVulnerabilityS import { CreateVulnerabilityScanTaskResponse } from './model/CreateVulnerabilityScanTaskResponse'; import { DefaultGroup } from './model/DefaultGroup'; import { Deletable } from './model/Deletable'; -import { DeleteAccountRequest } from './model/DeleteAccountRequest'; -import { DeleteAccountRequestInfo } from './model/DeleteAccountRequestInfo'; -import { DeleteAccountResponse } from './model/DeleteAccountResponse'; import { DeleteHostsGroupRequest } from './model/DeleteHostsGroupRequest'; import { DeleteHostsGroupResponse } from './model/DeleteHostsGroupResponse'; import { DeleteResourceInstanceTagRequest } from './model/DeleteResourceInstanceTagRequest'; @@ -146,8 +138,6 @@ import { IsolatedFileResponseInfo } from './model/IsolatedFileResponseInfo'; import { IsolationStatus } from './model/IsolationStatus'; import { JarPackageHostInfo } from './model/JarPackageHostInfo'; import { JarPackageStatisticsResponseInfo } from './model/JarPackageStatisticsResponseInfo'; -import { ListAccountsRequest } from './model/ListAccountsRequest'; -import { ListAccountsResponse } from './model/ListAccountsResponse'; import { ListAlarmWhiteListRequest } from './model/ListAlarmWhiteListRequest'; import { ListAlarmWhiteListResponse } from './model/ListAlarmWhiteListResponse'; import { ListAppChangeHistoriesRequest } from './model/ListAppChangeHistoriesRequest'; @@ -194,8 +184,6 @@ import { ListJarPackageHostInfoRequest } from './model/ListJarPackageHostInfoReq import { ListJarPackageHostInfoResponse } from './model/ListJarPackageHostInfoResponse'; import { ListJarPackageStatisticsRequest } from './model/ListJarPackageStatisticsRequest'; import { ListJarPackageStatisticsResponse } from './model/ListJarPackageStatisticsResponse'; -import { ListOrganizationTreeRequest } from './model/ListOrganizationTreeRequest'; -import { ListOrganizationTreeResponse } from './model/ListOrganizationTreeResponse'; import { ListPasswordComplexityRequest } from './model/ListPasswordComplexityRequest'; import { ListPasswordComplexityResponse } from './model/ListPasswordComplexityResponse'; import { ListPolicyGroupRequest } from './model/ListPolicyGroupRequest'; @@ -258,7 +246,6 @@ import { OperateEventRequestInfo } from './model/OperateEventRequestInfo'; import { OperateType } from './model/OperateType'; import { OperationDefinitionInfo } from './model/OperationDefinitionInfo'; import { OperationDefinitionRequestInfo } from './model/OperationDefinitionRequestInfo'; -import { OrganizationNodeResponseInfo } from './model/OrganizationNodeResponseInfo'; import { OsType } from './model/OsType'; import { PolicyGroupId } from './model/PolicyGroupId'; import { PolicyGroupName } from './model/PolicyGroupName'; @@ -415,28 +402,6 @@ export class HssClient { return this.hcClient.sendRequest(options); } - /** - * 批量添加账号 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 批量添加账号 - * @param {string} region Region ID - * @param {BatchAddAccountsRequestInfo} batchAddAccountsRequestBody Batch add Accounts - * @param {string} [xSecurityToken] 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - * @param {string} [enterpriseProjectId] 企业租户ID,查询所有企业项目时填写:all_granted_eps - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public batchAddAccounts(batchAddAccountsRequest?: BatchAddAccountsRequest): Promise { - const options = ParamCreater().batchAddAccounts(batchAddAccountsRequest); - - // @ts-ignore - options['responseHeaders'] = ['X-request-id']; - - return this.hcClient.sendRequest(options); - } - /** * 批量创建标签 * @@ -672,28 +637,6 @@ export class HssClient { return this.hcClient.sendRequest(options); } - /** - * 删除账号 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 删除账号 - * @param {string} region Region ID - * @param {DeleteAccountRequestInfo} deleteAccountRequestBody Delete Account - * @param {string} [xSecurityToken] 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - * @param {string} [enterpriseProjectId] 企业租户ID,查询所有企业项目时填写:all_granted_eps - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public deleteAccount(deleteAccountRequest?: DeleteAccountRequest): Promise { - const options = ParamCreater().deleteAccount(deleteAccountRequest); - - // @ts-ignore - options['responseHeaders'] = ['']; - - return this.hcClient.sendRequest(options); - } - /** * 删除服务器组 * @@ -771,29 +714,6 @@ export class HssClient { return this.hcClient.sendRequest(options); } - /** - * 多账号列表 - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 多账号列表 - * @param {string} region Region ID - * @param {string} [xSecurityToken] 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - * @param {number} [limit] 每页显示数量 - * @param {number} [offset] 偏移量:指定返回记录的开始位置 - * @param {string} [enterpriseProjectId] 企业租户ID,查询所有企业项目时填写:all_granted_eps - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public listAccounts(listAccountsRequest?: ListAccountsRequest): Promise { - const options = ParamCreater().listAccounts(listAccountsRequest); - - // @ts-ignore - options['responseHeaders'] = ['X-request-id']; - - return this.hcClient.sendRequest(options); - } - /** * 查询告警白名单列表 * @@ -1442,28 +1362,6 @@ export class HssClient { return this.hcClient.sendRequest(options); } - /** - * List organization tree - * - * Please refer to HUAWEI cloud API Explorer for details. - * - * @summary 多账号列表 - * @param {string} region Region ID - * @param {string} [xSecurityToken] 如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。 - * @param {boolean} [isRefresh] 是否强制从organization同步组织信息 - * @param {string} [enterpriseProjectId] 企业租户ID,查询所有企业项目时填写:all_granted_eps - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - public listOrganizationTree(listOrganizationTreeRequest?: ListOrganizationTreeRequest): Promise { - const options = ParamCreater().listOrganizationTree(listOrganizationTreeRequest); - - // @ts-ignore - options['responseHeaders'] = ['X-request-id']; - - return this.hcClient.sendRequest(options); - } - /** * 查询口令复杂度策略检测报告 * @@ -2663,66 +2561,6 @@ export const ParamCreater = function () { return options; }, - /** - * 批量添加账号 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - batchAddAccounts(batchAddAccountsRequest?: BatchAddAccountsRequest) { - const options = { - method: "POST", - url: "/v5/setting/account/accounts", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - let body: any; - - let region; - - let xSecurityToken; - - let enterpriseProjectId; - - if (batchAddAccountsRequest !== null && batchAddAccountsRequest !== undefined) { - if (batchAddAccountsRequest instanceof BatchAddAccountsRequest) { - region = batchAddAccountsRequest.region; - body = batchAddAccountsRequest.body - xSecurityToken = batchAddAccountsRequest.xSecurityToken; - enterpriseProjectId = batchAddAccountsRequest.enterpriseProjectId; - } else { - region = batchAddAccountsRequest['region']; - body = batchAddAccountsRequest['body']; - xSecurityToken = batchAddAccountsRequest['X-Security-Token']; - enterpriseProjectId = batchAddAccountsRequest['enterprise_project_id']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) { - localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId; - } - if (xSecurityToken !== undefined && xSecurityToken !== null) { - localVarHeaderParameter['X-Security-Token'] = String(xSecurityToken); - } - if (region !== undefined && region !== null) { - localVarHeaderParameter['region'] = String(region); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.queryParams = localVarQueryParameter; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 批量创建标签 * @@ -3337,66 +3175,6 @@ export const ParamCreater = function () { return options; }, - /** - * 删除账号 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - deleteAccount(deleteAccountRequest?: DeleteAccountRequest) { - const options = { - method: "DELETE", - url: "/v5/setting/account/accounts", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {}, - data: {} - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - let body: any; - - let region; - - let xSecurityToken; - - let enterpriseProjectId; - - if (deleteAccountRequest !== null && deleteAccountRequest !== undefined) { - if (deleteAccountRequest instanceof DeleteAccountRequest) { - region = deleteAccountRequest.region; - body = deleteAccountRequest.body - xSecurityToken = deleteAccountRequest.xSecurityToken; - enterpriseProjectId = deleteAccountRequest.enterpriseProjectId; - } else { - region = deleteAccountRequest['region']; - body = deleteAccountRequest['body']; - xSecurityToken = deleteAccountRequest['X-Security-Token']; - enterpriseProjectId = deleteAccountRequest['enterprise_project_id']; - } - } - - - if (body === null || body === undefined) { - throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); - } - if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) { - localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId; - } - if (xSecurityToken !== undefined && xSecurityToken !== null) { - localVarHeaderParameter['X-Security-Token'] = String(xSecurityToken); - } - if (region !== undefined && region !== null) { - localVarHeaderParameter['region'] = String(region); - } - localVarHeaderParameter['Content-Type'] = 'application/json'; - - options.data = body !== undefined ? body : {}; - options.queryParams = localVarQueryParameter; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 删除服务器组 * @@ -3659,71 +3437,6 @@ export const ParamCreater = function () { return options; }, - /** - * 多账号列表 - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - listAccounts(listAccountsRequest?: ListAccountsRequest) { - const options = { - method: "GET", - url: "/v5/setting/account/accounts", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - let region; - - let xSecurityToken; - - let limit; - - let offset; - - let enterpriseProjectId; - - if (listAccountsRequest !== null && listAccountsRequest !== undefined) { - if (listAccountsRequest instanceof ListAccountsRequest) { - region = listAccountsRequest.region; - xSecurityToken = listAccountsRequest.xSecurityToken; - limit = listAccountsRequest.limit; - offset = listAccountsRequest.offset; - enterpriseProjectId = listAccountsRequest.enterpriseProjectId; - } else { - region = listAccountsRequest['region']; - xSecurityToken = listAccountsRequest['X-Security-Token']; - limit = listAccountsRequest['limit']; - offset = listAccountsRequest['offset']; - enterpriseProjectId = listAccountsRequest['enterprise_project_id']; - } - } - - - if (limit !== null && limit !== undefined) { - localVarQueryParameter['limit'] = limit; - } - if (offset !== null && offset !== undefined) { - localVarQueryParameter['offset'] = offset; - } - if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) { - localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId; - } - if (xSecurityToken !== undefined && xSecurityToken !== null) { - localVarHeaderParameter['X-Security-Token'] = String(xSecurityToken); - } - if (region !== undefined && region !== null) { - localVarHeaderParameter['region'] = String(region); - } - - options.queryParams = localVarQueryParameter; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 查询告警白名单列表 * @@ -6107,64 +5820,6 @@ export const ParamCreater = function () { return options; }, - /** - * List organization tree - * - * Please refer to HUAWEI cloud API Explorer for details. - */ - listOrganizationTree(listOrganizationTreeRequest?: ListOrganizationTreeRequest) { - const options = { - method: "GET", - url: "/v5/setting/account/organization-tree", - contentType: "application/json", - queryParams: {}, - pathParams: {}, - headers: {} - }; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - let region; - - let xSecurityToken; - - let isRefresh; - - let enterpriseProjectId; - - if (listOrganizationTreeRequest !== null && listOrganizationTreeRequest !== undefined) { - if (listOrganizationTreeRequest instanceof ListOrganizationTreeRequest) { - region = listOrganizationTreeRequest.region; - xSecurityToken = listOrganizationTreeRequest.xSecurityToken; - isRefresh = listOrganizationTreeRequest.isRefresh; - enterpriseProjectId = listOrganizationTreeRequest.enterpriseProjectId; - } else { - region = listOrganizationTreeRequest['region']; - xSecurityToken = listOrganizationTreeRequest['X-Security-Token']; - isRefresh = listOrganizationTreeRequest['is_refresh']; - enterpriseProjectId = listOrganizationTreeRequest['enterprise_project_id']; - } - } - - - if (isRefresh !== null && isRefresh !== undefined) { - localVarQueryParameter['is_refresh'] = isRefresh; - } - if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) { - localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId; - } - if (xSecurityToken !== undefined && xSecurityToken !== null) { - localVarHeaderParameter['X-Security-Token'] = String(xSecurityToken); - } - if (region !== undefined && region !== null) { - localVarHeaderParameter['region'] = String(region); - } - - options.queryParams = localVarQueryParameter; - options.headers = localVarHeaderParameter; - return options; - }, - /** * 查询口令复杂度策略检测报告 * diff --git a/services/hss/v5/model/AccountResponseInfo.ts b/services/hss/v5/model/AccountResponseInfo.ts deleted file mode 100644 index fcc0b5b72..000000000 --- a/services/hss/v5/model/AccountResponseInfo.ts +++ /dev/null @@ -1,105 +0,0 @@ - - -export class AccountResponseInfo { - private 'account_name'?: string; - private 'account_id'?: string; - private 'organization_id'?: string; - private 'project_id'?: string; - private 'project_name'?: string; - private 'host_num'?: number; - private 'vulnerability_num'?: number; - private 'baseline_num'?: number; - private 'intrusion_num'?: number; - public constructor() { - } - public withAccountName(accountName: string): AccountResponseInfo { - this['account_name'] = accountName; - return this; - } - public set accountName(accountName: string | undefined) { - this['account_name'] = accountName; - } - public get accountName(): string | undefined { - return this['account_name']; - } - public withAccountId(accountId: string): AccountResponseInfo { - this['account_id'] = accountId; - return this; - } - public set accountId(accountId: string | undefined) { - this['account_id'] = accountId; - } - public get accountId(): string | undefined { - return this['account_id']; - } - public withOrganizationId(organizationId: string): AccountResponseInfo { - this['organization_id'] = organizationId; - return this; - } - public set organizationId(organizationId: string | undefined) { - this['organization_id'] = organizationId; - } - public get organizationId(): string | undefined { - return this['organization_id']; - } - public withProjectId(projectId: string): AccountResponseInfo { - this['project_id'] = projectId; - return this; - } - public set projectId(projectId: string | undefined) { - this['project_id'] = projectId; - } - public get projectId(): string | undefined { - return this['project_id']; - } - public withProjectName(projectName: string): AccountResponseInfo { - this['project_name'] = projectName; - return this; - } - public set projectName(projectName: string | undefined) { - this['project_name'] = projectName; - } - public get projectName(): string | undefined { - return this['project_name']; - } - public withHostNum(hostNum: number): AccountResponseInfo { - this['host_num'] = hostNum; - return this; - } - public set hostNum(hostNum: number | undefined) { - this['host_num'] = hostNum; - } - public get hostNum(): number | undefined { - return this['host_num']; - } - public withVulnerabilityNum(vulnerabilityNum: number): AccountResponseInfo { - this['vulnerability_num'] = vulnerabilityNum; - return this; - } - public set vulnerabilityNum(vulnerabilityNum: number | undefined) { - this['vulnerability_num'] = vulnerabilityNum; - } - public get vulnerabilityNum(): number | undefined { - return this['vulnerability_num']; - } - public withBaselineNum(baselineNum: number): AccountResponseInfo { - this['baseline_num'] = baselineNum; - return this; - } - public set baselineNum(baselineNum: number | undefined) { - this['baseline_num'] = baselineNum; - } - public get baselineNum(): number | undefined { - return this['baseline_num']; - } - public withIntrusionNum(intrusionNum: number): AccountResponseInfo { - this['intrusion_num'] = intrusionNum; - return this; - } - public set intrusionNum(intrusionNum: number | undefined) { - this['intrusion_num'] = intrusionNum; - } - public get intrusionNum(): number | undefined { - return this['intrusion_num']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/AddAccountsRequestInfo.ts b/services/hss/v5/model/AddAccountsRequestInfo.ts deleted file mode 100644 index f114b00f6..000000000 --- a/services/hss/v5/model/AddAccountsRequestInfo.ts +++ /dev/null @@ -1,42 +0,0 @@ - - -export class AddAccountsRequestInfo { - private 'organization_id'?: string; - private 'account_id'?: string; - private 'account_name'?: string; - public constructor(organizationId?: string, accountId?: string, accountName?: string) { - this['organization_id'] = organizationId; - this['account_id'] = accountId; - this['account_name'] = accountName; - } - public withOrganizationId(organizationId: string): AddAccountsRequestInfo { - this['organization_id'] = organizationId; - return this; - } - public set organizationId(organizationId: string | undefined) { - this['organization_id'] = organizationId; - } - public get organizationId(): string | undefined { - return this['organization_id']; - } - public withAccountId(accountId: string): AddAccountsRequestInfo { - this['account_id'] = accountId; - return this; - } - public set accountId(accountId: string | undefined) { - this['account_id'] = accountId; - } - public get accountId(): string | undefined { - return this['account_id']; - } - public withAccountName(accountName: string): AddAccountsRequestInfo { - this['account_name'] = accountName; - return this; - } - public set accountName(accountName: string | undefined) { - this['account_name'] = accountName; - } - public get accountName(): string | undefined { - return this['account_name']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/BatchAddAccountsRequest.ts b/services/hss/v5/model/BatchAddAccountsRequest.ts deleted file mode 100644 index 53170b45c..000000000 --- a/services/hss/v5/model/BatchAddAccountsRequest.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { BatchAddAccountsRequestInfo } from './BatchAddAccountsRequestInfo'; - - -export class BatchAddAccountsRequest { - private 'X-Security-Token'?: string; - public region?: string; - private 'enterprise_project_id'?: string; - public body?: BatchAddAccountsRequestInfo; - public constructor(region?: string) { - this['region'] = region; - } - public withXSecurityToken(xSecurityToken: string): BatchAddAccountsRequest { - this['X-Security-Token'] = xSecurityToken; - return this; - } - public set xSecurityToken(xSecurityToken: string | undefined) { - this['X-Security-Token'] = xSecurityToken; - } - public get xSecurityToken(): string | undefined { - return this['X-Security-Token']; - } - public withRegion(region: string): BatchAddAccountsRequest { - this['region'] = region; - return this; - } - public withEnterpriseProjectId(enterpriseProjectId: string): BatchAddAccountsRequest { - this['enterprise_project_id'] = enterpriseProjectId; - return this; - } - public set enterpriseProjectId(enterpriseProjectId: string | undefined) { - this['enterprise_project_id'] = enterpriseProjectId; - } - public get enterpriseProjectId(): string | undefined { - return this['enterprise_project_id']; - } - public withBody(body: BatchAddAccountsRequestInfo): BatchAddAccountsRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/BatchAddAccountsRequestInfo.ts b/services/hss/v5/model/BatchAddAccountsRequestInfo.ts deleted file mode 100644 index 60d0c7003..000000000 --- a/services/hss/v5/model/BatchAddAccountsRequestInfo.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AddAccountsRequestInfo } from './AddAccountsRequestInfo'; - - -export class BatchAddAccountsRequestInfo { - private 'data_list'?: Array; - public constructor() { - } - public withDataList(dataList: Array): BatchAddAccountsRequestInfo { - this['data_list'] = dataList; - return this; - } - public set dataList(dataList: Array | undefined) { - this['data_list'] = dataList; - } - public get dataList(): Array | undefined { - return this['data_list']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/BatchAddAccountsResponse.ts b/services/hss/v5/model/BatchAddAccountsResponse.ts deleted file mode 100644 index 74b60ee28..000000000 --- a/services/hss/v5/model/BatchAddAccountsResponse.ts +++ /dev/null @@ -1,30 +0,0 @@ - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class BatchAddAccountsResponse extends SdkResponse { - private 'is_all_legal_count'?: boolean; - private 'X-request-id'?: string; - public constructor() { - super(); - } - public withIsAllLegalCount(isAllLegalCount: boolean): BatchAddAccountsResponse { - this['is_all_legal_count'] = isAllLegalCount; - return this; - } - public set isAllLegalCount(isAllLegalCount: boolean | undefined) { - this['is_all_legal_count'] = isAllLegalCount; - } - public get isAllLegalCount(): boolean | undefined { - return this['is_all_legal_count']; - } - public withXRequestId(xRequestId: string): BatchAddAccountsResponse { - this['X-request-id'] = xRequestId; - return this; - } - public set xRequestId(xRequestId: string | undefined) { - this['X-request-id'] = xRequestId; - } - public get xRequestId(): string | undefined { - return this['X-request-id']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/DeleteAccountRequest.ts b/services/hss/v5/model/DeleteAccountRequest.ts deleted file mode 100644 index 282209947..000000000 --- a/services/hss/v5/model/DeleteAccountRequest.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { DeleteAccountRequestInfo } from './DeleteAccountRequestInfo'; - - -export class DeleteAccountRequest { - private 'X-Security-Token'?: string; - public region?: string; - private 'enterprise_project_id'?: string; - public body?: DeleteAccountRequestInfo; - public constructor(region?: string) { - this['region'] = region; - } - public withXSecurityToken(xSecurityToken: string): DeleteAccountRequest { - this['X-Security-Token'] = xSecurityToken; - return this; - } - public set xSecurityToken(xSecurityToken: string | undefined) { - this['X-Security-Token'] = xSecurityToken; - } - public get xSecurityToken(): string | undefined { - return this['X-Security-Token']; - } - public withRegion(region: string): DeleteAccountRequest { - this['region'] = region; - return this; - } - public withEnterpriseProjectId(enterpriseProjectId: string): DeleteAccountRequest { - this['enterprise_project_id'] = enterpriseProjectId; - return this; - } - public set enterpriseProjectId(enterpriseProjectId: string | undefined) { - this['enterprise_project_id'] = enterpriseProjectId; - } - public get enterpriseProjectId(): string | undefined { - return this['enterprise_project_id']; - } - public withBody(body: DeleteAccountRequestInfo): DeleteAccountRequest { - this['body'] = body; - return this; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/DeleteAccountRequestInfo.ts b/services/hss/v5/model/DeleteAccountRequestInfo.ts deleted file mode 100644 index 9d9921f1a..000000000 --- a/services/hss/v5/model/DeleteAccountRequestInfo.ts +++ /dev/null @@ -1,42 +0,0 @@ - - -export class DeleteAccountRequestInfo { - private 'organization_id'?: string; - private 'account_id'?: string; - private 'project_id'?: string; - public constructor(organizationId?: string, accountId?: string, projectId?: string) { - this['organization_id'] = organizationId; - this['account_id'] = accountId; - this['project_id'] = projectId; - } - public withOrganizationId(organizationId: string): DeleteAccountRequestInfo { - this['organization_id'] = organizationId; - return this; - } - public set organizationId(organizationId: string | undefined) { - this['organization_id'] = organizationId; - } - public get organizationId(): string | undefined { - return this['organization_id']; - } - public withAccountId(accountId: string): DeleteAccountRequestInfo { - this['account_id'] = accountId; - return this; - } - public set accountId(accountId: string | undefined) { - this['account_id'] = accountId; - } - public get accountId(): string | undefined { - return this['account_id']; - } - public withProjectId(projectId: string): DeleteAccountRequestInfo { - this['project_id'] = projectId; - return this; - } - public set projectId(projectId: string | undefined) { - this['project_id'] = projectId; - } - public get projectId(): string | undefined { - return this['project_id']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/DeleteAccountResponse.ts b/services/hss/v5/model/DeleteAccountResponse.ts deleted file mode 100644 index 7c29a8f99..000000000 --- a/services/hss/v5/model/DeleteAccountResponse.ts +++ /dev/null @@ -1,8 +0,0 @@ - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class DeleteAccountResponse extends SdkResponse { - public constructor() { - super(); - } -} \ No newline at end of file diff --git a/services/hss/v5/model/ListAccountsRequest.ts b/services/hss/v5/model/ListAccountsRequest.ts deleted file mode 100644 index 711c19196..000000000 --- a/services/hss/v5/model/ListAccountsRequest.ts +++ /dev/null @@ -1,44 +0,0 @@ - - -export class ListAccountsRequest { - private 'X-Security-Token'?: string; - public region?: string; - public limit?: number; - public offset?: number; - private 'enterprise_project_id'?: string; - public constructor(region?: string) { - this['region'] = region; - } - public withXSecurityToken(xSecurityToken: string): ListAccountsRequest { - this['X-Security-Token'] = xSecurityToken; - return this; - } - public set xSecurityToken(xSecurityToken: string | undefined) { - this['X-Security-Token'] = xSecurityToken; - } - public get xSecurityToken(): string | undefined { - return this['X-Security-Token']; - } - public withRegion(region: string): ListAccountsRequest { - this['region'] = region; - return this; - } - public withLimit(limit: number): ListAccountsRequest { - this['limit'] = limit; - return this; - } - public withOffset(offset: number): ListAccountsRequest { - this['offset'] = offset; - return this; - } - public withEnterpriseProjectId(enterpriseProjectId: string): ListAccountsRequest { - this['enterprise_project_id'] = enterpriseProjectId; - return this; - } - public set enterpriseProjectId(enterpriseProjectId: string | undefined) { - this['enterprise_project_id'] = enterpriseProjectId; - } - public get enterpriseProjectId(): string | undefined { - return this['enterprise_project_id']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/ListAccountsResponse.ts b/services/hss/v5/model/ListAccountsResponse.ts deleted file mode 100644 index 259352bda..000000000 --- a/services/hss/v5/model/ListAccountsResponse.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { AccountResponseInfo } from './AccountResponseInfo'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class ListAccountsResponse extends SdkResponse { - private 'total_num'?: number; - private 'data_list'?: Array; - private 'X-request-id'?: string; - public constructor() { - super(); - } - public withTotalNum(totalNum: number): ListAccountsResponse { - this['total_num'] = totalNum; - return this; - } - public set totalNum(totalNum: number | undefined) { - this['total_num'] = totalNum; - } - public get totalNum(): number | undefined { - return this['total_num']; - } - public withDataList(dataList: Array): ListAccountsResponse { - this['data_list'] = dataList; - return this; - } - public set dataList(dataList: Array | undefined) { - this['data_list'] = dataList; - } - public get dataList(): Array | undefined { - return this['data_list']; - } - public withXRequestId(xRequestId: string): ListAccountsResponse { - this['X-request-id'] = xRequestId; - return this; - } - public set xRequestId(xRequestId: string | undefined) { - this['X-request-id'] = xRequestId; - } - public get xRequestId(): string | undefined { - return this['X-request-id']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/ListOrganizationTreeRequest.ts b/services/hss/v5/model/ListOrganizationTreeRequest.ts deleted file mode 100644 index e1914d3d0..000000000 --- a/services/hss/v5/model/ListOrganizationTreeRequest.ts +++ /dev/null @@ -1,45 +0,0 @@ - - -export class ListOrganizationTreeRequest { - private 'X-Security-Token'?: string; - public region?: string; - private 'is_refresh'?: boolean; - private 'enterprise_project_id'?: string; - public constructor(region?: string) { - this['region'] = region; - } - public withXSecurityToken(xSecurityToken: string): ListOrganizationTreeRequest { - this['X-Security-Token'] = xSecurityToken; - return this; - } - public set xSecurityToken(xSecurityToken: string | undefined) { - this['X-Security-Token'] = xSecurityToken; - } - public get xSecurityToken(): string | undefined { - return this['X-Security-Token']; - } - public withRegion(region: string): ListOrganizationTreeRequest { - this['region'] = region; - return this; - } - public withIsRefresh(isRefresh: boolean): ListOrganizationTreeRequest { - this['is_refresh'] = isRefresh; - return this; - } - public set isRefresh(isRefresh: boolean | undefined) { - this['is_refresh'] = isRefresh; - } - public get isRefresh(): boolean | undefined { - return this['is_refresh']; - } - public withEnterpriseProjectId(enterpriseProjectId: string): ListOrganizationTreeRequest { - this['enterprise_project_id'] = enterpriseProjectId; - return this; - } - public set enterpriseProjectId(enterpriseProjectId: string | undefined) { - this['enterprise_project_id'] = enterpriseProjectId; - } - public get enterpriseProjectId(): string | undefined { - return this['enterprise_project_id']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/ListOrganizationTreeResponse.ts b/services/hss/v5/model/ListOrganizationTreeResponse.ts deleted file mode 100644 index c9b02f890..000000000 --- a/services/hss/v5/model/ListOrganizationTreeResponse.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { OrganizationNodeResponseInfo } from './OrganizationNodeResponseInfo'; - -import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; - -export class ListOrganizationTreeResponse extends SdkResponse { - private 'total_num'?: number; - private 'data_list'?: Array; - private 'X-request-id'?: string; - public constructor() { - super(); - } - public withTotalNum(totalNum: number): ListOrganizationTreeResponse { - this['total_num'] = totalNum; - return this; - } - public set totalNum(totalNum: number | undefined) { - this['total_num'] = totalNum; - } - public get totalNum(): number | undefined { - return this['total_num']; - } - public withDataList(dataList: Array): ListOrganizationTreeResponse { - this['data_list'] = dataList; - return this; - } - public set dataList(dataList: Array | undefined) { - this['data_list'] = dataList; - } - public get dataList(): Array | undefined { - return this['data_list']; - } - public withXRequestId(xRequestId: string): ListOrganizationTreeResponse { - this['X-request-id'] = xRequestId; - return this; - } - public set xRequestId(xRequestId: string | undefined) { - this['X-request-id'] = xRequestId; - } - public get xRequestId(): string | undefined { - return this['X-request-id']; - } -} \ No newline at end of file diff --git a/services/hss/v5/model/OrganizationNodeResponseInfo.ts b/services/hss/v5/model/OrganizationNodeResponseInfo.ts deleted file mode 100644 index 4c698b319..000000000 --- a/services/hss/v5/model/OrganizationNodeResponseInfo.ts +++ /dev/null @@ -1,48 +0,0 @@ - - -export class OrganizationNodeResponseInfo { - private 'parent_id'?: string; - public id?: string; - public urn?: string; - public name?: string; - private 'org_type'?: string; - public delegated?: boolean; - public constructor() { - } - public withParentId(parentId: string): OrganizationNodeResponseInfo { - this['parent_id'] = parentId; - return this; - } - public set parentId(parentId: string | undefined) { - this['parent_id'] = parentId; - } - public get parentId(): string | undefined { - return this['parent_id']; - } - public withId(id: string): OrganizationNodeResponseInfo { - this['id'] = id; - return this; - } - public withUrn(urn: string): OrganizationNodeResponseInfo { - this['urn'] = urn; - return this; - } - public withName(name: string): OrganizationNodeResponseInfo { - this['name'] = name; - return this; - } - public withOrgType(orgType: string): OrganizationNodeResponseInfo { - this['org_type'] = orgType; - return this; - } - public set orgType(orgType: string | undefined) { - this['org_type'] = orgType; - } - public get orgType(): string | undefined { - return this['org_type']; - } - public withDelegated(delegated: boolean): OrganizationNodeResponseInfo { - this['delegated'] = delegated; - return this; - } -} \ No newline at end of file diff --git a/services/hss/v5/public-api.ts b/services/hss/v5/public-api.ts index 267d9a7d0..fb07b9228 100644 --- a/services/hss/v5/public-api.ts +++ b/services/hss/v5/public-api.ts @@ -1,7 +1,5 @@ export * from './HssClient'; -export * from './model/AccountResponseInfo'; -export * from './model/AddAccountsRequestInfo'; export * from './model/AddHostsGroupRequest'; export * from './model/AddHostsGroupRequestInfo'; export * from './model/AddHostsGroupResponse'; @@ -30,9 +28,6 @@ export * from './model/BackupTriggerPropertiesRequestInfo'; export * from './model/BackupTriggerPropertiesRequestInfo1'; export * from './model/BackupTriggerRequestInfo'; export * from './model/BackupTriggerRequestInfo1'; -export * from './model/BatchAddAccountsRequest'; -export * from './model/BatchAddAccountsRequestInfo'; -export * from './model/BatchAddAccountsResponse'; export * from './model/BatchCreateTagsRequest'; export * from './model/BatchCreateTagsRequestInfo'; export * from './model/BatchCreateTagsResponse'; @@ -80,9 +75,6 @@ export * from './model/CreateVulnerabilityScanTaskRequest'; export * from './model/CreateVulnerabilityScanTaskResponse'; export * from './model/DefaultGroup'; export * from './model/Deletable'; -export * from './model/DeleteAccountRequest'; -export * from './model/DeleteAccountRequestInfo'; -export * from './model/DeleteAccountResponse'; export * from './model/DeleteHostsGroupRequest'; export * from './model/DeleteHostsGroupResponse'; export * from './model/DeleteResourceInstanceTagRequest'; @@ -144,8 +136,6 @@ export * from './model/IsolatedFileResponseInfo'; export * from './model/IsolationStatus'; export * from './model/JarPackageHostInfo'; export * from './model/JarPackageStatisticsResponseInfo'; -export * from './model/ListAccountsRequest'; -export * from './model/ListAccountsResponse'; export * from './model/ListAlarmWhiteListRequest'; export * from './model/ListAlarmWhiteListResponse'; export * from './model/ListAppChangeHistoriesRequest'; @@ -192,8 +182,6 @@ export * from './model/ListJarPackageHostInfoRequest'; export * from './model/ListJarPackageHostInfoResponse'; export * from './model/ListJarPackageStatisticsRequest'; export * from './model/ListJarPackageStatisticsResponse'; -export * from './model/ListOrganizationTreeRequest'; -export * from './model/ListOrganizationTreeResponse'; export * from './model/ListPasswordComplexityRequest'; export * from './model/ListPasswordComplexityResponse'; export * from './model/ListPolicyGroupRequest'; @@ -256,7 +244,6 @@ export * from './model/OperateEventRequestInfo'; export * from './model/OperateType'; export * from './model/OperationDefinitionInfo'; export * from './model/OperationDefinitionRequestInfo'; -export * from './model/OrganizationNodeResponseInfo'; export * from './model/OsType'; export * from './model/PolicyGroupId'; export * from './model/PolicyGroupName'; diff --git a/services/live/v1/LiveClient.ts b/services/live/v1/LiveClient.ts index 35f39c1de..bf7954459 100644 --- a/services/live/v1/LiveClient.ts +++ b/services/live/v1/LiveClient.ts @@ -11,6 +11,9 @@ import { CreateDomainMappingRequest } from './model/CreateDomainMappingRequest'; import { CreateDomainMappingResponse } from './model/CreateDomainMappingResponse'; import { CreateDomainRequest } from './model/CreateDomainRequest'; import { CreateDomainResponse } from './model/CreateDomainResponse'; +import { CreateHarvestTaskInfoReq } from './model/CreateHarvestTaskInfoReq'; +import { CreateHarvestTaskRequest } from './model/CreateHarvestTaskRequest'; +import { CreateHarvestTaskResponse } from './model/CreateHarvestTaskResponse'; import { CreateOttChannelInfoReq } from './model/CreateOttChannelInfoReq'; import { CreateOttChannelInfoReqRecordSettings } from './model/CreateOttChannelInfoReqRecordSettings'; import { CreateOttChannelInfoRequest } from './model/CreateOttChannelInfoRequest'; @@ -42,6 +45,8 @@ import { DeleteDomainMappingRequest } from './model/DeleteDomainMappingRequest'; import { DeleteDomainMappingResponse } from './model/DeleteDomainMappingResponse'; import { DeleteDomainRequest } from './model/DeleteDomainRequest'; import { DeleteDomainResponse } from './model/DeleteDomainResponse'; +import { DeleteHarvestTaskRequest } from './model/DeleteHarvestTaskRequest'; +import { DeleteHarvestTaskResponse } from './model/DeleteHarvestTaskResponse'; import { DeleteOttChannelInfoRequest } from './model/DeleteOttChannelInfoRequest'; import { DeleteOttChannelInfoResponse } from './model/DeleteOttChannelInfoResponse'; import { DeletePublishTemplateRequest } from './model/DeletePublishTemplateRequest'; @@ -68,6 +73,7 @@ import { FailoverConditions } from './model/FailoverConditions'; import { GeoBlockingConfigInfo } from './model/GeoBlockingConfigInfo'; import { GmCertificateInfo } from './model/GmCertificateInfo'; import { HLSRecordConfig } from './model/HLSRecordConfig'; +import { HarvestTaskCreateSucRsp } from './model/HarvestTaskCreateSucRsp'; import { HlsPackageItem } from './model/HlsPackageItem'; import { IPAuthInfo } from './model/IPAuthInfo'; import { InputStreamInfo } from './model/InputStreamInfo'; @@ -76,6 +82,8 @@ import { ListDelayConfigRequest } from './model/ListDelayConfigRequest'; import { ListDelayConfigResponse } from './model/ListDelayConfigResponse'; import { ListGeoBlockingConfigRequest } from './model/ListGeoBlockingConfigRequest'; import { ListGeoBlockingConfigResponse } from './model/ListGeoBlockingConfigResponse'; +import { ListHarvestTaskRequest } from './model/ListHarvestTaskRequest'; +import { ListHarvestTaskResponse } from './model/ListHarvestTaskResponse'; import { ListHlsConfigRequest } from './model/ListHlsConfigRequest'; import { ListHlsConfigResponse } from './model/ListHlsConfigResponse'; import { ListIpAuthListRequest } from './model/ListIpAuthListRequest'; @@ -105,6 +113,9 @@ import { LiveSnapshotConfig } from './model/LiveSnapshotConfig'; import { LogInfo } from './model/LogInfo'; import { MP4RecordConfig } from './model/MP4RecordConfig'; import { ModifyDelayConfig } from './model/ModifyDelayConfig'; +import { ModifyHarvestTaskRequest } from './model/ModifyHarvestTaskRequest'; +import { ModifyHarvestTaskRequestBody } from './model/ModifyHarvestTaskRequestBody'; +import { ModifyHarvestTaskResponse } from './model/ModifyHarvestTaskResponse'; import { ModifyHlsConfig } from './model/ModifyHlsConfig'; import { ModifyOttChannelEncoderSettings } from './model/ModifyOttChannelEncoderSettings'; import { ModifyOttChannelEncoderSettingsEncoderSettings } from './model/ModifyOttChannelEncoderSettingsEncoderSettings'; @@ -185,6 +196,9 @@ import { UpdateDomainRequest } from './model/UpdateDomainRequest'; import { UpdateDomainResponse } from './model/UpdateDomainResponse'; import { UpdateGeoBlockingConfigRequest } from './model/UpdateGeoBlockingConfigRequest'; import { UpdateGeoBlockingConfigResponse } from './model/UpdateGeoBlockingConfigResponse'; +import { UpdateHarvestJobStatusRequest } from './model/UpdateHarvestJobStatusRequest'; +import { UpdateHarvestJobStatusRequestBody } from './model/UpdateHarvestJobStatusRequestBody'; +import { UpdateHarvestJobStatusResponse } from './model/UpdateHarvestJobStatusResponse'; import { UpdateHlsConfigRequest } from './model/UpdateHlsConfigRequest'; import { UpdateHlsConfigResponse } from './model/UpdateHlsConfigResponse'; import { UpdateIpAuthListRequest } from './model/UpdateIpAuthListRequest'; @@ -207,6 +221,7 @@ import { UpdateTranscodingsTemplateRequest } from './model/UpdateTranscodingsTem import { UpdateTranscodingsTemplateResponse } from './model/UpdateTranscodingsTemplateResponse'; import { VideoFormatVar } from './model/VideoFormatVar'; import { VodInfoV2 } from './model/VodInfoV2'; +import { VodPackageInfo } from './model/VodPackageInfo'; export class LiveClient { public static newBuilder(): ClientBuilder { @@ -1375,6 +1390,119 @@ export class LiveClient { return this.hcClient.sendRequest(options); } + /** + * 创建Live2VOD任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 创建Live2VOD任务 + * @param {CreateHarvestTaskInfoReq} createHarvestTaskRequestBody CreateHarvestTaskRequestBody + * @param {string} [accessControlAllowInternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 + * @param {string} [accessControlAllowExternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-External访问服务。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createHarvestTask(createHarvestTaskRequest?: CreateHarvestTaskRequest): Promise { + const options = ParamCreater().createHarvestTask(createHarvestTaskRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 删除Live2VOD任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 删除Live2VOD任务 + * @param {string} jobId 任务ID + * @param {string} [accessControlAllowInternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 + * @param {string} [accessControlAllowExternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-External访问服务。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteHarvestTask(deleteHarvestTaskRequest?: DeleteHarvestTaskRequest): Promise { + const options = ParamCreater().deleteHarvestTask(deleteHarvestTaskRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 查询Live2VOD任务,支持批量查询。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 查询Live2VOD任务 + * @param {string} [accessControlAllowInternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 + * @param {string} [accessControlAllowExternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-External访问服务。 + * @param {string} [domain] 推流域名 + * @param {string} [appName] 组名或应用名 + * @param {string} [id] 频道ID + * @param {string} [jobId] 任务ID + * @param {number} [startTime] 开始时间,Unix时间戳:单位是秒 + * @param {number} [endTime] 结束,Unix时间戳:单位是秒 + * @param {string} [eventName] 事件名称 + * @param {number} [limit] 每页记录数,取值范围[1,100],默认值10 + * @param {number} [offset] 偏移量。表示从此偏移量开始查询,offset大于等于0 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listHarvestTask(listHarvestTaskRequest?: ListHarvestTaskRequest): Promise { + const options = ParamCreater().listHarvestTask(listHarvestTaskRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 修改Live2VOD任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 修改Live2VOD任务 + * @param {ModifyHarvestTaskRequestBody} modifyHarvestTaskRequestBody ModifyHarvestTaskRequestBody + * @param {string} [accessControlAllowInternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 + * @param {string} [accessControlAllowExternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-External访问服务。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public modifyHarvestTask(modifyHarvestTaskRequest?: ModifyHarvestTaskRequest): Promise { + const options = ParamCreater().modifyHarvestTask(modifyHarvestTaskRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + + /** + * 修改Live2VOD任务状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + * + * @summary 修改Live2VOD任务状态 + * @param {UpdateHarvestJobStatusRequestBody} updateHarvestJobStatusRequestBody UpdateHarvestJobStatusRequestBody + * @param {string} [accessControlAllowInternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-Internal访问服务。 + * @param {string} [accessControlAllowExternal] 服务鉴权Token,服务开启鉴权,必须携带Access-Control-Allow-External访问服务。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateHarvestJobStatus(updateHarvestJobStatusRequest?: UpdateHarvestJobStatusRequest): Promise { + const options = ParamCreater().updateHarvestJobStatus(updateHarvestJobStatusRequest); + + // @ts-ignore + options['responseHeaders'] = ['']; + + return this.hcClient.sendRequest(options); + } + /** * OBS桶授权及取消授权 * @@ -4191,6 +4319,323 @@ export const ParamCreater = function () { return options; }, + /** + * 创建Live2VOD任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + createHarvestTask(createHarvestTaskRequest?: CreateHarvestTaskRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/ott/harvest/task", + contentType: "application/json; charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let accessControlAllowInternal; + + let accessControlAllowExternal; + + if (createHarvestTaskRequest !== null && createHarvestTaskRequest !== undefined) { + if (createHarvestTaskRequest instanceof CreateHarvestTaskRequest) { + body = createHarvestTaskRequest.body + accessControlAllowInternal = createHarvestTaskRequest.accessControlAllowInternal; + accessControlAllowExternal = createHarvestTaskRequest.accessControlAllowExternal; + } else { + body = createHarvestTaskRequest['body']; + accessControlAllowInternal = createHarvestTaskRequest['Access-Control-Allow-Internal']; + accessControlAllowExternal = createHarvestTaskRequest['Access-Control-Allow-External']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (accessControlAllowInternal !== undefined && accessControlAllowInternal !== null) { + localVarHeaderParameter['Access-Control-Allow-Internal'] = String(accessControlAllowInternal); + } + if (accessControlAllowExternal !== undefined && accessControlAllowExternal !== null) { + localVarHeaderParameter['Access-Control-Allow-External'] = String(accessControlAllowExternal); + } + localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除Live2VOD任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + deleteHarvestTask(deleteHarvestTaskRequest?: DeleteHarvestTaskRequest) { + const options = { + method: "DELETE", + url: "/v1/{project_id}/ott/harvest/task", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let jobId; + + let accessControlAllowInternal; + + let accessControlAllowExternal; + + if (deleteHarvestTaskRequest !== null && deleteHarvestTaskRequest !== undefined) { + if (deleteHarvestTaskRequest instanceof DeleteHarvestTaskRequest) { + jobId = deleteHarvestTaskRequest.jobId; + accessControlAllowInternal = deleteHarvestTaskRequest.accessControlAllowInternal; + accessControlAllowExternal = deleteHarvestTaskRequest.accessControlAllowExternal; + } else { + jobId = deleteHarvestTaskRequest['job_id']; + accessControlAllowInternal = deleteHarvestTaskRequest['Access-Control-Allow-Internal']; + accessControlAllowExternal = deleteHarvestTaskRequest['Access-Control-Allow-External']; + } + } + + + if (jobId === null || jobId === undefined) { + throw new RequiredError('jobId','Required parameter jobId was null or undefined when calling deleteHarvestTask.'); + } + if (jobId !== null && jobId !== undefined) { + localVarQueryParameter['job_id'] = jobId; + } + if (accessControlAllowInternal !== undefined && accessControlAllowInternal !== null) { + localVarHeaderParameter['Access-Control-Allow-Internal'] = String(accessControlAllowInternal); + } + if (accessControlAllowExternal !== undefined && accessControlAllowExternal !== null) { + localVarHeaderParameter['Access-Control-Allow-External'] = String(accessControlAllowExternal); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询Live2VOD任务,支持批量查询。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + listHarvestTask(listHarvestTaskRequest?: ListHarvestTaskRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/ott/harvest/task", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + let accessControlAllowInternal; + + let accessControlAllowExternal; + + let domain; + + let appName; + + let id; + + let jobId; + + let startTime; + + let endTime; + + let eventName; + + let limit; + + let offset; + + if (listHarvestTaskRequest !== null && listHarvestTaskRequest !== undefined) { + if (listHarvestTaskRequest instanceof ListHarvestTaskRequest) { + accessControlAllowInternal = listHarvestTaskRequest.accessControlAllowInternal; + accessControlAllowExternal = listHarvestTaskRequest.accessControlAllowExternal; + domain = listHarvestTaskRequest.domain; + appName = listHarvestTaskRequest.appName; + id = listHarvestTaskRequest.id; + jobId = listHarvestTaskRequest.jobId; + startTime = listHarvestTaskRequest.startTime; + endTime = listHarvestTaskRequest.endTime; + eventName = listHarvestTaskRequest.eventName; + limit = listHarvestTaskRequest.limit; + offset = listHarvestTaskRequest.offset; + } else { + accessControlAllowInternal = listHarvestTaskRequest['Access-Control-Allow-Internal']; + accessControlAllowExternal = listHarvestTaskRequest['Access-Control-Allow-External']; + domain = listHarvestTaskRequest['domain']; + appName = listHarvestTaskRequest['app_name']; + id = listHarvestTaskRequest['id']; + jobId = listHarvestTaskRequest['job_id']; + startTime = listHarvestTaskRequest['start_time']; + endTime = listHarvestTaskRequest['end_time']; + eventName = listHarvestTaskRequest['event_name']; + limit = listHarvestTaskRequest['limit']; + offset = listHarvestTaskRequest['offset']; + } + } + + + if (domain !== null && domain !== undefined) { + localVarQueryParameter['domain'] = domain; + } + if (appName !== null && appName !== undefined) { + localVarQueryParameter['app_name'] = appName; + } + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (jobId !== null && jobId !== undefined) { + localVarQueryParameter['job_id'] = jobId; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (eventName !== null && eventName !== undefined) { + localVarQueryParameter['event_name'] = eventName; + } + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (offset !== null && offset !== undefined) { + localVarQueryParameter['offset'] = offset; + } + if (accessControlAllowInternal !== undefined && accessControlAllowInternal !== null) { + localVarHeaderParameter['Access-Control-Allow-Internal'] = String(accessControlAllowInternal); + } + if (accessControlAllowExternal !== undefined && accessControlAllowExternal !== null) { + localVarHeaderParameter['Access-Control-Allow-External'] = String(accessControlAllowExternal); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 修改Live2VOD任务。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + modifyHarvestTask(modifyHarvestTaskRequest?: ModifyHarvestTaskRequest) { + const options = { + method: "PUT", + url: "/v1/{project_id}/ott/harvest/task", + contentType: "application/json; charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let accessControlAllowInternal; + + let accessControlAllowExternal; + + if (modifyHarvestTaskRequest !== null && modifyHarvestTaskRequest !== undefined) { + if (modifyHarvestTaskRequest instanceof ModifyHarvestTaskRequest) { + body = modifyHarvestTaskRequest.body + accessControlAllowInternal = modifyHarvestTaskRequest.accessControlAllowInternal; + accessControlAllowExternal = modifyHarvestTaskRequest.accessControlAllowExternal; + } else { + body = modifyHarvestTaskRequest['body']; + accessControlAllowInternal = modifyHarvestTaskRequest['Access-Control-Allow-Internal']; + accessControlAllowExternal = modifyHarvestTaskRequest['Access-Control-Allow-External']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (accessControlAllowInternal !== undefined && accessControlAllowInternal !== null) { + localVarHeaderParameter['Access-Control-Allow-Internal'] = String(accessControlAllowInternal); + } + if (accessControlAllowExternal !== undefined && accessControlAllowExternal !== null) { + localVarHeaderParameter['Access-Control-Allow-External'] = String(accessControlAllowExternal); + } + localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 修改Live2VOD任务状态。 + * + * Please refer to HUAWEI cloud API Explorer for details. + */ + updateHarvestJobStatus(updateHarvestJobStatusRequest?: UpdateHarvestJobStatusRequest) { + const options = { + method: "PUT", + url: "/v1/{project_id}/ott/harvest/task/status", + contentType: "application/json; charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let body: any; + + let accessControlAllowInternal; + + let accessControlAllowExternal; + + if (updateHarvestJobStatusRequest !== null && updateHarvestJobStatusRequest !== undefined) { + if (updateHarvestJobStatusRequest instanceof UpdateHarvestJobStatusRequest) { + body = updateHarvestJobStatusRequest.body + accessControlAllowInternal = updateHarvestJobStatusRequest.accessControlAllowInternal; + accessControlAllowExternal = updateHarvestJobStatusRequest.accessControlAllowExternal; + } else { + body = updateHarvestJobStatusRequest['body']; + accessControlAllowInternal = updateHarvestJobStatusRequest['Access-Control-Allow-Internal']; + accessControlAllowExternal = updateHarvestJobStatusRequest['Access-Control-Allow-External']; + } + } + + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (accessControlAllowInternal !== undefined && accessControlAllowInternal !== null) { + localVarHeaderParameter['Access-Control-Allow-Internal'] = String(accessControlAllowInternal); + } + if (accessControlAllowExternal !== undefined && accessControlAllowExternal !== null) { + localVarHeaderParameter['Access-Control-Allow-External'] = String(accessControlAllowExternal); + } + localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * OBS桶授权及取消授权 * diff --git a/services/live/v1/model/CreateHarvestTaskInfoReq.ts b/services/live/v1/model/CreateHarvestTaskInfoReq.ts new file mode 100644 index 000000000..8103f4c5f --- /dev/null +++ b/services/live/v1/model/CreateHarvestTaskInfoReq.ts @@ -0,0 +1,89 @@ +import { VodPackageInfo } from './VodPackageInfo'; + + +export class CreateHarvestTaskInfoReq { + public domain?: string; + private 'app_name'?: string; + public id?: string; + private 'start_time'?: number; + private 'end_time'?: number; + private 'event_name'?: string; + private 'task_desc'?: string; + private 'package_info'?: VodPackageInfo; + public constructor(domain?: string, appName?: string, id?: string, startTime?: number, endTime?: number, eventName?: string) { + this['domain'] = domain; + this['app_name'] = appName; + this['id'] = id; + this['start_time'] = startTime; + this['end_time'] = endTime; + this['event_name'] = eventName; + } + public withDomain(domain: string): CreateHarvestTaskInfoReq { + this['domain'] = domain; + return this; + } + public withAppName(appName: string): CreateHarvestTaskInfoReq { + this['app_name'] = appName; + return this; + } + public set appName(appName: string | undefined) { + this['app_name'] = appName; + } + public get appName(): string | undefined { + return this['app_name']; + } + public withId(id: string): CreateHarvestTaskInfoReq { + this['id'] = id; + return this; + } + public withStartTime(startTime: number): CreateHarvestTaskInfoReq { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: number | undefined) { + this['start_time'] = startTime; + } + public get startTime(): number | undefined { + return this['start_time']; + } + public withEndTime(endTime: number): CreateHarvestTaskInfoReq { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: number | undefined) { + this['end_time'] = endTime; + } + public get endTime(): number | undefined { + return this['end_time']; + } + public withEventName(eventName: string): CreateHarvestTaskInfoReq { + this['event_name'] = eventName; + return this; + } + public set eventName(eventName: string | undefined) { + this['event_name'] = eventName; + } + public get eventName(): string | undefined { + return this['event_name']; + } + public withTaskDesc(taskDesc: string): CreateHarvestTaskInfoReq { + this['task_desc'] = taskDesc; + return this; + } + public set taskDesc(taskDesc: string | undefined) { + this['task_desc'] = taskDesc; + } + public get taskDesc(): string | undefined { + return this['task_desc']; + } + public withPackageInfo(packageInfo: VodPackageInfo): CreateHarvestTaskInfoReq { + this['package_info'] = packageInfo; + return this; + } + public set packageInfo(packageInfo: VodPackageInfo | undefined) { + this['package_info'] = packageInfo; + } + public get packageInfo(): VodPackageInfo | undefined { + return this['package_info']; + } +} \ No newline at end of file diff --git a/services/live/v1/model/CreateHarvestTaskRequest.ts b/services/live/v1/model/CreateHarvestTaskRequest.ts new file mode 100644 index 000000000..d8973425b --- /dev/null +++ b/services/live/v1/model/CreateHarvestTaskRequest.ts @@ -0,0 +1,34 @@ +import { CreateHarvestTaskInfoReq } from './CreateHarvestTaskInfoReq'; + + +export class CreateHarvestTaskRequest { + private 'Access-Control-Allow-Internal'?: string; + private 'Access-Control-Allow-External'?: string; + public body?: CreateHarvestTaskInfoReq; + public constructor() { + } + public withAccessControlAllowInternal(accessControlAllowInternal: string): CreateHarvestTaskRequest { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + return this; + } + public set accessControlAllowInternal(accessControlAllowInternal: string | undefined) { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + } + public get accessControlAllowInternal(): string | undefined { + return this['Access-Control-Allow-Internal']; + } + public withAccessControlAllowExternal(accessControlAllowExternal: string): CreateHarvestTaskRequest { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + return this; + } + public set accessControlAllowExternal(accessControlAllowExternal: string | undefined) { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + } + public get accessControlAllowExternal(): string | undefined { + return this['Access-Control-Allow-External']; + } + public withBody(body: CreateHarvestTaskInfoReq): CreateHarvestTaskRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/live/v1/model/CreateHarvestTaskResponse.ts b/services/live/v1/model/CreateHarvestTaskResponse.ts new file mode 100644 index 000000000..202296951 --- /dev/null +++ b/services/live/v1/model/CreateHarvestTaskResponse.ts @@ -0,0 +1,134 @@ +import { VodPackageInfo } from './VodPackageInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateHarvestTaskResponse extends SdkResponse { + private 'job_id'?: string; + public domain?: string; + private 'app_name'?: string; + public id?: string; + private 'start_time'?: number; + private 'end_time'?: number; + private 'create_time'?: number; + private 'event_name'?: string; + private 'task_desc'?: string; + public status?: CreateHarvestTaskResponseStatusEnum | string; + private 'max_retry_cnt'?: number; + private 'package_info'?: VodPackageInfo; + public constructor() { + super(); + } + public withJobId(jobId: string): CreateHarvestTaskResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withDomain(domain: string): CreateHarvestTaskResponse { + this['domain'] = domain; + return this; + } + public withAppName(appName: string): CreateHarvestTaskResponse { + this['app_name'] = appName; + return this; + } + public set appName(appName: string | undefined) { + this['app_name'] = appName; + } + public get appName(): string | undefined { + return this['app_name']; + } + public withId(id: string): CreateHarvestTaskResponse { + this['id'] = id; + return this; + } + public withStartTime(startTime: number): CreateHarvestTaskResponse { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: number | undefined) { + this['start_time'] = startTime; + } + public get startTime(): number | undefined { + return this['start_time']; + } + public withEndTime(endTime: number): CreateHarvestTaskResponse { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: number | undefined) { + this['end_time'] = endTime; + } + public get endTime(): number | undefined { + return this['end_time']; + } + public withCreateTime(createTime: number): CreateHarvestTaskResponse { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: number | undefined) { + this['create_time'] = createTime; + } + public get createTime(): number | undefined { + return this['create_time']; + } + public withEventName(eventName: string): CreateHarvestTaskResponse { + this['event_name'] = eventName; + return this; + } + public set eventName(eventName: string | undefined) { + this['event_name'] = eventName; + } + public get eventName(): string | undefined { + return this['event_name']; + } + public withTaskDesc(taskDesc: string): CreateHarvestTaskResponse { + this['task_desc'] = taskDesc; + return this; + } + public set taskDesc(taskDesc: string | undefined) { + this['task_desc'] = taskDesc; + } + public get taskDesc(): string | undefined { + return this['task_desc']; + } + public withStatus(status: CreateHarvestTaskResponseStatusEnum | string): CreateHarvestTaskResponse { + this['status'] = status; + return this; + } + public withMaxRetryCnt(maxRetryCnt: number): CreateHarvestTaskResponse { + this['max_retry_cnt'] = maxRetryCnt; + return this; + } + public set maxRetryCnt(maxRetryCnt: number | undefined) { + this['max_retry_cnt'] = maxRetryCnt; + } + public get maxRetryCnt(): number | undefined { + return this['max_retry_cnt']; + } + public withPackageInfo(packageInfo: VodPackageInfo): CreateHarvestTaskResponse { + this['package_info'] = packageInfo; + return this; + } + public set packageInfo(packageInfo: VodPackageInfo | undefined) { + this['package_info'] = packageInfo; + } + public get packageInfo(): VodPackageInfo | undefined { + return this['package_info']; + } +} + +/** + * @export + * @enum {string} + */ +export enum CreateHarvestTaskResponseStatusEnum { + UNSTART = 'UNSTART', + IN_PROGRESS = 'IN_PROGRESS', + SUCCEEDED = 'SUCCEEDED', + FAILED = 'FAILED' +} diff --git a/services/live/v1/model/DeleteHarvestTaskRequest.ts b/services/live/v1/model/DeleteHarvestTaskRequest.ts new file mode 100644 index 000000000..fc532771e --- /dev/null +++ b/services/live/v1/model/DeleteHarvestTaskRequest.ts @@ -0,0 +1,40 @@ + + +export class DeleteHarvestTaskRequest { + private 'Access-Control-Allow-Internal'?: string; + private 'Access-Control-Allow-External'?: string; + private 'job_id'?: string; + public constructor(jobId?: string) { + this['job_id'] = jobId; + } + public withAccessControlAllowInternal(accessControlAllowInternal: string): DeleteHarvestTaskRequest { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + return this; + } + public set accessControlAllowInternal(accessControlAllowInternal: string | undefined) { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + } + public get accessControlAllowInternal(): string | undefined { + return this['Access-Control-Allow-Internal']; + } + public withAccessControlAllowExternal(accessControlAllowExternal: string): DeleteHarvestTaskRequest { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + return this; + } + public set accessControlAllowExternal(accessControlAllowExternal: string | undefined) { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + } + public get accessControlAllowExternal(): string | undefined { + return this['Access-Control-Allow-External']; + } + public withJobId(jobId: string): DeleteHarvestTaskRequest { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } +} \ No newline at end of file diff --git a/services/live/v1/model/DeleteHarvestTaskResponse.ts b/services/live/v1/model/DeleteHarvestTaskResponse.ts new file mode 100644 index 000000000..817a301e7 --- /dev/null +++ b/services/live/v1/model/DeleteHarvestTaskResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteHarvestTaskResponse extends SdkResponse { + private 'job_id'?: string; + public constructor() { + super(); + } + public withJobId(jobId: string): DeleteHarvestTaskResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } +} \ No newline at end of file diff --git a/services/live/v1/model/HarvestTaskCreateSucRsp.ts b/services/live/v1/model/HarvestTaskCreateSucRsp.ts new file mode 100644 index 000000000..ef7a35e93 --- /dev/null +++ b/services/live/v1/model/HarvestTaskCreateSucRsp.ts @@ -0,0 +1,142 @@ +import { VodPackageInfo } from './VodPackageInfo'; + + +export class HarvestTaskCreateSucRsp { + private 'job_id'?: string; + public domain?: string; + private 'app_name'?: string; + public id?: string; + private 'start_time'?: number; + private 'end_time'?: number; + private 'create_time'?: number; + private 'event_name'?: string; + private 'task_desc'?: string; + public status?: HarvestTaskCreateSucRspStatusEnum | string; + private 'max_retry_cnt'?: number; + private 'package_info'?: VodPackageInfo; + public constructor(jobId?: string, domain?: string, appName?: string, id?: string, startTime?: number, endTime?: number, eventName?: string, taskDesc?: string, status?: string, maxRetryCnt?: number) { + this['job_id'] = jobId; + this['domain'] = domain; + this['app_name'] = appName; + this['id'] = id; + this['start_time'] = startTime; + this['end_time'] = endTime; + this['event_name'] = eventName; + this['task_desc'] = taskDesc; + this['status'] = status; + this['max_retry_cnt'] = maxRetryCnt; + } + public withJobId(jobId: string): HarvestTaskCreateSucRsp { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withDomain(domain: string): HarvestTaskCreateSucRsp { + this['domain'] = domain; + return this; + } + public withAppName(appName: string): HarvestTaskCreateSucRsp { + this['app_name'] = appName; + return this; + } + public set appName(appName: string | undefined) { + this['app_name'] = appName; + } + public get appName(): string | undefined { + return this['app_name']; + } + public withId(id: string): HarvestTaskCreateSucRsp { + this['id'] = id; + return this; + } + public withStartTime(startTime: number): HarvestTaskCreateSucRsp { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: number | undefined) { + this['start_time'] = startTime; + } + public get startTime(): number | undefined { + return this['start_time']; + } + public withEndTime(endTime: number): HarvestTaskCreateSucRsp { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: number | undefined) { + this['end_time'] = endTime; + } + public get endTime(): number | undefined { + return this['end_time']; + } + public withCreateTime(createTime: number): HarvestTaskCreateSucRsp { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: number | undefined) { + this['create_time'] = createTime; + } + public get createTime(): number | undefined { + return this['create_time']; + } + public withEventName(eventName: string): HarvestTaskCreateSucRsp { + this['event_name'] = eventName; + return this; + } + public set eventName(eventName: string | undefined) { + this['event_name'] = eventName; + } + public get eventName(): string | undefined { + return this['event_name']; + } + public withTaskDesc(taskDesc: string): HarvestTaskCreateSucRsp { + this['task_desc'] = taskDesc; + return this; + } + public set taskDesc(taskDesc: string | undefined) { + this['task_desc'] = taskDesc; + } + public get taskDesc(): string | undefined { + return this['task_desc']; + } + public withStatus(status: HarvestTaskCreateSucRspStatusEnum | string): HarvestTaskCreateSucRsp { + this['status'] = status; + return this; + } + public withMaxRetryCnt(maxRetryCnt: number): HarvestTaskCreateSucRsp { + this['max_retry_cnt'] = maxRetryCnt; + return this; + } + public set maxRetryCnt(maxRetryCnt: number | undefined) { + this['max_retry_cnt'] = maxRetryCnt; + } + public get maxRetryCnt(): number | undefined { + return this['max_retry_cnt']; + } + public withPackageInfo(packageInfo: VodPackageInfo): HarvestTaskCreateSucRsp { + this['package_info'] = packageInfo; + return this; + } + public set packageInfo(packageInfo: VodPackageInfo | undefined) { + this['package_info'] = packageInfo; + } + public get packageInfo(): VodPackageInfo | undefined { + return this['package_info']; + } +} + +/** + * @export + * @enum {string} + */ +export enum HarvestTaskCreateSucRspStatusEnum { + UNSTART = 'UNSTART', + IN_PROGRESS = 'IN_PROGRESS', + SUCCEEDED = 'SUCCEEDED', + FAILED = 'FAILED' +} diff --git a/services/live/v1/model/ListHarvestTaskRequest.ts b/services/live/v1/model/ListHarvestTaskRequest.ts new file mode 100644 index 000000000..c40dbb49a --- /dev/null +++ b/services/live/v1/model/ListHarvestTaskRequest.ts @@ -0,0 +1,103 @@ + + +export class ListHarvestTaskRequest { + private 'Access-Control-Allow-Internal'?: string; + private 'Access-Control-Allow-External'?: string; + public domain?: string; + private 'app_name'?: string; + public id?: string; + private 'job_id'?: string; + private 'start_time'?: number; + private 'end_time'?: number; + private 'event_name'?: string; + public limit?: number; + public offset?: number; + public constructor() { + } + public withAccessControlAllowInternal(accessControlAllowInternal: string): ListHarvestTaskRequest { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + return this; + } + public set accessControlAllowInternal(accessControlAllowInternal: string | undefined) { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + } + public get accessControlAllowInternal(): string | undefined { + return this['Access-Control-Allow-Internal']; + } + public withAccessControlAllowExternal(accessControlAllowExternal: string): ListHarvestTaskRequest { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + return this; + } + public set accessControlAllowExternal(accessControlAllowExternal: string | undefined) { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + } + public get accessControlAllowExternal(): string | undefined { + return this['Access-Control-Allow-External']; + } + public withDomain(domain: string): ListHarvestTaskRequest { + this['domain'] = domain; + return this; + } + public withAppName(appName: string): ListHarvestTaskRequest { + this['app_name'] = appName; + return this; + } + public set appName(appName: string | undefined) { + this['app_name'] = appName; + } + public get appName(): string | undefined { + return this['app_name']; + } + public withId(id: string): ListHarvestTaskRequest { + this['id'] = id; + return this; + } + public withJobId(jobId: string): ListHarvestTaskRequest { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withStartTime(startTime: number): ListHarvestTaskRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: number | undefined) { + this['start_time'] = startTime; + } + public get startTime(): number | undefined { + return this['start_time']; + } + public withEndTime(endTime: number): ListHarvestTaskRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: number | undefined) { + this['end_time'] = endTime; + } + public get endTime(): number | undefined { + return this['end_time']; + } + public withEventName(eventName: string): ListHarvestTaskRequest { + this['event_name'] = eventName; + return this; + } + public set eventName(eventName: string | undefined) { + this['event_name'] = eventName; + } + public get eventName(): string | undefined { + return this['event_name']; + } + public withLimit(limit: number): ListHarvestTaskRequest { + this['limit'] = limit; + return this; + } + public withOffset(offset: number): ListHarvestTaskRequest { + this['offset'] = offset; + return this; + } +} \ No newline at end of file diff --git a/services/live/v1/model/ListHarvestTaskResponse.ts b/services/live/v1/model/ListHarvestTaskResponse.ts new file mode 100644 index 000000000..57a8b2dda --- /dev/null +++ b/services/live/v1/model/ListHarvestTaskResponse.ts @@ -0,0 +1,25 @@ +import { HarvestTaskCreateSucRsp } from './HarvestTaskCreateSucRsp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListHarvestTaskResponse extends SdkResponse { + public total?: number; + private 'harvest_tasks'?: Array; + public constructor() { + super(); + } + public withTotal(total: number): ListHarvestTaskResponse { + this['total'] = total; + return this; + } + public withHarvestTasks(harvestTasks: Array): ListHarvestTaskResponse { + this['harvest_tasks'] = harvestTasks; + return this; + } + public set harvestTasks(harvestTasks: Array | undefined) { + this['harvest_tasks'] = harvestTasks; + } + public get harvestTasks(): Array | undefined { + return this['harvest_tasks']; + } +} \ No newline at end of file diff --git a/services/live/v1/model/ModifyHarvestTaskRequest.ts b/services/live/v1/model/ModifyHarvestTaskRequest.ts new file mode 100644 index 000000000..4ffd87f9b --- /dev/null +++ b/services/live/v1/model/ModifyHarvestTaskRequest.ts @@ -0,0 +1,34 @@ +import { ModifyHarvestTaskRequestBody } from './ModifyHarvestTaskRequestBody'; + + +export class ModifyHarvestTaskRequest { + private 'Access-Control-Allow-Internal'?: string; + private 'Access-Control-Allow-External'?: string; + public body?: ModifyHarvestTaskRequestBody; + public constructor() { + } + public withAccessControlAllowInternal(accessControlAllowInternal: string): ModifyHarvestTaskRequest { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + return this; + } + public set accessControlAllowInternal(accessControlAllowInternal: string | undefined) { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + } + public get accessControlAllowInternal(): string | undefined { + return this['Access-Control-Allow-Internal']; + } + public withAccessControlAllowExternal(accessControlAllowExternal: string): ModifyHarvestTaskRequest { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + return this; + } + public set accessControlAllowExternal(accessControlAllowExternal: string | undefined) { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + } + public get accessControlAllowExternal(): string | undefined { + return this['Access-Control-Allow-External']; + } + public withBody(body: ModifyHarvestTaskRequestBody): ModifyHarvestTaskRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/live/v1/model/ModifyHarvestTaskRequestBody.ts b/services/live/v1/model/ModifyHarvestTaskRequestBody.ts new file mode 100644 index 000000000..d9fece93e --- /dev/null +++ b/services/live/v1/model/ModifyHarvestTaskRequestBody.ts @@ -0,0 +1,95 @@ +import { VodPackageInfo } from './VodPackageInfo'; + + +export class ModifyHarvestTaskRequestBody { + public domain?: string; + private 'app_name'?: string; + public id?: string; + private 'start_time'?: number; + private 'end_time'?: number; + private 'event_name'?: string; + private 'job_id'?: string; + private 'task_desc'?: string; + private 'package_info'?: VodPackageInfo; + public constructor(jobId?: string) { + this['job_id'] = jobId; + } + public withDomain(domain: string): ModifyHarvestTaskRequestBody { + this['domain'] = domain; + return this; + } + public withAppName(appName: string): ModifyHarvestTaskRequestBody { + this['app_name'] = appName; + return this; + } + public set appName(appName: string | undefined) { + this['app_name'] = appName; + } + public get appName(): string | undefined { + return this['app_name']; + } + public withId(id: string): ModifyHarvestTaskRequestBody { + this['id'] = id; + return this; + } + public withStartTime(startTime: number): ModifyHarvestTaskRequestBody { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: number | undefined) { + this['start_time'] = startTime; + } + public get startTime(): number | undefined { + return this['start_time']; + } + public withEndTime(endTime: number): ModifyHarvestTaskRequestBody { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: number | undefined) { + this['end_time'] = endTime; + } + public get endTime(): number | undefined { + return this['end_time']; + } + public withEventName(eventName: string): ModifyHarvestTaskRequestBody { + this['event_name'] = eventName; + return this; + } + public set eventName(eventName: string | undefined) { + this['event_name'] = eventName; + } + public get eventName(): string | undefined { + return this['event_name']; + } + public withJobId(jobId: string): ModifyHarvestTaskRequestBody { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withTaskDesc(taskDesc: string): ModifyHarvestTaskRequestBody { + this['task_desc'] = taskDesc; + return this; + } + public set taskDesc(taskDesc: string | undefined) { + this['task_desc'] = taskDesc; + } + public get taskDesc(): string | undefined { + return this['task_desc']; + } + public withPackageInfo(packageInfo: VodPackageInfo): ModifyHarvestTaskRequestBody { + this['package_info'] = packageInfo; + return this; + } + public set packageInfo(packageInfo: VodPackageInfo | undefined) { + this['package_info'] = packageInfo; + } + public get packageInfo(): VodPackageInfo | undefined { + return this['package_info']; + } +} \ No newline at end of file diff --git a/services/live/v1/model/ModifyHarvestTaskResponse.ts b/services/live/v1/model/ModifyHarvestTaskResponse.ts new file mode 100644 index 000000000..6472a66c6 --- /dev/null +++ b/services/live/v1/model/ModifyHarvestTaskResponse.ts @@ -0,0 +1,134 @@ +import { VodPackageInfo } from './VodPackageInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ModifyHarvestTaskResponse extends SdkResponse { + private 'job_id'?: string; + public domain?: string; + private 'app_name'?: string; + public id?: string; + private 'start_time'?: number; + private 'end_time'?: number; + private 'create_time'?: number; + private 'event_name'?: string; + private 'task_desc'?: string; + public status?: ModifyHarvestTaskResponseStatusEnum | string; + private 'max_retry_cnt'?: number; + private 'package_info'?: VodPackageInfo; + public constructor() { + super(); + } + public withJobId(jobId: string): ModifyHarvestTaskResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withDomain(domain: string): ModifyHarvestTaskResponse { + this['domain'] = domain; + return this; + } + public withAppName(appName: string): ModifyHarvestTaskResponse { + this['app_name'] = appName; + return this; + } + public set appName(appName: string | undefined) { + this['app_name'] = appName; + } + public get appName(): string | undefined { + return this['app_name']; + } + public withId(id: string): ModifyHarvestTaskResponse { + this['id'] = id; + return this; + } + public withStartTime(startTime: number): ModifyHarvestTaskResponse { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: number | undefined) { + this['start_time'] = startTime; + } + public get startTime(): number | undefined { + return this['start_time']; + } + public withEndTime(endTime: number): ModifyHarvestTaskResponse { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: number | undefined) { + this['end_time'] = endTime; + } + public get endTime(): number | undefined { + return this['end_time']; + } + public withCreateTime(createTime: number): ModifyHarvestTaskResponse { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: number | undefined) { + this['create_time'] = createTime; + } + public get createTime(): number | undefined { + return this['create_time']; + } + public withEventName(eventName: string): ModifyHarvestTaskResponse { + this['event_name'] = eventName; + return this; + } + public set eventName(eventName: string | undefined) { + this['event_name'] = eventName; + } + public get eventName(): string | undefined { + return this['event_name']; + } + public withTaskDesc(taskDesc: string): ModifyHarvestTaskResponse { + this['task_desc'] = taskDesc; + return this; + } + public set taskDesc(taskDesc: string | undefined) { + this['task_desc'] = taskDesc; + } + public get taskDesc(): string | undefined { + return this['task_desc']; + } + public withStatus(status: ModifyHarvestTaskResponseStatusEnum | string): ModifyHarvestTaskResponse { + this['status'] = status; + return this; + } + public withMaxRetryCnt(maxRetryCnt: number): ModifyHarvestTaskResponse { + this['max_retry_cnt'] = maxRetryCnt; + return this; + } + public set maxRetryCnt(maxRetryCnt: number | undefined) { + this['max_retry_cnt'] = maxRetryCnt; + } + public get maxRetryCnt(): number | undefined { + return this['max_retry_cnt']; + } + public withPackageInfo(packageInfo: VodPackageInfo): ModifyHarvestTaskResponse { + this['package_info'] = packageInfo; + return this; + } + public set packageInfo(packageInfo: VodPackageInfo | undefined) { + this['package_info'] = packageInfo; + } + public get packageInfo(): VodPackageInfo | undefined { + return this['package_info']; + } +} + +/** + * @export + * @enum {string} + */ +export enum ModifyHarvestTaskResponseStatusEnum { + UNSTART = 'UNSTART', + IN_PROGRESS = 'IN_PROGRESS', + SUCCEEDED = 'SUCCEEDED', + FAILED = 'FAILED' +} diff --git a/services/live/v1/model/UpdateHarvestJobStatusRequest.ts b/services/live/v1/model/UpdateHarvestJobStatusRequest.ts new file mode 100644 index 000000000..e0c76d8cc --- /dev/null +++ b/services/live/v1/model/UpdateHarvestJobStatusRequest.ts @@ -0,0 +1,34 @@ +import { UpdateHarvestJobStatusRequestBody } from './UpdateHarvestJobStatusRequestBody'; + + +export class UpdateHarvestJobStatusRequest { + private 'Access-Control-Allow-Internal'?: string; + private 'Access-Control-Allow-External'?: string; + public body?: UpdateHarvestJobStatusRequestBody; + public constructor() { + } + public withAccessControlAllowInternal(accessControlAllowInternal: string): UpdateHarvestJobStatusRequest { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + return this; + } + public set accessControlAllowInternal(accessControlAllowInternal: string | undefined) { + this['Access-Control-Allow-Internal'] = accessControlAllowInternal; + } + public get accessControlAllowInternal(): string | undefined { + return this['Access-Control-Allow-Internal']; + } + public withAccessControlAllowExternal(accessControlAllowExternal: string): UpdateHarvestJobStatusRequest { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + return this; + } + public set accessControlAllowExternal(accessControlAllowExternal: string | undefined) { + this['Access-Control-Allow-External'] = accessControlAllowExternal; + } + public get accessControlAllowExternal(): string | undefined { + return this['Access-Control-Allow-External']; + } + public withBody(body: UpdateHarvestJobStatusRequestBody): UpdateHarvestJobStatusRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/live/v1/model/UpdateHarvestJobStatusRequestBody.ts b/services/live/v1/model/UpdateHarvestJobStatusRequestBody.ts new file mode 100644 index 000000000..ca52e66ec --- /dev/null +++ b/services/live/v1/model/UpdateHarvestJobStatusRequestBody.ts @@ -0,0 +1,32 @@ + + +export class UpdateHarvestJobStatusRequestBody { + private 'job_id'?: string; + public status?: UpdateHarvestJobStatusRequestBodyStatusEnum | string; + public constructor(jobId?: string, status?: string) { + this['job_id'] = jobId; + this['status'] = status; + } + public withJobId(jobId: string): UpdateHarvestJobStatusRequestBody { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withStatus(status: UpdateHarvestJobStatusRequestBodyStatusEnum | string): UpdateHarvestJobStatusRequestBody { + this['status'] = status; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum UpdateHarvestJobStatusRequestBodyStatusEnum { + UNSTART = 'UNSTART' +} diff --git a/services/live/v1/model/UpdateHarvestJobStatusResponse.ts b/services/live/v1/model/UpdateHarvestJobStatusResponse.ts new file mode 100644 index 000000000..964ffd84f --- /dev/null +++ b/services/live/v1/model/UpdateHarvestJobStatusResponse.ts @@ -0,0 +1,134 @@ +import { VodPackageInfo } from './VodPackageInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateHarvestJobStatusResponse extends SdkResponse { + private 'job_id'?: string; + public domain?: string; + private 'app_name'?: string; + public id?: string; + private 'start_time'?: number; + private 'end_time'?: number; + private 'create_time'?: number; + private 'event_name'?: string; + private 'task_desc'?: string; + public status?: UpdateHarvestJobStatusResponseStatusEnum | string; + private 'max_retry_cnt'?: number; + private 'package_info'?: VodPackageInfo; + public constructor() { + super(); + } + public withJobId(jobId: string): UpdateHarvestJobStatusResponse { + this['job_id'] = jobId; + return this; + } + public set jobId(jobId: string | undefined) { + this['job_id'] = jobId; + } + public get jobId(): string | undefined { + return this['job_id']; + } + public withDomain(domain: string): UpdateHarvestJobStatusResponse { + this['domain'] = domain; + return this; + } + public withAppName(appName: string): UpdateHarvestJobStatusResponse { + this['app_name'] = appName; + return this; + } + public set appName(appName: string | undefined) { + this['app_name'] = appName; + } + public get appName(): string | undefined { + return this['app_name']; + } + public withId(id: string): UpdateHarvestJobStatusResponse { + this['id'] = id; + return this; + } + public withStartTime(startTime: number): UpdateHarvestJobStatusResponse { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: number | undefined) { + this['start_time'] = startTime; + } + public get startTime(): number | undefined { + return this['start_time']; + } + public withEndTime(endTime: number): UpdateHarvestJobStatusResponse { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: number | undefined) { + this['end_time'] = endTime; + } + public get endTime(): number | undefined { + return this['end_time']; + } + public withCreateTime(createTime: number): UpdateHarvestJobStatusResponse { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: number | undefined) { + this['create_time'] = createTime; + } + public get createTime(): number | undefined { + return this['create_time']; + } + public withEventName(eventName: string): UpdateHarvestJobStatusResponse { + this['event_name'] = eventName; + return this; + } + public set eventName(eventName: string | undefined) { + this['event_name'] = eventName; + } + public get eventName(): string | undefined { + return this['event_name']; + } + public withTaskDesc(taskDesc: string): UpdateHarvestJobStatusResponse { + this['task_desc'] = taskDesc; + return this; + } + public set taskDesc(taskDesc: string | undefined) { + this['task_desc'] = taskDesc; + } + public get taskDesc(): string | undefined { + return this['task_desc']; + } + public withStatus(status: UpdateHarvestJobStatusResponseStatusEnum | string): UpdateHarvestJobStatusResponse { + this['status'] = status; + return this; + } + public withMaxRetryCnt(maxRetryCnt: number): UpdateHarvestJobStatusResponse { + this['max_retry_cnt'] = maxRetryCnt; + return this; + } + public set maxRetryCnt(maxRetryCnt: number | undefined) { + this['max_retry_cnt'] = maxRetryCnt; + } + public get maxRetryCnt(): number | undefined { + return this['max_retry_cnt']; + } + public withPackageInfo(packageInfo: VodPackageInfo): UpdateHarvestJobStatusResponse { + this['package_info'] = packageInfo; + return this; + } + public set packageInfo(packageInfo: VodPackageInfo | undefined) { + this['package_info'] = packageInfo; + } + public get packageInfo(): VodPackageInfo | undefined { + return this['package_info']; + } +} + +/** + * @export + * @enum {string} + */ +export enum UpdateHarvestJobStatusResponseStatusEnum { + UNSTART = 'UNSTART', + IN_PROGRESS = 'IN_PROGRESS', + SUCCEEDED = 'SUCCEEDED', + FAILED = 'FAILED' +} diff --git a/services/live/v1/model/VodPackageInfo.ts b/services/live/v1/model/VodPackageInfo.ts new file mode 100644 index 000000000..207ee7d3c --- /dev/null +++ b/services/live/v1/model/VodPackageInfo.ts @@ -0,0 +1,28 @@ + + +export class VodPackageInfo { + private 'packaging_group_id'?: string; + private 'resource_id'?: string; + public constructor() { + } + public withPackagingGroupId(packagingGroupId: string): VodPackageInfo { + this['packaging_group_id'] = packagingGroupId; + return this; + } + public set packagingGroupId(packagingGroupId: string | undefined) { + this['packaging_group_id'] = packagingGroupId; + } + public get packagingGroupId(): string | undefined { + return this['packaging_group_id']; + } + public withResourceId(resourceId: string): VodPackageInfo { + this['resource_id'] = resourceId; + return this; + } + public set resourceId(resourceId: string | undefined) { + this['resource_id'] = resourceId; + } + public get resourceId(): string | undefined { + return this['resource_id']; + } +} \ No newline at end of file diff --git a/services/live/v1/public-api.ts b/services/live/v1/public-api.ts index 237f62fc2..7e6d6d5a9 100644 --- a/services/live/v1/public-api.ts +++ b/services/live/v1/public-api.ts @@ -9,6 +9,9 @@ export * from './model/CreateDomainMappingRequest'; export * from './model/CreateDomainMappingResponse'; export * from './model/CreateDomainRequest'; export * from './model/CreateDomainResponse'; +export * from './model/CreateHarvestTaskInfoReq'; +export * from './model/CreateHarvestTaskRequest'; +export * from './model/CreateHarvestTaskResponse'; export * from './model/CreateOttChannelInfoReq'; export * from './model/CreateOttChannelInfoReqRecordSettings'; export * from './model/CreateOttChannelInfoRequest'; @@ -40,6 +43,8 @@ export * from './model/DeleteDomainMappingRequest'; export * from './model/DeleteDomainMappingResponse'; export * from './model/DeleteDomainRequest'; export * from './model/DeleteDomainResponse'; +export * from './model/DeleteHarvestTaskRequest'; +export * from './model/DeleteHarvestTaskResponse'; export * from './model/DeleteOttChannelInfoRequest'; export * from './model/DeleteOttChannelInfoResponse'; export * from './model/DeletePublishTemplateRequest'; @@ -66,6 +71,7 @@ export * from './model/FailoverConditions'; export * from './model/GeoBlockingConfigInfo'; export * from './model/GmCertificateInfo'; export * from './model/HLSRecordConfig'; +export * from './model/HarvestTaskCreateSucRsp'; export * from './model/HlsPackageItem'; export * from './model/IPAuthInfo'; export * from './model/InputStreamInfo'; @@ -74,6 +80,8 @@ export * from './model/ListDelayConfigRequest'; export * from './model/ListDelayConfigResponse'; export * from './model/ListGeoBlockingConfigRequest'; export * from './model/ListGeoBlockingConfigResponse'; +export * from './model/ListHarvestTaskRequest'; +export * from './model/ListHarvestTaskResponse'; export * from './model/ListHlsConfigRequest'; export * from './model/ListHlsConfigResponse'; export * from './model/ListIpAuthListRequest'; @@ -103,6 +111,9 @@ export * from './model/LiveSnapshotConfig'; export * from './model/LogInfo'; export * from './model/MP4RecordConfig'; export * from './model/ModifyDelayConfig'; +export * from './model/ModifyHarvestTaskRequest'; +export * from './model/ModifyHarvestTaskRequestBody'; +export * from './model/ModifyHarvestTaskResponse'; export * from './model/ModifyHlsConfig'; export * from './model/ModifyOttChannelEncoderSettings'; export * from './model/ModifyOttChannelEncoderSettingsEncoderSettings'; @@ -183,6 +194,9 @@ export * from './model/UpdateDomainRequest'; export * from './model/UpdateDomainResponse'; export * from './model/UpdateGeoBlockingConfigRequest'; export * from './model/UpdateGeoBlockingConfigResponse'; +export * from './model/UpdateHarvestJobStatusRequest'; +export * from './model/UpdateHarvestJobStatusRequestBody'; +export * from './model/UpdateHarvestJobStatusResponse'; export * from './model/UpdateHlsConfigRequest'; export * from './model/UpdateHlsConfigResponse'; export * from './model/UpdateIpAuthListRequest'; @@ -205,4 +219,5 @@ export * from './model/UpdateTranscodingsTemplateRequest'; export * from './model/UpdateTranscodingsTemplateResponse'; export * from './model/VideoFormatVar'; export * from './model/VodInfoV2'; +export * from './model/VodPackageInfo'; export * from './LiveRegion'; diff --git a/services/meeting/v1/MeetingClient.ts b/services/meeting/v1/MeetingClient.ts index a8227128b..1ccc2caea 100644 --- a/services/meeting/v1/MeetingClient.ts +++ b/services/meeting/v1/MeetingClient.ts @@ -268,6 +268,7 @@ import { RealTimeConfInfo } from './model/RealTimeConfInfo'; import { RealTimeParticipant } from './model/RealTimeParticipant'; import { RecordDownloadInfoBO } from './model/RecordDownloadInfoBO'; import { RecordDownloadUrlDO } from './model/RecordDownloadUrlDO'; +import { RecordInfoDO } from './model/RecordInfoDO'; import { RecordInfoReq } from './model/RecordInfoReq'; import { RecordRequest } from './model/RecordRequest'; import { RecordResponse } from './model/RecordResponse'; @@ -395,6 +396,8 @@ import { SearchUsersRequest } from './model/SearchUsersRequest'; import { SearchUsersResponse } from './model/SearchUsersResponse'; import { SearchVisionActiveCodeRequest } from './model/SearchVisionActiveCodeRequest'; import { SearchVisionActiveCodeResponse } from './model/SearchVisionActiveCodeResponse'; +import { SegmentDO } from './model/SegmentDO'; +import { SegmentFileDO } from './model/SegmentFileDO'; import { SendSlideVerifyCodeRequest } from './model/SendSlideVerifyCodeRequest'; import { SendSlideVerifyCodeResponse } from './model/SendSlideVerifyCodeResponse'; import { SendVeriCodeForChangePwdRequest } from './model/SendVeriCodeForChangePwdRequest'; diff --git a/services/meeting/v1/model/RecordInfoDO.ts b/services/meeting/v1/model/RecordInfoDO.ts new file mode 100644 index 000000000..0e38312b2 --- /dev/null +++ b/services/meeting/v1/model/RecordInfoDO.ts @@ -0,0 +1,37 @@ +import { SegmentDO } from './SegmentDO'; + + +export class RecordInfoDO { + public subject?: string; + public beginTime?: string; + public segmentOffset?: number; + public segmentLimit?: number; + public segmentCount?: number; + public segmentList?: Array; + public constructor() { + } + public withSubject(subject: string): RecordInfoDO { + this['subject'] = subject; + return this; + } + public withBeginTime(beginTime: string): RecordInfoDO { + this['beginTime'] = beginTime; + return this; + } + public withSegmentOffset(segmentOffset: number): RecordInfoDO { + this['segmentOffset'] = segmentOffset; + return this; + } + public withSegmentLimit(segmentLimit: number): RecordInfoDO { + this['segmentLimit'] = segmentLimit; + return this; + } + public withSegmentCount(segmentCount: number): RecordInfoDO { + this['segmentCount'] = segmentCount; + return this; + } + public withSegmentList(segmentList: Array): RecordInfoDO { + this['segmentList'] = segmentList; + return this; + } +} \ No newline at end of file diff --git a/services/meeting/v1/model/SegmentDO.ts b/services/meeting/v1/model/SegmentDO.ts new file mode 100644 index 000000000..8da5195cf --- /dev/null +++ b/services/meeting/v1/model/SegmentDO.ts @@ -0,0 +1,27 @@ +import { SegmentFileDO } from './SegmentFileDO'; + + +export class SegmentDO { + public manualOrder?: number; + public segmentOrder?: number; + public segmentSize?: string; + public fileList?: Array; + public constructor() { + } + public withManualOrder(manualOrder: number): SegmentDO { + this['manualOrder'] = manualOrder; + return this; + } + public withSegmentOrder(segmentOrder: number): SegmentDO { + this['segmentOrder'] = segmentOrder; + return this; + } + public withSegmentSize(segmentSize: string): SegmentDO { + this['segmentSize'] = segmentSize; + return this; + } + public withFileList(fileList: Array): SegmentDO { + this['fileList'] = fileList; + return this; + } +} \ No newline at end of file diff --git a/services/meeting/v1/model/SegmentFileDO.ts b/services/meeting/v1/model/SegmentFileDO.ts new file mode 100644 index 000000000..de48dad2c --- /dev/null +++ b/services/meeting/v1/model/SegmentFileDO.ts @@ -0,0 +1,46 @@ + + +export class SegmentFileDO { + public recordType?: string; + public beginTime?: number; + public endTime?: number; + public duration?: number; + public fileSize?: number; + public sha256?: string; + public playUrl?: string; + public downloadUrl?: string; + public constructor() { + } + public withRecordType(recordType: string): SegmentFileDO { + this['recordType'] = recordType; + return this; + } + public withBeginTime(beginTime: number): SegmentFileDO { + this['beginTime'] = beginTime; + return this; + } + public withEndTime(endTime: number): SegmentFileDO { + this['endTime'] = endTime; + return this; + } + public withDuration(duration: number): SegmentFileDO { + this['duration'] = duration; + return this; + } + public withFileSize(fileSize: number): SegmentFileDO { + this['fileSize'] = fileSize; + return this; + } + public withSha256(sha256: string): SegmentFileDO { + this['sha256'] = sha256; + return this; + } + public withPlayUrl(playUrl: string): SegmentFileDO { + this['playUrl'] = playUrl; + return this; + } + public withDownloadUrl(downloadUrl: string): SegmentFileDO { + this['downloadUrl'] = downloadUrl; + return this; + } +} \ No newline at end of file diff --git a/services/meeting/v1/model/ShowRecordInfoResponse.ts b/services/meeting/v1/model/ShowRecordInfoResponse.ts index 98858e6da..9d4c8e00f 100644 --- a/services/meeting/v1/model/ShowRecordInfoResponse.ts +++ b/services/meeting/v1/model/ShowRecordInfoResponse.ts @@ -1,10 +1,11 @@ +import { RecordInfoDO } from './RecordInfoDO'; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; export class ShowRecordInfoResponse extends SdkResponse { public code?: string; public message?: string; - public data?: object; + public data?: RecordInfoDO; public constructor() { super(); } @@ -16,7 +17,7 @@ export class ShowRecordInfoResponse extends SdkResponse { this['message'] = message; return this; } - public withData(data: object): ShowRecordInfoResponse { + public withData(data: RecordInfoDO): ShowRecordInfoResponse { this['data'] = data; return this; } diff --git a/services/meeting/v1/public-api.ts b/services/meeting/v1/public-api.ts index 5ffee7f5c..560ec4b76 100644 --- a/services/meeting/v1/public-api.ts +++ b/services/meeting/v1/public-api.ts @@ -266,6 +266,7 @@ export * from './model/RealTimeConfInfo'; export * from './model/RealTimeParticipant'; export * from './model/RecordDownloadInfoBO'; export * from './model/RecordDownloadUrlDO'; +export * from './model/RecordInfoDO'; export * from './model/RecordInfoReq'; export * from './model/RecordRequest'; export * from './model/RecordResponse'; @@ -393,6 +394,8 @@ export * from './model/SearchUsersRequest'; export * from './model/SearchUsersResponse'; export * from './model/SearchVisionActiveCodeRequest'; export * from './model/SearchVisionActiveCodeResponse'; +export * from './model/SegmentDO'; +export * from './model/SegmentFileDO'; export * from './model/SendSlideVerifyCodeRequest'; export * from './model/SendSlideVerifyCodeResponse'; export * from './model/SendVeriCodeForChangePwdRequest'; diff --git a/services/mrs/v1/MrsRegion.ts b/services/mrs/v1/MrsRegion.ts index 6d1ea1dc8..9e7ec280e 100644 --- a/services/mrs/v1/MrsRegion.ts +++ b/services/mrs/v1/MrsRegion.ts @@ -30,6 +30,7 @@ export class MrsRegion { public static EU_WEST_0 = new Region("eu-west-0", ["https://mrs.eu-west-0.myhuaweicloud.com"]); public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://mrs.my-kualalumpur-1.myhuaweicloud.com"]); public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://mrs.ru-moscow-1.myhuaweicloud.com"]); + public static AE_AD_1 = new Region("ae-ad-1", ["https://mrs.ae-ad-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -56,7 +57,8 @@ export class MrsRegion { "me-east-1":MrsRegion.ME_EAST_1, "eu-west-0":MrsRegion.EU_WEST_0, "my-kualalumpur-1":MrsRegion.MY_KUALALUMPUR_1, - "ru-moscow-1":MrsRegion.RU_MOSCOW_1 + "ru-moscow-1":MrsRegion.RU_MOSCOW_1, + "ae-ad-1":MrsRegion.AE_AD_1 }; public static valueOf(regionId: string) { diff --git a/services/mrs/v2/MrsRegion.ts b/services/mrs/v2/MrsRegion.ts index 6d1ea1dc8..9e7ec280e 100644 --- a/services/mrs/v2/MrsRegion.ts +++ b/services/mrs/v2/MrsRegion.ts @@ -30,6 +30,7 @@ export class MrsRegion { public static EU_WEST_0 = new Region("eu-west-0", ["https://mrs.eu-west-0.myhuaweicloud.com"]); public static MY_KUALALUMPUR_1 = new Region("my-kualalumpur-1", ["https://mrs.my-kualalumpur-1.myhuaweicloud.com"]); public static RU_MOSCOW_1 = new Region("ru-moscow-1", ["https://mrs.ru-moscow-1.myhuaweicloud.com"]); + public static AE_AD_1 = new Region("ae-ad-1", ["https://mrs.ae-ad-1.myhuaweicloud.com"]); private static REGION_MAP: RegionMap = { @@ -56,7 +57,8 @@ export class MrsRegion { "me-east-1":MrsRegion.ME_EAST_1, "eu-west-0":MrsRegion.EU_WEST_0, "my-kualalumpur-1":MrsRegion.MY_KUALALUMPUR_1, - "ru-moscow-1":MrsRegion.RU_MOSCOW_1 + "ru-moscow-1":MrsRegion.RU_MOSCOW_1, + "ae-ad-1":MrsRegion.AE_AD_1 }; public static valueOf(regionId: string) { diff --git a/services/rds/v3/RdsRegion.ts b/services/rds/v3/RdsRegion.ts index 78acb50a4..cb9f73293 100644 --- a/services/rds/v3/RdsRegion.ts +++ b/services/rds/v3/RdsRegion.ts @@ -12,6 +12,7 @@ export class RdsRegion { public static CN_EAST_2 = new Region("cn-east-2", ["https://rds.cn-east-2.myhuaweicloud.com"]); public static CN_EAST_3 = new Region("cn-east-3", ["https://rds.cn-east-3.myhuaweicloud.com"]); public static CN_EAST_5 = new Region("cn-east-5", ["https://rds.cn-east-5.myhuaweicloud.com"]); + public static CN_EAST_4 = new Region("cn-east-4", ["https://rds.cn-east-4.myhuaweicloud.com"]); public static CN_SOUTH_1 = new Region("cn-south-1", ["https://rds.cn-south-1.myhuaweicloud.com"]); public static CN_SOUTHWEST_2 = new Region("cn-southwest-2", ["https://rds.cn-southwest-2.myhuaweicloud.com"]); public static AP_SOUTHEAST_2 = new Region("ap-southeast-2", ["https://rds.ap-southeast-2.myhuaweicloud.com"]); @@ -41,6 +42,7 @@ export class RdsRegion { "cn-east-2":RdsRegion.CN_EAST_2, "cn-east-3":RdsRegion.CN_EAST_3, "cn-east-5":RdsRegion.CN_EAST_5, + "cn-east-4":RdsRegion.CN_EAST_4, "cn-south-1":RdsRegion.CN_SOUTH_1, "cn-southwest-2":RdsRegion.CN_SOUTHWEST_2, "ap-southeast-2":RdsRegion.AP_SOUTHEAST_2, diff --git a/services/rds/v3/model/SetAuditlogPolicyResponse.ts b/services/rds/v3/model/SetAuditlogPolicyResponse.ts index c671b3229..4d492677f 100644 --- a/services/rds/v3/model/SetAuditlogPolicyResponse.ts +++ b/services/rds/v3/model/SetAuditlogPolicyResponse.ts @@ -2,7 +2,12 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; export class SetAuditlogPolicyResponse extends SdkResponse { + public status?: string; public constructor() { super(); } + public withStatus(status: string): SetAuditlogPolicyResponse { + this['status'] = status; + return this; + } } \ No newline at end of file diff --git a/services/vpcep/v1/VpcepClient.ts b/services/vpcep/v1/VpcepClient.ts index c336bba01..292bafabf 100644 --- a/services/vpcep/v1/VpcepClient.ts +++ b/services/vpcep/v1/VpcepClient.ts @@ -209,6 +209,9 @@ export class VpcepClient { /** * 创建终端节点,以便访问终端节点服务。 * + * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。 + * 通常创建终端节点需要1~2分钟,可以通过[查询终端节点详情](https://support.huaweicloud.com/api-vpcep/ListEndpointInfoDetails.html)查看创建结果 + * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 创建终端节点 @@ -229,9 +232,9 @@ export class VpcepClient { /** * 创建终端节点服务,允许其他用户创建终端节点连接您创建的终端节点服务, * 使用您所提供的服务。 - * 说明 + * * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。 - * 通常创建终端节点服务需要1~2分钟,可以通过查询终端节点服务详情查看创建结果。 + * 通常创建终端节点服务需要1~2分钟,可以通过[查询终端节点服务详情](https://support.huaweicloud.com/api-vpcep/ListServiceDetails.html)查看创建结果。 * * Please refer to HUAWEI cloud API Explorer for details. * @@ -253,6 +256,9 @@ export class VpcepClient { /** * 删除终端节点。 * + * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。 + * 通常删除终端节点需要1~2分钟,可以通过[查询终端节点详情](https://support.huaweicloud.com/api-vpcep/ListEndpointInfoDetails.html)查看删除结果 + * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除终端节点 @@ -293,6 +299,8 @@ export class VpcepClient { /** * 删除终端节点服务。 * + * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。通常删除终端节点服务需要1~2分钟,可以通过[查询终端节点服务详情](https://support.huaweicloud.com/api-vpcep/ListServiceDetails.html)查看删除结果。 + * * Please refer to HUAWEI cloud API Explorer for details. * * @summary 删除终端节点服务 @@ -997,6 +1005,9 @@ export const ParamCreater = function () { /** * 创建终端节点,以便访问终端节点服务。 * + * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。 + * 通常创建终端节点需要1~2分钟,可以通过[查询终端节点详情](https://support.huaweicloud.com/api-vpcep/ListEndpointInfoDetails.html)查看创建结果 + * * Please refer to HUAWEI cloud API Explorer for details. */ createEndpoint(createEndpointRequest?: CreateEndpointRequest) { @@ -1042,9 +1053,9 @@ export const ParamCreater = function () { /** * 创建终端节点服务,允许其他用户创建终端节点连接您创建的终端节点服务, * 使用您所提供的服务。 - * 说明 + * * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。 - * 通常创建终端节点服务需要1~2分钟,可以通过查询终端节点服务详情查看创建结果。 + * 通常创建终端节点服务需要1~2分钟,可以通过[查询终端节点服务详情](https://support.huaweicloud.com/api-vpcep/ListServiceDetails.html)查看创建结果。 * * Please refer to HUAWEI cloud API Explorer for details. */ @@ -1091,6 +1102,9 @@ export const ParamCreater = function () { /** * 删除终端节点。 * + * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。 + * 通常删除终端节点需要1~2分钟,可以通过[查询终端节点详情](https://support.huaweicloud.com/api-vpcep/ListEndpointInfoDetails.html)查看删除结果 + * * Please refer to HUAWEI cloud API Explorer for details. */ deleteEndpoint(deleteEndpointRequest?: DeleteEndpointRequest) { @@ -1179,6 +1193,8 @@ export const ParamCreater = function () { /** * 删除终端节点服务。 * + * 该接口为异步接口,调用成功会返回200状态码,说明请求已正常下发。通常删除终端节点服务需要1~2分钟,可以通过[查询终端节点服务详情](https://support.huaweicloud.com/api-vpcep/ListServiceDetails.html)查看删除结果。 + * * Please refer to HUAWEI cloud API Explorer for details. */ deleteEndpointService(deleteEndpointServiceRequest?: DeleteEndpointServiceRequest) { diff --git a/services/vpcep/v1/model/CreateEndpointServiceRequestBody.ts b/services/vpcep/v1/model/CreateEndpointServiceRequestBody.ts index dc4aae90d..113045da6 100644 --- a/services/vpcep/v1/model/CreateEndpointServiceRequestBody.ts +++ b/services/vpcep/v1/model/CreateEndpointServiceRequestBody.ts @@ -15,6 +15,7 @@ export class CreateEndpointServiceRequestBody { public tags?: Array; public description?: string; private 'ip_version'?: CreateEndpointServiceRequestBodyIpVersionEnum | string; + private 'snat_network_id'?: string; public constructor(portId?: string, vpcId?: string, serverType?: string, ports?: Array) { this['port_id'] = portId; this['vpc_id'] = vpcId; @@ -117,6 +118,16 @@ export class CreateEndpointServiceRequestBody { public get ipVersion(): CreateEndpointServiceRequestBodyIpVersionEnum | string | undefined { return this['ip_version']; } + public withSnatNetworkId(snatNetworkId: string): CreateEndpointServiceRequestBody { + this['snat_network_id'] = snatNetworkId; + return this; + } + public set snatNetworkId(snatNetworkId: string | undefined) { + this['snat_network_id'] = snatNetworkId; + } + public get snatNetworkId(): string | undefined { + return this['snat_network_id']; + } } /**