docker-hub 2.pre.beta.2
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +268 -0
- data/Rakefile +10 -0
- data/docker-hub.gemspec +39 -0
- data/docs/AccessToken.md +40 -0
- data/docs/AccessTokensApi.md +362 -0
- data/docs/AuditLog.md +30 -0
- data/docs/AuditLogAction.md +22 -0
- data/docs/AuditLogActions.md +20 -0
- data/docs/AuditLogsApi.md +163 -0
- data/docs/AuthCreateAccessTokenRequest.md +20 -0
- data/docs/AuthCreateTokenResponse.md +18 -0
- data/docs/AuthenticationApiApi.md +204 -0
- data/docs/BulkInvite.md +18 -0
- data/docs/BulkInviteInviteesInner.md +22 -0
- data/docs/Category.md +20 -0
- data/docs/CreateAccessTokenRequest.md +22 -0
- data/docs/CreateOrgAccessTokenRequest.md +24 -0
- data/docs/CreateOrgAccessTokenResponse.md +34 -0
- data/docs/EmailAddress.md +26 -0
- data/docs/EmailWithUsername.md +28 -0
- data/docs/Error.md +22 -0
- data/docs/GetAccessTokensResponse.md +26 -0
- data/docs/GetAuditActionsResponse.md +18 -0
- data/docs/GetAuditLogsResponse.md +18 -0
- data/docs/GetOrgAccessTokenResponse.md +32 -0
- data/docs/GetOrgAccessTokensResponse.md +24 -0
- data/docs/GroupMember.md +38 -0
- data/docs/GroupsApi.md +682 -0
- data/docs/Image.md +40 -0
- data/docs/ImmutableTagsSettings.md +20 -0
- data/docs/ImmutableTagsVerifyRequest.md +18 -0
- data/docs/ImmutableTagsVerifyResponse.md +18 -0
- data/docs/Invite.md +28 -0
- data/docs/InvitesApi.md +289 -0
- data/docs/Layer.md +22 -0
- data/docs/LegacyEmailAddress.md +28 -0
- data/docs/ListRepositoriesResponse.md +24 -0
- data/docs/OrgAccessToken.md +30 -0
- data/docs/OrgAccessTokenResource.md +22 -0
- data/docs/OrgAccessTokensApi.md +368 -0
- data/docs/OrgGroup.md +26 -0
- data/docs/OrgMember.md +52 -0
- data/docs/OrgMemberPaginated.md +24 -0
- data/docs/OrgSettings.md +18 -0
- data/docs/OrgSettingsApi.md +149 -0
- data/docs/OrgsApi.md +306 -0
- data/docs/Page.md +22 -0
- data/docs/PaginatedTags.md +24 -0
- data/docs/PatchAccessTokenRequest.md +20 -0
- data/docs/PostUsers2FALoginErrorResponse.md +18 -0
- data/docs/PostUsersLoginErrorResponse.md +20 -0
- data/docs/PostUsersLoginSuccessResponse.md +18 -0
- data/docs/ProtobufAny.md +20 -0
- data/docs/RepoCreationRequest.md +28 -0
- data/docs/RepoPermissions.md +22 -0
- data/docs/RepositoriesApi.md +806 -0
- data/docs/RepositoryGroup.md +22 -0
- data/docs/RepositoryGroupCreationRequest.md +20 -0
- data/docs/RepositoryInfo.md +68 -0
- data/docs/RepositoryListEntry.md +50 -0
- data/docs/RestrictedImages.md +22 -0
- data/docs/RpcStatus.md +22 -0
- data/docs/ScimApi.md +642 -0
- data/docs/ScimEmail.md +22 -0
- data/docs/ScimError.md +22 -0
- data/docs/ScimGroup.md +20 -0
- data/docs/ScimResourceType.md +28 -0
- data/docs/ScimSchema.md +26 -0
- data/docs/ScimSchemaAttribute.md +34 -0
- data/docs/ScimSchemaParentAttribute.md +36 -0
- data/docs/ScimServiceProviderConfig.md +34 -0
- data/docs/ScimServiceProviderConfigAuthenticationSchemes.md +24 -0
- data/docs/ScimServiceProviderConfigBulk.md +22 -0
- data/docs/ScimServiceProviderConfigChangePassword.md +18 -0
- data/docs/ScimServiceProviderConfigFilter.md +20 -0
- data/docs/ScimServiceProviderConfigPatch.md +18 -0
- data/docs/ScimServiceProviderConfigSort.md +18 -0
- data/docs/ScimUser.md +34 -0
- data/docs/ScimUserMeta.md +24 -0
- data/docs/ScimUserName.md +20 -0
- data/docs/Tag.md +42 -0
- data/docs/TeamRepo.md +20 -0
- data/docs/UpdateOrgAccessTokenRequest.md +24 -0
- data/docs/UpdateOrgAccessTokenResponse.md +32 -0
- data/docs/UpdateRepositoryImmutableTagsRequest.md +20 -0
- data/docs/User.md +36 -0
- data/docs/Users2FALoginRequest.md +20 -0
- data/docs/UsersLoginRequest.md +20 -0
- data/docs/V2AccessTokensUuidGet200Response.md +40 -0
- data/docs/V2InvitesBulkPost202Response.md +18 -0
- data/docs/V2InvitesBulkPostRequest.md +26 -0
- data/docs/V2OrgsNameSettingsPutRequest.md +18 -0
- data/docs/V2OrgsNameSettingsPutRequestRestrictedImages.md +22 -0
- data/docs/V2OrgsOrgNameGroupsGet200Response.md +24 -0
- data/docs/V2OrgsOrgNameGroupsGroupNameMembersGet200Response.md +24 -0
- data/docs/V2OrgsOrgNameGroupsGroupNameMembersPostRequest.md +18 -0
- data/docs/V2OrgsOrgNameGroupsGroupNamePatchRequest.md +20 -0
- data/docs/V2OrgsOrgNameGroupsPostRequest.md +20 -0
- data/docs/V2OrgsOrgNameInvitesGet200Response.md +18 -0
- data/docs/V2OrgsOrgNameMembersExportGet200ResponseInner.md +30 -0
- data/docs/V2OrgsOrgNameMembersUsernamePutRequest.md +18 -0
- data/docs/V2Scim20ResourceTypesGet200Response.md +22 -0
- data/docs/V2Scim20ResourceTypesNameGet404Response.md +22 -0
- data/docs/V2Scim20SchemasGet200Response.md +22 -0
- data/docs/V2Scim20ServiceProviderConfigGet401Response.md +22 -0
- data/docs/V2Scim20ServiceProviderConfigGet500Response.md +22 -0
- data/docs/V2Scim20UsersGet200Response.md +26 -0
- data/docs/V2Scim20UsersGet400Response.md +24 -0
- data/docs/V2Scim20UsersGet403Response.md +22 -0
- data/docs/V2Scim20UsersIdPutRequest.md +22 -0
- data/docs/V2Scim20UsersIdPutRequestName.md +20 -0
- data/docs/V2Scim20UsersPost409Response.md +22 -0
- data/docs/V2Scim20UsersPostRequest.md +22 -0
- data/docs/ValueError.md +20 -0
- data/git_push.sh +57 -0
- data/lib/docker-hub/api/access_tokens_api.rb +353 -0
- data/lib/docker-hub/api/audit_logs_api.rb +169 -0
- data/lib/docker-hub/api/authentication_api_api.rb +222 -0
- data/lib/docker-hub/api/groups_api.rb +690 -0
- data/lib/docker-hub/api/invites_api.rb +282 -0
- data/lib/docker-hub/api/org_access_tokens_api.rb +371 -0
- data/lib/docker-hub/api/org_settings_api.rb +159 -0
- data/lib/docker-hub/api/orgs_api.rb +323 -0
- data/lib/docker-hub/api/repositories_api.rb +849 -0
- data/lib/docker-hub/api/scim_api.rb +615 -0
- data/lib/docker-hub/api_client.rb +394 -0
- data/lib/docker-hub/api_error.rb +58 -0
- data/lib/docker-hub/configuration.rb +306 -0
- data/lib/docker-hub/models/access_token.rb +316 -0
- data/lib/docker-hub/models/audit_log.rb +271 -0
- data/lib/docker-hub/models/audit_log_action.rb +236 -0
- data/lib/docker-hub/models/audit_log_actions.rb +227 -0
- data/lib/docker-hub/models/auth_create_access_token_request.rb +240 -0
- data/lib/docker-hub/models/auth_create_token_response.rb +216 -0
- data/lib/docker-hub/models/bulk_invite.rb +217 -0
- data/lib/docker-hub/models/bulk_invite_invitees_inner.rb +234 -0
- data/lib/docker-hub/models/category.rb +289 -0
- data/lib/docker-hub/models/create_access_token_request.rb +279 -0
- data/lib/docker-hub/models/create_org_access_token_request.rb +248 -0
- data/lib/docker-hub/models/create_org_access_token_response.rb +298 -0
- data/lib/docker-hub/models/email_address.rb +250 -0
- data/lib/docker-hub/models/email_with_username.rb +266 -0
- data/lib/docker-hub/models/error.rb +234 -0
- data/lib/docker-hub/models/get_access_tokens_response.rb +252 -0
- data/lib/docker-hub/models/get_audit_actions_response.rb +218 -0
- data/lib/docker-hub/models/get_audit_logs_response.rb +218 -0
- data/lib/docker-hub/models/get_org_access_token_response.rb +289 -0
- data/lib/docker-hub/models/get_org_access_tokens_response.rb +243 -0
- data/lib/docker-hub/models/group_member.rb +339 -0
- data/lib/docker-hub/models/image.rb +363 -0
- data/lib/docker-hub/models/immutable_tags_settings.rb +241 -0
- data/lib/docker-hub/models/immutable_tags_verify_request.rb +243 -0
- data/lib/docker-hub/models/immutable_tags_verify_response.rb +224 -0
- data/lib/docker-hub/models/invite.rb +263 -0
- data/lib/docker-hub/models/layer.rb +236 -0
- data/lib/docker-hub/models/legacy_email_address.rb +266 -0
- data/lib/docker-hub/models/list_repositories_response.rb +255 -0
- data/lib/docker-hub/models/org_access_token.rb +270 -0
- data/lib/docker-hub/models/org_access_token_resource.rb +271 -0
- data/lib/docker-hub/models/org_group.rb +255 -0
- data/lib/docker-hub/models/org_member.rb +431 -0
- data/lib/docker-hub/models/org_member_paginated.rb +247 -0
- data/lib/docker-hub/models/org_settings.rb +214 -0
- data/lib/docker-hub/models/page.rb +237 -0
- data/lib/docker-hub/models/paginated_tags.rb +255 -0
- data/lib/docker-hub/models/patch_access_token_request.rb +251 -0
- data/lib/docker-hub/models/post_users2_fa_login_error_response.rb +216 -0
- data/lib/docker-hub/models/post_users_login_error_response.rb +234 -0
- data/lib/docker-hub/models/post_users_login_success_response.rb +216 -0
- data/lib/docker-hub/models/protobuf_any.rb +223 -0
- data/lib/docker-hub/models/repo_creation_request.rb +358 -0
- data/lib/docker-hub/models/repo_permissions.rb +256 -0
- data/lib/docker-hub/models/repository_group.rb +269 -0
- data/lib/docker-hub/models/repository_group_creation_request.rb +273 -0
- data/lib/docker-hub/models/repository_info.rb +609 -0
- data/lib/docker-hub/models/repository_list_entry.rb +488 -0
- data/lib/docker-hub/models/restricted_images.rb +235 -0
- data/lib/docker-hub/models/rpc_status.rb +234 -0
- data/lib/docker-hub/models/scim_email.rb +232 -0
- data/lib/docker-hub/models/scim_error.rb +236 -0
- data/lib/docker-hub/models/scim_group.rb +223 -0
- data/lib/docker-hub/models/scim_resource_type.rb +261 -0
- data/lib/docker-hub/models/scim_schema.rb +254 -0
- data/lib/docker-hub/models/scim_schema_attribute.rb +320 -0
- data/lib/docker-hub/models/scim_schema_parent_attribute.rb +338 -0
- data/lib/docker-hub/models/scim_service_provider_config.rb +288 -0
- data/lib/docker-hub/models/scim_service_provider_config_authentication_schemes.rb +241 -0
- data/lib/docker-hub/models/scim_service_provider_config_bulk.rb +232 -0
- data/lib/docker-hub/models/scim_service_provider_config_change_password.rb +214 -0
- data/lib/docker-hub/models/scim_service_provider_config_filter.rb +223 -0
- data/lib/docker-hub/models/scim_service_provider_config_patch.rb +214 -0
- data/lib/docker-hub/models/scim_service_provider_config_sort.rb +214 -0
- data/lib/docker-hub/models/scim_user.rb +295 -0
- data/lib/docker-hub/models/scim_user_meta.rb +243 -0
- data/lib/docker-hub/models/scim_user_name.rb +223 -0
- data/lib/docker-hub/models/tag.rb +371 -0
- data/lib/docker-hub/models/team_repo.rb +244 -0
- data/lib/docker-hub/models/update_org_access_token_request.rb +247 -0
- data/lib/docker-hub/models/update_org_access_token_response.rb +289 -0
- data/lib/docker-hub/models/update_repository_immutable_tags_request.rb +241 -0
- data/lib/docker-hub/models/user.rb +330 -0
- data/lib/docker-hub/models/users2_fa_login_request.rb +240 -0
- data/lib/docker-hub/models/users_login_request.rb +240 -0
- data/lib/docker-hub/models/v2_access_tokens_uuid_get200_response.rb +323 -0
- data/lib/docker-hub/models/v2_invites_bulk_post202_response.rb +214 -0
- data/lib/docker-hub/models/v2_invites_bulk_post_request.rb +271 -0
- data/lib/docker-hub/models/v2_orgs_name_settings_put_request.rb +221 -0
- data/lib/docker-hub/models/v2_orgs_name_settings_put_request_restricted_images.rb +263 -0
- data/lib/docker-hub/models/v2_orgs_org_name_groups_get200_response.rb +243 -0
- data/lib/docker-hub/models/v2_orgs_org_name_groups_group_name_members_get200_response.rb +243 -0
- data/lib/docker-hub/models/v2_orgs_org_name_groups_group_name_members_post_request.rb +221 -0
- data/lib/docker-hub/models/v2_orgs_org_name_groups_group_name_patch_request.rb +223 -0
- data/lib/docker-hub/models/v2_orgs_org_name_groups_post_request.rb +230 -0
- data/lib/docker-hub/models/v2_orgs_org_name_invites_get200_response.rb +216 -0
- data/lib/docker-hub/models/v2_orgs_org_name_members_export_get200_response_inner.rb +356 -0
- data/lib/docker-hub/models/v2_orgs_org_name_members_username_put_request.rb +256 -0
- data/lib/docker-hub/models/v2_scim20_resource_types_get200_response.rb +236 -0
- data/lib/docker-hub/models/v2_scim20_resource_types_name_get404_response.rb +243 -0
- data/lib/docker-hub/models/v2_scim20_schemas_get200_response.rb +236 -0
- data/lib/docker-hub/models/v2_scim20_service_provider_config_get401_response.rb +243 -0
- data/lib/docker-hub/models/v2_scim20_service_provider_config_get500_response.rb +243 -0
- data/lib/docker-hub/models/v2_scim20_users_get200_response.rb +254 -0
- data/lib/docker-hub/models/v2_scim20_users_get400_response.rb +253 -0
- data/lib/docker-hub/models/v2_scim20_users_get403_response.rb +243 -0
- data/lib/docker-hub/models/v2_scim20_users_id_put_request.rb +244 -0
- data/lib/docker-hub/models/v2_scim20_users_id_put_request_name.rb +230 -0
- data/lib/docker-hub/models/v2_scim20_users_post409_response.rb +243 -0
- data/lib/docker-hub/models/v2_scim20_users_post_request.rb +249 -0
- data/lib/docker-hub/models/value_error.rb +226 -0
- data/lib/docker-hub/version.rb +15 -0
- data/lib/docker-hub.rb +150 -0
- data/spec/api/access_tokens_api_spec.rb +97 -0
- data/spec/api/audit_logs_api_spec.rb +66 -0
- data/spec/api/authentication_api_api_spec.rb +71 -0
- data/spec/api/groups_api_spec.rb +162 -0
- data/spec/api/invites_api_spec.rb +84 -0
- data/spec/api/org_access_tokens_api_spec.rb +100 -0
- data/spec/api/org_settings_api_spec.rb +60 -0
- data/spec/api/orgs_api_spec.rb +92 -0
- data/spec/api/repositories_api_spec.rb +183 -0
- data/spec/api/scim_api_spec.rb +146 -0
- data/spec/models/access_token_spec.rb +102 -0
- data/spec/models/audit_log_action_spec.rb +48 -0
- data/spec/models/audit_log_actions_spec.rb +42 -0
- data/spec/models/audit_log_spec.rb +72 -0
- data/spec/models/auth_create_access_token_request_spec.rb +42 -0
- data/spec/models/auth_create_token_response_spec.rb +36 -0
- data/spec/models/bulk_invite_invitees_inner_spec.rb +48 -0
- data/spec/models/bulk_invite_spec.rb +36 -0
- data/spec/models/category_spec.rb +42 -0
- data/spec/models/create_access_token_request_spec.rb +48 -0
- data/spec/models/create_org_access_token_request_spec.rb +54 -0
- data/spec/models/create_org_access_token_response_spec.rb +84 -0
- data/spec/models/email_address_spec.rb +60 -0
- data/spec/models/email_with_username_spec.rb +66 -0
- data/spec/models/error_spec.rb +48 -0
- data/spec/models/get_access_tokens_response_spec.rb +60 -0
- data/spec/models/get_audit_actions_response_spec.rb +36 -0
- data/spec/models/get_audit_logs_response_spec.rb +36 -0
- data/spec/models/get_org_access_token_response_spec.rb +78 -0
- data/spec/models/get_org_access_tokens_response_spec.rb +54 -0
- data/spec/models/group_member_spec.rb +100 -0
- data/spec/models/image_spec.rb +106 -0
- data/spec/models/immutable_tags_settings_spec.rb +42 -0
- data/spec/models/immutable_tags_verify_request_spec.rb +36 -0
- data/spec/models/immutable_tags_verify_response_spec.rb +36 -0
- data/spec/models/invite_spec.rb +66 -0
- data/spec/models/layer_spec.rb +48 -0
- data/spec/models/legacy_email_address_spec.rb +66 -0
- data/spec/models/list_repositories_response_spec.rb +54 -0
- data/spec/models/org_access_token_resource_spec.rb +52 -0
- data/spec/models/org_access_token_spec.rb +72 -0
- data/spec/models/org_group_spec.rb +60 -0
- data/spec/models/org_member_paginated_spec.rb +54 -0
- data/spec/models/org_member_spec.rb +146 -0
- data/spec/models/org_settings_spec.rb +36 -0
- data/spec/models/page_spec.rb +48 -0
- data/spec/models/paginated_tags_spec.rb +54 -0
- data/spec/models/patch_access_token_request_spec.rb +42 -0
- data/spec/models/post_users2_fa_login_error_response_spec.rb +36 -0
- data/spec/models/post_users_login_error_response_spec.rb +42 -0
- data/spec/models/post_users_login_success_response_spec.rb +36 -0
- data/spec/models/protobuf_any_spec.rb +42 -0
- data/spec/models/repo_creation_request_spec.rb +66 -0
- data/spec/models/repo_permissions_spec.rb +48 -0
- data/spec/models/repository_group_creation_request_spec.rb +46 -0
- data/spec/models/repository_group_spec.rb +52 -0
- data/spec/models/repository_info_spec.rb +186 -0
- data/spec/models/repository_list_entry_spec.rb +140 -0
- data/spec/models/restricted_images_spec.rb +48 -0
- data/spec/models/rpc_status_spec.rb +48 -0
- data/spec/models/scim_email_spec.rb +48 -0
- data/spec/models/scim_error_spec.rb +48 -0
- data/spec/models/scim_group_spec.rb +42 -0
- data/spec/models/scim_resource_type_spec.rb +66 -0
- data/spec/models/scim_schema_attribute_spec.rb +88 -0
- data/spec/models/scim_schema_parent_attribute_spec.rb +94 -0
- data/spec/models/scim_schema_spec.rb +60 -0
- data/spec/models/scim_service_provider_config_authentication_schemes_spec.rb +54 -0
- data/spec/models/scim_service_provider_config_bulk_spec.rb +48 -0
- data/spec/models/scim_service_provider_config_change_password_spec.rb +36 -0
- data/spec/models/scim_service_provider_config_filter_spec.rb +42 -0
- data/spec/models/scim_service_provider_config_patch_spec.rb +36 -0
- data/spec/models/scim_service_provider_config_sort_spec.rb +36 -0
- data/spec/models/scim_service_provider_config_spec.rb +84 -0
- data/spec/models/scim_user_meta_spec.rb +54 -0
- data/spec/models/scim_user_name_spec.rb +42 -0
- data/spec/models/scim_user_spec.rb +84 -0
- data/spec/models/tag_spec.rb +112 -0
- data/spec/models/team_repo_spec.rb +46 -0
- data/spec/models/update_org_access_token_request_spec.rb +54 -0
- data/spec/models/update_org_access_token_response_spec.rb +78 -0
- data/spec/models/update_repository_immutable_tags_request_spec.rb +42 -0
- data/spec/models/user_spec.rb +94 -0
- data/spec/models/users2_fa_login_request_spec.rb +42 -0
- data/spec/models/users_login_request_spec.rb +42 -0
- data/spec/models/v2_access_tokens_uuid_get200_response_spec.rb +102 -0
- data/spec/models/v2_invites_bulk_post202_response_spec.rb +36 -0
- data/spec/models/v2_invites_bulk_post_request_spec.rb +60 -0
- data/spec/models/v2_orgs_name_settings_put_request_restricted_images_spec.rb +48 -0
- data/spec/models/v2_orgs_name_settings_put_request_spec.rb +36 -0
- data/spec/models/v2_orgs_org_name_groups_get200_response_spec.rb +54 -0
- data/spec/models/v2_orgs_org_name_groups_group_name_members_get200_response_spec.rb +54 -0
- data/spec/models/v2_orgs_org_name_groups_group_name_members_post_request_spec.rb +36 -0
- data/spec/models/v2_orgs_org_name_groups_group_name_patch_request_spec.rb +42 -0
- data/spec/models/v2_orgs_org_name_groups_post_request_spec.rb +42 -0
- data/spec/models/v2_orgs_org_name_invites_get200_response_spec.rb +36 -0
- data/spec/models/v2_orgs_org_name_members_export_get200_response_inner_spec.rb +80 -0
- data/spec/models/v2_orgs_org_name_members_username_put_request_spec.rb +40 -0
- data/spec/models/v2_scim20_resource_types_get200_response_spec.rb +48 -0
- data/spec/models/v2_scim20_resource_types_name_get404_response_spec.rb +48 -0
- data/spec/models/v2_scim20_schemas_get200_response_spec.rb +48 -0
- data/spec/models/v2_scim20_service_provider_config_get401_response_spec.rb +48 -0
- data/spec/models/v2_scim20_service_provider_config_get500_response_spec.rb +48 -0
- data/spec/models/v2_scim20_users_get200_response_spec.rb +60 -0
- data/spec/models/v2_scim20_users_get400_response_spec.rb +54 -0
- data/spec/models/v2_scim20_users_get403_response_spec.rb +48 -0
- data/spec/models/v2_scim20_users_id_put_request_name_spec.rb +42 -0
- data/spec/models/v2_scim20_users_id_put_request_spec.rb +48 -0
- data/spec/models/v2_scim20_users_post409_response_spec.rb +48 -0
- data/spec/models/v2_scim20_users_post_request_spec.rb +48 -0
- data/spec/models/value_error_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- metadata +539 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Docker HUB API
|
|
3
|
+
|
|
4
|
+
#Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2-beta
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for DockerHub::GroupsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'GroupsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = DockerHub::GroupsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of GroupsApi' do
|
|
30
|
+
it 'should create an instance of GroupsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(DockerHub::GroupsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for v2_orgs_org_name_groups_get
|
|
36
|
+
# Get groups of an organization
|
|
37
|
+
# <span class=\"oat\"></span>
|
|
38
|
+
# @param org_name Name of the organization (namespace).
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :page Page number (starts on 1).
|
|
41
|
+
# @option opts [Integer] :page_size Number of items (rows) per page.
|
|
42
|
+
# @option opts [String] :username Get groups for the specified username in the organization.
|
|
43
|
+
# @option opts [String] :search Get groups for the specified group in the organization.
|
|
44
|
+
# @return [V2OrgsOrgNameGroupsGet200Response]
|
|
45
|
+
describe 'v2_orgs_org_name_groups_get test' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# unit tests for v2_orgs_org_name_groups_group_name_delete
|
|
52
|
+
# Delete an organization group
|
|
53
|
+
# <span class=\"oat\"></span>
|
|
54
|
+
# @param org_name Name of the organization (namespace).
|
|
55
|
+
# @param group_name Name of the group (team) in the organization.
|
|
56
|
+
# @param [Hash] opts the optional parameters
|
|
57
|
+
# @return [nil]
|
|
58
|
+
describe 'v2_orgs_org_name_groups_group_name_delete test' do
|
|
59
|
+
it 'should work' do
|
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# unit tests for v2_orgs_org_name_groups_group_name_get
|
|
65
|
+
# Get a group of an organization
|
|
66
|
+
# <span class=\"oat\"></span>
|
|
67
|
+
# @param org_name Name of the organization (namespace).
|
|
68
|
+
# @param group_name Name of the group (team) in the organization.
|
|
69
|
+
# @param [Hash] opts the optional parameters
|
|
70
|
+
# @return [OrgGroup]
|
|
71
|
+
describe 'v2_orgs_org_name_groups_group_name_get test' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# unit tests for v2_orgs_org_name_groups_group_name_members_get
|
|
78
|
+
# List members of a group
|
|
79
|
+
# List the members (users) that are in a group. If user is owner of the org or has otherwise elevated permissions, they can search by email and the result will also contain emails. <span class=\"oat\"></span>
|
|
80
|
+
# @param org_name Name of the organization (namespace).
|
|
81
|
+
# @param group_name Name of the group (team) in the organization.
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @option opts [Integer] :page Page number (starts on 1).
|
|
84
|
+
# @option opts [Integer] :page_size Number of items (rows) per page.
|
|
85
|
+
# @option opts [String] :search Search members by username, full_name or email.
|
|
86
|
+
# @return [V2OrgsOrgNameGroupsGroupNameMembersGet200Response]
|
|
87
|
+
describe 'v2_orgs_org_name_groups_group_name_members_get test' do
|
|
88
|
+
it 'should work' do
|
|
89
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# unit tests for v2_orgs_org_name_groups_group_name_members_post
|
|
94
|
+
# Add a member to a group
|
|
95
|
+
# <span class=\"oat\"></span>
|
|
96
|
+
# @param org_name Name of the organization (namespace).
|
|
97
|
+
# @param group_name Name of the group (team) in the organization.
|
|
98
|
+
# @param v2_orgs_org_name_groups_group_name_members_post_request
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [nil]
|
|
101
|
+
describe 'v2_orgs_org_name_groups_group_name_members_post test' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# unit tests for v2_orgs_org_name_groups_group_name_members_username_delete
|
|
108
|
+
# Remove a user from a group
|
|
109
|
+
# <span class=\"oat\"></span>
|
|
110
|
+
# @param org_name Name of the organization (namespace).
|
|
111
|
+
# @param group_name Name of the group (team) in the organization.
|
|
112
|
+
# @param username Username, identifier for the user (namespace, DockerID).
|
|
113
|
+
# @param [Hash] opts the optional parameters
|
|
114
|
+
# @return [nil]
|
|
115
|
+
describe 'v2_orgs_org_name_groups_group_name_members_username_delete test' do
|
|
116
|
+
it 'should work' do
|
|
117
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# unit tests for v2_orgs_org_name_groups_group_name_patch
|
|
122
|
+
# Update some details for an organization group
|
|
123
|
+
# <span class=\"oat\"></span>
|
|
124
|
+
# @param org_name Name of the organization (namespace).
|
|
125
|
+
# @param group_name Name of the group (team) in the organization.
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @option opts [V2OrgsOrgNameGroupsGroupNamePatchRequest] :v2_orgs_org_name_groups_group_name_patch_request
|
|
128
|
+
# @return [OrgGroup]
|
|
129
|
+
describe 'v2_orgs_org_name_groups_group_name_patch test' do
|
|
130
|
+
it 'should work' do
|
|
131
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# unit tests for v2_orgs_org_name_groups_group_name_put
|
|
136
|
+
# Update the details for an organization group
|
|
137
|
+
# <span class=\"oat\"></span>
|
|
138
|
+
# @param org_name Name of the organization (namespace).
|
|
139
|
+
# @param group_name Name of the group (team) in the organization.
|
|
140
|
+
# @param [Hash] opts the optional parameters
|
|
141
|
+
# @option opts [V2OrgsOrgNameGroupsPostRequest] :v2_orgs_org_name_groups_post_request
|
|
142
|
+
# @return [OrgGroup]
|
|
143
|
+
describe 'v2_orgs_org_name_groups_group_name_put test' do
|
|
144
|
+
it 'should work' do
|
|
145
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# unit tests for v2_orgs_org_name_groups_post
|
|
150
|
+
# Create a new group
|
|
151
|
+
# Create a new group within an organization. <span class=\"oat\"></span>
|
|
152
|
+
# @param org_name Name of the organization (namespace).
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @option opts [V2OrgsOrgNameGroupsPostRequest] :v2_orgs_org_name_groups_post_request
|
|
155
|
+
# @return [OrgGroup]
|
|
156
|
+
describe 'v2_orgs_org_name_groups_post test' do
|
|
157
|
+
it 'should work' do
|
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Docker HUB API
|
|
3
|
+
|
|
4
|
+
#Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2-beta
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for DockerHub::InvitesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'InvitesApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = DockerHub::InvitesApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of InvitesApi' do
|
|
30
|
+
it 'should create an instance of InvitesApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(DockerHub::InvitesApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for v2_invites_bulk_post
|
|
36
|
+
# Bulk create invites
|
|
37
|
+
# Create multiple invites by emails or DockerIDs. Only a team owner can create invites. <span class=\"oat\"></span>
|
|
38
|
+
# @param v2_invites_bulk_post_request
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :x_analytics_client_feature Optional string that indicates the feature used to submit the bulk invites (e.g.'file', 'web')
|
|
41
|
+
# @return [V2InvitesBulkPost202Response]
|
|
42
|
+
describe 'v2_invites_bulk_post test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for v2_invites_id_delete
|
|
49
|
+
# Cancel an invite
|
|
50
|
+
# Mark the invite as cancelled so it doesn't show up on the list of pending invites <span class=\"oat\"></span>
|
|
51
|
+
# @param id
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [nil]
|
|
54
|
+
describe 'v2_invites_id_delete test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for v2_invites_id_resend_patch
|
|
61
|
+
# Resend an invite
|
|
62
|
+
# Resend a pending invite to the user, any org owner can resend an invite <span class=\"oat\"></span>
|
|
63
|
+
# @param id
|
|
64
|
+
# @param [Hash] opts the optional parameters
|
|
65
|
+
# @return [nil]
|
|
66
|
+
describe 'v2_invites_id_resend_patch test' do
|
|
67
|
+
it 'should work' do
|
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# unit tests for v2_orgs_org_name_invites_get
|
|
73
|
+
# List org invites
|
|
74
|
+
# Return all pending invites for a given org, only team owners can call this endpoint <span class=\"oat\"></span>
|
|
75
|
+
# @param org_name Name of the organization (namespace).
|
|
76
|
+
# @param [Hash] opts the optional parameters
|
|
77
|
+
# @return [V2OrgsOrgNameInvitesGet200Response]
|
|
78
|
+
describe 'v2_orgs_org_name_invites_get test' do
|
|
79
|
+
it 'should work' do
|
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
end
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Docker HUB API
|
|
3
|
+
|
|
4
|
+
#Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2-beta
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for DockerHub::OrgAccessTokensApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'OrgAccessTokensApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = DockerHub::OrgAccessTokensApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of OrgAccessTokensApi' do
|
|
30
|
+
it 'should create an instance of OrgAccessTokensApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(DockerHub::OrgAccessTokensApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for v2_orgs_name_access_tokens_get
|
|
36
|
+
# List access tokens
|
|
37
|
+
# List access tokens for an organization.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [Float] :page
|
|
40
|
+
# @option opts [Float] :page_size
|
|
41
|
+
# @return [GetOrgAccessTokensResponse]
|
|
42
|
+
describe 'v2_orgs_name_access_tokens_get test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for v2_orgs_name_access_tokens_post
|
|
49
|
+
# Create access token
|
|
50
|
+
# Create an access token for an organization.
|
|
51
|
+
# @param create_org_access_token_request
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [CreateOrgAccessTokenResponse]
|
|
54
|
+
describe 'v2_orgs_name_access_tokens_post test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for v2_orgs_org_name_access_tokens_access_token_id_delete
|
|
61
|
+
# Delete access token
|
|
62
|
+
# Delete a specific access token for an organization. This action cannot be undone.
|
|
63
|
+
# @param org_name Name of the organization (namespace).
|
|
64
|
+
# @param access_token_id The ID of the access token to retrieve
|
|
65
|
+
# @param [Hash] opts the optional parameters
|
|
66
|
+
# @return [nil]
|
|
67
|
+
describe 'v2_orgs_org_name_access_tokens_access_token_id_delete test' do
|
|
68
|
+
it 'should work' do
|
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# unit tests for v2_orgs_org_name_access_tokens_access_token_id_get
|
|
74
|
+
# Get access token
|
|
75
|
+
# Get details of a specific access token for an organization.
|
|
76
|
+
# @param org_name Name of the organization (namespace).
|
|
77
|
+
# @param access_token_id The ID of the access token to retrieve
|
|
78
|
+
# @param [Hash] opts the optional parameters
|
|
79
|
+
# @return [GetOrgAccessTokenResponse]
|
|
80
|
+
describe 'v2_orgs_org_name_access_tokens_access_token_id_get test' do
|
|
81
|
+
it 'should work' do
|
|
82
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# unit tests for v2_orgs_org_name_access_tokens_access_token_id_patch
|
|
87
|
+
# Update access token
|
|
88
|
+
# Update a specific access token for an organization.
|
|
89
|
+
# @param org_name Name of the organization (namespace).
|
|
90
|
+
# @param access_token_id The ID of the access token to retrieve
|
|
91
|
+
# @param update_org_access_token_request
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [UpdateOrgAccessTokenResponse]
|
|
94
|
+
describe 'v2_orgs_org_name_access_tokens_access_token_id_patch test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Docker HUB API
|
|
3
|
+
|
|
4
|
+
#Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2-beta
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for DockerHub::OrgSettingsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'OrgSettingsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = DockerHub::OrgSettingsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of OrgSettingsApi' do
|
|
30
|
+
it 'should create an instance of OrgSettingsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(DockerHub::OrgSettingsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for v2_orgs_name_settings_get
|
|
36
|
+
# Get organization settings
|
|
37
|
+
# Returns organization settings by name.
|
|
38
|
+
# @param name Name of the organization.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [OrgSettings]
|
|
41
|
+
describe 'v2_orgs_name_settings_get test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for v2_orgs_name_settings_put
|
|
48
|
+
# Update organization settings
|
|
49
|
+
# Updates an organization's settings. Some settings are only used when the organization is on a business subscription. ***Only users with administrative privileges for the organization (owner role) can modify these settings.*** The following settings are only used on a business subscription: - `restricted_images`
|
|
50
|
+
# @param name Name of the organization.
|
|
51
|
+
# @param v2_orgs_name_settings_put_request
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [OrgSettings]
|
|
54
|
+
describe 'v2_orgs_name_settings_put test' do
|
|
55
|
+
it 'should work' do
|
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
end
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Docker HUB API
|
|
3
|
+
|
|
4
|
+
#Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2-beta
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for DockerHub::OrgsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'OrgsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = DockerHub::OrgsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of OrgsApi' do
|
|
30
|
+
it 'should create an instance of OrgsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(DockerHub::OrgsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for v2_orgs_org_name_members_export_get
|
|
36
|
+
# Export org members CSV
|
|
37
|
+
# Export members of an organization as a CSV <span class=\"oat\"></span>
|
|
38
|
+
# @param org_name Name of the organization (namespace).
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<V2OrgsOrgNameMembersExportGet200ResponseInner>]
|
|
41
|
+
describe 'v2_orgs_org_name_members_export_get test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# unit tests for v2_orgs_org_name_members_get
|
|
48
|
+
# List org members
|
|
49
|
+
# Returns a list of members for an organization. _The following fields are only visible to orgs with insights enabled._ - `last_logged_in_at` - `last_seen_at` - `last_desktop_version` To make visible, please see [View Insights for organization users](https://docs.docker.com/admin/organization/insights/#view-insights-for-organization-users). <span class=\"oat\"></span>
|
|
50
|
+
# @param org_name Name of the organization (namespace).
|
|
51
|
+
# @param [Hash] opts the optional parameters
|
|
52
|
+
# @option opts [Integer] :search Search term.
|
|
53
|
+
# @option opts [Integer] :page Page number (starts on 1).
|
|
54
|
+
# @option opts [Integer] :page_size Number of items (rows) per page.
|
|
55
|
+
# @option opts [Boolean] :invites Include invites in the response.
|
|
56
|
+
# @option opts [String] :type
|
|
57
|
+
# @option opts [String] :role
|
|
58
|
+
# @return [Array<OrgMemberPaginated>]
|
|
59
|
+
describe 'v2_orgs_org_name_members_get test' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# unit tests for v2_orgs_org_name_members_username_delete
|
|
66
|
+
# Remove member from org
|
|
67
|
+
# Removes the member from the org, ie. all groups in the org, unless they're the last owner <span class=\"oat\"></span>
|
|
68
|
+
# @param org_name Name of the organization (namespace).
|
|
69
|
+
# @param username Username, identifier for the user (namespace, DockerID).
|
|
70
|
+
# @param [Hash] opts the optional parameters
|
|
71
|
+
# @return [nil]
|
|
72
|
+
describe 'v2_orgs_org_name_members_username_delete test' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# unit tests for v2_orgs_org_name_members_username_put
|
|
79
|
+
# Update org member (role)
|
|
80
|
+
# Updates the role of a member in the organization. ***Only users in the \"owners\" group of the organization can use this endpoint.*** <span class=\"oat\"></span>
|
|
81
|
+
# @param org_name Name of the organization (namespace).
|
|
82
|
+
# @param username Username, identifier for the user (namespace, DockerID).
|
|
83
|
+
# @param v2_orgs_org_name_members_username_put_request
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @return [OrgMember]
|
|
86
|
+
describe 'v2_orgs_org_name_members_username_put test' do
|
|
87
|
+
it 'should work' do
|
|
88
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
end
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Docker HUB API
|
|
3
|
+
|
|
4
|
+
#Docker Hub is a service provided by Docker for finding and sharing container images with your team. It is the world's largest library and community for container images. In addition to the [Docker Hub UI](https://docs.docker.com/docker-hub/) and [Docker Hub CLI tool](https://github.com/docker/hub-tool#readme) (currently experimental), Docker provides an API that allows you to interact with Docker Hub. Browse through the Docker Hub API documentation to explore the supported endpoints.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2-beta
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
OpenAPI Generator version: 7.2.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for DockerHub::RepositoriesApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'RepositoriesApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = DockerHub::RepositoriesApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of RepositoriesApi' do
|
|
30
|
+
it 'should create an instance of RepositoriesApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(DockerHub::RepositoriesApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for check_repository
|
|
36
|
+
# Check repository in a namespace
|
|
37
|
+
# Check a repository within the specified namespace (organization or user). Public repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.
|
|
38
|
+
# @param namespace
|
|
39
|
+
# @param repository
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [RepositoryInfo]
|
|
42
|
+
describe 'check_repository test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for create_repository
|
|
49
|
+
# Create a new repository
|
|
50
|
+
# Creates a new repository within the specified namespace. The repository will be created with the provided metadata including name, description, and privacy settings.
|
|
51
|
+
# @param namespace
|
|
52
|
+
# @param repo_creation_request
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @return [RepositoryInfo]
|
|
55
|
+
describe 'create_repository test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# unit tests for create_repository_group
|
|
62
|
+
# Assign a group (Team) to a repository for access
|
|
63
|
+
# @param namespace
|
|
64
|
+
# @param repository
|
|
65
|
+
# @param repository_group_creation_request
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @return [RepositoryGroup]
|
|
68
|
+
describe 'create_repository_group test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# unit tests for get_repository
|
|
75
|
+
# Get repository in a namespace
|
|
76
|
+
# Returns a repository within the specified namespace (organization or user). Public repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.
|
|
77
|
+
# @param namespace
|
|
78
|
+
# @param repository
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [RepositoryInfo]
|
|
81
|
+
describe 'get_repository test' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# unit tests for get_repository_tag
|
|
88
|
+
# Read repository tag
|
|
89
|
+
# @param namespace
|
|
90
|
+
# @param repository
|
|
91
|
+
# @param tag
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [Tag]
|
|
94
|
+
describe 'get_repository_tag test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# unit tests for list_namespace_repositories
|
|
101
|
+
# List repositories in a namespace
|
|
102
|
+
# Returns a list of repositories within the specified namespace (organization or user). Public repositories are accessible to everyone, while private repositories require appropriate authentication and permissions.
|
|
103
|
+
# @param namespace
|
|
104
|
+
# @param [Hash] opts the optional parameters
|
|
105
|
+
# @option opts [Integer] :page Page number to get. Defaults to 1.
|
|
106
|
+
# @option opts [Integer] :page_size Number of repositories to get per page. Defaults to 10. Max of 100.
|
|
107
|
+
# @option opts [String] :name Filter repositories by name (partial match).
|
|
108
|
+
# @option opts [String] :ordering Order repositories by the specified field. Prefix with '-' for descending order. Available options: - `name` / `-name`: Repository name (ascending/descending) - `last_updated` / `-last_updated`: Last update time (ascending/descending) - `pull_count` / `-pull_count`: Number of pulls (ascending/descending)
|
|
109
|
+
# @return [ListRepositoriesResponse]
|
|
110
|
+
describe 'list_namespace_repositories test' do
|
|
111
|
+
it 'should work' do
|
|
112
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# unit tests for list_repository_tags
|
|
117
|
+
# List repository tags
|
|
118
|
+
# @param namespace
|
|
119
|
+
# @param repository
|
|
120
|
+
# @param [Hash] opts the optional parameters
|
|
121
|
+
# @option opts [Integer] :page Page number to get. Defaults to 1.
|
|
122
|
+
# @option opts [Integer] :page_size Number of items to get per page. Defaults to 10. Max of 100.
|
|
123
|
+
# @return [PaginatedTags]
|
|
124
|
+
describe 'list_repository_tags test' do
|
|
125
|
+
it 'should work' do
|
|
126
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# unit tests for update_repository_immutable_tags
|
|
131
|
+
# Update repository immutable tags
|
|
132
|
+
# Updates the immutable tags configuration for this repository. **Only users with administrative privileges for the repository can modify these settings.**
|
|
133
|
+
# @param namespace
|
|
134
|
+
# @param repository
|
|
135
|
+
# @param update_repository_immutable_tags_request
|
|
136
|
+
# @param [Hash] opts the optional parameters
|
|
137
|
+
# @return [RepositoryInfo]
|
|
138
|
+
describe 'update_repository_immutable_tags test' do
|
|
139
|
+
it 'should work' do
|
|
140
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# unit tests for v2_namespaces_namespace_repositories_repository_tags_head
|
|
145
|
+
# Check repository tags
|
|
146
|
+
# @param namespace
|
|
147
|
+
# @param repository
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @return [nil]
|
|
150
|
+
describe 'v2_namespaces_namespace_repositories_repository_tags_head test' do
|
|
151
|
+
it 'should work' do
|
|
152
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# unit tests for v2_namespaces_namespace_repositories_repository_tags_tag_head
|
|
157
|
+
# Check repository tag
|
|
158
|
+
# @param namespace
|
|
159
|
+
# @param repository
|
|
160
|
+
# @param tag
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [nil]
|
|
163
|
+
describe 'v2_namespaces_namespace_repositories_repository_tags_tag_head test' do
|
|
164
|
+
it 'should work' do
|
|
165
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# unit tests for verify_repository_immutable_tags
|
|
170
|
+
# Verify repository immutable tags
|
|
171
|
+
# Validates the immutable tags regex pass in parameter and returns a list of tags matching it in this repository. **Only users with administrative privileges for the repository call this endpoint.**
|
|
172
|
+
# @param namespace
|
|
173
|
+
# @param repository
|
|
174
|
+
# @param immutable_tags_verify_request
|
|
175
|
+
# @param [Hash] opts the optional parameters
|
|
176
|
+
# @return [ImmutableTagsVerifyResponse]
|
|
177
|
+
describe 'verify_repository_immutable_tags test' do
|
|
178
|
+
it 'should work' do
|
|
179
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
end
|