@huaweicloud/huaweicloud-sdk-swr 3.1.44 → 3.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/huaweicloud-sdk-swr.ts +4 -0
- package/package.json +4 -4
- package/v2/{SwrClient.js → SwrClient.ts} +1513 -949
- package/v2/SwrRegion.ts +62 -0
- package/v2/model/AuthInfo.ts +12 -0
- package/v2/model/CreateImageSyncRepoRequest.ts +45 -0
- package/v2/model/CreateImageSyncRepoRequestBody.ts +28 -0
- package/v2/model/CreateImageSyncRepoResponse.ts +8 -0
- package/v2/model/CreateManualImageSyncRepoRequest.ts +45 -0
- package/v2/model/CreateManualImageSyncRepoRequestBody.ts +29 -0
- package/v2/model/CreateManualImageSyncRepoResponse.ts +13 -0
- package/v2/model/CreateNamespaceAuthRequest.ts +39 -0
- package/v2/model/CreateNamespaceAuthResponse.ts +8 -0
- package/v2/model/CreateNamespaceRequest.ts +33 -0
- package/v2/model/CreateNamespaceRequestBody.ts +12 -0
- package/v2/model/CreateNamespaceResponse.ts +8 -0
- package/v2/model/CreateRepoDomainsRequest.ts +45 -0
- package/v2/model/CreateRepoDomainsRequestBody.ts +35 -0
- package/v2/model/CreateRepoDomainsResponse.ts +8 -0
- package/v2/model/CreateRepoRequest.ts +39 -0
- package/v2/model/CreateRepoRequestBody.ts +49 -0
- package/v2/model/CreateRepoResponse.ts +8 -0
- package/v2/model/CreateRetentionRequest.ts +45 -0
- package/v2/model/CreateRetentionRequestBody.ts +19 -0
- package/v2/model/CreateRetentionResponse.ts +13 -0
- package/v2/model/CreateSecretRequest.ts +32 -0
- package/v2/model/CreateSecretResponse.ts +25 -0
- package/v2/model/CreateTriggerRequest.ts +45 -0
- package/v2/model/CreateTriggerRequestBody.ts +110 -0
- package/v2/model/CreateTriggerResponse.ts +8 -0
- package/v2/model/CreateUserRepositoryAuthRequest.ts +45 -0
- package/v2/model/CreateUserRepositoryAuthResponse.ts +8 -0
- package/v2/model/DeleteImageSyncRepoRequest.ts +45 -0
- package/v2/model/DeleteImageSyncRepoRequestBody.ts +18 -0
- package/v2/model/DeleteImageSyncRepoResponse.ts +8 -0
- package/v2/model/DeleteNamespaceAuthRequest.ts +38 -0
- package/v2/model/DeleteNamespaceAuthResponse.ts +8 -0
- package/v2/model/DeleteNamespacesRequest.ts +33 -0
- package/v2/model/DeleteNamespacesResponse.ts +8 -0
- package/v2/model/DeleteRepoDomainsRequest.ts +51 -0
- package/v2/model/DeleteRepoDomainsResponse.ts +8 -0
- package/v2/model/DeleteRepoRequest.ts +39 -0
- package/v2/model/DeleteRepoResponse.ts +8 -0
- package/v2/model/DeleteRepoTagRequest.ts +45 -0
- package/v2/model/DeleteRepoTagResponse.ts +8 -0
- package/v2/model/DeleteRetentionRequest.ts +51 -0
- package/v2/model/DeleteRetentionResponse.ts +8 -0
- package/v2/model/DeleteTriggerRequest.ts +45 -0
- package/v2/model/DeleteTriggerResponse.ts +8 -0
- package/v2/model/DeleteUserRepositoryAuthRequest.ts +44 -0
- package/v2/model/DeleteUserRepositoryAuthResponse.ts +8 -0
- package/v2/model/ImageTag.ts +6 -0
- package/v2/model/Link.ts +18 -0
- package/v2/model/ListApiVersionsRequest.ts +27 -0
- package/v2/model/ListApiVersionsResponse.ts +14 -0
- package/v2/model/ListImageAutoSyncReposDetailsRequest.ts +39 -0
- package/v2/model/ListImageAutoSyncReposDetailsResponse.ts +14 -0
- package/v2/model/ListNamespacesRequest.ts +37 -0
- package/v2/model/ListNamespacesResponse.ts +14 -0
- package/v2/model/ListQuotasRequest.ts +27 -0
- package/v2/model/ListQuotasResponse.ts +14 -0
- package/v2/model/ListRepoDomainsRequest.ts +39 -0
- package/v2/model/ListRepoDomainsResponse.ts +14 -0
- package/v2/model/ListReposDetailsRequest.ts +79 -0
- package/v2/model/ListReposDetailsResponse.ts +25 -0
- package/v2/model/ListRepositoryTagsRequest.ts +81 -0
- package/v2/model/ListRepositoryTagsResponse.ts +25 -0
- package/v2/model/ListRetentionHistoriesRequest.ts +44 -0
- package/v2/model/ListRetentionHistoriesResponse.ts +36 -0
- package/v2/model/ListRetentionsRequest.ts +39 -0
- package/v2/model/ListRetentionsResponse.ts +14 -0
- package/v2/model/ListSharedReposDetailsRequest.ts +79 -0
- package/v2/model/ListSharedReposDetailsResponse.ts +25 -0
- package/v2/model/ListTriggersDetailsRequest.ts +39 -0
- package/v2/model/ListTriggersDetailsResponse.ts +14 -0
- package/v2/model/Retention.ts +31 -0
- package/v2/model/RetentionLog.ts +66 -0
- package/v2/model/Rule.ts +40 -0
- package/v2/model/ShowAccessDomainRequest.ts +51 -0
- package/v2/model/ShowAccessDomainResponse.ts +86 -0
- package/v2/model/ShowApiVersionRequest.ts +39 -0
- package/v2/model/ShowApiVersionResponse.ts +14 -0
- package/v2/model/ShowNamespace.ts +46 -0
- package/v2/model/ShowNamespaceAuthRequest.ts +33 -0
- package/v2/model/ShowNamespaceAuthResponse.ts +52 -0
- package/v2/model/ShowNamespaceRequest.ts +33 -0
- package/v2/model/ShowNamespaceResponse.ts +44 -0
- package/v2/model/ShowQuota.ts +42 -0
- package/v2/model/ShowRepoDomainsResponse.ts +90 -0
- package/v2/model/ShowReposResp.ts +162 -0
- package/v2/model/ShowReposTagResp.ts +150 -0
- package/v2/model/ShowRepositoryRequest.ts +39 -0
- package/v2/model/ShowRepositoryResponse.ts +146 -0
- package/v2/model/ShowRetentionRequest.ts +51 -0
- package/v2/model/ShowRetentionResponse.ts +29 -0
- package/v2/model/ShowSyncJobRequest.ts +45 -0
- package/v2/model/ShowSyncJobResponse.ts +25 -0
- package/v2/model/ShowTriggerRequest.ts +45 -0
- package/v2/model/ShowTriggerResponse.ts +138 -0
- package/v2/model/ShowUserRepositoryAuthRequest.ts +39 -0
- package/v2/model/ShowUserRepositoryAuthResponse.ts +41 -0
- package/v2/model/SyncJob.ts +90 -0
- package/v2/model/SyncRepo.ts +72 -0
- package/v2/model/TagSelector.ts +18 -0
- package/v2/model/Trigger.ts +151 -0
- package/v2/model/TriggerHistories.ts +120 -0
- package/v2/model/UpdateNamespaceAuthRequest.ts +39 -0
- package/v2/model/UpdateNamespaceAuthResponse.ts +8 -0
- package/v2/model/UpdateRepoDomainsRequest.ts +57 -0
- package/v2/model/UpdateRepoDomainsRequestBody.ts +23 -0
- package/v2/model/UpdateRepoDomainsResponse.ts +8 -0
- package/v2/model/UpdateRepoRequest.ts +45 -0
- package/v2/model/UpdateRepoRequestBody.ts +43 -0
- package/v2/model/UpdateRepoResponse.ts +8 -0
- package/v2/model/UpdateRetentionRequest.ts +57 -0
- package/v2/model/UpdateRetentionRequestBody.ts +19 -0
- package/v2/model/UpdateRetentionResponse.ts +8 -0
- package/v2/model/UpdateTriggerRequest.ts +51 -0
- package/v2/model/UpdateTriggerRequestBody.ts +12 -0
- package/v2/model/UpdateTriggerResponse.ts +8 -0
- package/v2/model/UpdateUserRepositoryAuthRequest.ts +45 -0
- package/v2/model/UpdateUserRepositoryAuthResponse.ts +8 -0
- package/v2/model/UserAuth.ts +46 -0
- package/v2/model/VersionDetail.ts +49 -0
- package/v2/{public-api.d.ts → public-api.ts} +1 -0
- package/LICENSE +0 -13
- package/README.md +0 -1
- package/huaweicloud-sdk-swr.d.ts +0 -2
- package/huaweicloud-sdk-swr.js +0 -31
- package/v2/SwrClient.d.ts +0 -1332
- package/v2/SwrRegion.d.ts +0 -23
- package/v2/SwrRegion.js +0 -59
- package/v2/model/AuthInfo.d.ts +0 -5
- package/v2/model/AuthInfo.js +0 -14
- package/v2/model/CreateImageSyncRepoRequest.d.ts +0 -22
- package/v2/model/CreateImageSyncRepoRequest.js +0 -47
- package/v2/model/CreateImageSyncRepoRequestBody.d.ts +0 -11
- package/v2/model/CreateImageSyncRepoRequestBody.js +0 -27
- package/v2/model/CreateImageSyncRepoResponse.d.ts +0 -4
- package/v2/model/CreateImageSyncRepoResponse.js +0 -27
- package/v2/model/CreateManualImageSyncRepoRequest.d.ts +0 -22
- package/v2/model/CreateManualImageSyncRepoRequest.js +0 -47
- package/v2/model/CreateManualImageSyncRepoRequestBody.d.ts +0 -11
- package/v2/model/CreateManualImageSyncRepoRequestBody.js +0 -28
- package/v2/model/CreateManualImageSyncRepoResponse.d.ts +0 -6
- package/v2/model/CreateManualImageSyncRepoResponse.js +0 -31
- package/v2/model/CreateNamespaceAuthRequest.d.ts +0 -20
- package/v2/model/CreateNamespaceAuthRequest.js +0 -42
- package/v2/model/CreateNamespaceAuthResponse.d.ts +0 -4
- package/v2/model/CreateNamespaceAuthResponse.js +0 -27
- package/v2/model/CreateNamespaceRequest.d.ts +0 -18
- package/v2/model/CreateNamespaceRequest.js +0 -37
- package/v2/model/CreateNamespaceRequestBody.d.ts +0 -5
- package/v2/model/CreateNamespaceRequestBody.js +0 -14
- package/v2/model/CreateNamespaceResponse.d.ts +0 -4
- package/v2/model/CreateNamespaceResponse.js +0 -27
- package/v2/model/CreateRepoDomainsRequest.d.ts +0 -22
- package/v2/model/CreateRepoDomainsRequest.js +0 -47
- package/v2/model/CreateRepoDomainsRequestBody.d.ts +0 -13
- package/v2/model/CreateRepoDomainsRequestBody.js +0 -38
- package/v2/model/CreateRepoDomainsResponse.d.ts +0 -4
- package/v2/model/CreateRepoDomainsResponse.js +0 -27
- package/v2/model/CreateRepoRequest.d.ts +0 -20
- package/v2/model/CreateRepoRequest.js +0 -42
- package/v2/model/CreateRepoRequestBody.d.ts +0 -27
- package/v2/model/CreateRepoRequestBody.js +0 -52
- package/v2/model/CreateRepoResponse.d.ts +0 -4
- package/v2/model/CreateRepoResponse.js +0 -27
- package/v2/model/CreateRetentionRequest.d.ts +0 -22
- package/v2/model/CreateRetentionRequest.js +0 -47
- package/v2/model/CreateRetentionRequestBody.d.ts +0 -8
- package/v2/model/CreateRetentionRequestBody.js +0 -19
- package/v2/model/CreateRetentionResponse.d.ts +0 -6
- package/v2/model/CreateRetentionResponse.js +0 -31
- package/v2/model/CreateSecretRequest.d.ts +0 -17
- package/v2/model/CreateSecretRequest.js +0 -37
- package/v2/model/CreateSecretResponse.d.ts +0 -15
- package/v2/model/CreateSecretResponse.js +0 -45
- package/v2/model/CreateTriggerRequest.d.ts +0 -22
- package/v2/model/CreateTriggerRequest.js +0 -47
- package/v2/model/CreateTriggerRequestBody.d.ts +0 -39
- package/v2/model/CreateTriggerRequestBody.js +0 -125
- package/v2/model/CreateTriggerResponse.d.ts +0 -4
- package/v2/model/CreateTriggerResponse.js +0 -27
- package/v2/model/CreateUserRepositoryAuthRequest.d.ts +0 -22
- package/v2/model/CreateUserRepositoryAuthRequest.js +0 -47
- package/v2/model/CreateUserRepositoryAuthResponse.d.ts +0 -4
- package/v2/model/CreateUserRepositoryAuthResponse.js +0 -27
- package/v2/model/DeleteImageSyncRepoRequest.d.ts +0 -22
- package/v2/model/DeleteImageSyncRepoRequest.js +0 -47
- package/v2/model/DeleteImageSyncRepoRequestBody.d.ts +0 -7
- package/v2/model/DeleteImageSyncRepoRequestBody.js +0 -19
- package/v2/model/DeleteImageSyncRepoResponse.d.ts +0 -4
- package/v2/model/DeleteImageSyncRepoResponse.js +0 -27
- package/v2/model/DeleteNamespaceAuthRequest.d.ts +0 -19
- package/v2/model/DeleteNamespaceAuthRequest.js +0 -42
- package/v2/model/DeleteNamespaceAuthResponse.d.ts +0 -4
- package/v2/model/DeleteNamespaceAuthResponse.js +0 -27
- package/v2/model/DeleteNamespacesRequest.d.ts +0 -17
- package/v2/model/DeleteNamespacesRequest.js +0 -38
- package/v2/model/DeleteNamespacesResponse.d.ts +0 -4
- package/v2/model/DeleteNamespacesResponse.js +0 -27
- package/v2/model/DeleteRepoDomainsRequest.d.ts +0 -23
- package/v2/model/DeleteRepoDomainsRequest.js +0 -58
- package/v2/model/DeleteRepoDomainsResponse.d.ts +0 -4
- package/v2/model/DeleteRepoDomainsResponse.js +0 -27
- package/v2/model/DeleteRepoRequest.d.ts +0 -19
- package/v2/model/DeleteRepoRequest.js +0 -43
- package/v2/model/DeleteRepoResponse.d.ts +0 -4
- package/v2/model/DeleteRepoResponse.js +0 -27
- package/v2/model/DeleteRepoTagRequest.d.ts +0 -21
- package/v2/model/DeleteRepoTagRequest.js +0 -48
- package/v2/model/DeleteRepoTagResponse.d.ts +0 -4
- package/v2/model/DeleteRepoTagResponse.js +0 -27
- package/v2/model/DeleteRetentionRequest.d.ts +0 -23
- package/v2/model/DeleteRetentionRequest.js +0 -58
- package/v2/model/DeleteRetentionResponse.d.ts +0 -4
- package/v2/model/DeleteRetentionResponse.js +0 -27
- package/v2/model/DeleteTriggerRequest.d.ts +0 -21
- package/v2/model/DeleteTriggerRequest.js +0 -48
- package/v2/model/DeleteTriggerResponse.d.ts +0 -4
- package/v2/model/DeleteTriggerResponse.js +0 -27
- package/v2/model/DeleteUserRepositoryAuthRequest.d.ts +0 -21
- package/v2/model/DeleteUserRepositoryAuthRequest.js +0 -47
- package/v2/model/DeleteUserRepositoryAuthResponse.d.ts +0 -4
- package/v2/model/DeleteUserRepositoryAuthResponse.js +0 -27
- package/v2/model/ImageTag.d.ts +0 -3
- package/v2/model/ImageTag.js +0 -9
- package/v2/model/Link.d.ts +0 -7
- package/v2/model/Link.js +0 -19
- package/v2/model/ListApiVersionsRequest.d.ts +0 -15
- package/v2/model/ListApiVersionsRequest.js +0 -33
- package/v2/model/ListApiVersionsResponse.d.ts +0 -7
- package/v2/model/ListApiVersionsResponse.js +0 -31
- package/v2/model/ListImageAutoSyncReposDetailsRequest.d.ts +0 -19
- package/v2/model/ListImageAutoSyncReposDetailsRequest.js +0 -43
- package/v2/model/ListImageAutoSyncReposDetailsResponse.d.ts +0 -7
- package/v2/model/ListImageAutoSyncReposDetailsResponse.js +0 -31
- package/v2/model/ListNamespacesRequest.d.ts +0 -19
- package/v2/model/ListNamespacesRequest.js +0 -41
- package/v2/model/ListNamespacesResponse.d.ts +0 -7
- package/v2/model/ListNamespacesResponse.js +0 -31
- package/v2/model/ListQuotasRequest.d.ts +0 -15
- package/v2/model/ListQuotasRequest.js +0 -33
- package/v2/model/ListQuotasResponse.d.ts +0 -7
- package/v2/model/ListQuotasResponse.js +0 -31
- package/v2/model/ListRepoDomainsRequest.d.ts +0 -19
- package/v2/model/ListRepoDomainsRequest.js +0 -43
- package/v2/model/ListRepoDomainsResponse.d.ts +0 -7
- package/v2/model/ListRepoDomainsResponse.js +0 -31
- package/v2/model/ListReposDetailsRequest.d.ts +0 -35
- package/v2/model/ListReposDetailsRequest.js +0 -85
- package/v2/model/ListReposDetailsResponse.d.ts +0 -11
- package/v2/model/ListReposDetailsResponse.js +0 -45
- package/v2/model/ListRepositoryTagsRequest.d.ts +0 -35
- package/v2/model/ListRepositoryTagsRequest.js +0 -87
- package/v2/model/ListRepositoryTagsResponse.d.ts +0 -11
- package/v2/model/ListRepositoryTagsResponse.js +0 -45
- package/v2/model/ListRetentionHistoriesRequest.d.ts +0 -21
- package/v2/model/ListRetentionHistoriesRequest.js +0 -47
- package/v2/model/ListRetentionHistoriesResponse.d.ts +0 -15
- package/v2/model/ListRetentionHistoriesResponse.js +0 -59
- package/v2/model/ListRetentionsRequest.d.ts +0 -19
- package/v2/model/ListRetentionsRequest.js +0 -43
- package/v2/model/ListRetentionsResponse.d.ts +0 -7
- package/v2/model/ListRetentionsResponse.js +0 -31
- package/v2/model/ListSharedReposDetailsRequest.d.ts +0 -35
- package/v2/model/ListSharedReposDetailsRequest.js +0 -85
- package/v2/model/ListSharedReposDetailsResponse.d.ts +0 -11
- package/v2/model/ListSharedReposDetailsResponse.js +0 -45
- package/v2/model/ListTriggersDetailsRequest.d.ts +0 -19
- package/v2/model/ListTriggersDetailsRequest.js +0 -43
- package/v2/model/ListTriggersDetailsResponse.d.ts +0 -7
- package/v2/model/ListTriggersDetailsResponse.js +0 -31
- package/v2/model/Retention.d.ts +0 -12
- package/v2/model/Retention.js +0 -29
- package/v2/model/RetentionLog.d.ts +0 -23
- package/v2/model/RetentionLog.js +0 -74
- package/v2/model/Rule.d.ts +0 -20
- package/v2/model/Rule.js +0 -43
- package/v2/model/ShowAccessDomainRequest.d.ts +0 -23
- package/v2/model/ShowAccessDomainRequest.js +0 -58
- package/v2/model/ShowAccessDomainResponse.d.ts +0 -34
- package/v2/model/ShowAccessDomainResponse.js +0 -105
- package/v2/model/ShowApiVersionRequest.d.ts +0 -19
- package/v2/model/ShowApiVersionRequest.js +0 -48
- package/v2/model/ShowApiVersionResponse.d.ts +0 -7
- package/v2/model/ShowApiVersionResponse.js +0 -31
- package/v2/model/ShowNamespace.d.ts +0 -22
- package/v2/model/ShowNamespace.js +0 -49
- package/v2/model/ShowNamespaceAuthRequest.d.ts +0 -17
- package/v2/model/ShowNamespaceAuthRequest.js +0 -38
- package/v2/model/ShowNamespaceAuthResponse.d.ts +0 -21
- package/v2/model/ShowNamespaceAuthResponse.js +0 -77
- package/v2/model/ShowNamespaceRequest.d.ts +0 -17
- package/v2/model/ShowNamespaceRequest.js +0 -38
- package/v2/model/ShowNamespaceResponse.d.ts +0 -23
- package/v2/model/ShowNamespaceResponse.js +0 -63
- package/v2/model/ShowQuota.d.ts +0 -15
- package/v2/model/ShowQuota.js +0 -49
- package/v2/model/ShowRepoDomainsResponse.d.ts +0 -31
- package/v2/model/ShowRepoDomainsResponse.js +0 -94
- package/v2/model/ShowReposResp.d.ts +0 -55
- package/v2/model/ShowReposResp.js +0 -179
- package/v2/model/ShowReposTagResp.d.ts +0 -51
- package/v2/model/ShowReposTagResp.js +0 -164
- package/v2/model/ShowRepositoryRequest.d.ts +0 -19
- package/v2/model/ShowRepositoryRequest.js +0 -43
- package/v2/model/ShowRepositoryResponse.d.ts +0 -56
- package/v2/model/ShowRepositoryResponse.js +0 -179
- package/v2/model/ShowRetentionRequest.d.ts +0 -23
- package/v2/model/ShowRetentionRequest.js +0 -58
- package/v2/model/ShowRetentionResponse.d.ts +0 -13
- package/v2/model/ShowRetentionResponse.js +0 -43
- package/v2/model/ShowSyncJobRequest.d.ts +0 -21
- package/v2/model/ShowSyncJobRequest.js +0 -48
- package/v2/model/ShowSyncJobResponse.d.ts +0 -11
- package/v2/model/ShowSyncJobResponse.js +0 -45
- package/v2/model/ShowTriggerRequest.d.ts +0 -21
- package/v2/model/ShowTriggerRequest.js +0 -48
- package/v2/model/ShowTriggerResponse.d.ts +0 -53
- package/v2/model/ShowTriggerResponse.js +0 -177
- package/v2/model/ShowUserRepositoryAuthRequest.d.ts +0 -19
- package/v2/model/ShowUserRepositoryAuthRequest.js +0 -43
- package/v2/model/ShowUserRepositoryAuthResponse.d.ts +0 -17
- package/v2/model/ShowUserRepositoryAuthResponse.js +0 -63
- package/v2/model/SyncJob.d.ts +0 -31
- package/v2/model/SyncJob.js +0 -79
- package/v2/model/SyncRepo.d.ts +0 -25
- package/v2/model/SyncRepo.js +0 -64
- package/v2/model/TagSelector.d.ts +0 -7
- package/v2/model/TagSelector.js +0 -19
- package/v2/model/Trigger.d.ts +0 -52
- package/v2/model/Trigger.js +0 -174
- package/v2/model/TriggerHistories.d.ts +0 -41
- package/v2/model/TriggerHistories.js +0 -134
- package/v2/model/UpdateNamespaceAuthRequest.d.ts +0 -20
- package/v2/model/UpdateNamespaceAuthRequest.js +0 -42
- package/v2/model/UpdateNamespaceAuthResponse.d.ts +0 -4
- package/v2/model/UpdateNamespaceAuthResponse.js +0 -27
- package/v2/model/UpdateRepoDomainsRequest.d.ts +0 -26
- package/v2/model/UpdateRepoDomainsRequest.js +0 -62
- package/v2/model/UpdateRepoDomainsRequestBody.d.ts +0 -9
- package/v2/model/UpdateRepoDomainsRequestBody.js +0 -23
- package/v2/model/UpdateRepoDomainsResponse.d.ts +0 -4
- package/v2/model/UpdateRepoDomainsResponse.js +0 -27
- package/v2/model/UpdateRepoRequest.d.ts +0 -22
- package/v2/model/UpdateRepoRequest.js +0 -47
- package/v2/model/UpdateRepoRequestBody.d.ts +0 -25
- package/v2/model/UpdateRepoRequestBody.js +0 -47
- package/v2/model/UpdateRepoResponse.d.ts +0 -4
- package/v2/model/UpdateRepoResponse.js +0 -27
- package/v2/model/UpdateRetentionRequest.d.ts +0 -26
- package/v2/model/UpdateRetentionRequest.js +0 -62
- package/v2/model/UpdateRetentionRequestBody.d.ts +0 -8
- package/v2/model/UpdateRetentionRequestBody.js +0 -19
- package/v2/model/UpdateRetentionResponse.d.ts +0 -4
- package/v2/model/UpdateRetentionResponse.js +0 -27
- package/v2/model/UpdateTriggerRequest.d.ts +0 -24
- package/v2/model/UpdateTriggerRequest.js +0 -52
- package/v2/model/UpdateTriggerRequestBody.d.ts +0 -5
- package/v2/model/UpdateTriggerRequestBody.js +0 -14
- package/v2/model/UpdateTriggerResponse.d.ts +0 -4
- package/v2/model/UpdateTriggerResponse.js +0 -27
- package/v2/model/UpdateUserRepositoryAuthRequest.d.ts +0 -22
- package/v2/model/UpdateUserRepositoryAuthRequest.js +0 -47
- package/v2/model/UpdateUserRepositoryAuthResponse.d.ts +0 -4
- package/v2/model/UpdateUserRepositoryAuthResponse.js +0 -27
- package/v2/model/UserAuth.d.ts +0 -22
- package/v2/model/UserAuth.js +0 -54
- package/v2/model/VersionDetail.d.ts +0 -18
- package/v2/model/VersionDetail.js +0 -49
- package/v2/public-api.js +0 -138
package/v2/SwrRegion.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Region } from "@huaweicloud/huaweicloud-sdk-core/region/region";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
interface RegionMap {
|
|
5
|
+
[key: string]: Region;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class SwrRegion {
|
|
9
|
+
public static AF_SOUTH_1 = new Region("af-south-1", ["https://swr-api.af-south-1.myhuaweicloud.com"]);
|
|
10
|
+
public static AP_SOUTHEAST_1 = new Region("ap-southeast-1", ["https://swr-api.ap-southeast-1.myhuaweicloud.com"]);
|
|
11
|
+
public static AP_SOUTHEAST_2 = new Region("ap-southeast-2", ["https://swr-api.ap-southeast-2.myhuaweicloud.com"]);
|
|
12
|
+
public static AP_SOUTHEAST_3 = new Region("ap-southeast-3", ["https://swr-api.ap-southeast-3.myhuaweicloud.com"]);
|
|
13
|
+
public static CN_EAST_2 = new Region("cn-east-2", ["https://swr-api.cn-east-2.myhuaweicloud.com"]);
|
|
14
|
+
public static CN_EAST_3 = new Region("cn-east-3", ["https://swr-api.cn-east-3.myhuaweicloud.com"]);
|
|
15
|
+
public static CN_NORTH_1 = new Region("cn-north-1", ["https://swr-api.cn-north-1.myhuaweicloud.com"]);
|
|
16
|
+
public static CN_NORTH_2 = new Region("cn-north-2", ["https://swr-api.cn-north-2.myhuaweicloud.com"]);
|
|
17
|
+
public static CN_NORTH_4 = new Region("cn-north-4", ["https://swr-api.cn-north-4.myhuaweicloud.com"]);
|
|
18
|
+
public static CN_SOUTH_1 = new Region("cn-south-1", ["https://swr-api.cn-south-1.myhuaweicloud.com"]);
|
|
19
|
+
public static CN_SOUTH_2 = new Region("cn-south-2", ["https://swr-api.cn-south-2.myhuaweicloud.com"]);
|
|
20
|
+
public static CN_SOUTHWEST_2 = new Region("cn-southwest-2", ["https://swr-api.cn-southwest-2.myhuaweicloud.com"]);
|
|
21
|
+
public static RU_NORTHWEST_2 = new Region("ru-northwest-2", ["https://swr-api.ru-northwest-2.myhuaweicloud.com"]);
|
|
22
|
+
public static LA_SOUTH_2 = new Region("la-south-2", ["https://swr-api.la-south-2.myhuaweicloud.com"]);
|
|
23
|
+
public static SA_BRAZIL_1 = new Region("sa-brazil-1", ["https://swr-api.sa-brazil-1.myhuaweicloud.com"]);
|
|
24
|
+
public static CN_NORTH_9 = new Region("cn-north-9", ["https://swr-api.cn-north-9.myhuaweicloud.com"]);
|
|
25
|
+
public static NA_MEXICO_1 = new Region("na-mexico-1", ["https://swr-api.na-mexico-1.myhuaweicloud.com"]);
|
|
26
|
+
public static LA_NORTH_2 = new Region("la-north-2", ["https://swr-api.la-north-2.myhuaweicloud.com"]);
|
|
27
|
+
public static TR_WEST_1 = new Region("tr-west-1", ["https://swr-api.tr-west-1.myhuaweicloud.com"]);
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
private static REGION_MAP: RegionMap = {
|
|
31
|
+
"af-south-1":SwrRegion.AF_SOUTH_1,
|
|
32
|
+
"ap-southeast-1":SwrRegion.AP_SOUTHEAST_1,
|
|
33
|
+
"ap-southeast-2":SwrRegion.AP_SOUTHEAST_2,
|
|
34
|
+
"ap-southeast-3":SwrRegion.AP_SOUTHEAST_3,
|
|
35
|
+
"cn-east-2":SwrRegion.CN_EAST_2,
|
|
36
|
+
"cn-east-3":SwrRegion.CN_EAST_3,
|
|
37
|
+
"cn-north-1":SwrRegion.CN_NORTH_1,
|
|
38
|
+
"cn-north-2":SwrRegion.CN_NORTH_2,
|
|
39
|
+
"cn-north-4":SwrRegion.CN_NORTH_4,
|
|
40
|
+
"cn-south-1":SwrRegion.CN_SOUTH_1,
|
|
41
|
+
"cn-south-2":SwrRegion.CN_SOUTH_2,
|
|
42
|
+
"cn-southwest-2":SwrRegion.CN_SOUTHWEST_2,
|
|
43
|
+
"ru-northwest-2":SwrRegion.RU_NORTHWEST_2,
|
|
44
|
+
"la-south-2":SwrRegion.LA_SOUTH_2,
|
|
45
|
+
"sa-brazil-1":SwrRegion.SA_BRAZIL_1,
|
|
46
|
+
"cn-north-9":SwrRegion.CN_NORTH_9,
|
|
47
|
+
"na-mexico-1":SwrRegion.NA_MEXICO_1,
|
|
48
|
+
"la-north-2":SwrRegion.LA_NORTH_2,
|
|
49
|
+
"tr-west-1":SwrRegion.TR_WEST_1
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
public static valueOf(regionId: string) {
|
|
53
|
+
if (!regionId) {
|
|
54
|
+
throw new Error("Unexpected empty parameter: regionId.");
|
|
55
|
+
}
|
|
56
|
+
const result = this.REGION_MAP[regionId];
|
|
57
|
+
if (result) {
|
|
58
|
+
return result;
|
|
59
|
+
}
|
|
60
|
+
throw new Error(`Unexpected regionId: ${regionId}.`)
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CreateImageSyncRepoRequestBody } from './CreateImageSyncRepoRequestBody';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateImageSyncRepoRequest {
|
|
5
|
+
private 'Content-Type': CreateImageSyncRepoRequestContentTypeEnum | undefined;
|
|
6
|
+
public namespace: string;
|
|
7
|
+
public repository: string;
|
|
8
|
+
public body?: CreateImageSyncRepoRequestBody;
|
|
9
|
+
public constructor(contentType?: any, namespace?: any, repository?: any) {
|
|
10
|
+
this['Content-Type'] = contentType;
|
|
11
|
+
this['namespace'] = namespace;
|
|
12
|
+
this['repository'] = repository;
|
|
13
|
+
}
|
|
14
|
+
public withContentType(contentType: CreateImageSyncRepoRequestContentTypeEnum): CreateImageSyncRepoRequest {
|
|
15
|
+
this['Content-Type'] = contentType;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
public set contentType(contentType: CreateImageSyncRepoRequestContentTypeEnum | undefined) {
|
|
19
|
+
this['Content-Type'] = contentType;
|
|
20
|
+
}
|
|
21
|
+
public get contentType() {
|
|
22
|
+
return this['Content-Type'];
|
|
23
|
+
}
|
|
24
|
+
public withNamespace(namespace: string): CreateImageSyncRepoRequest {
|
|
25
|
+
this['namespace'] = namespace;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
public withRepository(repository: string): CreateImageSyncRepoRequest {
|
|
29
|
+
this['repository'] = repository;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
public withBody(body: CreateImageSyncRepoRequestBody): CreateImageSyncRepoRequest {
|
|
33
|
+
this['body'] = body;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
export enum CreateImageSyncRepoRequestContentTypeEnum {
|
|
43
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
44
|
+
APPLICATION_JSON = 'application/json'
|
|
45
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CreateImageSyncRepoRequestBody {
|
|
4
|
+
public remoteRegionId: string;
|
|
5
|
+
public remoteNamespace: string;
|
|
6
|
+
public syncAuto?: boolean;
|
|
7
|
+
public override?: boolean;
|
|
8
|
+
public constructor(remoteRegionId?: any, remoteNamespace?: any) {
|
|
9
|
+
this['remoteRegionId'] = remoteRegionId;
|
|
10
|
+
this['remoteNamespace'] = remoteNamespace;
|
|
11
|
+
}
|
|
12
|
+
public withRemoteRegionId(remoteRegionId: string): CreateImageSyncRepoRequestBody {
|
|
13
|
+
this['remoteRegionId'] = remoteRegionId;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
public withRemoteNamespace(remoteNamespace: string): CreateImageSyncRepoRequestBody {
|
|
17
|
+
this['remoteNamespace'] = remoteNamespace;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
public withSyncAuto(syncAuto: boolean): CreateImageSyncRepoRequestBody {
|
|
21
|
+
this['syncAuto'] = syncAuto;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
public withOverride(override: boolean): CreateImageSyncRepoRequestBody {
|
|
25
|
+
this['override'] = override;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CreateManualImageSyncRepoRequestBody } from './CreateManualImageSyncRepoRequestBody';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateManualImageSyncRepoRequest {
|
|
5
|
+
private 'Content-Type': CreateManualImageSyncRepoRequestContentTypeEnum | undefined;
|
|
6
|
+
public namespace: string;
|
|
7
|
+
public repository: string;
|
|
8
|
+
public body?: CreateManualImageSyncRepoRequestBody;
|
|
9
|
+
public constructor(contentType?: any, namespace?: any, repository?: any) {
|
|
10
|
+
this['Content-Type'] = contentType;
|
|
11
|
+
this['namespace'] = namespace;
|
|
12
|
+
this['repository'] = repository;
|
|
13
|
+
}
|
|
14
|
+
public withContentType(contentType: CreateManualImageSyncRepoRequestContentTypeEnum): CreateManualImageSyncRepoRequest {
|
|
15
|
+
this['Content-Type'] = contentType;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
public set contentType(contentType: CreateManualImageSyncRepoRequestContentTypeEnum | undefined) {
|
|
19
|
+
this['Content-Type'] = contentType;
|
|
20
|
+
}
|
|
21
|
+
public get contentType() {
|
|
22
|
+
return this['Content-Type'];
|
|
23
|
+
}
|
|
24
|
+
public withNamespace(namespace: string): CreateManualImageSyncRepoRequest {
|
|
25
|
+
this['namespace'] = namespace;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
public withRepository(repository: string): CreateManualImageSyncRepoRequest {
|
|
29
|
+
this['repository'] = repository;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
public withBody(body: CreateManualImageSyncRepoRequestBody): CreateManualImageSyncRepoRequest {
|
|
33
|
+
this['body'] = body;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
export enum CreateManualImageSyncRepoRequestContentTypeEnum {
|
|
43
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
44
|
+
APPLICATION_JSON = 'application/json'
|
|
45
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CreateManualImageSyncRepoRequestBody {
|
|
4
|
+
public imageTag: Array<string>;
|
|
5
|
+
public override?: boolean;
|
|
6
|
+
public remoteNamespace: string;
|
|
7
|
+
public remoteRegionId: string;
|
|
8
|
+
public constructor(imageTag?: any, remoteNamespace?: any, remoteRegionId?: any) {
|
|
9
|
+
this['imageTag'] = imageTag;
|
|
10
|
+
this['remoteNamespace'] = remoteNamespace;
|
|
11
|
+
this['remoteRegionId'] = remoteRegionId;
|
|
12
|
+
}
|
|
13
|
+
public withImageTag(imageTag: Array<string>): CreateManualImageSyncRepoRequestBody {
|
|
14
|
+
this['imageTag'] = imageTag;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
public withOverride(override: boolean): CreateManualImageSyncRepoRequestBody {
|
|
18
|
+
this['override'] = override;
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
public withRemoteNamespace(remoteNamespace: string): CreateManualImageSyncRepoRequestBody {
|
|
22
|
+
this['remoteNamespace'] = remoteNamespace;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
public withRemoteRegionId(remoteRegionId: string): CreateManualImageSyncRepoRequestBody {
|
|
26
|
+
this['remoteRegionId'] = remoteRegionId;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
3
|
+
|
|
4
|
+
export class CreateManualImageSyncRepoResponse extends SdkResponse {
|
|
5
|
+
public body?: Array<string>;
|
|
6
|
+
public constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
public withBody(body: Array<string>): CreateManualImageSyncRepoResponse {
|
|
10
|
+
this['body'] = body;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { UserAuth } from './UserAuth';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateNamespaceAuthRequest {
|
|
5
|
+
private 'Content-Type': CreateNamespaceAuthRequestContentTypeEnum | undefined;
|
|
6
|
+
public namespace: string;
|
|
7
|
+
public body?: Array<UserAuth>;
|
|
8
|
+
public constructor(contentType?: any, namespace?: any) {
|
|
9
|
+
this['Content-Type'] = contentType;
|
|
10
|
+
this['namespace'] = namespace;
|
|
11
|
+
}
|
|
12
|
+
public withContentType(contentType: CreateNamespaceAuthRequestContentTypeEnum): CreateNamespaceAuthRequest {
|
|
13
|
+
this['Content-Type'] = contentType;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
public set contentType(contentType: CreateNamespaceAuthRequestContentTypeEnum | undefined) {
|
|
17
|
+
this['Content-Type'] = contentType;
|
|
18
|
+
}
|
|
19
|
+
public get contentType() {
|
|
20
|
+
return this['Content-Type'];
|
|
21
|
+
}
|
|
22
|
+
public withNamespace(namespace: string): CreateNamespaceAuthRequest {
|
|
23
|
+
this['namespace'] = namespace;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
public withBody(body: Array<UserAuth>): CreateNamespaceAuthRequest {
|
|
27
|
+
this['body'] = body;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
* @enum {string}
|
|
35
|
+
*/
|
|
36
|
+
export enum CreateNamespaceAuthRequestContentTypeEnum {
|
|
37
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
38
|
+
APPLICATION_JSON = 'application/json'
|
|
39
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CreateNamespaceRequestBody } from './CreateNamespaceRequestBody';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateNamespaceRequest {
|
|
5
|
+
private 'Content-Type': CreateNamespaceRequestContentTypeEnum | undefined;
|
|
6
|
+
public body?: CreateNamespaceRequestBody;
|
|
7
|
+
public constructor(contentType?: any) {
|
|
8
|
+
this['Content-Type'] = contentType;
|
|
9
|
+
}
|
|
10
|
+
public withContentType(contentType: CreateNamespaceRequestContentTypeEnum): CreateNamespaceRequest {
|
|
11
|
+
this['Content-Type'] = contentType;
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
public set contentType(contentType: CreateNamespaceRequestContentTypeEnum | undefined) {
|
|
15
|
+
this['Content-Type'] = contentType;
|
|
16
|
+
}
|
|
17
|
+
public get contentType() {
|
|
18
|
+
return this['Content-Type'];
|
|
19
|
+
}
|
|
20
|
+
public withBody(body: CreateNamespaceRequestBody): CreateNamespaceRequest {
|
|
21
|
+
this['body'] = body;
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
* @enum {string}
|
|
29
|
+
*/
|
|
30
|
+
export enum CreateNamespaceRequestContentTypeEnum {
|
|
31
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
32
|
+
APPLICATION_JSON = 'application/json'
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CreateNamespaceRequestBody {
|
|
4
|
+
public namespace: string;
|
|
5
|
+
public constructor(namespace?: any) {
|
|
6
|
+
this['namespace'] = namespace;
|
|
7
|
+
}
|
|
8
|
+
public withNamespace(namespace: string): CreateNamespaceRequestBody {
|
|
9
|
+
this['namespace'] = namespace;
|
|
10
|
+
return this;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CreateRepoDomainsRequestBody } from './CreateRepoDomainsRequestBody';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateRepoDomainsRequest {
|
|
5
|
+
private 'Content-Type': CreateRepoDomainsRequestContentTypeEnum | undefined;
|
|
6
|
+
public namespace: string;
|
|
7
|
+
public repository: string;
|
|
8
|
+
public body?: CreateRepoDomainsRequestBody;
|
|
9
|
+
public constructor(contentType?: any, namespace?: any, repository?: any) {
|
|
10
|
+
this['Content-Type'] = contentType;
|
|
11
|
+
this['namespace'] = namespace;
|
|
12
|
+
this['repository'] = repository;
|
|
13
|
+
}
|
|
14
|
+
public withContentType(contentType: CreateRepoDomainsRequestContentTypeEnum): CreateRepoDomainsRequest {
|
|
15
|
+
this['Content-Type'] = contentType;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
public set contentType(contentType: CreateRepoDomainsRequestContentTypeEnum | undefined) {
|
|
19
|
+
this['Content-Type'] = contentType;
|
|
20
|
+
}
|
|
21
|
+
public get contentType() {
|
|
22
|
+
return this['Content-Type'];
|
|
23
|
+
}
|
|
24
|
+
public withNamespace(namespace: string): CreateRepoDomainsRequest {
|
|
25
|
+
this['namespace'] = namespace;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
public withRepository(repository: string): CreateRepoDomainsRequest {
|
|
29
|
+
this['repository'] = repository;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
public withBody(body: CreateRepoDomainsRequestBody): CreateRepoDomainsRequest {
|
|
33
|
+
this['body'] = body;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
export enum CreateRepoDomainsRequestContentTypeEnum {
|
|
43
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
44
|
+
APPLICATION_JSON = 'application/json'
|
|
45
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CreateRepoDomainsRequestBody {
|
|
4
|
+
private 'access_domain': string | undefined;
|
|
5
|
+
public permit: string;
|
|
6
|
+
public deadline: string;
|
|
7
|
+
public description?: string;
|
|
8
|
+
public constructor(accessDomain?: any, permit?: any, deadline?: any) {
|
|
9
|
+
this['access_domain'] = accessDomain;
|
|
10
|
+
this['permit'] = permit;
|
|
11
|
+
this['deadline'] = deadline;
|
|
12
|
+
}
|
|
13
|
+
public withAccessDomain(accessDomain: string): CreateRepoDomainsRequestBody {
|
|
14
|
+
this['access_domain'] = accessDomain;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
public set accessDomain(accessDomain: string | undefined) {
|
|
18
|
+
this['access_domain'] = accessDomain;
|
|
19
|
+
}
|
|
20
|
+
public get accessDomain() {
|
|
21
|
+
return this['access_domain'];
|
|
22
|
+
}
|
|
23
|
+
public withPermit(permit: string): CreateRepoDomainsRequestBody {
|
|
24
|
+
this['permit'] = permit;
|
|
25
|
+
return this;
|
|
26
|
+
}
|
|
27
|
+
public withDeadline(deadline: string): CreateRepoDomainsRequestBody {
|
|
28
|
+
this['deadline'] = deadline;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
public withDescription(description: string): CreateRepoDomainsRequestBody {
|
|
32
|
+
this['description'] = description;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CreateRepoRequestBody } from './CreateRepoRequestBody';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateRepoRequest {
|
|
5
|
+
private 'Content-Type': CreateRepoRequestContentTypeEnum | undefined;
|
|
6
|
+
public namespace: string;
|
|
7
|
+
public body?: CreateRepoRequestBody;
|
|
8
|
+
public constructor(contentType?: any, namespace?: any) {
|
|
9
|
+
this['Content-Type'] = contentType;
|
|
10
|
+
this['namespace'] = namespace;
|
|
11
|
+
}
|
|
12
|
+
public withContentType(contentType: CreateRepoRequestContentTypeEnum): CreateRepoRequest {
|
|
13
|
+
this['Content-Type'] = contentType;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
public set contentType(contentType: CreateRepoRequestContentTypeEnum | undefined) {
|
|
17
|
+
this['Content-Type'] = contentType;
|
|
18
|
+
}
|
|
19
|
+
public get contentType() {
|
|
20
|
+
return this['Content-Type'];
|
|
21
|
+
}
|
|
22
|
+
public withNamespace(namespace: string): CreateRepoRequest {
|
|
23
|
+
this['namespace'] = namespace;
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
public withBody(body: CreateRepoRequestBody): CreateRepoRequest {
|
|
27
|
+
this['body'] = body;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @export
|
|
34
|
+
* @enum {string}
|
|
35
|
+
*/
|
|
36
|
+
export enum CreateRepoRequestContentTypeEnum {
|
|
37
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
38
|
+
APPLICATION_JSON = 'application/json'
|
|
39
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CreateRepoRequestBody {
|
|
4
|
+
public repository: string;
|
|
5
|
+
private 'is_public': boolean | undefined;
|
|
6
|
+
public category?: CreateRepoRequestBodyCategoryEnum;
|
|
7
|
+
public description?: string;
|
|
8
|
+
public constructor(repository?: any, isPublic?: any) {
|
|
9
|
+
this['repository'] = repository;
|
|
10
|
+
this['is_public'] = isPublic;
|
|
11
|
+
}
|
|
12
|
+
public withRepository(repository: string): CreateRepoRequestBody {
|
|
13
|
+
this['repository'] = repository;
|
|
14
|
+
return this;
|
|
15
|
+
}
|
|
16
|
+
public withIsPublic(isPublic: boolean): CreateRepoRequestBody {
|
|
17
|
+
this['is_public'] = isPublic;
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
public set isPublic(isPublic: boolean | undefined) {
|
|
21
|
+
this['is_public'] = isPublic;
|
|
22
|
+
}
|
|
23
|
+
public get isPublic() {
|
|
24
|
+
return this['is_public'];
|
|
25
|
+
}
|
|
26
|
+
public withCategory(category: CreateRepoRequestBodyCategoryEnum): CreateRepoRequestBody {
|
|
27
|
+
this['category'] = category;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withDescription(description: string): CreateRepoRequestBody {
|
|
31
|
+
this['description'] = description;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum CreateRepoRequestBodyCategoryEnum {
|
|
41
|
+
APP_SERVER = 'app_server',
|
|
42
|
+
LINUX = 'linux',
|
|
43
|
+
FRAMEWORK_APP = 'framework_app',
|
|
44
|
+
DATABASE = 'database',
|
|
45
|
+
LANG = 'lang',
|
|
46
|
+
WINDOWS = 'windows',
|
|
47
|
+
ARMS = 'arms',
|
|
48
|
+
OTHER = 'other'
|
|
49
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CreateRetentionRequestBody } from './CreateRetentionRequestBody';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateRetentionRequest {
|
|
5
|
+
private 'Content-Type': CreateRetentionRequestContentTypeEnum | undefined;
|
|
6
|
+
public namespace: string;
|
|
7
|
+
public repository: string;
|
|
8
|
+
public body?: CreateRetentionRequestBody;
|
|
9
|
+
public constructor(contentType?: any, namespace?: any, repository?: any) {
|
|
10
|
+
this['Content-Type'] = contentType;
|
|
11
|
+
this['namespace'] = namespace;
|
|
12
|
+
this['repository'] = repository;
|
|
13
|
+
}
|
|
14
|
+
public withContentType(contentType: CreateRetentionRequestContentTypeEnum): CreateRetentionRequest {
|
|
15
|
+
this['Content-Type'] = contentType;
|
|
16
|
+
return this;
|
|
17
|
+
}
|
|
18
|
+
public set contentType(contentType: CreateRetentionRequestContentTypeEnum | undefined) {
|
|
19
|
+
this['Content-Type'] = contentType;
|
|
20
|
+
}
|
|
21
|
+
public get contentType() {
|
|
22
|
+
return this['Content-Type'];
|
|
23
|
+
}
|
|
24
|
+
public withNamespace(namespace: string): CreateRetentionRequest {
|
|
25
|
+
this['namespace'] = namespace;
|
|
26
|
+
return this;
|
|
27
|
+
}
|
|
28
|
+
public withRepository(repository: string): CreateRetentionRequest {
|
|
29
|
+
this['repository'] = repository;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
32
|
+
public withBody(body: CreateRetentionRequestBody): CreateRetentionRequest {
|
|
33
|
+
this['body'] = body;
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
* @enum {string}
|
|
41
|
+
*/
|
|
42
|
+
export enum CreateRetentionRequestContentTypeEnum {
|
|
43
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
44
|
+
APPLICATION_JSON = 'application/json'
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Rule } from './Rule';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export class CreateRetentionRequestBody {
|
|
5
|
+
public algorithm: string;
|
|
6
|
+
public rules: Array<Rule>;
|
|
7
|
+
public constructor(algorithm?: any, rules?: any) {
|
|
8
|
+
this['algorithm'] = algorithm;
|
|
9
|
+
this['rules'] = rules;
|
|
10
|
+
}
|
|
11
|
+
public withAlgorithm(algorithm: string): CreateRetentionRequestBody {
|
|
12
|
+
this['algorithm'] = algorithm;
|
|
13
|
+
return this;
|
|
14
|
+
}
|
|
15
|
+
public withRules(rules: Array<Rule>): CreateRetentionRequestBody {
|
|
16
|
+
this['rules'] = rules;
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
3
|
+
|
|
4
|
+
export class CreateRetentionResponse extends SdkResponse {
|
|
5
|
+
public id?: number;
|
|
6
|
+
public constructor() {
|
|
7
|
+
super();
|
|
8
|
+
}
|
|
9
|
+
public withId(id: number): CreateRetentionResponse {
|
|
10
|
+
this['id'] = id;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export class CreateSecretRequest {
|
|
4
|
+
private 'Content-Type': CreateSecretRequestContentTypeEnum | undefined;
|
|
5
|
+
public projectname?: string;
|
|
6
|
+
public constructor(contentType?: any) {
|
|
7
|
+
this['Content-Type'] = contentType;
|
|
8
|
+
}
|
|
9
|
+
public withContentType(contentType: CreateSecretRequestContentTypeEnum): CreateSecretRequest {
|
|
10
|
+
this['Content-Type'] = contentType;
|
|
11
|
+
return this;
|
|
12
|
+
}
|
|
13
|
+
public set contentType(contentType: CreateSecretRequestContentTypeEnum | undefined) {
|
|
14
|
+
this['Content-Type'] = contentType;
|
|
15
|
+
}
|
|
16
|
+
public get contentType() {
|
|
17
|
+
return this['Content-Type'];
|
|
18
|
+
}
|
|
19
|
+
public withProjectname(projectname: string): CreateSecretRequest {
|
|
20
|
+
this['projectname'] = projectname;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
* @enum {string}
|
|
28
|
+
*/
|
|
29
|
+
export enum CreateSecretRequestContentTypeEnum {
|
|
30
|
+
APPLICATION_JSONCHARSETUTF_8 = 'application/json;charset=utf-8',
|
|
31
|
+
APPLICATION_JSON = 'application/json'
|
|
32
|
+
}
|